Changeset 3370210
- Timestamp:
- 09/30/2025 08:07:26 AM (4 months ago)
- Location:
- safelayout-elegant-icons
- Files:
-
- 266 added
- 33 edited
-
tags/1.4.0 (added)
-
tags/1.4.0/assets (added)
-
tags/1.4.0/assets/css (added)
-
tags/1.4.0/assets/css/safelayout-elegant-icons-admin-feedback.css (added)
-
tags/1.4.0/assets/css/safelayout-elegant-icons-admin-feedback.min.css (added)
-
tags/1.4.0/assets/css/safelayout-elegant-icons-admin.css (added)
-
tags/1.4.0/assets/css/safelayout-elegant-icons-admin.min.css (added)
-
tags/1.4.0/assets/image (added)
-
tags/1.4.0/assets/image/safelayout-elegant-icons-pro-note.png (added)
-
tags/1.4.0/assets/js (added)
-
tags/1.4.0/assets/js/menu.js (added)
-
tags/1.4.0/assets/js/plugin.js (added)
-
tags/1.4.0/assets/js/safelayout-elegant-icons-admin-feedback.js (added)
-
tags/1.4.0/assets/js/safelayout-elegant-icons-admin-feedback.min.js (added)
-
tags/1.4.0/assets/js/safelayout-elegant-icons-admin.js (added)
-
tags/1.4.0/assets/js/safelayout-elegant-icons-admin.min.js (added)
-
tags/1.4.0/assets/patterns (added)
-
tags/1.4.0/assets/patterns/pattern001.php (added)
-
tags/1.4.0/assets/patterns/pattern002.php (added)
-
tags/1.4.0/assets/patterns/pattern003.php (added)
-
tags/1.4.0/assets/patterns/pattern004.php (added)
-
tags/1.4.0/assets/patterns/pattern005.php (added)
-
tags/1.4.0/assets/patterns/pattern006.php (added)
-
tags/1.4.0/assets/patterns/pattern007.php (added)
-
tags/1.4.0/assets/patterns/pattern008.php (added)
-
tags/1.4.0/assets/patterns/pattern009.php (added)
-
tags/1.4.0/assets/patterns/pattern010.php (added)
-
tags/1.4.0/assets/patterns/pattern011.php (added)
-
tags/1.4.0/assets/patterns/pattern012.php (added)
-
tags/1.4.0/assets/patterns/pattern013.php (added)
-
tags/1.4.0/assets/patterns/pattern014.php (added)
-
tags/1.4.0/assets/patterns/pattern015.php (added)
-
tags/1.4.0/assets/patterns/pattern016.php (added)
-
tags/1.4.0/assets/patterns/pattern017.php (added)
-
tags/1.4.0/assets/patterns/pattern018.php (added)
-
tags/1.4.0/assets/patterns/pattern019.php (added)
-
tags/1.4.0/assets/patterns/pattern020.php (added)
-
tags/1.4.0/build (added)
-
tags/1.4.0/build/box-button (added)
-
tags/1.4.0/build/box-button/block.json (added)
-
tags/1.4.0/build/box-button/index.asset.php (added)
-
tags/1.4.0/build/box-button/index.js (added)
-
tags/1.4.0/build/box-ribbon (added)
-
tags/1.4.0/build/box-ribbon/block.json (added)
-
tags/1.4.0/build/box-ribbon/index.asset.php (added)
-
tags/1.4.0/build/box-ribbon/index.js (added)
-
tags/1.4.0/build/container (added)
-
tags/1.4.0/build/container/block.json (added)
-
tags/1.4.0/build/container/index.asset.php (added)
-
tags/1.4.0/build/container/index.js (added)
-
tags/1.4.0/build/fonts (added)
-
tags/1.4.0/build/fonts/safelayoutwordpress.856556f1.woff2 (added)
-
tags/1.4.0/build/fonts/safelayoutwordpressdashicons.b20fa40f.woff2 (added)
-
tags/1.4.0/build/icon (added)
-
tags/1.4.0/build/icon-box (added)
-
tags/1.4.0/build/icon-box/block.json (added)
-
tags/1.4.0/build/icon-box/index-rtl.css (added)
-
tags/1.4.0/build/icon-box/index.asset.php (added)
-
tags/1.4.0/build/icon-box/index.css (added)
-
tags/1.4.0/build/icon-box/index.js (added)
-
tags/1.4.0/build/icon-box/style-index-rtl.css (added)
-
tags/1.4.0/build/icon-box/style-index.css (added)
-
tags/1.4.0/build/icon/block.json (added)
-
tags/1.4.0/build/icon/index-rtl.css (added)
-
tags/1.4.0/build/icon/index.asset.php (added)
-
tags/1.4.0/build/icon/index.css (added)
-
tags/1.4.0/build/icon/index.js (added)
-
tags/1.4.0/build/icon/style-index-rtl.css (added)
-
tags/1.4.0/build/icon/style-index.css (added)
-
tags/1.4.0/build/images (added)
-
tags/1.4.0/build/images/icon-box-effect1.0d2d1f38.webp (added)
-
tags/1.4.0/build/images/icon-box-effect2.b94e6e6a.webp (added)
-
tags/1.4.0/build/images/ribbon-effect1.5d784eb2.webp (added)
-
tags/1.4.0/build/images/ribbon-effect2.110c1a4d.webp (added)
-
tags/1.4.0/build/mce (added)
-
tags/1.4.0/build/mce/block.json (added)
-
tags/1.4.0/build/mce/index.asset.php (added)
-
tags/1.4.0/build/mce/index.js (added)
-
tags/1.4.0/build/social-profiles (added)
-
tags/1.4.0/build/social-profiles/block.json (added)
-
tags/1.4.0/build/social-profiles/index.asset.php (added)
-
tags/1.4.0/build/social-profiles/index.js (added)
-
tags/1.4.0/build/social-share (added)
-
tags/1.4.0/build/social-share/block.json (added)
-
tags/1.4.0/build/social-share/index.asset.php (added)
-
tags/1.4.0/build/social-share/index.js (added)
-
tags/1.4.0/build/social-share/safelayout-share-script.asset.php (added)
-
tags/1.4.0/build/social-share/safelayout-share-script.js (added)
-
tags/1.4.0/elementor (added)
-
tags/1.4.0/elementor/class-safelayout-boxbutton-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-boxhead-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-boxtext-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-iconbox-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-iconbox-elementor-widget.php (added)
-
tags/1.4.0/elementor/class-safelayout-icons-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-icons-elementor-widget.php (added)
-
tags/1.4.0/elementor/class-safelayout-ribbon-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-socialprofiles-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-socialprofiles-elementor-widget.php (added)
-
tags/1.4.0/elementor/class-safelayout-socialshare-elementor-control.php (added)
-
tags/1.4.0/elementor/class-safelayout-socialshare-elementor-widget.php (added)
-
tags/1.4.0/elementor/safelayout_boxbutton.js (added)
-
tags/1.4.0/elementor/safelayout_boxhead.js (added)
-
tags/1.4.0/elementor/safelayout_boxtext.js (added)
-
tags/1.4.0/elementor/safelayout_iconbox.js (added)
-
tags/1.4.0/elementor/safelayout_icons.js (added)
-
tags/1.4.0/elementor/safelayout_ribbon.js (added)
-
tags/1.4.0/elementor/safelayout_socialprofiles.js (added)
-
tags/1.4.0/elementor/safelayout_socialshare.js (added)
-
tags/1.4.0/elementor/templates (added)
-
tags/1.4.0/elementor/templates/html (added)
-
tags/1.4.0/elementor/templates/html/template001.html (added)
-
tags/1.4.0/elementor/templates/html/template002.html (added)
-
tags/1.4.0/elementor/templates/html/template003.html (added)
-
tags/1.4.0/elementor/templates/html/template004.html (added)
-
tags/1.4.0/elementor/templates/html/template005.html (added)
-
tags/1.4.0/elementor/templates/html/template006.html (added)
-
tags/1.4.0/elementor/templates/html/template007.html (added)
-
tags/1.4.0/elementor/templates/html/template008.html (added)
-
tags/1.4.0/elementor/templates/html/template009.html (added)
-
tags/1.4.0/elementor/templates/html/template010.html (added)
-
tags/1.4.0/elementor/templates/html/template011.html (added)
-
tags/1.4.0/elementor/templates/html/template012.html (added)
-
tags/1.4.0/elementor/templates/html/template013.html (added)
-
tags/1.4.0/elementor/templates/html/template014.html (added)
-
tags/1.4.0/elementor/templates/html/template015.html (added)
-
tags/1.4.0/elementor/templates/html/template016.html (added)
-
tags/1.4.0/elementor/templates/html/template017.html (added)
-
tags/1.4.0/elementor/templates/html/template018.html (added)
-
tags/1.4.0/elementor/templates/html/template019.html (added)
-
tags/1.4.0/elementor/templates/html/template020.html (added)
-
tags/1.4.0/elementor/templates/html/template021.html (added)
-
tags/1.4.0/elementor/templates/html/template022.html (added)
-
tags/1.4.0/elementor/templates/html/template023.html (added)
-
tags/1.4.0/elementor/templates/html/template024.html (added)
-
tags/1.4.0/elementor/templates/html/template025.html (added)
-
tags/1.4.0/elementor/templates/html/template026.html (added)
-
tags/1.4.0/elementor/templates/html/template027.html (added)
-
tags/1.4.0/elementor/templates/html/template028.html (added)
-
tags/1.4.0/elementor/templates/html/template029.html (added)
-
tags/1.4.0/elementor/templates/html/template030.html (added)
-
tags/1.4.0/elementor/templates/html/template031.html (added)
-
tags/1.4.0/elementor/templates/html/template032.html (added)
-
tags/1.4.0/elementor/templates/html/template033.html (added)
-
tags/1.4.0/elementor/templates/image (added)
-
tags/1.4.0/elementor/templates/image/template001.webp (added)
-
tags/1.4.0/elementor/templates/image/template002.webp (added)
-
tags/1.4.0/elementor/templates/image/template003.webp (added)
-
tags/1.4.0/elementor/templates/image/template004.webp (added)
-
tags/1.4.0/elementor/templates/image/template005.webp (added)
-
tags/1.4.0/elementor/templates/image/template006.webp (added)
-
tags/1.4.0/elementor/templates/image/template007.webp (added)
-
tags/1.4.0/elementor/templates/image/template008.webp (added)
-
tags/1.4.0/elementor/templates/image/template009.webp (added)
-
tags/1.4.0/elementor/templates/image/template010.webp (added)
-
tags/1.4.0/elementor/templates/image/template011.webp (added)
-
tags/1.4.0/elementor/templates/image/template012.webp (added)
-
tags/1.4.0/elementor/templates/image/template013.webp (added)
-
tags/1.4.0/elementor/templates/image/template014.webp (added)
-
tags/1.4.0/elementor/templates/image/template015.webp (added)
-
tags/1.4.0/elementor/templates/image/template016.webp (added)
-
tags/1.4.0/elementor/templates/image/template017.webp (added)
-
tags/1.4.0/elementor/templates/image/template018.webp (added)
-
tags/1.4.0/elementor/templates/image/template019.webp (added)
-
tags/1.4.0/elementor/templates/image/template020.webp (added)
-
tags/1.4.0/elementor/templates/image/template021.webp (added)
-
tags/1.4.0/elementor/templates/image/template022.webp (added)
-
tags/1.4.0/elementor/templates/image/template023.webp (added)
-
tags/1.4.0/elementor/templates/image/template024.webp (added)
-
tags/1.4.0/elementor/templates/image/template025.webp (added)
-
tags/1.4.0/elementor/templates/image/template026.webp (added)
-
tags/1.4.0/elementor/templates/image/template027.webp (added)
-
tags/1.4.0/elementor/templates/image/template028.webp (added)
-
tags/1.4.0/elementor/templates/image/template029.webp (added)
-
tags/1.4.0/elementor/templates/image/template030.webp (added)
-
tags/1.4.0/elementor/templates/image/template031.webp (added)
-
tags/1.4.0/elementor/templates/image/template032.webp (added)
-
tags/1.4.0/elementor/templates/image/template033.webp (added)
-
tags/1.4.0/elementor/templates/json (added)
-
tags/1.4.0/elementor/templates/json/template001.json (added)
-
tags/1.4.0/elementor/templates/json/template003.json (added)
-
tags/1.4.0/elementor/templates/json/template004.json (added)
-
tags/1.4.0/elementor/templates/json/template006.json (added)
-
tags/1.4.0/elementor/templates/json/template007.json (added)
-
tags/1.4.0/elementor/templates/json/template009.json (added)
-
tags/1.4.0/elementor/templates/json/template013.json (added)
-
tags/1.4.0/elementor/templates/json/template014.json (added)
-
tags/1.4.0/elementor/templates/json/template017.json (added)
-
tags/1.4.0/elementor/templates/json/template019.json (added)
-
tags/1.4.0/elementor/templates/json/template023.json (added)
-
tags/1.4.0/elementor/templates/json/template025.json (added)
-
tags/1.4.0/elementor/templates/json/template030.json (added)
-
tags/1.4.0/elementor/templates/json/template032.json (added)
-
tags/1.4.0/elementor/templates/template-data.js (added)
-
tags/1.4.0/elementor/templates/template.css (added)
-
tags/1.4.0/elementor/templates/template.js (added)
-
tags/1.4.0/elementor/templates/template.php (added)
-
tags/1.4.0/languages (added)
-
tags/1.4.0/languages/safelayout-elegant-icons.pot (added)
-
tags/1.4.0/package.json (added)
-
tags/1.4.0/packs (added)
-
tags/1.4.0/packs/social-icons.js (added)
-
tags/1.4.0/packs/themeisle-icons.js (added)
-
tags/1.4.0/packs/wordpress-dashicons-icons.js (added)
-
tags/1.4.0/packs/wordpress-icons.js (added)
-
tags/1.4.0/readme.txt (added)
-
tags/1.4.0/safelayout-elegant-icons.php (added)
-
trunk/assets/css/safelayout-elegant-icons-admin-feedback.css (modified) (1 diff)
-
trunk/assets/css/safelayout-elegant-icons-admin.css (modified) (8 diffs)
-
trunk/assets/css/safelayout-elegant-icons-admin.min.css (modified) (1 diff)
-
trunk/assets/image/safelayout-elegant-icons-pro-note.png (modified) (previous)
-
trunk/assets/js/menu.js (modified) (1 diff)
-
trunk/assets/js/safelayout-elegant-icons-admin.js (added)
-
trunk/assets/js/safelayout-elegant-icons-admin.min.js (added)
-
trunk/assets/patterns/pattern016.php (added)
-
trunk/assets/patterns/pattern017.php (added)
-
trunk/assets/patterns/pattern018.php (added)
-
trunk/assets/patterns/pattern019.php (added)
-
trunk/assets/patterns/pattern020.php (added)
-
trunk/build/box-button/block.json (modified) (1 diff)
-
trunk/build/box-button/index.asset.php (modified) (1 diff)
-
trunk/build/box-button/index.js (modified) (1 diff)
-
trunk/build/box-ribbon/block.json (modified) (1 diff)
-
trunk/build/box-ribbon/index.asset.php (modified) (1 diff)
-
trunk/build/box-ribbon/index.js (modified) (1 diff)
-
trunk/build/container/block.json (modified) (1 diff)
-
trunk/build/container/index.asset.php (modified) (1 diff)
-
trunk/build/container/index.js (modified) (1 diff)
-
trunk/build/icon-box/block.json (modified) (1 diff)
-
trunk/build/icon-box/index.asset.php (modified) (1 diff)
-
trunk/build/icon-box/index.js (modified) (1 diff)
-
trunk/build/icon/block.json (modified) (1 diff)
-
trunk/build/icon/index-rtl.css (modified) (1 diff)
-
trunk/build/icon/index.asset.php (modified) (1 diff)
-
trunk/build/icon/index.css (modified) (1 diff)
-
trunk/build/icon/index.js (modified) (1 diff)
-
trunk/build/icon/style-index-rtl.css (modified) (1 diff)
-
trunk/build/icon/style-index.css (modified) (1 diff)
-
trunk/build/mce/block.json (modified) (1 diff)
-
trunk/build/mce/index.asset.php (modified) (1 diff)
-
trunk/build/mce/index.js (modified) (1 diff)
-
trunk/build/social-profiles (added)
-
trunk/build/social-profiles/block.json (added)
-
trunk/build/social-profiles/index.asset.php (added)
-
trunk/build/social-profiles/index.js (added)
-
trunk/build/social-share (added)
-
trunk/build/social-share/block.json (added)
-
trunk/build/social-share/index.asset.php (added)
-
trunk/build/social-share/index.js (added)
-
trunk/build/social-share/safelayout-share-script.asset.php (added)
-
trunk/build/social-share/safelayout-share-script.js (added)
-
trunk/elementor/class-safelayout-socialprofiles-elementor-control.php (added)
-
trunk/elementor/class-safelayout-socialprofiles-elementor-widget.php (added)
-
trunk/elementor/class-safelayout-socialshare-elementor-control.php (added)
-
trunk/elementor/class-safelayout-socialshare-elementor-widget.php (added)
-
trunk/elementor/safelayout_socialprofiles.js (added)
-
trunk/elementor/safelayout_socialshare.js (added)
-
trunk/elementor/templates/html/template019.html (added)
-
trunk/elementor/templates/html/template020.html (added)
-
trunk/elementor/templates/html/template021.html (added)
-
trunk/elementor/templates/html/template022.html (added)
-
trunk/elementor/templates/html/template023.html (added)
-
trunk/elementor/templates/html/template024.html (added)
-
trunk/elementor/templates/html/template025.html (added)
-
trunk/elementor/templates/html/template026.html (added)
-
trunk/elementor/templates/html/template027.html (added)
-
trunk/elementor/templates/html/template028.html (added)
-
trunk/elementor/templates/html/template029.html (added)
-
trunk/elementor/templates/html/template030.html (added)
-
trunk/elementor/templates/html/template031.html (added)
-
trunk/elementor/templates/html/template032.html (added)
-
trunk/elementor/templates/html/template033.html (added)
-
trunk/elementor/templates/image/template019.webp (added)
-
trunk/elementor/templates/image/template020.webp (added)
-
trunk/elementor/templates/image/template021.webp (added)
-
trunk/elementor/templates/image/template022.webp (added)
-
trunk/elementor/templates/image/template023.webp (added)
-
trunk/elementor/templates/image/template024.webp (added)
-
trunk/elementor/templates/image/template025.webp (added)
-
trunk/elementor/templates/image/template026.webp (added)
-
trunk/elementor/templates/image/template027.webp (added)
-
trunk/elementor/templates/image/template028.webp (added)
-
trunk/elementor/templates/image/template029.webp (added)
-
trunk/elementor/templates/image/template030.webp (added)
-
trunk/elementor/templates/image/template031.webp (added)
-
trunk/elementor/templates/image/template032.webp (added)
-
trunk/elementor/templates/image/template033.webp (added)
-
trunk/elementor/templates/json/template019.json (added)
-
trunk/elementor/templates/json/template023.json (added)
-
trunk/elementor/templates/json/template025.json (added)
-
trunk/elementor/templates/json/template030.json (added)
-
trunk/elementor/templates/json/template032.json (added)
-
trunk/elementor/templates/template-data.js (modified) (1 diff)
-
trunk/elementor/templates/template.css (modified) (1 diff)
-
trunk/languages/safelayout-elegant-icons.pot (modified) (22 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/packs/social-icons.js (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/safelayout-elegant-icons.php (modified) (32 diffs)
Legend:
- Unmodified
- Added
- Removed
-
safelayout-elegant-icons/trunk/assets/css/safelayout-elegant-icons-admin-feedback.css
r3339507 r3370210 2 2 * Safelayout Elegant Icons Admin Stylesheet 3 3 * 4 * Version: 1. 3.04 * Version: 1.4.0 5 5 * 6 6 * Table of Contents: -
safelayout-elegant-icons/trunk/assets/css/safelayout-elegant-icons-admin.css
r3339507 r3370210 2 2 * Safelayout Elegant Icons Admin Stylesheet 3 3 * 4 * Version: 1. 3.04 * Version: 1.4.0 5 5 * 6 6 * Table of Contents: … … 60 60 vertical-align: middle; 61 61 } 62 #sl-ei-social-modal, 62 63 #sl-ei-menu-modal { 63 64 background: rgba(0, 0, 0, 0.6); … … 70 71 z-index: 999999; 71 72 } 73 .sl-ei-social-window, 72 74 .sl-ei-menu-window { 73 75 background-color: #fff; … … 79 81 width: 370px; 80 82 } 83 .sl-ei-social-window { 84 width: 500px; 85 } 86 .sl-ei-social-header, 81 87 .sl-ei-menu-header { 82 88 background: #a0e6ff; … … 88 94 padding: 0 10px; 89 95 } 96 #sl-ei-social-body, 90 97 #sl-ei-menu-body { 91 98 height: 530px; 92 99 padding: 10px 20px; 93 100 } 101 #sl-ei-social-body { 102 justify-items: center; 103 } 104 .sl-ei-social-footer, 94 105 .sl-ei-menu-footer { 95 106 border-top: 1px solid #dadadb; … … 98 109 text-align: end; 99 110 } 111 .sl-ei-social-footer .button, 100 112 .sl-ei-menu-footer .button { 101 113 background: #a2ff6f; … … 104 116 padding: 0 15px; 105 117 } 118 .sl-ei-social-footer .button:hover, 106 119 .sl-ei-menu-footer .button:hover { 107 120 background: #e6fc2c; … … 112 125 vertical-align: middle; 113 126 } 127 .sl-ei-exclude-social-select { 128 background-color: #fff; 129 border: 1px solid #8c8f94; 130 display: block; 131 height: 110px; 132 margin: 4px 30px 4px 30px; 133 overflow: scroll; 134 padding: 4px; 135 resize: both; 136 width: 346px; 137 } 138 .sl-ei-exclude-social-select label { 139 background: transparent; 140 color: #313131; 141 display: inline-block; 142 overflow: hidden; 143 text-overflow: ellipsis; 144 white-space: nowrap; 145 width: calc(100% - 30px); 146 } 147 .sl-ei-exclude-social-select .disabled { 148 color: #8c8f94; 149 } 150 .sl-ei-exclude-social-select .sl-ei-list-selected { 151 background: #5858b9; 152 color: #fff; 153 } 154 .sl-ei-list-selected.disabled { 155 background: #c3c4c7; 156 } -
safelayout-elegant-icons/trunk/assets/css/safelayout-elegant-icons-admin.min.css
r3326930 r3370210 1 .sl-ei-packs-table{box-shadow:0 1px 3px rgba(0,0,0,0.2);margin:30px;width:500px}.sl-ei-packs-table caption{margin:5px}.sl-ei-packs-table thead{background:#ea6153;color:#fff;font-weight:900;height:30px}.sl-ei-packs-table thead th{background:#27ae60}.sl-ei-packs-table tr{background:#dcdcdc;height:25px}.sl-ei-packs-table tr:nth-of-type(odd){background:#cdc7ff}.sl-ei-packs-table td:nth-of-type(odd){text-align:center}.sl-ei-packs-table td:nth-of-type(even){padding:0 5px}.sl-ei-menu-field-container{border:1px solid #8c8f94;border-radius:3px;margin-top:7px;padding:13px 7px 7px;position:relative}.sl-ei-menu-field-container-title{background:white;color:#646970;padding:0 4px;position:absolute;top:-10px}.sl-ei-menu-field-container .button{vertical-align:middle}#sl-ei- menu-modal{background:rgba(0,0,0,0.6);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:999999}.sl-ei-menu-window{background-color:#fff;box-shadow:0 3px 6px #000;height:auto;left:calc(50% - 200px);position:absolute;top:calc(50% - 350px);width:370px}.sl-ei-menu-header{background:#a0e6ff;border-bottom:1px solid #dadadb;font-size:18px;font-weight:600;height:36px;line-height:2;padding:0 10px}#sl-ei-menu-body{height:530px;padding:10px 20px}.sl-ei-menu-footer{border-top:1px solid #dadadb;font-size:18px;height:50px;text-align:end}.sl-ei-menu-footer .button{background:#a2ff6f;color:#000;margin:10px;padding:0 15px}.sl-ei-menu-footer .button:hover{background:#e6fc2c}.sl-ei-menu-icon-container{display:inline-block;margin:0 10px;vertical-align:middle}1 .sl-ei-packs-table{box-shadow:0 1px 3px rgba(0,0,0,0.2);margin:30px;width:500px}.sl-ei-packs-table caption{margin:5px}.sl-ei-packs-table thead{background:#ea6153;color:#fff;font-weight:900;height:30px}.sl-ei-packs-table thead th{background:#27ae60}.sl-ei-packs-table tr{background:#dcdcdc;height:25px}.sl-ei-packs-table tr:nth-of-type(odd){background:#cdc7ff}.sl-ei-packs-table td:nth-of-type(odd){text-align:center}.sl-ei-packs-table td:nth-of-type(even){padding:0 5px}.sl-ei-menu-field-container{border:1px solid #8c8f94;border-radius:3px;margin-top:7px;padding:13px 7px 7px;position:relative}.sl-ei-menu-field-container-title{background:white;color:#646970;padding:0 4px;position:absolute;top:-10px}.sl-ei-menu-field-container .button{vertical-align:middle}#sl-ei-social-modal,#sl-ei-menu-modal{background:rgba(0,0,0,0.6);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:999999}.sl-ei-social-window,.sl-ei-menu-window{background-color:#fff;box-shadow:0 3px 6px #000;height:auto;left:calc(50% - 200px);position:absolute;top:calc(50% - 350px);width:370px}.sl-ei-social-window{width:500px}.sl-ei-social-header,.sl-ei-menu-header{background:#a0e6ff;border-bottom:1px solid #dadadb;font-size:18px;font-weight:600;height:36px;line-height:2;padding:0 10px}#sl-ei-social-body,#sl-ei-menu-body{height:530px;padding:10px 20px}#sl-ei-social-body{justify-items:center}.sl-ei-social-footer,.sl-ei-menu-footer{border-top:1px solid #dadadb;font-size:18px;height:50px;text-align:end}.sl-ei-social-footer .button,.sl-ei-menu-footer .button{background:#a2ff6f;color:#000;margin:10px;padding:0 15px}.sl-ei-social-footer .button:hover,.sl-ei-menu-footer .button:hover{background:#e6fc2c}.sl-ei-menu-icon-container{display:inline-block;margin:0 10px;vertical-align:middle}.sl-ei-exclude-social-select{background-color:#fff;border:1px solid #8c8f94;display:block;height:110px;margin:4px 30px 4px 30px;overflow:scroll;padding:4px;resize:both;width:346px}.sl-ei-exclude-social-select label{background:transparent;color:#313131;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 30px)}.sl-ei-exclude-social-select .disabled{color:#8c8f94}.sl-ei-exclude-social-select .sl-ei-list-selected{background:#5858b9;color:#fff}.sl-ei-list-selected.disabled{background:#c3c4c7} -
safelayout-elegant-icons/trunk/assets/js/menu.js
r3326930 r3370210 1 jQuery(document).ready(function(a){a(document).on("keydown",function(b){27===b.keyCode&&"none"!=a("#sl-ei-menu-modal").css("display")&&a("#sl-ei-menu-modal").css("display","none")}),a(document).on("click",".sl-ei-menu-insert",function(){let b={};const c=a(this).parent().find(".sl-ei-menu-code").val();att=c.match(/dataicon[^=]*=[^\"]*"([^\"]*)/i),att&&(b=JSON.parse(atob(att[1]))),SLEImceIcons.menu(document.getElementById("sl-ei-menu-body"),b,{hideLink:!0,menuIcon:!0}),a("#sl-ei-menu-body").attr("menu-helper-id",a(this).parent().attr("id")),a("#sl-ei-menu-modal").css("display","block")}),a(document).on("click",".sl-ei-menu-remove",function(b){b.preventDefault();let c=confirm("Are you sure you want to delete this Icon?");c&&(a(this).parent().find(".sl-ei-menu-icon-container").html(""),a(this).parent().find(".sl-ei-menu-insert").html("Insert Icon"),a(this).parent().find(".sl-ei-menu-code").val(""))}),a("#sl-ei-menu-submit").click(function(b){b.preventDefault();const c=SLEImceIcons.att;icon=`<span dataicon="${btoa(JSON.stringify(c))}" iconpos="${c.iconPos}" icongap="${c.iconGap}" class="safelayout-ei-menu-${c.blockId}"><style >.safelayout-ei-menu-${c.blockId} { ${SLEImceIcons.seMenuStyle(c)} ;vertical-align: middle;}</style></span>`,a("#sl-ei-menu-modal").css("display","none");let d=a("#"+a("#sl-ei-menu-body").attr("menu-helper-id"));d.find(".sl-ei-menu-icon-container").html(icon),d.find(".sl-ei-menu-insert").html("Edit Icon"),d.find(".sl-ei-menu-code").val(icon)}),a("#sl-ei-menu-cancel").click(function(b){b.preventDefault(),a("#sl-ei-menu-modal").css("display","none")})});1 jQuery(document).ready(function(a){a(document).on("keydown",function(b){27===b.keyCode&&"none"!=a("#sl-ei-menu-modal").css("display")&&a("#sl-ei-menu-modal").css("display","none")}),a(document).on("click",".sl-ei-menu-insert",function(){let b={};const c=a(this).parent().find(".sl-ei-menu-code").val();att=c.match(/dataicon[^=]*=[^\"]*"([^\"]*)/i),att&&(b=JSON.parse(atob(att[1]))),SLEImceIcons.menu(document.getElementById("sl-ei-menu-body"),b,{hideLink:!0,menuIcon:!0}),a("#sl-ei-menu-body").attr("menu-helper-id",a(this).parent().attr("id")),a("#sl-ei-menu-modal").css("display","block")}),a(document).on("click",".sl-ei-menu-remove",function(b){b.preventDefault();let c=confirm("Are you sure you want to delete this Icon?");c&&(a(this).parent().find(".sl-ei-menu-icon-container").html(""),a(this).parent().find(".sl-ei-menu-insert").html("Insert Icon"),a(this).parent().find(".sl-ei-menu-code").val(""))}),a("#sl-ei-menu-submit").click(function(b){b.preventDefault();const c=SLEImceIcons.att;icon=`<span dataicon="${btoa(JSON.stringify(c))}" iconpos="${c.iconPos}" icongap="${c.iconGap}" class="safelayout-ei-menu-${c.blockId}"><style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-menu-css-${c.blockId}">.safelayout-ei-menu-${c.blockId} { ${SLEImceIcons.seMenuStyle(c)} ;vertical-align: middle;}</style></span>`,a("#sl-ei-menu-modal").css("display","none");let d=a("#"+a("#sl-ei-menu-body").attr("menu-helper-id"));d.find(".sl-ei-menu-icon-container").html(icon),d.find(".sl-ei-menu-insert").html("Edit Icon"),d.find(".sl-ei-menu-code").val(icon)}),a("#sl-ei-menu-cancel").click(function(b){b.preventDefault(),a("#sl-ei-menu-modal").css("display","none")})}); -
safelayout-elegant-icons/trunk/build/box-button/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/safelayout-box-button", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Box Button (Safelayout)", 7 7 "parent": [ -
safelayout-elegant-icons/trunk/build/box-button/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 6c6aeadd0e3c65f0209a');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'e6310d6cace7c43732ed'); -
safelayout-elegant-icons/trunk/build/box-button/index.js
r3339507 r3370210 1 (()=>{var e={452:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=s(e,n(o)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=s(t,o));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()},470:(e,t,o)=>{"use strict";var a=o(795);t.H=a.createRoot,a.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,a=window.wp.blockEditor,l=window.wp.element;var n=o(452),s=o.n(n),i=o(470),r=o(795);const c=window.wp.components,d=window.React,f=window.wp.primitives,b=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),p=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),g=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),u=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),h=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),x=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,d.createElement)(f.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,d.createElement)(f.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),m=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),y=window.ReactJSXRuntime,k=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],_=e=>e&&-1!=e.indexOf("gradient"),j=(e,t)=>Math.round(e*10**t)/10**t;function w(e){const{grad:t,id:o}=e;function a(e,t,o){var a=t.slice(o).search(/,|\)|\d/);","==t[o+a]?e.push(0):")"==t[o+a]&&e.push(1)}let l=[],n=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],i=t.indexOf("(")+1,r=0,c=i,d=t.length;for(;c<d;){if(i=1,"#"===t[c])l.push(t.substr(c,i=t.slice(c).search(/,|\)|\s/))),a(n,t,c+i);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,i=t.indexOf(")",c)-c+1)),a(n,t,c+i);else if(-1!=s.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),o=t.indexOf("deg",c);-1!=o&&(-1===e||o<e)?r=180-Number(t.substr(c,i=o-c)):n.push(t.substr(c,i=e-c)/100)}c+=i}r=-r*(Math.PI/180);const f=j(.5+.5*Math.sin(r),4),b=j(.5-.5*Math.cos(r),4),p=j(.5+.5*Math.sin(r+Math.PI),4),g=j(.5-.5*Math.cos(r+Math.PI),4);return"radial"===t.substr(0,6)?(0,y.jsx)(C,{id:o,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,y.jsx)(S,{id:o,colors:l,offsets:n,x1:f,y1:b,x2:p,y2:g})}function C(e){const{colors:t,offsets:o,id:a,cx:l,cy:n,r:s,fx:i,fy:r}=e;return(0,y.jsx)("radialGradient",{id:a,cx:l,cy:n,r:s,fx:i,fy:r,children:(0,y.jsx)(v,{colors:t,offsets:o})})}function S(e){const{colors:t,offsets:o,id:a,x1:l,y1:n,x2:s,y2:i}=e;return(0,y.jsx)("linearGradient",{id:a,x1:l,y1:n,x2:s,y2:i,children:(0,y.jsx)(v,{colors:t,offsets:o})})}function v(e){const{colors:t,offsets:o}=e;return(0,y.jsx)(y.Fragment,{children:t.map(((e,t)=>(0,y.jsx)("stop",{"stop-color":e,offset:o[t]},t)))})}function B(e){const{pos:t,objArray:o,id:a}=e,l=`fillGrad${t+a}`,n=`strokeGrad${t+a}`;let s;return(0,y.jsx)(y.Fragment,{children:o.map(((e,t)=>(0,y.jsxs)("defs",{children:[_(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,y.jsx)(C,{id:l+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,y.jsx)(S,{id:l+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),_(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,y.jsx)(C,{id:n+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,y.jsx)(S,{id:n+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},t)))})}function A(e){const{pos:t,objArray:o,id:a,rx:l}=e,n=`fillGrad${t+a}`,s=`strokeGrad${t+a}`;return(0,y.jsx)(y.Fragment,{children:o.map(((e,t)=>"rect"===e.shape?(0,d.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:_(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:_(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,d.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:_(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:_(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function N(e,t,o){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:o?.top||null,paddingRight:o?.right||null,paddingBottom:o?.bottom||null,paddingLeft:o?.left||null}}function I({attributes:e,paths:t,effectObj:o,isInEditor:a=!0,others:l}){const{blockId:n,rotate:s,flipHorizontal:i,flipVertical:r,hasBg:d,bgShape:f,bgShapeVal:b,rotateBg:p,size:g,color:u,strokeColor:h,strokeWidth:x,hasShadow:m,shadow:C,svgFilter:S,bgColor:v,bgStrokeColor:N,bgStrokeWidth:I,hasBgShadow:P,bgShadow:T,hasBaseShadow:z,baseShadowWidth:R,baseShadowHeight:L,baseShadowTop:M,padding:E,bgRadius:H,animation:O,slbbAnim:V,label:W,title:G,linkUrl:$,linkRel:F,linkTarget:D}=e,U=j(.88*H,2),Z=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=u.map(((e,t)=>_(e)?`url(#${X+t})`:"")),ee=h.map(((e,t)=>_(e)?`url(#${Y+t})`:"")),te=_(v)?`url(#${J})`:"",oe=_(N)?`url(#${q})`:"",ae=d?`calc(110% - ${Math.round(2.4*Number(E))}px)`:"100%",le=(m?C:"")+("none"!=S?` url(#${S})`:""),ne=P?T:null,se=0!=p?`rotate(${p}deg)`:null,ie=l?.oldAnim?O:V,re=ie&&"No Animation"!=ie?`sl-ei-icon-block-animation-${ie}`:null,ce=(0!=s?`rotate(${s}deg)`:"")+(i||r?` scale(${i?-1:1}, ${r?-1:1})`:""),de=""!=ce?(d||z?"translate(-50%, -50%) ":"")+ce:null,fe=(0,y.jsxs)(y.Fragment,{children:[(d||z)&&(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[d&&(0,y.jsxs)("defs",{children:[""!=te&&(0,y.jsx)(w,{grad:v,id:J}),""!=oe&&(0,y.jsx)(w,{grad:N,id:q}),o&&o.before.length>0&&(0,y.jsx)(B,{pos:"before",objArray:o.before,id:n}),o&&o.after.length>0&&(0,y.jsx)(B,{pos:"after",objArray:o.after,id:n})]}),z&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(B,{pos:"Base",objArray:k,id:n}),(0,y.jsx)("ellipse",{cx:"48",cy:M,rx:R/2,ry:L/2,fill:`url(#${K+0})`})]}),d&&(0,y.jsxs)("g",{style:{transform:se},children:[o&&o.before.length>0&&(0,y.jsx)(A,{pos:"before",objArray:o.before,id:n,rx:U}),"rect"===f?(0,y.jsx)(c.Rect,{x:"4",y:"4",width:"88",height:"88",rx:U,fill:te||v,stroke:oe||N,strokeWidth:I,style:{filter:ne}}):(0,y.jsx)("path",{d:b,fill:te||v,stroke:oe||N,strokeWidth:I,style:{filter:ne}}),o&&o.after.length>0&&(0,y.jsx)(A,{pos:"after",objArray:o.after,id:n,rx:U})]})]}),(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:ae,width:ae},children:[(0,y.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:u[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:h[t],id:Y+t},t)))]}),(0,y.jsx)("symbol",{viewBox:"0 0 24 24",id:Z,children:t.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||u[e.color||0],stroke:ee[e.strokeColor||0]||h[e.strokeColor||0],strokeWidth:x[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,y.jsx)("use",{href:`#${Z}`,style:{filter:le||null}}):(0,y.jsx)("use",{xlinkHref:`#${Z}`,style:{filter:le||null}})]})]});return $&&!a?(0,y.jsx)("a",{style:{height:g,width:g},href:$,target:D||null,rel:F||null,"aria-label":W||null,title:G||null,className:re,children:fe}):(0,y.jsx)("div",{style:{height:g,width:g},"aria-label":W||null,title:G||null,className:re,children:fe})}function P({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),o=e?.attributes?.color||["#5c5c5c"],a=e.paths,l="47px";return(0,y.jsx)("div",{style:{height:l,width:l},children:(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,y.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:a.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:o[e.color||0],d:e.d,style:e.style},t)))}),(0,y.jsx)("use",{href:`#${t}`})]})})}function T({attributes:e,others:t}){const{blockId:o,iconColor:a,iconStrokeColor:l,iconStrokeWidth:n,iconPaths:s}=e,i=`path${o}`,r=`fillGrad${o}`,d=`strokeGrad${o}`,f=a.map(((e,t)=>_(e)?`url(#${r+t})`:"")),b=l.map(((e,t)=>_(e)?`url(#${d+t})`:""));return(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsxs)("defs",{children:[f.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:a[t],id:r+t},t))),b.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:l[t],id:d+t},t)))]}),(0,y.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:i,children:s.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:f[e.color||0]||a[e.color||0],stroke:b[e.strokeColor||0]||l[e.strokeColor||0],strokeWidth:n[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==t?.d1?(0,y.jsx)("use",{href:`#${i}`}):(0,y.jsx)("use",{xlinkHref:`#${i}`})]})}const z=({colorValue:e,label:t})=>(0,y.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,y.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,y.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),R=e=>({onToggle:t,isOpen:o})=>{const{colorValue:a,label:l,disabled:n}=e,i={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":o}),"aria-expanded":o};return(0,y.jsx)(c.Button,{...i,disabled:n,children:(0,y.jsx)(z,{colorValue:a,label:l})})};function L({settings:e,label:t,disabled:o,position:a }){var l;const n={colorValue:null!==(l=e.gradientValue)&&void 0!==l?l:e.colorValue,label:t,disabled:o};return(0,y.jsx)(c.Dropdown,{popoverProps:{placement:a?.pos||"left-start",offset:a?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:R(n),renderContent:()=>(0,y.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,y.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,y.jsx)(V,{...e})})})})}const M={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},E={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},H=[M,E],O=(0,l.memo)((function({colors:e,onClick:t,img:o,tab:a}){return(0,y.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,o)=>(0,y.jsx)("span",{onClick:t,style:{background:e}},o)))})}),((e,t)=>e.tab===t.tab));function V({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:o,label:a,onlySolid:l,onColorChange:n,onColorArrayClick:i,onGradientChange:r,onGradientArrayClick:f,colorValue:b,gradientValue:p,clearable:g,showTitle:u=!1,enableAlpha:h,headingLevel:x}){(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[M.value]:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.ColorPalette,{value:b,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,colors:[],headingLevel:x}),(0,y.jsx)(O,{colors:G,onClick:i,tab:"COLOR"})]}),[E.value]:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:_(p)?p:`linear-gradient(${p} 0%, ${p} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,gradients:[],headingLevel:x}),(0,y.jsx)(O,{colors:$,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,y.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:s()("block-editor-color-gradient-control",o),children:(0,y.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,y.jsxs)(c.__experimentalVStack,{spacing:1,children:[u&&(0,y.jsx)("legend",{children:(0,y.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,y.jsx)(c.BaseControl.VisualLabel,{children:a})})}),(0,y.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[M]:H,initialTabName:_(p)?E.value:M.value,children:e=>{return t=e.value,(0,y.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function W(e){const{attribute:t,label:o,onlySolid:a,change:l,click:n,disabled:s,position:i}=e;return(0,y.jsx)(L,{settings:{onlySolid:a,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:o,disabled:s,position:i})}const G=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],$=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],F=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],D=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],U={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},Z=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:F,attributes:{...U,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:F,attributes:{...U,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:F,attributes:{...U,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:F,attributes:{...U,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:F,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:F,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:F,attributes:{...U,bgShape:"path",bgShapeVal:D[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:F,attributes:{...U,bgShape:"path",bgShapeVal:D[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:D[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],X=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],Y={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},J=(f.SVG,f.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),q=(t,o)=>{const a=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return o<=1?"":" "+a[t]},K=e=>{let t=X.find((({name:t})=>t===e)),o="";return t&&(o=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),o},Q=e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e)))),t||null},ee=e=>{let t="";return SLEIiconArray.some((o=>t=o[0].libCode===e.name.substring(0,3)&&" ("+o[0].libName+")")),t||" (unknown)"},te=e=>{let t=null;return SLEIiconArray.some((o=>t=o[0].libCode===e&&o[0]?.class)),t||""},oe=(e,t,o,a,l,n)=>{let s={...J,color:n||["#5c5c5c"],...t?.attributes,size:o,blockId:"sl-ei-icon-block-"+a+t.name.replaceAll(" ","_")},i=l||s?.effect,r=i?(c=i,Z.find((({name:e})=>e===c))||null):null;var c;r?.attributes&&(s={...s,...r?.attributes}),e.attributes=s,e.effectObj=r},ae=((0,l.memo)((function({currentEffect:e,onIconClick:t}){se("sl-ei-list-selected-effect");const o={};return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Z.map(((a,l)=>{const n=a.attributes.rotateBg,s=a.name;return oe(o,Y,n?76:92,"effectList"+l,s,a.color),(0,y.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":s,children:(0,y.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:Y.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,l.memo)((function({currentAnim:e,onIconClick:t}){se("sl-ei-list-selected-anim");const o={...Y,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},a={};return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:X.map(((l,n)=>(o.attributes.slbbAnim=l.name,oe(a,o,54,"animList"+n,null),(0,y.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,y.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:o.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),e=>(0,y.jsx)(c.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:le(e),renderContent:()=>(0,y.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,y.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,y.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,y.jsx)(ne,{...e})})})})})),le=e=>({onToggle:t,isOpen:o})=>{const{name:a,paths:l,color:n,label:i,disabled:r}=e,d={},f={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o};let b=Q(a);return null===b&&(b={name:a,paths:l,attributes:{color:n}}),oe(d,b,64,"selected",null,["#3535ff"]),(0,y.jsx)(c.Button,{...f,disabled:r,style:{border:"1px solid #add8e6"},children:(0,y.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,y.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,y.jsx)(I,{attributes:d.attributes,effectObj:d.effectObj,paths:b.paths})}),(0,y.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:i,children:i})]})})};function ne(t){const{name:o,onIconClick:a}=t;let n,s=[];(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[i,r]=(0,l.useState)(""),[f,b]=(0,l.useState)((e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e))&&o)),t?t[0].libName:SLEIiconArray[0][0].libName})(o));if(i)s.push(null),SLEIiconArray.map((e=>s=s.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(i.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,o)=>e=t[0].libName===f&&o+1)),s=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.SearchControl,{value:i,onChange:r,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,y.jsx)(c.SelectControl,{value:f,onChange:b,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,y.jsx)("option",{value:e[0].libName,children:t})}))}),(0,y.jsx)(ie,{icons:s,name:o,onIconClick:a,selectedLibrary:f,searchVal:i,packsImageShow:n})]})}const se=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ie=(0,l.memo)((function({icons:e,name:t,onIconClick:o,selectedLibrary:a,searchVal:l,packsImageShow:n}){return se("sl-ei-list-selected-icon"),(0,y.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,a)=>{if(a){let n=e.name.substring(0,3);return(0,y.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:o,title:e.name.substring(4)+(l?ee(e):""),"data-icon-name":e.name,children:n<="400"?(0,y.jsx)("span",{className:te(n),children:String.fromCharCode(59392+e.c)}):(0,y.jsx)(P,{icon:e})},a)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),re={hasBgShadow:!1,hasTextShadow:!1,textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",border:{}},ce={top:"5px",right:"5px",bottom:"5px",left:"5px"},de={top:"50px",right:"50px",bottom:"50px",left:"50px"};function fe(e){return{hasBgShadow:!0,bgShadow:e}}function be(e){return{hasTextShadow:!0,textShadow:e}}const pe=[{name:"No Effect",attributes:{...re}},{name:"effect001",attributes:{...re,hasBg:!1,border:{color:"#0000003B",style:void 0,width:"1px"},borderRadius:ce,hasBgShadow:!1,hasTextShadow:!1,slbbAnim:"border-color",animColor:"#3e3eff"}},{name:"effect002",attributes:{...re,hasBg:!0,border:{},borderRadius:ce,...fe("0px 1px 2px #000"),...be("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect003",attributes:{...re,hasBg:!0,borderRadius:de,...fe("0px 1px 7px #000"),hasTextShadow:!1,slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...re,hasBg:!0,border:{},borderRadius:ce,...fe("0px 1px 2px #000"),...be("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect005",attributes:{...re,hasBg:!0,border:{},borderRadius:de,...fe("0px 2px 3px #202020"),...be("1px 1px 1px #fff"),slbbAnim:"stretch",animColor:"#fff"}}],ge=[{name:"No Animation",parent:""},{name:"light",button:!0},{name:"light1",button:!0},{name:"swap-color",button:!0},{name:"background-color",button:!0,control:!0,label:(0,e.__)("Animation Background color","safelayout-elegant-icons"),solid:!1},{name:"text-color",button:!0,control:!0,label:(0,e.__)("Animation Text color","safelayout-elegant-icons"),solid:!0},{name:"border-color",button:!0,control:!0,label:(0,e.__)("Animation Border color","safelayout-elegant-icons"),solid:!0},{name:"text-border-color",button:!0,control:!0,label:(0,e.__)("Animation Text and Border color","safelayout-elegant-icons"),solid:!0},{name:"stretch",button:!0,control:!0,label:(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch1",button:!0,control:!0,label:(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"slide-top",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-bottom",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-left",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-right",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"letter-space",button:!0},{name:"icon-yoyo-X",button:!0,icon:!0,iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},{name:"icon-yoyo-Y",button:!0,icon:!0,iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"icon-rotate-X",button:!0,icon:!0,iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},{name:"icon-rotate-Y",button:!0,icon:!0,iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"icon-rotate-Z",button:!0,icon:!0,iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"shadow",button:!0},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"sl-ei-icon-block-animation-push-parent"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"sl-ei-icon-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-ei-icon-block-animation-swing-3D-parent"},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"jelly",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""}],ue={key:0,blockId:"",content:"Read More",align:"",textColor:"#00f",hasBg:!0,bgColor:"#3f3",bold:!1,italic:!1,uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:5,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",effect:"No Effect",slbbAnim:"No Animation",animColor:"#fff",classes:""},he={tag:"h2",textAlign:"",bold:!1,italic:!1,uppercase:!1,hasText:!1,textColor:"#00f",hasBg:!1,bgColor:"#b6b6b6",fontSize:"",lineHeight:"1.4",letterSpacing:"0px",blockMargin:{},blockPadding:{},border:{},borderRadius:{},classes:""};SLEImceIcons.boxText=(e,t,o)=>{const a=(0,i.H)(e),{tag:l,textAlign:n,bold:s,italic:c,uppercase:d,fontSize:f,lineHeight:b,letterSpacing:p,hasText:g,textColor:u,hasBg:h,bgColor:x,border:m,borderRadius:k,blockPadding:_,blockMargin:j,classes:w}=t,C=o?.head?l:"p";let S={...N(n,j,_),fontWeight:s?"bold":null,fontStyle:c?"italic":null,textTransform:d?"uppercase":null,color:g?u:null,background:h?x:null,fontSize:!o?.head&&f||null,lineHeight:o?.head||"1.4"==b?null:b,letterSpacing:o?.head||"0px"==p?null:p};S=je(S,m,k),(0,r.flushSync)((()=>{a.render((0,y.jsx)(C,{className:w||null,style:S,children:o?.head?(0,y.jsx)("div",{children:"safe1359head1359safe"}):(0,y.jsx)("div",{children:"safe1359text1359safe"})}))}))},SLEImceIcons.menuText=(e,t,o)=>{const a=(0,i.H)(e);t={...he,...t},a.render((0,y.jsx)(xe,{att:t,others:o}))};const xe=e=>{let{att:t,others:o}=e;SLEImceIcons.attText=t;const[a,n]=(0,l.useState)(t);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ye,{attributes:t,setAttributes:e=>{for(var a in e)t[a]=e[a];n({...t}),SLEImceIcons.attText=t,o?.callBack&&o.callBack()},others:o})})};SLEImceIcons.boxButton=(e,t)=>{const o=(0,i.H)(e),{align:a,slbbAnim:l,classes:n}=t,c=Se(l);(0,r.flushSync)((()=>{o.render((0,y.jsx)("div",{className:s()("safelayout-ei-box-button-block",c?.parent,n),style:{textAlign:a},children:(0,y.jsx)(Ae,{attributes:t,isInEditor:!1})}))}))},SLEImceIcons.menuButton=(e,t,o)=>{const a=(0,i.H)(e);var l;t={...ue,...t},t?.animation&&(t.slbbAnim=t.animation,t.animation=void 0),t.blockId=(l=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),a.render(o?.hasBtn?(0,y.jsx)(me,{att:t,others:o}):(0,y.jsxs)("div",{style:{textAlign:"center",lineHeight:1.4},children:["You must first enable the ",(0,y.jsx)("strong",{children:'"Read More button"'}),", at the top in the ",(0,y.jsx)("strong",{children:'"Icon Box (Safelayout)"'})," section."]}))};const me=e=>{let{att:t,others:o}=e;SLEImceIcons.attButton=t;const[a,n]=(0,l.useState)(t);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ke,{attributes:t,setAttributes:e=>{for(var a in e)t[a]=e[a];t.key++,n({...t}),SLEImceIcons.attButton=t,o?.callBack&&o.callBack()},clientId:t.blockId,others:o})})};function ye(t){const{attributes:o,setAttributes:l,others:n}=t,{tag:i,textAlign:r,bold:d,italic:f,uppercase:m,fontSize:k,lineHeight:_,letterSpacing:j,hasText:w,textColor:C,hasBg:S,bgColor:v,border:B,borderRadius:A,blockPadding:N,blockMargin:I,classes:P}=o,T="safelayout-ei-icon-dialog-mce-panel";return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,y.jsx)("div",{style:{textAlign:"center"},children:(0,y.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[n?.head&&(0,y.jsx)(a.HeadingLevelDropdown,{value:Number(i.substring(1,2)),onChange:e=>l({tag:"h"+e})}),(0,y.jsx)(a.AlignmentToolbar,{controls:["left","center","right"],value:r,onChange:e=>l({textAlign:e}),label:(0,e.__)("Align text","safelayout-elegant-icons")}),(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!d}),isPressed:d}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!m}),isPressed:m})]})})}),(0,y.jsxs)("div",{children:[!n?.head&&(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,y.jsx)(c.FontSizePicker,{withSlider:!0,fontSizes:we,onChange:e=>l({fontSize:e}),value:k}),(0,y.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,y.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:_}),(0,y.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:j})]})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,y.jsx)(c.ToggleControl,{checked:S,label:(0,e.__)("Background color","safelayout-elegant-icons"),onChange:e=>l({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:v,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),disabled:!S,position:{offset:n?.popoverOffset}}),(0,y.jsx)(c.ToggleControl,{checked:w,label:(0,e.__)("Text color","safelayout-elegant-icons"),onChange:e=>l({hasText:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:C,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,disabled:!w,position:{offset:n?.popoverOffset}})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,y.jsx)(c.__experimentalBorderBoxControl,{onChange:e=>l({border:e}),value:B,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:n?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,e.__)("Reset","safelayout-elegant-icons")}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Border radius","safelayout-elegant-icons"),values:A,onChange:e=>l({borderRadius:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:I,onChange:e=>l({blockMargin:e})}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:N,onChange:e=>l({blockPadding:e})})]})}),(0,y.jsx)(c.Panel,{className:s()("safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link"),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:x,className:"sl-ei-icon-block-link-panel",children:(0,y.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:P||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})})]})]})}function ke(t){const{attributes:o,setAttributes:l,clientId:n,others:i}=t,{content:r,align:d,bold:f,italic:k,uppercase:_,fontSize:j,lineHeight:w,letterSpacing:C,width:S,textColor:v,hasBg:B,bgColor:A,border:N,borderRadius:I,hasBgShadow:P,bgShadow:T,hasTextShadow:z,textShadow:R,blockPadding:L,blockMargin:M,label:E,title:H,linkUrl:O,linkRel:V,linkTarget:G,effect:$,slbbAnim:F,animColor:D,hasIcon:U,iconPos:Z,iconGap:X,iconName:Y,iconPaths:J,iconColor:K,iconStrokeColor:ee,iconStrokeWidth:te,classes:oe}=o,le=i?.hasC?"div":a.InspectorControls,ne=i?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,ie=i?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null,re="_blank"===G,ce="noreferrer noopener";function de(e,t){let o=e.split("px ")[t];return t<3?parseFloat(o):o}function fe(e,t,o){let a=e.split("px ");return a[t]=o,a.join("px ")}return(0,y.jsxs)(y.Fragment,{children:[!i?.hasC&&(0,y.jsxs)(a.BlockControls,{children:[(0,y.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:d,onChange:e=>l({align:e})}),(0,y.jsxs)(c.ToolbarGroup,{children:[(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!k}),isPressed:k}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!_}),isPressed:_})]})]}),i?.hasC&&(0,y.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,e.__)("Button text","safelayout-elegant-icons")}),(0,y.jsx)("textarea",{value:r.replaceAll("<br>","\n"),onChange:e=>l({content:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,e.__)("Read More","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center"}}),(0,y.jsx)("div",{style:{textAlign:"center"},children:(0,y.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[(0,y.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:d,onChange:e=>l({align:e})}),(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!k}),isPressed:k}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!_}),isPressed:_})]})})]}),(0,y.jsxs)(le,{children:[(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Button effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,y.jsx)(ve,{currentEffect:$,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),a=(e=>pe.find((({name:t})=>t===e))||null)(o);se("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),l({effect:o,...a?.attributes})}})})}),(0,y.jsx)(c.Panel,{className:s()(ie),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,y.jsx)(c.TextControl,{label:(0,e.__)("Tooltip","safelayout-elegant-icons"),value:H||"",onChange:e=>l({title:e})}),(0,y.jsx)(c.TextControl,{label:(0,e.__)("Label","safelayout-elegant-icons"),value:E||"",onChange:e=>l({label:e}),help:(0,e.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Link url","safelayout-elegant-icons")}),(0,y.jsx)(a.__experimentalLinkControl,{value:{url:O,opensInNewTab:re},onChange:({url:e="",opensInNewTab:t})=>{l({linkUrl:e}),re!==t&&function(e){const t=e?"_blank":void 0;let o=V;t&&!V?o=ce:t||V!==ce||(o=void 0),l({linkTarget:t,linkRel:o})}(t)},onRemove:()=>{l({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,y.jsx)(c.TextControl,{label:(0,e.__)("Link rel","safelayout-elegant-icons"),value:V||"",onChange:e=>l({linkRel:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,y.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:we,onChange:e=>l({fontSize:e}),value:j}),(0,y.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,y.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:w}),(0,y.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:C})]}),(0,y.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",marginBottom:"5px"},children:(0,e.__)("Width","safelayout-elegant-icons")}),(0,y.jsx)(c.ButtonGroup,{"aria-label":(0,e.__)("Button width"),children:[25,50,75,100].map((e=>(0,y.jsxs)(c.Button,{size:"small",variant:e===S?"primary":void 0,onClick:()=>l({width:e}),children:[e,"%"]},e)))}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({width:0}),size:"small",style:{margin:"0 10px"},children:(0,e.__)("Reset","safelayout-elegant-icons")})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,y.jsx)(c.ToggleControl,{checked:B,help:(0,e.__)("Add a background color to the button.","safelayout-elegant-icons"),label:(0,e.__)("Background color","safelayout-elegant-icons"),onChange:e=>l({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:A,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),disabled:!B,position:{offset:i?.popoverOffset}}),(0,y.jsx)(W,{attribute:v,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,position:{offset:i?.popoverOffset}})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Icon","safelayout-elegant-icons"),initialOpen:!1,icon:"art",children:[(0,y.jsx)(c.ToggleControl,{checked:U,help:(0,e.__)("Add an icon to the button.","safelayout-elegant-icons"),label:(0,e.__)("Add icon","safelayout-elegant-icons"),onChange:e=>l({hasIcon:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(ae,{name:Y,paths:J,color:K,customIconRefresh:1,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+Y.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),a=Q(o);se("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let n=a?.attributes;n?.color||(n={...n,color:[K[0]]}),n?.strokeColor||(n={...n,strokeColor:[ee[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[te[0]]}),l({iconName:o,iconPaths:a.paths,iconColor:n.color,iconStrokeColor:n.strokeColor,iconStrokeWidth:n.strokeWidth})},disabled:!U,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon position","safelayout-elegant-icons")}),(0,y.jsxs)(c.__experimentalToggleGroupControl,{value:Z,isBlock:!0,onChange:e=>l({iconPos:e}),disabled:!U,size:"small",children:[(0,y.jsx)(c.__experimentalToggleGroupControlOption,{value:"left",label:(0,e.__)("Left","safelayout-elegant-icons"),disabled:!U}),(0,y.jsx)(c.__experimentalToggleGroupControlOption,{value:"right",label:(0,e.__)("Right","safelayout-elegant-icons"),disabled:!U})]}),K.map(((t,o,a)=>(0,y.jsx)(W,{attribute:t,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(o,a.length),click:e=>{let t=[...K];t[o]=e.target.style.background,l({iconColor:t})},change:e=>{let t=[...K];e&&(t[o]=e),l({iconColor:t})},disabled:!U,position:{offset:i?.popoverOffset}},o))),ee.map(((t,o,a)=>(0,y.jsx)(W,{attribute:t,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(o,a.length),click:e=>{let t=[...ee];t[o]=e.target.style.background,l({iconStrokeColor:t})},change:e=>{let t=[...ee];e&&(t[o]=e),l({iconStrokeColor:t})},disabled:!U,position:{offset:i?.popoverOffset}},o))),te.map(((t,o,a)=>(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(o,a.length),min:0,max:200,value:t,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let t=[...te];t[o]=e,l({iconStrokeWidth:t})},disabled:!U},o))),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon gap","safelayout-elegant-icons")}),(0,y.jsx)(c.RangeControl,{min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:X,disabled:!U,onChange:e=>l({iconGap:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,y.jsx)(c.__experimentalBorderBoxControl,{onChange:e=>l({border:e}),value:N,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:i?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,e.__)("Reset","safelayout-elegant-icons")}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Border radius","safelayout-elegant-icons"),values:I,onChange:e=>l({borderRadius:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Box shadow","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,y.jsx)(c.ToggleControl,{checked:P,label:(0,e.__)("Box shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasBgShadow:e})}),(0,y.jsx)(W,{attribute:de(T,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({bgShadow:fe(T,3,e.target.style.background)}),change:e=>l({bgShadow:fe(T,3,e)}),disabled:!P,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,2),disabled:!P,onChange:e=>l({bgShadow:fe(T,2,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,0),disabled:!P,onChange:e=>l({bgShadow:fe(T,0,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,1),disabled:!P,onChange:e=>l({bgShadow:fe(T,1,e)})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Text shadow","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,y.jsx)(c.ToggleControl,{checked:z,label:(0,e.__)("Text shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasTextShadow:e})}),(0,y.jsx)(W,{attribute:de(R,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({textShadow:fe(R,3,e.target.style.background)}),change:e=>l({textShadow:fe(R,3,e)}),disabled:!z,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,2),disabled:!z,onChange:e=>l({textShadow:fe(R,2,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,0),disabled:!z,onChange:e=>l({textShadow:fe(R,0,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,1),disabled:!z,onChange:e=>l({textShadow:fe(R,1,e)})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:["No Animation"!=F&&Se(F)?.control&&(0,y.jsx)(W,{attribute:D,label:(0,e.__)(Se(F)?.label,"safelayout-elegant-icons"),onlySolid:Se(F)?.solid,click:e=>l({animColor:e.target.style.background}),change:e=>l({animColor:e}),position:{offset:i?.popoverOffset}}),(0,y.jsx)(Be,{currentAnim:F,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name"),a=Se(o),s=i?.hasC?SLEImceIcons.attButton.animColor:wp.data.select("core/block-editor").getBlock(n).attributes.animColor;let r={};a?.solid&&-1!==s.indexOf("gradient")&&(r={animColor:"#fff"}),se("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),l({slbbAnim:o,...r})}})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:M,onChange:e=>l({blockMargin:e})}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:L,onChange:e=>l({blockPadding:e})})]})}),i?.hasC&&(0,y.jsx)(c.Panel,{className:s()(ie),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:x,className:"sl-ei-icon-block-link-panel",children:(0,y.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:oe||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,y.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,y.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})]})}function _e(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}function je(e,t,o){return t&&(e=t?.top?{...e,..._e("Top",t?.top),..._e("Right",t?.right),..._e("Bottom",t?.bottom),..._e("Left",t?.left)}:{...e,..._e("",t)}),o&&(e={...e,borderTopLeftRadius:o?.top||null,borderTopRightRadius:o?.right||null,borderBottomRightRadius:o?.bottom||null,borderBottomLeftRadius:o?.left||null}),e}const we=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}],Ce={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",bold:!1,italic:!1,uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:3,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",slbbAnim:"No Animation",animColor:"#fff"},Se=e=>ge.find((({name:t})=>t===e))||null,ve=(0,l.memo)((function({currentEffect:e,onIconClick:t}){return se("sl-ei-list-selected-effect"),(0,y.jsx)("div",{className:"sl-ei-icon-block-effects-container",style:{height:"178px"},children:pe.map(((o,a)=>{const l=o.name,n={...Ce,...o.attributes,blockId:"sl-ei-box-button-block-effect-list-"+a,effect:l};return(0,y.jsx)("div",{style:{display:"inline-block",height:"80px",padding:"22px 7px",margin:"3px"},id:l===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist safelayout-ei-box-button-block"+(l===e?" sl-ei-list-selected":""),onClick:t,title:l,"data-effect-name":l,children:(0,y.jsx)(Ae,{attributes:n,isInEditor:!1})},a)}))})}),((e,t)=>e.currentEffect===t.currentEffect)),Be=(0,l.memo)((function({currentAnim:e,onIconClick:t}){se("sl-ei-list-selected-anim");const o={...Ce,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},effect:"effect011"};return(0,y.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"169px"},children:ge.map(((a,l)=>{const n=Se(a.name),s={...o,blockId:"sl-ei-box-button-block-anim-list-"+l,slbbAnim:a.name,effect:"effect011"};return"border-color"!==a?.name&&"text-border-color"!==a?.name||(s.hasBgShadow=!1,s.animColor="#d63638"),"text-color"===a?.name&&(s.animColor="#d63638"),"swap-color"===a?.name&&(s.hasTextShadow=!1),a?.icon&&(s.hasIcon=!0,s.content="But...",s.iconPaths=a?.iconPaths,s.iconColor=["#00f"]),(0,y.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:a.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist safelayout-ei-box-button-block "+(n?.parent||"")+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name.replaceAll("-"," "),"data-anim-name":a.name,children:(0,y.jsx)(Ae,{attributes:s,isInEditor:!1})},l)}))})}),((e,t)=>e.currentAnim===t.currentAnim));function Ae({attributes:t,setAttributes:o,isInEditor:l=!0,others:n}){const{bold:i,italic:r,uppercase:c,fontSize:d,lineHeight:f,letterSpacing:b,width:p,textColor:g,hasBg:u,bgColor:h,border:x,borderRadius:m,hasIcon:k,iconPos:_,iconGap:j,content:w,hasBgShadow:C,bgShadow:S,hasTextShadow:v,textShadow:B,blockMargin:A,blockPadding:I,label:P,title:z,linkUrl:R,linkRel:L,linkTarget:M,effect:E,animation:H,slbbAnim:O,animColor:V}=t,W=n?.oldAnim?H:O;let G={...N(null,A,I),fontWeight:i?"bold":null,fontStyle:r?"italic":null,textTransform:c?"uppercase":null,"--sl-ei-box-button-text-color":g,"--sl-ei-box-button-background-color":u?h:"none","--sl-ei-box-button-anim-color":W&&"No Animation"!=W?V:null,boxShadow:C?S:null,textShadow:v?B:null,textDecoration:"auto",cursor:l?null:"pointer",userSelect:l?null:"none",fontSize:"16px"!=d?d:null,lineHeight:"1.5"!=f?f:null,letterSpacing:"0px"!=b?b:null,width:0!=p?p+"%":null};G=je(G,x,m);const $=Se(W),F=W&&"No Animation"!=W?$?.button?`sl-ei-box-button-block-animation-${W}`:`sl-ei-icon-block-animation-${W}`:null,D=(0,y.jsx)(a.RichText,{tagName:"span",value:w,allowedFormats:[],onChange:e=>o({content:e}),placeholder:(0,e.__)("Read More","safelayout-elegant-icons")});return(0,y.jsx)("a",{style:G,href:!l&&R||null,target:!l&&M||null,rel:!l&&L||null,"aria-label":P||null,title:z||null,className:s()(`sl-ei-box-button-block-${E.toLowerCase().replace(" ","-")}`,F),children:k?"left"===_?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"sl-ei-box-button-block-icon",children:(0,y.jsx)(T,{attributes:t,others:n})}),(0,y.jsx)("span",{style:{display:"inline-block",width:j+"px"}}),l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w})]}):(0,y.jsxs)(y.Fragment,{children:[l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w}),(0,y.jsx)("span",{style:{display:"inline-block",width:j+"px"}}),(0,y.jsx)("span",{className:"sl-ei-box-button-block-icon",children:(0,y.jsx)(T,{attributes:t,others:n})})]}):(0,y.jsx)(y.Fragment,{children:l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w})})})}const Ne=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-box-button","version":"1.3.0","title":"Box Button (Safelayout)","parent":["safelayout/safelayout-icon-box"],"category":"blocks-safelayout-category","description":"Icon box button.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"content":{"type":"string","default":"Read More"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"hasBg":{"type":"boolean","default":true},"bgColor":{"type":"string","default":"#3f3"},"bold":{"type":"boolean","default":false},"italic":{"type":"boolean","default":false},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"16px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"width":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"1px 1px 2px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"border":{"type":"object"},"borderRadius":{"type":"object"},"hasIcon":{"type":"boolean","default":false},"iconPos":{"type":"string","default":"left"},"iconGap":{"type":"number","default":5},"iconName":{"type":"string","default":"000_next"},"iconPaths":{"type":"array","default":[{"d":"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},"iconColor":{"type":"array","default":["#00f"]},"iconStrokeColor":{"type":"array","default":["#000"]},"iconStrokeWidth":{"type":"array","default":[0]},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""},"effect":{"type":"string","default":"No Effect"},"slbbAnim":{"type":"string","default":"No Animation"},"animColor":{"type":"string","default":"#fff"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),Ie={blockId:{type:"string"},content:{type:"string",default:"Read More"},align:{type:"string"},textColor:{type:"string",default:"#00f"},hasBg:{type:"boolean",default:!0},bgColor:{type:"string",default:"#3f3"},bold:{type:"boolean",default:!1},italic:{type:"boolean",default:!1},uppercase:{type:"boolean",default:!1},fontSize:{type:"string",default:"16px"},lineHeight:{type:"string",default:"1.5"},letterSpacing:{type:"string",default:"0px"},width:{type:"number",default:0},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"1px 1px 2px #000"},hasTextShadow:{type:"boolean",default:!1},textShadow:{type:"string",default:"1px 1px 2px #fff"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},hasIcon:{type:"boolean",default:!1},iconPos:{type:"string",default:"left"},iconGap:{type:"number",default:5},iconName:{type:"string",default:"000_next"},iconPaths:{type:"array",default:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},iconColor:{type:"array",default:["#00f"]},iconStrokeColor:{type:"array",default:["#000"]},iconStrokeWidth:{type:"array",default:[0]},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""},effect:{type:"string",default:"No Effect"},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"}},Pe=[{attributes:Ie,migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save({attributes:e}){const{align:t,animation:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:Ie,save({attributes:e}){const{align:t,animation:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1,others:{d1:!0}})})}}],{name:Te}=Ne;(0,t.registerBlockType)({name:Te,...Ne},{title:(0,e.__)("Box Button (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Icon box button.","safelayout-elegant-icons"),icon:(0,y.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("defs",{children:(0,y.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,y.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,y.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,y.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,y.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,y.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M20.4 5.4H3.6C2.28 5.4 1.2 6.48 1.2 7.8V16.2C1.2 17.52 2.28 18.6 3.6 18.6H20.4C21.72 18.6 22.8 17.52 22.8 16.2V7.8C22.8 6.48 21.72 5.4 20.4 5.4ZM19.5 15.5C19.5 15.8 19.3 16 19 16H5C4.7 16 4.5 15.8 4.5 15.5V8.5C4.5 8.2 4.7 8 5 8H19C19.3 8 19.5 8.2 19.5 8.5V15.5ZM8 12.8H16V11.3H8V12.8Z"})]}),edit:function(e){const{attributes:t,setAttributes:o,clientId:n}=e,{align:i,slbbAnim:r}=t;(0,l.useLayoutEffect)((()=>{t.blockId=n}),[]);const c=Se(r),d=(0,a.useBlockProps)({className:s()("safelayout-ei-box-button-block",c?.parent),style:{textAlign:i}});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ke,{attributes:t,setAttributes:o,clientId:n}),(0,y.jsx)("div",{...d,children:(0,y.jsx)(Ae,{attributes:t,setAttributes:o})})]})},save:function({attributes:e}){const{align:t,slbbAnim:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1})})},deprecated:Pe})})()})();1 (()=>{var e={452:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=s(e,n(o)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=s(t,o));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()},470:(e,t,o)=>{"use strict";var a=o(795);t.H=a.createRoot,a.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,a=window.wp.blockEditor,l=window.wp.element;var n=o(452),s=o.n(n),i=o(470),r=o(795);const c=window.wp.components,d=window.React,f=window.wp.primitives,b=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),p=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),g=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),u=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),h=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),x=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,d.createElement)(f.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,d.createElement)(f.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),m=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),y=window.ReactJSXRuntime,k=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],_=e=>e&&-1!=e.indexOf("gradient"),j=(e,t)=>Math.round(e*10**t)/10**t;function w(e){const{grad:t,id:o}=e;function a(e,t,o){var a=t.slice(o).search(/,|\)|\d/);","==t[o+a]?e.push(0):")"==t[o+a]&&e.push(1)}let l=[],n=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],i=t.indexOf("(")+1,r=0,c=i,d=t.length;for(;c<d;){if(i=1,"#"===t[c])l.push(t.substr(c,i=t.slice(c).search(/,|\)|\s/))),a(n,t,c+i);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,i=t.indexOf(")",c)-c+1)),a(n,t,c+i);else if(-1!=s.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),o=t.indexOf("deg",c);-1!=o&&(-1===e||o<e)?r=180-Number(t.substr(c,i=o-c)):n.push(t.substr(c,i=e-c)/100)}c+=i}r=-r*(Math.PI/180);const f=j(.5+.5*Math.sin(r),4),b=j(.5-.5*Math.cos(r),4),p=j(.5+.5*Math.sin(r+Math.PI),4),g=j(.5-.5*Math.cos(r+Math.PI),4);return"radial"===t.substr(0,6)?(0,y.jsx)(C,{id:o,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,y.jsx)(S,{id:o,colors:l,offsets:n,x1:f,y1:b,x2:p,y2:g})}function C(e){const{colors:t,offsets:o,id:a,cx:l,cy:n,r:s,fx:i,fy:r}=e;return(0,y.jsx)("radialGradient",{id:a,cx:l,cy:n,r:s,fx:i,fy:r,children:(0,y.jsx)(v,{colors:t,offsets:o})})}function S(e){const{colors:t,offsets:o,id:a,x1:l,y1:n,x2:s,y2:i}=e;return(0,y.jsx)("linearGradient",{id:a,x1:l,y1:n,x2:s,y2:i,children:(0,y.jsx)(v,{colors:t,offsets:o})})}function v(e){const{colors:t,offsets:o}=e;return(0,y.jsx)(y.Fragment,{children:t.map(((e,t)=>(0,y.jsx)("stop",{"stop-color":e,offset:o[t]},t)))})}function B(e){const{pos:t,objArray:o,id:a}=e,l=`fillGrad${t+a}`,n=`strokeGrad${t+a}`;let s;return(0,y.jsx)(y.Fragment,{children:o.map(((e,t)=>(0,y.jsxs)("defs",{children:[_(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,y.jsx)(C,{id:l+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,y.jsx)(S,{id:l+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),_(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,y.jsx)(C,{id:n+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,y.jsx)(S,{id:n+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},t)))})}function A(e){const{pos:t,objArray:o,id:a,rx:l}=e,n=`fillGrad${t+a}`,s=`strokeGrad${t+a}`;return(0,y.jsx)(y.Fragment,{children:o.map(((e,t)=>"rect"===e.shape?(0,d.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:_(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:_(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,d.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:_(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:_(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function N(e,t,o){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:o?.top||null,paddingRight:o?.right||null,paddingBottom:o?.bottom||null,paddingLeft:o?.left||null}}function I({attributes:e,paths:t,effectObj:o,isInEditor:a=!0,others:l}){const{blockId:n,rotate:s,flipHorizontal:i,flipVertical:r,hasBg:d,bgShape:f,bgShapeVal:b,rotateBg:p,size:g,color:u,strokeColor:h,strokeWidth:x,hasShadow:m,shadow:C,svgFilter:S,bgColor:v,bgStrokeColor:N,bgStrokeWidth:I,hasBgShadow:P,bgShadow:T,hasBaseShadow:z,baseShadowWidth:R,baseShadowHeight:L,baseShadowTop:M,padding:E,bgRadius:H,animation:O,slbbAnim:V,label:W,title:G,linkUrl:$,linkRel:F,linkTarget:D}=e,U=j(.88*H,2),Z=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=u.map(((e,t)=>_(e)?`url(#${X+t})`:"")),ee=h.map(((e,t)=>_(e)?`url(#${Y+t})`:"")),te=_(v)?`url(#${J})`:"",oe=_(N)?`url(#${q})`:"",ae=d?`calc(110% - ${Math.round(2.4*Number(E))}px)`:"100%",le=(m?C:"")+("none"!=S?` url(#${S})`:""),ne=P?T:null,se=0!=p?`rotate(${p}deg)`:null,ie=l?.oldAnim?O:V,re=ie&&"No Animation"!=ie?`sl-ei-icon-block-animation-${ie}`:null,ce=(0!=s?`rotate(${s}deg)`:"")+(i||r?` scale(${i?-1:1}, ${r?-1:1})`:""),de=""!=ce?(d||z?"translate(-50%, -50%) ":"")+ce:null,fe=(0,y.jsxs)(y.Fragment,{children:[(d||z)&&(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[d&&(0,y.jsxs)("defs",{children:[""!=te&&(0,y.jsx)(w,{grad:v,id:J}),""!=oe&&(0,y.jsx)(w,{grad:N,id:q}),o&&o.before.length>0&&(0,y.jsx)(B,{pos:"before",objArray:o.before,id:n}),o&&o.after.length>0&&(0,y.jsx)(B,{pos:"after",objArray:o.after,id:n})]}),z&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(B,{pos:"Base",objArray:k,id:n}),(0,y.jsx)("ellipse",{cx:"48",cy:M,rx:R/2,ry:L/2,fill:`url(#${K+0})`})]}),d&&(0,y.jsxs)("g",{style:{transform:se},children:[o&&o.before.length>0&&(0,y.jsx)(A,{pos:"before",objArray:o.before,id:n,rx:U}),"rect"===f?(0,y.jsx)(c.Rect,{x:"4",y:"4",width:"88",height:"88",rx:U,fill:te||v,stroke:oe||N,strokeWidth:I,style:{filter:ne}}):(0,y.jsx)("path",{d:b,fill:te||v,stroke:oe||N,strokeWidth:I,style:{filter:ne}}),o&&o.after.length>0&&(0,y.jsx)(A,{pos:"after",objArray:o.after,id:n,rx:U})]})]}),(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:ae,width:ae},children:[(0,y.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:u[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:h[t],id:Y+t},t)))]}),(0,y.jsx)("symbol",{viewBox:"0 0 24 24",id:Z,children:t.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||u[e.color||0],stroke:ee[e.strokeColor||0]||h[e.strokeColor||0],strokeWidth:x[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,y.jsx)("use",{href:`#${Z}`,style:{filter:le||null}}):(0,y.jsx)("use",{xlinkHref:`#${Z}`,style:{filter:le||null}})]})]});return $&&!a?(0,y.jsx)("a",{style:{height:g,width:g},href:$,target:D||null,rel:F||null,"aria-label":W||null,title:G||null,className:re,children:fe}):(0,y.jsx)("div",{style:{height:g,width:g},"aria-label":W||null,title:G||null,className:re,children:fe})}function P({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),o=e?.attributes?.color||["#5c5c5c"],a=e.paths,l="47px";return(0,y.jsx)("div",{style:{height:l,width:l},children:(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,y.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:a.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:o[e.color||0],d:e.d,style:e.style},t)))}),(0,y.jsx)("use",{href:`#${t}`})]})})}function T({attributes:e,others:t}){const{blockId:o,iconColor:a,iconStrokeColor:l,iconStrokeWidth:n,iconPaths:s}=e,i=`path${o}`,r=`fillGrad${o}`,d=`strokeGrad${o}`,f=a.map(((e,t)=>_(e)?`url(#${r+t})`:"")),b=l.map(((e,t)=>_(e)?`url(#${d+t})`:""));return(0,y.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsxs)("defs",{children:[f.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:a[t],id:r+t},t))),b.map(((e,t)=>""!=e&&(0,y.jsx)(w,{grad:l[t],id:d+t},t)))]}),(0,y.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:i,children:s.map(((e,t)=>(0,y.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:f[e.color||0]||a[e.color||0],stroke:b[e.strokeColor||0]||l[e.strokeColor||0],strokeWidth:n[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==t?.d1?(0,y.jsx)("use",{href:`#${i}`}):(0,y.jsx)("use",{xlinkHref:`#${i}`})]})}const z=({colorValue:e,label:t})=>(0,y.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,y.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,y.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),R=e=>({onToggle:t,isOpen:o})=>{const{colorValue:a,label:l,disabled:n}=e,i={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":o}),"aria-expanded":o};return(0,y.jsx)(c.Button,{...i,disabled:n,children:(0,y.jsx)(z,{colorValue:a,label:l})})};function L({settings:e,label:t,disabled:o,position:a,style:l}){var n;const s={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:t,disabled:o};return(0,y.jsx)(c.Dropdown,{style:l,popoverProps:{placement:a?.pos||"left-start",offset:a?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:R(s),renderContent:()=>(0,y.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,y.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,y.jsx)(V,{...e})})})})}const M={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},E={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},H=[M,E],O=(0,l.memo)((function({colors:e,onClick:t,img:o,tab:a}){return(0,y.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,o)=>(0,y.jsx)("span",{onClick:t,style:{background:e}},o)))})}),((e,t)=>e.tab===t.tab));function V({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:o,label:a,onlySolid:l,onColorChange:n,onColorArrayClick:i,onGradientChange:r,onGradientArrayClick:f,colorValue:b,gradientValue:p,clearable:g,showTitle:u=!1,enableAlpha:h,headingLevel:x}){(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[M.value]:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.ColorPalette,{value:b,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,colors:[],headingLevel:x}),(0,y.jsx)(O,{colors:G,onClick:i,tab:"COLOR"})]}),[E.value]:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:_(p)?p:`linear-gradient(${p} 0%, ${p} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,gradients:[],headingLevel:x}),(0,y.jsx)(O,{colors:$,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,y.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:s()("block-editor-color-gradient-control",o),children:(0,y.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,y.jsxs)(c.__experimentalVStack,{spacing:1,children:[u&&(0,y.jsx)("legend",{children:(0,y.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,y.jsx)(c.BaseControl.VisualLabel,{children:a})})}),(0,y.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[M]:H,initialTabName:_(p)?E.value:M.value,children:e=>{return t=e.value,(0,y.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function W(e){const{attribute:t,label:o,onlySolid:a,change:l,click:n,disabled:s,position:i,style:r}=e;return(0,y.jsx)(L,{settings:{onlySolid:a,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:o,disabled:s,position:i,style:r})}const G=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],$=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],F=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],D=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],U={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},Z=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:F,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:F,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:F,attributes:{...U,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:F,attributes:{...U,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:F,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:F,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:F,attributes:{...U,bgShape:"path",bgShapeVal:D[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:F,attributes:{...U,bgShape:"path",bgShapeVal:D[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:D[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],X=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],Y={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},J=(f.SVG,f.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),q=(t,o)=>{const a=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return o<=1?"":" "+a[t]},K=e=>{let t=X.find((({name:t})=>t===e)),o="";return t&&(o=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),o},Q=e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e)))),t||null},ee=e=>{let t="";return SLEIiconArray.some((o=>t=o[0].libCode===e.name.substring(0,3)&&" ("+o[0].libName+")")),t||" (unknown)"},te=e=>{let t=null;return SLEIiconArray.some((o=>t=o[0].libCode===e&&o[0]?.class)),t||""},oe=(e,t,o,a,l,n)=>{let s={...J,color:n||["#5c5c5c"],...t?.attributes,size:o,blockId:"sl-ei-icon-block-"+a+t.name.replaceAll(" ","_")},i=l||s?.effect,r=i?(c=i,Z.find((({name:e})=>e===c))||null):null;var c;r?.attributes&&(s={...s,...r?.attributes}),e.attributes=s,e.effectObj=r},ae=((0,l.memo)((function({currentEffect:e,onIconClick:t}){se("sl-ei-list-selected-effect");const o={};return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Z.map(((a,l)=>{const n=a.attributes.rotateBg,s=a.name;return oe(o,Y,n?76:92,"effectList"+l,s,a.color),(0,y.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":s,children:(0,y.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:Y.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,l.memo)((function({currentAnim:e,onIconClick:t}){se("sl-ei-list-selected-anim");const o={...Y,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},a={};return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:X.map(((l,n)=>(o.attributes.slbbAnim=l.name,oe(a,o,54,"animList"+n,null),(0,y.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,y.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:o.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),e=>(0,y.jsx)(c.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:le(e),renderContent:()=>(0,y.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,y.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,y.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,y.jsx)(ne,{...e})})})})})),le=e=>({onToggle:t,isOpen:o})=>{const{name:a,paths:l,color:n,label:i,disabled:r}=e,d={},f={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o};let b=Q(a);return null===b&&(b={name:a,paths:l,attributes:{color:n}}),oe(d,b,64,"selected",null,["#3535ff"]),(0,y.jsx)(c.Button,{...f,disabled:r,style:{border:"1px solid #add8e6"},children:(0,y.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,y.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,y.jsx)(I,{attributes:d.attributes,effectObj:d.effectObj,paths:b.paths})}),(0,y.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:i,children:i})]})})};function ne(t){const{name:o,onIconClick:a}=t;let n,s=[];(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[i,r]=(0,l.useState)(""),[f,b]=(0,l.useState)((e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e))&&o)),t?t[0].libName:SLEIiconArray[0][0].libName})(o));if(i)s.push(null),SLEIiconArray.map((e=>s=s.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(i.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,o)=>e=t[0].libName===f&&o+1)),s=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.SearchControl,{value:i,onChange:r,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,y.jsx)(c.SelectControl,{value:f,onChange:b,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,y.jsx)("option",{value:e[0].libName,children:t})}))}),(0,y.jsx)(ie,{icons:s,name:o,onIconClick:a,selectedLibrary:f,searchVal:i,packsImageShow:n})]})}const se=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ie=(0,l.memo)((function({icons:e,name:t,onIconClick:o,selectedLibrary:a,searchVal:l,packsImageShow:n}){return se("sl-ei-list-selected-icon"),(0,y.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,a)=>{if(a){let n=e.name.substring(0,3);return(0,y.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:o,title:e.name.substring(4)+(l?ee(e):""),"data-icon-name":e.name,children:n<="400"?(0,y.jsx)("span",{className:te(n),children:String.fromCharCode(59392+e.c)}):(0,y.jsx)(P,{icon:e})},a)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),re={hasBgShadow:!1,hasTextShadow:!1,textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",border:{}},ce={top:"5px",right:"5px",bottom:"5px",left:"5px"},de={top:"50px",right:"50px",bottom:"50px",left:"50px"};function fe(e){return{hasBgShadow:!0,bgShadow:e}}function be(e){return{hasTextShadow:!0,textShadow:e}}const pe=[{name:"No Effect",attributes:{...re}},{name:"effect001",attributes:{...re,hasBg:!1,border:{color:"#0000003B",style:void 0,width:"1px"},borderRadius:ce,hasBgShadow:!1,hasTextShadow:!1,slbbAnim:"border-color",animColor:"#3e3eff"}},{name:"effect002",attributes:{...re,hasBg:!0,border:{},borderRadius:ce,...fe("0px 1px 2px #000"),...be("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect003",attributes:{...re,hasBg:!0,borderRadius:de,...fe("0px 1px 7px #000"),hasTextShadow:!1,slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...re,hasBg:!0,border:{},borderRadius:ce,...fe("0px 1px 2px #000"),...be("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect005",attributes:{...re,hasBg:!0,border:{},borderRadius:de,...fe("0px 2px 3px #202020"),...be("1px 1px 1px #fff"),slbbAnim:"stretch",animColor:"#fff"}}],ge=[{name:"No Animation",parent:""},{name:"light",button:!0},{name:"light1",button:!0},{name:"swap-color",button:!0},{name:"background-color",button:!0,control:!0,label:(0,e.__)("Animation Background color","safelayout-elegant-icons"),solid:!1},{name:"text-color",button:!0,control:!0,label:(0,e.__)("Animation Text color","safelayout-elegant-icons"),solid:!0},{name:"border-color",button:!0,control:!0,label:(0,e.__)("Animation Border color","safelayout-elegant-icons"),solid:!0},{name:"text-border-color",button:!0,control:!0,label:(0,e.__)("Animation Text and Border color","safelayout-elegant-icons"),solid:!0},{name:"stretch",button:!0,control:!0,label:(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch1",button:!0,control:!0,label:(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"slide-top",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-bottom",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-left",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-right",button:!0,control:!0,label:(0,e.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"letter-space",button:!0},{name:"icon-yoyo-X",button:!0,icon:!0,iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},{name:"icon-yoyo-Y",button:!0,icon:!0,iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"icon-rotate-X",button:!0,icon:!0,iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},{name:"icon-rotate-Y",button:!0,icon:!0,iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"icon-rotate-Z",button:!0,icon:!0,iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"shadow",button:!0},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"sl-ei-icon-block-animation-push-parent"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"sl-ei-icon-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-ei-icon-block-animation-swing-3D-parent"},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"jelly",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""}],ue={key:0,blockId:"",content:"Read More",align:"",textColor:"#00f",hasBg:!0,bgColor:"#3f3",bold:!1,italic:!1,uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:5,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",effect:"No Effect",slbbAnim:"No Animation",animColor:"#fff",classes:""},he={tag:"h2",textAlign:"",bold:!1,italic:!1,uppercase:!1,hasText:!1,textColor:"#00f",hasBg:!1,bgColor:"#b6b6b6",fontSize:"",lineHeight:"1.4",letterSpacing:"0px",blockMargin:{},blockPadding:{},border:{},borderRadius:{},classes:""};SLEImceIcons.boxText=(e,t,o)=>{const a=(0,i.H)(e),{tag:l,textAlign:n,bold:s,italic:c,uppercase:d,fontSize:f,lineHeight:b,letterSpacing:p,hasText:g,textColor:u,hasBg:h,bgColor:x,border:m,borderRadius:k,blockPadding:_,blockMargin:j,classes:w}=t,C=o?.head?l:"p";let S={...N(n,j,_),fontWeight:s?"bold":null,fontStyle:c?"italic":null,textTransform:d?"uppercase":null,color:g?u:null,background:h?x:null,fontSize:!o?.head&&f||null,lineHeight:o?.head||"1.4"==b?null:b,letterSpacing:o?.head||"0px"==p?null:p};S=je(S,m,k),(0,r.flushSync)((()=>{a.render((0,y.jsx)(C,{className:w||null,style:S,children:o?.head?(0,y.jsx)("div",{children:"safe1359head1359safe"}):(0,y.jsx)("div",{children:"safe1359text1359safe"})}))}))},SLEImceIcons.menuText=(e,t,o)=>{const a=(0,i.H)(e);t={...he,...t},a.render((0,y.jsx)(xe,{att:t,others:o}))};const xe=e=>{let{att:t,others:o}=e;SLEImceIcons.attText=t;const[a,n]=(0,l.useState)(t);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ye,{attributes:t,setAttributes:e=>{for(var a in e)t[a]=e[a];n({...t}),SLEImceIcons.attText=t,o?.callBack&&o.callBack()},others:o})})};SLEImceIcons.boxButton=(e,t)=>{const o=(0,i.H)(e),{align:a,slbbAnim:l,classes:n}=t,c=Se(l);(0,r.flushSync)((()=>{o.render((0,y.jsx)("div",{className:s()("safelayout-ei-box-button-block",c?.parent,n),style:{textAlign:a},children:(0,y.jsx)(Ae,{attributes:t,isInEditor:!1})}))}))},SLEImceIcons.menuButton=(e,t,o)=>{const a=(0,i.H)(e);var l;t={...ue,...t},t?.animation&&(t.slbbAnim=t.animation,t.animation=void 0),t.blockId=(l=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),a.render(o?.hasBtn?(0,y.jsx)(me,{att:t,others:o}):(0,y.jsxs)("div",{style:{textAlign:"center",lineHeight:1.4},children:["You must first enable the ",(0,y.jsx)("strong",{children:'"Read More button"'}),", at the top in the ",(0,y.jsx)("strong",{children:'"Icon Box (Safelayout)"'})," section."]}))};const me=e=>{let{att:t,others:o}=e;SLEImceIcons.attButton=t;const[a,n]=(0,l.useState)(t);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ke,{attributes:t,setAttributes:e=>{for(var a in e)t[a]=e[a];t.key++,n({...t}),SLEImceIcons.attButton=t,o?.callBack&&o.callBack()},clientId:t.blockId,others:o})})};function ye(t){const{attributes:o,setAttributes:l,others:n}=t,{tag:i,textAlign:r,bold:d,italic:f,uppercase:m,fontSize:k,lineHeight:_,letterSpacing:j,hasText:w,textColor:C,hasBg:S,bgColor:v,border:B,borderRadius:A,blockPadding:N,blockMargin:I,classes:P}=o,T="safelayout-ei-icon-dialog-mce-panel";return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,y.jsx)("div",{style:{textAlign:"center"},children:(0,y.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[n?.head&&(0,y.jsx)(a.HeadingLevelDropdown,{value:Number(i.substring(1,2)),onChange:e=>l({tag:"h"+e})}),(0,y.jsx)(a.AlignmentToolbar,{controls:["left","center","right"],value:r,onChange:e=>l({textAlign:e}),label:(0,e.__)("Align text","safelayout-elegant-icons")}),(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!d}),isPressed:d}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!m}),isPressed:m})]})})}),(0,y.jsxs)("div",{children:[!n?.head&&(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,y.jsx)(c.FontSizePicker,{withSlider:!0,fontSizes:we,onChange:e=>l({fontSize:e}),value:k}),(0,y.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,y.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:_}),(0,y.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:j})]})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,y.jsx)(c.ToggleControl,{checked:S,label:(0,e.__)("Background color","safelayout-elegant-icons"),onChange:e=>l({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:v,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),disabled:!S,position:{offset:n?.popoverOffset}}),(0,y.jsx)(c.ToggleControl,{checked:w,label:(0,e.__)("Text color","safelayout-elegant-icons"),onChange:e=>l({hasText:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:C,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,disabled:!w,position:{offset:n?.popoverOffset}})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,y.jsx)(c.__experimentalBorderBoxControl,{onChange:e=>l({border:e}),value:B,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:n?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,e.__)("Reset","safelayout-elegant-icons")}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Border radius","safelayout-elegant-icons"),values:A,onChange:e=>l({borderRadius:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(T),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:I,onChange:e=>l({blockMargin:e})}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:N,onChange:e=>l({blockPadding:e})})]})}),(0,y.jsx)(c.Panel,{className:s()("safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link"),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:x,className:"sl-ei-icon-block-link-panel",children:(0,y.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:P||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})})]})]})}function ke(t){const{attributes:o,setAttributes:l,clientId:n,others:i}=t,{content:r,align:d,bold:f,italic:k,uppercase:_,fontSize:j,lineHeight:w,letterSpacing:C,width:S,textColor:v,hasBg:B,bgColor:A,border:N,borderRadius:I,hasBgShadow:P,bgShadow:T,hasTextShadow:z,textShadow:R,blockPadding:L,blockMargin:M,label:E,title:H,linkUrl:O,linkRel:V,linkTarget:G,effect:$,slbbAnim:F,animColor:D,hasIcon:U,iconPos:Z,iconGap:X,iconName:Y,iconPaths:J,iconColor:K,iconStrokeColor:ee,iconStrokeWidth:te,classes:oe}=o,le=i?.hasC?"div":a.InspectorControls,ne=i?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,ie=i?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null,re="_blank"===G,ce="noreferrer noopener";function de(e,t){let o=e.split("px ")[t];return t<3?parseFloat(o):o}function fe(e,t,o){let a=e.split("px ");return a[t]=o,a.join("px ")}return(0,y.jsxs)(y.Fragment,{children:[!i?.hasC&&(0,y.jsxs)(a.BlockControls,{children:[(0,y.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:d,onChange:e=>l({align:e})}),(0,y.jsxs)(c.ToolbarGroup,{children:[(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!k}),isPressed:k}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!_}),isPressed:_})]})]}),i?.hasC&&(0,y.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,e.__)("Button text","safelayout-elegant-icons")}),(0,y.jsx)("textarea",{value:r.replaceAll("<br>","\n"),onChange:e=>l({content:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,e.__)("Read More","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center"}}),(0,y.jsx)("div",{style:{textAlign:"center"},children:(0,y.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[(0,y.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:d,onChange:e=>l({align:e})}),(0,y.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,y.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!k}),isPressed:k}),(0,y.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!_}),isPressed:_})]})})]}),(0,y.jsxs)(le,{children:[(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Button effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,y.jsx)(ve,{currentEffect:$,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),a=(e=>pe.find((({name:t})=>t===e))||null)(o);se("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),l({effect:o,...a?.attributes})}})})}),(0,y.jsx)(c.Panel,{className:s()(ie),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,y.jsx)(c.TextControl,{label:(0,e.__)("Tooltip","safelayout-elegant-icons"),value:H||"",onChange:e=>l({title:e})}),(0,y.jsx)(c.TextControl,{label:(0,e.__)("Label","safelayout-elegant-icons"),value:E||"",onChange:e=>l({label:e}),help:(0,e.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Link url","safelayout-elegant-icons")}),(0,y.jsx)(a.__experimentalLinkControl,{value:{url:O,opensInNewTab:re},onChange:({url:e="",opensInNewTab:t})=>{l({linkUrl:e}),re!==t&&function(e){const t=e?"_blank":void 0;let o=V;t&&!V?o=ce:t||V!==ce||(o=void 0),l({linkTarget:t,linkRel:o})}(t)},onRemove:()=>{l({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,y.jsx)(c.TextControl,{label:(0,e.__)("Link rel","safelayout-elegant-icons"),value:V||"",onChange:e=>l({linkRel:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,y.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:we,onChange:e=>l({fontSize:e}),value:j}),(0,y.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,y.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:w}),(0,y.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:C})]}),(0,y.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",marginBottom:"5px"},children:(0,e.__)("Width","safelayout-elegant-icons")}),(0,y.jsx)(c.ButtonGroup,{"aria-label":(0,e.__)("Button width"),children:[25,50,75,100].map((e=>(0,y.jsxs)(c.Button,{size:"small",variant:e===S?"primary":void 0,onClick:()=>l({width:e}),children:[e,"%"]},e)))}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({width:0}),size:"small",style:{margin:"0 10px"},children:(0,e.__)("Reset","safelayout-elegant-icons")})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,y.jsx)(c.ToggleControl,{checked:B,help:(0,e.__)("Add a background color to the button.","safelayout-elegant-icons"),label:(0,e.__)("Background color","safelayout-elegant-icons"),onChange:e=>l({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(W,{attribute:A,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),disabled:!B,position:{offset:i?.popoverOffset}}),(0,y.jsx)(W,{attribute:v,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,position:{offset:i?.popoverOffset}})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Icon","safelayout-elegant-icons"),initialOpen:!1,icon:"art",children:[(0,y.jsx)(c.ToggleControl,{checked:U,help:(0,e.__)("Add an icon to the button.","safelayout-elegant-icons"),label:(0,e.__)("Add icon","safelayout-elegant-icons"),onChange:e=>l({hasIcon:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,y.jsx)(ae,{name:Y,paths:J,color:K,customIconRefresh:1,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+Y.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),a=Q(o);se("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let n=a?.attributes;n?.color||(n={...n,color:[K[0]]}),n?.strokeColor||(n={...n,strokeColor:[ee[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[te[0]]}),l({iconName:o,iconPaths:a.paths,iconColor:n.color,iconStrokeColor:n.strokeColor,iconStrokeWidth:n.strokeWidth})},disabled:!U,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon position","safelayout-elegant-icons")}),(0,y.jsxs)(c.__experimentalToggleGroupControl,{value:Z,isBlock:!0,onChange:e=>l({iconPos:e}),disabled:!U,size:"small",children:[(0,y.jsx)(c.__experimentalToggleGroupControlOption,{value:"left",label:(0,e.__)("Left","safelayout-elegant-icons"),disabled:!U}),(0,y.jsx)(c.__experimentalToggleGroupControlOption,{value:"right",label:(0,e.__)("Right","safelayout-elegant-icons"),disabled:!U})]}),K.map(((t,o,a)=>(0,y.jsx)(W,{attribute:t,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(o,a.length),click:e=>{let t=[...K];t[o]=e.target.style.background,l({iconColor:t})},change:e=>{let t=[...K];e&&(t[o]=e),l({iconColor:t})},disabled:!U,position:{offset:i?.popoverOffset}},o))),ee.map(((t,o,a)=>(0,y.jsx)(W,{attribute:t,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(o,a.length),click:e=>{let t=[...ee];t[o]=e.target.style.background,l({iconStrokeColor:t})},change:e=>{let t=[...ee];e&&(t[o]=e),l({iconStrokeColor:t})},disabled:!U,position:{offset:i?.popoverOffset}},o))),te.map(((t,o,a)=>(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(o,a.length),min:0,max:200,value:t,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let t=[...te];t[o]=e,l({iconStrokeWidth:t})},disabled:!U},o))),(0,y.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon gap","safelayout-elegant-icons")}),(0,y.jsx)(c.RangeControl,{min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:X,disabled:!U,onChange:e=>l({iconGap:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,y.jsx)(c.__experimentalBorderBoxControl,{onChange:e=>l({border:e}),value:N,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:i?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,y.jsx)(c.Button,{variant:"secondary",onClick:()=>l({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,e.__)("Reset","safelayout-elegant-icons")}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Border radius","safelayout-elegant-icons"),values:I,onChange:e=>l({borderRadius:e})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Box shadow","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,y.jsx)(c.ToggleControl,{checked:P,label:(0,e.__)("Box shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasBgShadow:e})}),(0,y.jsx)(W,{attribute:de(T,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({bgShadow:fe(T,3,e.target.style.background)}),change:e=>l({bgShadow:fe(T,3,e)}),disabled:!P,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,2),disabled:!P,onChange:e=>l({bgShadow:fe(T,2,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,0),disabled:!P,onChange:e=>l({bgShadow:fe(T,0,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(T,1),disabled:!P,onChange:e=>l({bgShadow:fe(T,1,e)})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Text shadow","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,y.jsx)(c.ToggleControl,{checked:z,label:(0,e.__)("Text shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasTextShadow:e})}),(0,y.jsx)(W,{attribute:de(R,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({textShadow:fe(R,3,e.target.style.background)}),change:e=>l({textShadow:fe(R,3,e)}),disabled:!z,position:{offset:i?.popoverOffset}}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,2),disabled:!z,onChange:e=>l({textShadow:fe(R,2,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,0),disabled:!z,onChange:e=>l({textShadow:fe(R,0,e)})}),(0,y.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:de(R,1),disabled:!z,onChange:e=>l({textShadow:fe(R,1,e)})})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:["No Animation"!=F&&Se(F)?.control&&(0,y.jsx)(W,{attribute:D,label:(0,e.__)(Se(F)?.label,"safelayout-elegant-icons"),onlySolid:Se(F)?.solid,click:e=>l({animColor:e.target.style.background}),change:e=>l({animColor:e}),position:{offset:i?.popoverOffset}}),(0,y.jsx)(Be,{currentAnim:F,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name"),a=Se(o),s=i?.hasC?SLEImceIcons.attButton.animColor:wp.data.select("core/block-editor").getBlock(n).attributes.animColor;let r={};a?.solid&&-1!==s.indexOf("gradient")&&(r={animColor:"#fff"}),se("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),l({slbbAnim:o,...r})}})]})}),(0,y.jsx)(c.Panel,{className:s()(ne),children:(0,y.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:M,onChange:e=>l({blockMargin:e})}),(0,y.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:L,onChange:e=>l({blockPadding:e})})]})}),i?.hasC&&(0,y.jsx)(c.Panel,{className:s()(ie),children:(0,y.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:x,className:"sl-ei-icon-block-link-panel",children:(0,y.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:oe||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,y.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,y.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})]})}function _e(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}function je(e,t,o){return t&&(e=t?.top?{...e,..._e("Top",t?.top),..._e("Right",t?.right),..._e("Bottom",t?.bottom),..._e("Left",t?.left)}:{...e,..._e("",t)}),o&&(e={...e,borderTopLeftRadius:o?.top||null,borderTopRightRadius:o?.right||null,borderBottomRightRadius:o?.bottom||null,borderBottomLeftRadius:o?.left||null}),e}const we=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}],Ce={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",bold:!1,italic:!1,uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:3,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",slbbAnim:"No Animation",animColor:"#fff"},Se=e=>ge.find((({name:t})=>t===e))||null,ve=(0,l.memo)((function({currentEffect:e,onIconClick:t}){return se("sl-ei-list-selected-effect"),(0,y.jsx)("div",{className:"sl-ei-icon-block-effects-container",style:{height:"178px"},children:pe.map(((o,a)=>{const l=o.name,n={...Ce,...o.attributes,blockId:"sl-ei-box-button-block-effect-list-"+a,effect:l};return(0,y.jsx)("div",{style:{display:"inline-block",height:"80px",padding:"22px 7px",margin:"3px"},id:l===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist safelayout-ei-box-button-block"+(l===e?" sl-ei-list-selected":""),onClick:t,title:l,"data-effect-name":l,children:(0,y.jsx)(Ae,{attributes:n,isInEditor:!1})},a)}))})}),((e,t)=>e.currentEffect===t.currentEffect)),Be=(0,l.memo)((function({currentAnim:e,onIconClick:t}){se("sl-ei-list-selected-anim");const o={...Ce,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},effect:"effect011"};return(0,y.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"169px"},children:ge.map(((a,l)=>{const n=Se(a.name),s={...o,blockId:"sl-ei-box-button-block-anim-list-"+l,slbbAnim:a.name,effect:"effect011"};return"border-color"!==a?.name&&"text-border-color"!==a?.name||(s.hasBgShadow=!1,s.animColor="#d63638"),"text-color"===a?.name&&(s.animColor="#d63638"),"swap-color"===a?.name&&(s.hasTextShadow=!1),a?.icon&&(s.hasIcon=!0,s.content="But...",s.iconPaths=a?.iconPaths,s.iconColor=["#00f"]),(0,y.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:a.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist safelayout-ei-box-button-block "+(n?.parent||"")+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name.replaceAll("-"," "),"data-anim-name":a.name,children:(0,y.jsx)(Ae,{attributes:s,isInEditor:!1})},l)}))})}),((e,t)=>e.currentAnim===t.currentAnim));function Ae({attributes:t,setAttributes:o,isInEditor:l=!0,others:n}){const{bold:i,italic:r,uppercase:c,fontSize:d,lineHeight:f,letterSpacing:b,width:p,textColor:g,hasBg:u,bgColor:h,border:x,borderRadius:m,hasIcon:k,iconPos:_,iconGap:j,content:w,hasBgShadow:C,bgShadow:S,hasTextShadow:v,textShadow:B,blockMargin:A,blockPadding:I,label:P,title:z,linkUrl:R,linkRel:L,linkTarget:M,effect:E,animation:H,slbbAnim:O,animColor:V}=t,W=n?.oldAnim?H:O;let G={...N(null,A,I),fontWeight:i?"bold":null,fontStyle:r?"italic":null,textTransform:c?"uppercase":null,"--sl-ei-box-button-text-color":g,"--sl-ei-box-button-background-color":u?h:"none","--sl-ei-box-button-anim-color":W&&"No Animation"!=W?V:null,boxShadow:C?S:null,textShadow:v?B:null,textDecoration:"auto",cursor:l?null:"pointer",userSelect:l?null:"none",fontSize:"16px"!=d?d:null,lineHeight:"1.5"!=f?f:null,letterSpacing:"0px"!=b?b:null,width:0!=p?p+"%":null};G=je(G,x,m);const $=Se(W),F=W&&"No Animation"!=W?$?.button?`sl-ei-box-button-block-animation-${W}`:`sl-ei-icon-block-animation-${W}`:null,D=(0,y.jsx)(a.RichText,{tagName:"span",value:w,allowedFormats:[],onChange:e=>o({content:e}),placeholder:(0,e.__)("Read More","safelayout-elegant-icons")});return(0,y.jsx)("a",{style:G,href:!l&&R||null,target:!l&&M||null,rel:!l&&L||null,"aria-label":P||null,title:z||null,className:s()(`sl-ei-box-button-block-${E.toLowerCase().replace(" ","-")}`,F),children:k?"left"===_?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"sl-ei-box-button-block-icon",children:(0,y.jsx)(T,{attributes:t,others:n})}),(0,y.jsx)("span",{style:{display:"inline-block",width:j+"px"}}),l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w})]}):(0,y.jsxs)(y.Fragment,{children:[l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w}),(0,y.jsx)("span",{style:{display:"inline-block",width:j+"px"}}),(0,y.jsx)("span",{className:"sl-ei-box-button-block-icon",children:(0,y.jsx)(T,{attributes:t,others:n})})]}):(0,y.jsx)(y.Fragment,{children:l?D:(0,y.jsx)(a.RichText.Content,{tagName:"span",value:w})})})}const Ne=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-box-button","version":"1.4.0","title":"Box Button (Safelayout)","parent":["safelayout/safelayout-icon-box"],"category":"blocks-safelayout-category","description":"Icon box button.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"content":{"type":"string","default":"Read More"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"hasBg":{"type":"boolean","default":true},"bgColor":{"type":"string","default":"#3f3"},"bold":{"type":"boolean","default":false},"italic":{"type":"boolean","default":false},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"16px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"width":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"1px 1px 2px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"border":{"type":"object"},"borderRadius":{"type":"object"},"hasIcon":{"type":"boolean","default":false},"iconPos":{"type":"string","default":"left"},"iconGap":{"type":"number","default":5},"iconName":{"type":"string","default":"000_next"},"iconPaths":{"type":"array","default":[{"d":"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},"iconColor":{"type":"array","default":["#00f"]},"iconStrokeColor":{"type":"array","default":["#000"]},"iconStrokeWidth":{"type":"array","default":[0]},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""},"effect":{"type":"string","default":"No Effect"},"slbbAnim":{"type":"string","default":"No Animation"},"animColor":{"type":"string","default":"#fff"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),Ie={blockId:{type:"string"},content:{type:"string",default:"Read More"},align:{type:"string"},textColor:{type:"string",default:"#00f"},hasBg:{type:"boolean",default:!0},bgColor:{type:"string",default:"#3f3"},bold:{type:"boolean",default:!1},italic:{type:"boolean",default:!1},uppercase:{type:"boolean",default:!1},fontSize:{type:"string",default:"16px"},lineHeight:{type:"string",default:"1.5"},letterSpacing:{type:"string",default:"0px"},width:{type:"number",default:0},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"1px 1px 2px #000"},hasTextShadow:{type:"boolean",default:!1},textShadow:{type:"string",default:"1px 1px 2px #fff"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},hasIcon:{type:"boolean",default:!1},iconPos:{type:"string",default:"left"},iconGap:{type:"number",default:5},iconName:{type:"string",default:"000_next"},iconPaths:{type:"array",default:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},iconColor:{type:"array",default:["#00f"]},iconStrokeColor:{type:"array",default:["#000"]},iconStrokeWidth:{type:"array",default:[0]},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""},effect:{type:"string",default:"No Effect"},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"}},Pe=[{attributes:Ie,migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save({attributes:e}){const{align:t,animation:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:Ie,save({attributes:e}){const{align:t,animation:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1,others:{d1:!0}})})}}],{name:Te}=Ne;(0,t.registerBlockType)({name:Te,...Ne},{title:(0,e.__)("Box Button (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Icon box button.","safelayout-elegant-icons"),icon:(0,y.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("defs",{children:(0,y.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,y.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,y.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,y.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,y.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,y.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M20.4 5.4H3.6C2.28 5.4 1.2 6.48 1.2 7.8V16.2C1.2 17.52 2.28 18.6 3.6 18.6H20.4C21.72 18.6 22.8 17.52 22.8 16.2V7.8C22.8 6.48 21.72 5.4 20.4 5.4ZM19.5 15.5C19.5 15.8 19.3 16 19 16H5C4.7 16 4.5 15.8 4.5 15.5V8.5C4.5 8.2 4.7 8 5 8H19C19.3 8 19.5 8.2 19.5 8.5V15.5ZM8 12.8H16V11.3H8V12.8Z"})]}),edit:function(e){const{attributes:t,setAttributes:o,clientId:n}=e,{align:i,slbbAnim:r}=t;(0,l.useLayoutEffect)((()=>{t.blockId=n}),[]);const c=Se(r),d=(0,a.useBlockProps)({className:s()("safelayout-ei-box-button-block",c?.parent),style:{textAlign:i}});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ke,{attributes:t,setAttributes:o,clientId:n}),(0,y.jsx)("div",{...d,children:(0,y.jsx)(Ae,{attributes:t,setAttributes:o})})]})},save:function({attributes:e}){const{align:t,slbbAnim:o}=e,l=Se(o),n=a.useBlockProps.save({className:s()("safelayout-ei-box-button-block",l?.parent),style:{textAlign:t}});return(0,y.jsx)("div",{...n,children:(0,y.jsx)(Ae,{attributes:e,isInEditor:!1})})},deprecated:Pe})})()})(); -
safelayout-elegant-icons/trunk/build/box-ribbon/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/safelayout-box-ribbon", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Box Ribbon (Safelayout)", 7 7 "parent": [ -
safelayout-elegant-icons/trunk/build/box-ribbon/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 13d91d6fbc046a6b5065');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '3879cf4142664adce61d'); -
safelayout-elegant-icons/trunk/build/box-ribbon/index.js
r3339507 r3370210 1 (()=>{var e={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e= r(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=r(t,a));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},470:(e,t,a)=>{"use strict";var o=a(795);t.H=o.createRoot,o.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function a(o){var l=t[o];if(void 0!==l)return l.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var l=o.length-1;l>-1&&(!e||!/^http(s?):/.test(e));)e=o[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../"})(),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,o=window.wp.blockEditor;var l=a(452),n=a.n(l);const r=window.wp.element;var s=a(470),i=a(795);const c=window.wp.components,f=window.React,d=window.wp.primitives,b=(0,f.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(d.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),p=(0,f.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(d.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),g=(0,f.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(d.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),h=(0,f.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)(d.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),x=(0,f.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)(d.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),u=(0,f.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(d.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),m=(0,f.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)(d.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,f.createElement)(d.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,f.createElement)(d.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),y=a.p+"images/ribbon-effect1.5d784eb2.webp",w=a.p+"images/ribbon-effect2.110c1a4d.webp",k=window.ReactJSXRuntime,j=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],S=e=>e&&-1!=e.indexOf("gradient"),_=(e,t)=>Math.round(e*10**t)/10**t;function C(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],r=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=t.indexOf("(")+1,i=0,c=s,f=t.length;for(;c<f;){if(s=1,"#"===t[c])l.push(t.substr(c,s=t.slice(c).search(/,|\)|\s/))),o(n,t,c+s);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,s=t.indexOf(")",c)-c+1)),o(n,t,c+s);else if(-1!=r.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?i=180-Number(t.substr(c,s=a-c)):n.push(t.substr(c,s=e-c)/100)}c+=s}i=-i*(Math.PI/180);const d=_(.5+.5*Math.sin(i),4),b=_(.5-.5*Math.cos(i),4),p=_(.5+.5*Math.sin(i+Math.PI),4),g=_(.5-.5*Math.cos(i+Math.PI),4);return"radial"===t.substr(0,6)?(0,k.jsx)(v,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(B,{id:a,colors:l,offsets:n,x1:d,y1:b,x2:p,y2:g})}function v(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r,fx:s,fy:i}=e;return(0,k.jsx)("radialGradient",{id:o,cx:l,cy:n,r,fx:s,fy:i,children:(0,k.jsx)(N,{colors:t,offsets:a})})}function B(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:r,y2:s}=e;return(0,k.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:r,y2:s,children:(0,k.jsx)(N,{colors:t,offsets:a})})}function N(e){const{colors:t,offsets:a}=e;return(0,k.jsx)(k.Fragment,{children:t.map(((e,t)=>(0,k.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function P(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let r;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>(0,k.jsxs)("defs",{children:[S(e.fill.type)&&(r=e.fill)&&("radial"===r.type.substr(0,6)?(0,k.jsx)(v,{id:l+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,k.jsx)(B,{id:l+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2})),S(e.stroke.type)&&(r=e.stroke)&&("radial"===r.type.substr(0,6)?(0,k.jsx)(v,{id:n+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,k.jsx)(B,{id:n+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}))]},t)))})}function A(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,r=`strokeGrad${t+o}`;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,f.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:S(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:S(e.stroke.type)?`url(#${r+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,f.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:S(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:S(e.stroke.type)?`url(#${r+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function z(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function E({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:r,flipHorizontal:s,flipVertical:i,hasBg:f,bgShape:d,bgShapeVal:b,rotateBg:p,size:g,color:h,strokeColor:x,strokeWidth:u,hasShadow:m,shadow:y,svgFilter:w,bgColor:v,bgStrokeColor:B,bgStrokeWidth:N,hasBgShadow:z,bgShadow:E,hasBaseShadow:I,baseShadowWidth:M,baseShadowHeight:O,baseShadowTop:R,padding:T,bgRadius:V,animation:$,slbbAnim:H,label:G,title:L,linkUrl:W,linkRel:F,linkTarget:D}=e,Z=_(.88*V,2),U=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=h.map(((e,t)=>S(e)?`url(#${X+t})`:"")),ee=x.map(((e,t)=>S(e)?`url(#${Y+t})`:"")),te=S(v)?`url(#${J})`:"",ae=S(B)?`url(#${q})`:"",oe=f?`calc(110% - ${Math.round(2.4*Number(T))}px)`:"100%",le=(m?y:"")+("none"!=w?` url(#${w})`:""),ne=z?E:null,re=0!=p?`rotate(${p}deg)`:null,se=l?.oldAnim?$:H,ie=se&&"No Animation"!=se?`sl-ei-icon-block-animation-${se}`:null,ce=(0!=r?`rotate(${r}deg)`:"")+(s||i?` scale(${s?-1:1}, ${i?-1:1})`:""),fe=""!=ce?(f||I?"translate(-50%, -50%) ":"")+ce:null,de=(0,k.jsxs)(k.Fragment,{children:[(f||I)&&(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[f&&(0,k.jsxs)("defs",{children:[""!=te&&(0,k.jsx)(C,{grad:v,id:J}),""!=ae&&(0,k.jsx)(C,{grad:B,id:q}),a&&a.before.length>0&&(0,k.jsx)(P,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,k.jsx)(P,{pos:"after",objArray:a.after,id:n})]}),I&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(P,{pos:"Base",objArray:j,id:n}),(0,k.jsx)("ellipse",{cx:"48",cy:R,rx:M/2,ry:O/2,fill:`url(#${K+0})`})]}),f&&(0,k.jsxs)("g",{style:{transform:re},children:[a&&a.before.length>0&&(0,k.jsx)(A,{pos:"before",objArray:a.before,id:n,rx:Z}),"rect"===d?(0,k.jsx)(c.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||v,stroke:ae||B,strokeWidth:N,style:{filter:ne}}):(0,k.jsx)("path",{d:b,fill:te||v,stroke:ae||B,strokeWidth:N,style:{filter:ne}}),a&&a.after.length>0&&(0,k.jsx)(A,{pos:"after",objArray:a.after,id:n,rx:Z})]})]}),(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:fe,height:oe,width:oe},children:[(0,k.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:h[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:x[t],id:Y+t},t)))]}),(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:t.map(((e,t)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||h[e.color||0],stroke:ee[e.strokeColor||0]||x[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,k.jsx)("use",{href:`#${U}`,style:{filter:le||null}}):(0,k.jsx)("use",{xlinkHref:`#${U}`,style:{filter:le||null}})]})]});return W&&!o?(0,k.jsx)("a",{style:{height:g,width:g},href:W,target:D||null,rel:F||null,"aria-label":G||null,title:L||null,className:ie,children:de}):(0,k.jsx)("div",{style:{height:g,width:g},"aria-label":G||null,title:L||null,className:ie,children:de})}function I({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,k.jsx)("div",{style:{height:l,width:l},children:(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,k.jsx)("use",{href:`#${t}`})]})})}const M=({colorValue:e,label:t})=>(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),O=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:r}=e,s={onClick:t,className:n()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,k.jsx)(c.Button,{...s,disabled:r,children:(0,k.jsx)(M,{colorValue:o,label:l})})};function R({settings:e,label:t,disabled:a,position:o}){var l;const n={colorValue:null!==(l=e.gradientValue)&&void 0!==l?l:e.colorValue,label:t,disabled:a};return(0,k.jsx)(c.Dropdown,{popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:O(n),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,k.jsx)(G,{...e})})})})}const T={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},V={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},$=[T,V],H=(0,r.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,k.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,k.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function G({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:r,onColorArrayClick:s,onGradientChange:i,onGradientArrayClick:d,colorValue:b,gradientValue:p,clearable:g,showTitle:h=!1,enableAlpha:x,headingLevel:u}){(0,f.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[T.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.ColorPalette,{value:b,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:x,colors:[],headingLevel:u}),(0,k.jsx)(H,{colors:W,onClick:s,tab:"COLOR"})]}),[V.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:S(p)?p:`linear-gradient(${p} 0%, ${p} 100%)`,onChange:e=>i(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:x,gradients:[],headingLevel:u}),(0,k.jsx)(H,{colors:F,onClick:d,img:!0,tab:"GRADIENT"})]})};return(0,k.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:n()("block-editor-color-gradient-control",a),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(c.__experimentalVStack,{spacing:1,children:[h&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(c.BaseControl.VisualLabel,{children:o})})}),(0,k.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[T]:$,initialTabName:S(p)?V.value:T.value,children:e=>{return t=e.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function L(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:r,position:s}=e;return(0,k.jsx)(R,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:r,position:s})}const W=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],F=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],D=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],Z=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],U={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},X=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:D,attributes:{...U,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:D,attributes:{...U,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:D,attributes:{...U,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:D,attributes:{...U,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:D,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:D,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:D,attributes:{...U,bgShape:"path",bgShapeVal:Z[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:D,attributes:{...U,bgShape:"path",bgShapeVal:Z[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:Z[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],Y=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],J={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},q=(d.SVG,d.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),K=e=>{let t=Y.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},Q=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},ee=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},te=(e,t,a,o,l,n)=>{let r={...q,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},s=l||r?.effect,i=s?(c=s,X.find((({name:e})=>e===c))||null):null;var c;i?.attributes&&(r={...r,...i?.attributes}),e.attributes=r,e.effectObj=i};(0,r.memo)((function({currentEffect:e,onIconClick:t}){ae("sl-ei-list-selected-effect");const a={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:X.map(((o,l)=>{const n=o.attributes.rotateBg,r=o.name;return te(a,J,n?76:92,"effectList"+l,r,o.color),(0,k.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:r===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(r===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":r,children:(0,k.jsx)(E,{attributes:a.attributes,effectObj:a.effectObj,paths:J.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,r.memo)((function({currentAnim:e,onIconClick:t}){ae("sl-ei-list-selected-anim");const a={...J,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:Y.map(((l,n)=>(a.attributes.slbbAnim=l.name,te(o,a,54,"animList"+n,null),(0,k.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,k.jsx)(E,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim));const ae=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))};function oe(e){return{hasTextShadow:!0,textShadow:e}}function le(e,t,a,o,l,n){return{posOffset:0,blockMargin:{},blockPadding:{},bgPattern:e,patternOpacity:t,hasEffectBorder:a,effectBorderColor:o,...(r=l,{hasBgShadow:!0,bgShadow:r}),...oe(n)};var r}(0,r.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return ae("sl-ei-list-selected-icon"),(0,k.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,k.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?Q(e):""),"data-icon-name":e.name,children:n<="400"?(0,k.jsx)("span",{className:ee(n),children:String.fromCharCode(59392+e.c)}):(0,k.jsx)(I,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary));const ne=e=>re.find((({name:t})=>t===e))||null,re=[{name:"effect001",attributes:{...le("pattern002",.4,!0,"#CC0000","0px 1px 1px #000","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border001",align:["left","center","right"]},{name:"effect002",attributes:{...le("pattern004",.4,!0,"#fff","0px 1px 2px #000","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border001",align:["left","center","right"]},{name:"effect003",attributes:{...le("pattern001",.25,!1,"#fff","-1px 0px 2px #000000C7","1px 1px 2px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border002",align:["left","right"]},{name:"effect004",attributes:{...le("pattern003",.5,!0,"#fff","0px 3px 1px #00000094","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border002",align:["left","right"]}],se=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ie={key:0,content:"Ribbon",align:"",textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff",classes:""};SLEImceIcons.ribbon=(e,t)=>{const a=(0,s.H)(e),{hasBgShadow:o,bgShadow:l,effect:r,classes:c}=t,f=ne(r),d={...f?.parentStyle,filter:o?"drop-shadow("+l+")":null};(0,i.flushSync)((()=>{a.render((0,k.jsx)("div",{className:n()("safelayout-ei-ribbon-block",c),style:d,children:(0,k.jsx)(pe,{attributes:t,isInEditor:!1})}))}))},SLEImceIcons.menuRibbon=(e,t,a)=>{const o=(0,s.H)(e);0===Object.keys(t).length&&(t={...ie}),o.render(a?.hasRibbon?(0,k.jsx)(ce,{att:t,others:a}):(0,k.jsxs)("div",{style:{textAlign:"center",lineHeight:1.4},children:["You must first enable the ",(0,k.jsx)("strong",{children:'"Ribbon"'}),", at the top in the ",(0,k.jsx)("strong",{children:'"Icon Box (Safelayout)"'})," section."]}))};const ce=e=>{let{att:t,others:a}=e;SLEImceIcons.attRibbon=t;const[o,l]=(0,r.useState)(t);return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(fe,{attributes:t,others:a,setAttributes:e=>{for(var o in e)t[o]=e[o];t.key++,l({...t}),SLEImceIcons.attRibbon=t,a?.callBack&&a.callBack()}})})};function fe(t){const{attributes:a,setAttributes:l,others:r}=t,{content:s,align:i,bold:f,italic:d,uppercase:y,fontSize:w,lineHeight:j,letterSpacing:S,posOffset:_,textColor:C,bgColor:v,hasBgShadow:B,bgShadow:N,hasTextShadow:P,textShadow:A,blockMargin:z,blockPadding:E,bgPattern:I,patternOpacity:M,effect:O,hasEffectBorder:R,effectBorderColor:T,classes:V}=a,$=r?.hasC?"div":o.InspectorControls,H=r?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,G=r?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null;function W(e,t){let a=e.split("px ")[t];return t<3?parseFloat(a):a}function F(e,t,a){let o=e.split("px ");return o[t]=a,o.join("px ")}return(0,k.jsxs)(k.Fragment,{children:[!r?.hasC&&(0,k.jsxs)(o.BlockControls,{children:[(0,k.jsx)(o.BlockAlignmentToolbar,{controls:ne(O)?.align,value:i,onChange:e=>l({align:e})}),(0,k.jsxs)(c.ToolbarGroup,{children:[(0,k.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,k.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!d}),isPressed:d}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!y}),isPressed:y})]})]}),r?.hasC&&(0,k.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,e.__)("Ribbon text","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:s.replaceAll("<br>","\n"),onChange:e=>l({content:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,e.__)("Ribbon","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center"}}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[(0,k.jsx)(o.BlockAlignmentToolbar,{controls:ne(O)?.align,value:i,onChange:e=>l({align:e})}),(0,k.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!f}),isPressed:f}),(0,k.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!d}),isPressed:d}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!y}),isPressed:y})]})})]}),(0,k.jsxs)($,{children:[(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsx)(c.PanelBody,{title:(0,e.__)("Ribbon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,k.jsx)(de,{currentEffect:O,onIconClick:e=>{const t=e.currentTarget,a=t.getAttribute("data-effect-name"),o=ne(a);ae("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),l({effect:a,...o?.attributes})}})})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Size and Position","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}],onChange:e=>l({fontSize:e}),value:w}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,k.jsx)(o.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:j}),(0,k.jsx)(o.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:S})]}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Position","safelayout-elegant-icons"),min:-500,max:500,value:_,onChange:e=>l({posOffset:e}),disabled:ne(O)?.pos})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,k.jsx)(L,{attribute:v,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),position:{offset:r?.popoverOffset}}),(0,k.jsx)(L,{attribute:C,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,position:{offset:r?.popoverOffset}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(c.ToggleControl,{checked:R,help:(0,e.__)("Add a border to the ribbon.","safelayout-elegant-icons"),label:(0,e.__)("Ribbon border","safelayout-elegant-icons"),onChange:e=>l({hasEffectBorder:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,k.jsx)(L,{attribute:T,label:(0,e.__)("Border color","safelayout-elegant-icons"),click:e=>l({effectBorderColor:e.target.style.background}),change:e=>e&&l({effectBorderColor:e}),disabled:!R,onlySolid:!0,position:{offset:r?.popoverOffset}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Background pattern","safelayout-elegant-icons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Pattern opacity","safelayout-elegant-icons"),min:.1,max:1,step:.05,className:"sl-ei-icon-block-no-margin-bottom",value:M,withInputField:!1,disabled:"No Pattern"===I,onChange:e=>l({patternOpacity:e})}),(0,k.jsx)(be,{currentPattern:I,onIconClick:e=>{const t=e.currentTarget,a=t.getAttribute("data-pattern-name");ae("sl-ei-list-selected-pattern"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-pattern"),l({bgPattern:a})}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.ToggleControl,{checked:B,label:(0,e.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasBgShadow:e})}),(0,k.jsx)(L,{attribute:W(N,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({bgShadow:F(N,3,e.target.style.background)}),change:e=>l({bgShadow:F(N,3,e)}),disabled:!B,position:{offset:r?.popoverOffset}}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:W(N,2),disabled:!B,onChange:e=>l({bgShadow:F(N,2,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:W(N,0),disabled:!B,onChange:e=>l({bgShadow:F(N,0,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:W(N,1),disabled:!B,onChange:e=>l({bgShadow:F(N,1,e)})})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Text shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.ToggleControl,{checked:P,label:(0,e.__)("Text shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasTextShadow:e})}),(0,k.jsx)(L,{attribute:W(A,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({textShadow:F(A,3,e.target.style.background)}),change:e=>l({textShadow:F(A,3,e)}),disabled:!P,position:{offset:r?.popoverOffset}}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:W(A,2),disabled:!P,onChange:e=>l({textShadow:F(A,2,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:W(A,0),disabled:!P,onChange:e=>l({textShadow:F(A,0,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:W(A,1),disabled:!P,onChange:e=>l({textShadow:F(A,1,e)})})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,k.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:z,onChange:e=>l({blockMargin:e}),inputProps:{min:-300}}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:E,onChange:e=>l({blockPadding:e}),inputProps:{min:-300}})]})}),r?.hasC&&(0,k.jsx)(c.Panel,{className:n()(G),children:(0,k.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:m,className:"sl-ei-icon-block-link-panel",children:(0,k.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:V||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,k.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,k.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})]})}const de=(0,r.memo)((function({currentEffect:e,onIconClick:t}){return ae("sl-ei-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-ei-icon-block-effects-container",children:[(0,k.jsxs)("div",{class:"sl-ei-ribbon-block-effect-images",children:[(0,k.jsx)("img",{src:y}),(0,k.jsx)("img",{src:w})]}),re.map(((a,o)=>{const l=a.name;return(0,k.jsx)("div",{style:{display:"inline-block",position:"relative"},id:l===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist "+(l===e?" sl-ei-list-selected":""),onClick:t,title:l,"data-effect-name":l},o)}))]})}),((e,t)=>e.currentEffect===t.currentEffect)),be=(0,r.memo)((function({currentPattern:e,onIconClick:t}){return ae("sl-ei-list-selected-pattern"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"155px"},children:se.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:a===e?"sl-ei-list-selected-pattern":null,className:"sl-ei-icon-block-animlist"+(a===e?" sl-ei-list-selected":""),onClick:t,title:a,"data-pattern-name":a,children:(0,k.jsx)("div",{className:"sl-ei-ribbon-block-pattern sl-ei-ribbon-block-back-pattern-"+a.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},o)))})}),((e,t)=>e.currentPattern===t.currentPattern));function pe({attributes:t,setAttributes:a,isInEditor:l=!0}){const{align:r,bold:s,italic:i,uppercase:c,fontSize:f,lineHeight:d,letterSpacing:b,posOffset:p,textColor:g,bgColor:h,content:x,hasTextShadow:u,textShadow:m,blockMargin:y,blockPadding:w,bgPattern:j,patternOpacity:S,effect:_,hasEffectBorder:C,effectBorderColor:v}=t;let B={...z(null,y,w),fontWeight:s?"bold":null,fontStyle:i?"italic":null,textTransform:c?"uppercase":null,"--sl-ei-box-ribbon-text-color":g,"--sl-ei-box-ribbon-background-color":h,"--sl-ei-box-ribbon-pattern-opacity":String(S),"--sl-ei-box-ribbon-pos-offset":p+"px","--sl-ei-box-ribbon-effect-border-color":C?v:null,textShadow:u?m:null,fontSize:"24px"!=f?f:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=b?b:null};const N=ne(_),P="No Pattern"!=j?`sl-ei-ribbon-block-pattern sl-ei-ribbon-block-back-pattern-${j}`:"";return(0,k.jsxs)("div",{style:B,className:n()(`sl-ei-ribbon-block-${_}`,`sl-ei-ribbon-block-${_}-${r}`),children:[("No Pattern"!=j||C)&&(0,k.jsx)("span",{className:n()(P,C?N?.effectBorder:"")}),l?(0,k.jsx)(o.RichText,{tagName:"div",value:x,allowedFormats:["safelayout/text-icon"],onChange:e=>a({content:e}),placeholder:(0,e.__)("Ribbon","safelayout-elegant-icons")}):(0,k.jsx)(o.RichText.Content,{value:x})]})}const ge=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-box-ribbon","version":"1.3.0","title":"Box Ribbon (Safelayout)","parent":["safelayout/safelayout-icon-box"],"category":"blocks-safelayout-category","description":"Icon box ribbon.","supports":{"html":false},"attributes":{"content":{"type":"string","default":"Ribbon"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"bgColor":{"type":"string","default":"#ea4335"},"bold":{"type":"boolean","default":false},"italic":{"type":"boolean","default":false},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"24px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"posOffset":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"1px 1px 2px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"effect001"},"hasEffectBorder":{"type":"boolean","default":false},"effectBorderColor":{"type":"string","default":"#fff"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),{name:he}=ge;(0,t.registerBlockType)({name:he,...ge},{title:(0,e.__)("Box Ribbon (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Icon box ribbon.","safelayout-elegant-icons"),icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M5.35 5.53 6 8.29 5.35 11.03 7.76 12.52 9.24 14.93 12 14.29 14.76 14.93 16.24 12.52 18.65 11.03 18 8.29 18.65 5.53 16.25 4.04 14.76 1.63 12 2.29 9.25 1.64 7.75 4.04ZM12.01 13.13C9.35 13.13 7.2 10.99 7.2 8.32 7.2 5.68 9.35 3.53 12.01 3.53 14.65 3.53 16.8 5.68 16.8 8.32 16.8 10.99 14.65 13.13 12.01 13.13ZM11.99 11.93C10 11.93 8.4 10.33 8.4 8.33 8.4 6.35 10 4.73 11.99 4.73S15.6 6.35 15.6 8.33C15.6 10.33 13.98 11.93 11.99 11.93ZM16.6 13.25 15.06 15.94 12.56 15.38 15.6 22.37 17.28 19.73H20.28ZM7.36 13.34 8.86 16.04 11.41 15.43 8.4 22.37 6.72 19.73H3.72Z"})]}),edit:function(e){const{attributes:t,setAttributes:a}=e,{hasBgShadow:l,bgShadow:r,effect:s}=t,i=ne(s),c={...i?.parentStyle,filter:l?"drop-shadow("+r+")":null},f=(0,o.useBlockProps)({className:n()("safelayout-ei-ribbon-block"),style:c});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(fe,{attributes:t,setAttributes:a}),(0,k.jsx)("div",{...f,children:(0,k.jsx)(pe,{attributes:t,setAttributes:a})})]})},save:function({attributes:e}){const{hasBgShadow:t,bgShadow:a,effect:l}=e,r=ne(l),s={...r?.parentStyle,filter:t?"drop-shadow("+a+")":null},i=o.useBlockProps.save({className:n()("safelayout-ei-ribbon-block"),style:s});return(0,k.jsx)("div",{...i,children:(0,k.jsx)(pe,{attributes:e,isInEditor:!1})})}})})()})();1 (()=>{var e={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=s(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=s(t,a));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},470:(e,t,a)=>{"use strict";var o=a(795);t.H=o.createRoot,o.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function a(o){var l=t[o];if(void 0!==l)return l.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var l=o.length-1;l>-1&&(!e||!/^http(s?):/.test(e));)e=o[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../"})(),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,o=window.wp.blockEditor;var l=a(452),n=a.n(l);const s=window.wp.element;var r=a(470),i=a(795);const c=window.wp.components,d=window.React,f=window.wp.primitives,b=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),p=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),g=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),h=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),x=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),u=(0,d.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(f.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),m=(0,d.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(f.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,d.createElement)(f.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,d.createElement)(f.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),y=a.p+"images/ribbon-effect1.5d784eb2.webp",w=a.p+"images/ribbon-effect2.110c1a4d.webp",k=window.ReactJSXRuntime,j=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],S=e=>e&&-1!=e.indexOf("gradient"),_=(e,t)=>Math.round(e*10**t)/10**t;function C(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],r=t.indexOf("(")+1,i=0,c=r,d=t.length;for(;c<d;){if(r=1,"#"===t[c])l.push(t.substr(c,r=t.slice(c).search(/,|\)|\s/))),o(n,t,c+r);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,r=t.indexOf(")",c)-c+1)),o(n,t,c+r);else if(-1!=s.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?i=180-Number(t.substr(c,r=a-c)):n.push(t.substr(c,r=e-c)/100)}c+=r}i=-i*(Math.PI/180);const f=_(.5+.5*Math.sin(i),4),b=_(.5-.5*Math.cos(i),4),p=_(.5+.5*Math.sin(i+Math.PI),4),g=_(.5-.5*Math.cos(i+Math.PI),4);return"radial"===t.substr(0,6)?(0,k.jsx)(v,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(B,{id:a,colors:l,offsets:n,x1:f,y1:b,x2:p,y2:g})}function v(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r:s,fx:r,fy:i}=e;return(0,k.jsx)("radialGradient",{id:o,cx:l,cy:n,r:s,fx:r,fy:i,children:(0,k.jsx)(N,{colors:t,offsets:a})})}function B(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:s,y2:r}=e;return(0,k.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:s,y2:r,children:(0,k.jsx)(N,{colors:t,offsets:a})})}function N(e){const{colors:t,offsets:a}=e;return(0,k.jsx)(k.Fragment,{children:t.map(((e,t)=>(0,k.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function P(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let s;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>(0,k.jsxs)("defs",{children:[S(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,k.jsx)(v,{id:l+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,k.jsx)(B,{id:l+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),S(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,k.jsx)(v,{id:n+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,k.jsx)(B,{id:n+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},t)))})}function A(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,s=`strokeGrad${t+o}`;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,d.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:S(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:S(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,d.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:S(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:S(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function z(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function E({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:s,flipHorizontal:r,flipVertical:i,hasBg:d,bgShape:f,bgShapeVal:b,rotateBg:p,size:g,color:h,strokeColor:x,strokeWidth:u,hasShadow:m,shadow:y,svgFilter:w,bgColor:v,bgStrokeColor:B,bgStrokeWidth:N,hasBgShadow:z,bgShadow:E,hasBaseShadow:I,baseShadowWidth:M,baseShadowHeight:R,baseShadowTop:O,padding:T,bgRadius:V,animation:$,slbbAnim:H,label:W,title:G,linkUrl:L,linkRel:F,linkTarget:D}=e,Z=_(.88*V,2),U=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=h.map(((e,t)=>S(e)?`url(#${X+t})`:"")),ee=x.map(((e,t)=>S(e)?`url(#${Y+t})`:"")),te=S(v)?`url(#${J})`:"",ae=S(B)?`url(#${q})`:"",oe=d?`calc(110% - ${Math.round(2.4*Number(T))}px)`:"100%",le=(m?y:"")+("none"!=w?` url(#${w})`:""),ne=z?E:null,se=0!=p?`rotate(${p}deg)`:null,re=l?.oldAnim?$:H,ie=re&&"No Animation"!=re?`sl-ei-icon-block-animation-${re}`:null,ce=(0!=s?`rotate(${s}deg)`:"")+(r||i?` scale(${r?-1:1}, ${i?-1:1})`:""),de=""!=ce?(d||I?"translate(-50%, -50%) ":"")+ce:null,fe=(0,k.jsxs)(k.Fragment,{children:[(d||I)&&(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[d&&(0,k.jsxs)("defs",{children:[""!=te&&(0,k.jsx)(C,{grad:v,id:J}),""!=ae&&(0,k.jsx)(C,{grad:B,id:q}),a&&a.before.length>0&&(0,k.jsx)(P,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,k.jsx)(P,{pos:"after",objArray:a.after,id:n})]}),I&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(P,{pos:"Base",objArray:j,id:n}),(0,k.jsx)("ellipse",{cx:"48",cy:O,rx:M/2,ry:R/2,fill:`url(#${K+0})`})]}),d&&(0,k.jsxs)("g",{style:{transform:se},children:[a&&a.before.length>0&&(0,k.jsx)(A,{pos:"before",objArray:a.before,id:n,rx:Z}),"rect"===f?(0,k.jsx)(c.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||v,stroke:ae||B,strokeWidth:N,style:{filter:ne}}):(0,k.jsx)("path",{d:b,fill:te||v,stroke:ae||B,strokeWidth:N,style:{filter:ne}}),a&&a.after.length>0&&(0,k.jsx)(A,{pos:"after",objArray:a.after,id:n,rx:Z})]})]}),(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:oe,width:oe},children:[(0,k.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:h[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:x[t],id:Y+t},t)))]}),(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:t.map(((e,t)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||h[e.color||0],stroke:ee[e.strokeColor||0]||x[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,k.jsx)("use",{href:`#${U}`,style:{filter:le||null}}):(0,k.jsx)("use",{xlinkHref:`#${U}`,style:{filter:le||null}})]})]});return L&&!o?(0,k.jsx)("a",{style:{height:g,width:g},href:L,target:D||null,rel:F||null,"aria-label":W||null,title:G||null,className:ie,children:fe}):(0,k.jsx)("div",{style:{height:g,width:g},"aria-label":W||null,title:G||null,className:ie,children:fe})}function I({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,k.jsx)("div",{style:{height:l,width:l},children:(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,k.jsx)("use",{href:`#${t}`})]})})}const M=({colorValue:e,label:t})=>(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),R=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:s}=e,r={onClick:t,className:n()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,k.jsx)(c.Button,{...r,disabled:s,children:(0,k.jsx)(M,{colorValue:o,label:l})})};function O({settings:e,label:t,disabled:a,position:o,style:l}){var n;const s={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:t,disabled:a};return(0,k.jsx)(c.Dropdown,{style:l,popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:R(s),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,k.jsx)(W,{...e})})})})}const T={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},V={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},$=[T,V],H=(0,s.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,k.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,k.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function W({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:s,onColorArrayClick:r,onGradientChange:i,onGradientArrayClick:f,colorValue:b,gradientValue:p,clearable:g,showTitle:h=!1,enableAlpha:x,headingLevel:u}){(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[T.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.ColorPalette,{value:b,onChange:e=>s(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:x,colors:[],headingLevel:u}),(0,k.jsx)(H,{colors:L,onClick:r,tab:"COLOR"})]}),[V.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:S(p)?p:`linear-gradient(${p} 0%, ${p} 100%)`,onChange:e=>i(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:x,gradients:[],headingLevel:u}),(0,k.jsx)(H,{colors:F,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,k.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:n()("block-editor-color-gradient-control",a),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(c.__experimentalVStack,{spacing:1,children:[h&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(c.BaseControl.VisualLabel,{children:o})})}),(0,k.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[T]:$,initialTabName:S(p)?V.value:T.value,children:e=>{return t=e.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function G(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:s,position:r,style:i}=e;return(0,k.jsx)(O,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:s,position:r,style:i})}const L=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],F=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],D=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],Z=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],U={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},X=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:D,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:D,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:D,attributes:{...U,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:D,attributes:{...U,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:D,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:D,attributes:{...U,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:D,attributes:{...U,bgShape:"path",bgShapeVal:Z[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:D,attributes:{...U,bgShape:"path",bgShapeVal:Z[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:Z[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],Y=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],J={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},q=(f.SVG,f.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),K=e=>{let t=Y.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},Q=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},ee=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},te=(e,t,a,o,l,n)=>{let s={...q,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},r=l||s?.effect,i=r?(c=r,X.find((({name:e})=>e===c))||null):null;var c;i?.attributes&&(s={...s,...i?.attributes}),e.attributes=s,e.effectObj=i};(0,s.memo)((function({currentEffect:e,onIconClick:t}){ae("sl-ei-list-selected-effect");const a={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:X.map(((o,l)=>{const n=o.attributes.rotateBg,s=o.name;return te(a,J,n?76:92,"effectList"+l,s,o.color),(0,k.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":s,children:(0,k.jsx)(E,{attributes:a.attributes,effectObj:a.effectObj,paths:J.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,s.memo)((function({currentAnim:e,onIconClick:t}){ae("sl-ei-list-selected-anim");const a={...J,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:Y.map(((l,n)=>(a.attributes.slbbAnim=l.name,te(o,a,54,"animList"+n,null),(0,k.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,k.jsx)(E,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim));const ae=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))};function oe(e){return{hasTextShadow:!0,textShadow:e}}function le(e,t,a,o,l,n){return{posOffset:0,blockMargin:{},blockPadding:{},bgPattern:e,patternOpacity:t,hasEffectBorder:a,effectBorderColor:o,...(s=l,{hasBgShadow:!0,bgShadow:s}),...oe(n)};var s}(0,s.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return ae("sl-ei-list-selected-icon"),(0,k.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,k.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?Q(e):""),"data-icon-name":e.name,children:n<="400"?(0,k.jsx)("span",{className:ee(n),children:String.fromCharCode(59392+e.c)}):(0,k.jsx)(I,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary));const ne=e=>se.find((({name:t})=>t===e))||null,se=[{name:"effect001",attributes:{...le("pattern002",.4,!0,"#CC0000","0px 1px 1px #000","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border001",align:["left","center","right"]},{name:"effect002",attributes:{...le("pattern004",.4,!0,"#fff","0px 1px 2px #000","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border001",align:["left","center","right"]},{name:"effect003",attributes:{...le("pattern001",.25,!1,"#fff","-1px 0px 2px #000000C7","1px 1px 2px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border002",align:["left","right"]},{name:"effect004",attributes:{...le("pattern003",.5,!0,"#fff","0px 3px 1px #00000094","1px 1px 1px #fff")},effectBorder:"sl-ei-ribbon-block-effect-border002",align:["left","right"]}],re=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ie={key:0,content:"Ribbon",align:"",textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff",classes:""};SLEImceIcons.ribbon=(e,t)=>{const a=(0,r.H)(e),{hasBgShadow:o,bgShadow:l,effect:s,classes:c}=t,d=ne(s),f={...d?.parentStyle,filter:o?"drop-shadow("+l+")":null};(0,i.flushSync)((()=>{a.render((0,k.jsx)("div",{className:n()("safelayout-ei-ribbon-block",c),style:f,children:(0,k.jsx)(pe,{attributes:t,isInEditor:!1})}))}))},SLEImceIcons.menuRibbon=(e,t,a)=>{const o=(0,r.H)(e);0===Object.keys(t).length&&(t={...ie}),o.render(a?.hasRibbon?(0,k.jsx)(ce,{att:t,others:a}):(0,k.jsxs)("div",{style:{textAlign:"center",lineHeight:1.4},children:["You must first enable the ",(0,k.jsx)("strong",{children:'"Ribbon"'}),", at the top in the ",(0,k.jsx)("strong",{children:'"Icon Box (Safelayout)"'})," section."]}))};const ce=e=>{let{att:t,others:a}=e;SLEImceIcons.attRibbon=t;const[o,l]=(0,s.useState)(t);return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(de,{attributes:t,others:a,setAttributes:e=>{for(var o in e)t[o]=e[o];t.key++,l({...t}),SLEImceIcons.attRibbon=t,a?.callBack&&a.callBack()}})})};function de(t){const{attributes:a,setAttributes:l,others:s}=t,{content:r,align:i,bold:d,italic:f,uppercase:y,fontSize:w,lineHeight:j,letterSpacing:S,posOffset:_,textColor:C,bgColor:v,hasBgShadow:B,bgShadow:N,hasTextShadow:P,textShadow:A,blockMargin:z,blockPadding:E,bgPattern:I,patternOpacity:M,effect:R,hasEffectBorder:O,effectBorderColor:T,classes:V}=a,$=s?.hasC?"div":o.InspectorControls,H=s?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,W=s?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null;function L(e,t){let a=e.split("px ")[t];return t<3?parseFloat(a):a}function F(e,t,a){let o=e.split("px ");return o[t]=a,o.join("px ")}return(0,k.jsxs)(k.Fragment,{children:[!s?.hasC&&(0,k.jsxs)(o.BlockControls,{children:[(0,k.jsx)(o.BlockAlignmentToolbar,{controls:ne(R)?.align,value:i,onChange:e=>l({align:e})}),(0,k.jsxs)(c.ToolbarGroup,{children:[(0,k.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!d}),isPressed:d}),(0,k.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!f}),isPressed:f}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!y}),isPressed:y})]})]}),s?.hasC&&(0,k.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,e.__)("Ribbon text","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:r.replaceAll("<br>","\n"),onChange:e=>l({content:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,e.__)("Ribbon","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center"}}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsxs)(c.ToolbarGroup,{style:{border:"none"},children:[(0,k.jsx)(o.BlockAlignmentToolbar,{controls:ne(R)?.align,value:i,onChange:e=>l({align:e})}),(0,k.jsx)(c.ToolbarButton,{icon:b,label:(0,e.__)("Bold","safelayout-elegant-icons"),onClick:()=>l({bold:!d}),isPressed:d}),(0,k.jsx)(c.ToolbarButton,{icon:p,label:(0,e.__)("Italic","safelayout-elegant-icons"),onClick:()=>l({italic:!f}),isPressed:f}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,e.__)("Uppercase","safelayout-elegant-icons"),onClick:()=>l({uppercase:!y}),isPressed:y})]})})]}),(0,k.jsxs)($,{children:[(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsx)(c.PanelBody,{title:(0,e.__)("Ribbon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,k.jsx)(fe,{currentEffect:R,onIconClick:e=>{const t=e.currentTarget,a=t.getAttribute("data-effect-name"),o=ne(a);ae("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),l({effect:a,...o?.attributes})}})})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Size and Position","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}],onChange:e=>l({fontSize:e}),value:w}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,k.jsx)(o.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({lineHeight:e}),value:j}),(0,k.jsx)(o.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:e=>l({letterSpacing:e}),value:S})]}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Position","safelayout-elegant-icons"),min:-500,max:500,value:_,onChange:e=>l({posOffset:e}),disabled:ne(R)?.pos})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,k.jsx)(G,{attribute:v,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>l({bgColor:e.target.style.background}),change:e=>e&&l({bgColor:e}),position:{offset:s?.popoverOffset}}),(0,k.jsx)(G,{attribute:C,label:(0,e.__)("Text color","safelayout-elegant-icons"),click:e=>l({textColor:e.target.style.background}),change:e=>e&&l({textColor:e}),onlySolid:!0,position:{offset:s?.popoverOffset}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(c.ToggleControl,{checked:O,help:(0,e.__)("Add a border to the ribbon.","safelayout-elegant-icons"),label:(0,e.__)("Ribbon border","safelayout-elegant-icons"),onChange:e=>l({hasEffectBorder:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,k.jsx)(G,{attribute:T,label:(0,e.__)("Border color","safelayout-elegant-icons"),click:e=>l({effectBorderColor:e.target.style.background}),change:e=>e&&l({effectBorderColor:e}),disabled:!O,onlySolid:!0,position:{offset:s?.popoverOffset}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Background pattern","safelayout-elegant-icons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Pattern opacity","safelayout-elegant-icons"),min:.1,max:1,step:.05,className:"sl-ei-icon-block-no-margin-bottom",value:M,withInputField:!1,disabled:"No Pattern"===I,onChange:e=>l({patternOpacity:e})}),(0,k.jsx)(be,{currentPattern:I,onIconClick:e=>{const t=e.currentTarget,a=t.getAttribute("data-pattern-name");ae("sl-ei-list-selected-pattern"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-pattern"),l({bgPattern:a})}})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.ToggleControl,{checked:B,label:(0,e.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasBgShadow:e})}),(0,k.jsx)(G,{attribute:L(N,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({bgShadow:F(N,3,e.target.style.background)}),change:e=>l({bgShadow:F(N,3,e)}),disabled:!B,position:{offset:s?.popoverOffset}}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:L(N,2),disabled:!B,onChange:e=>l({bgShadow:F(N,2,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L(N,0),disabled:!B,onChange:e=>l({bgShadow:F(N,0,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L(N,1),disabled:!B,onChange:e=>l({bgShadow:F(N,1,e)})})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Text shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.ToggleControl,{checked:P,label:(0,e.__)("Text shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>l({hasTextShadow:e})}),(0,k.jsx)(G,{attribute:L(A,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>l({textShadow:F(A,3,e.target.style.background)}),change:e=>l({textShadow:F(A,3,e)}),disabled:!P,position:{offset:s?.popoverOffset}}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:L(A,2),disabled:!P,onChange:e=>l({textShadow:F(A,2,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L(A,0),disabled:!P,onChange:e=>l({textShadow:F(A,0,e)})}),(0,k.jsx)(c.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L(A,1),disabled:!P,onChange:e=>l({textShadow:F(A,1,e)})})]})}),(0,k.jsx)(c.Panel,{className:n()(H),children:(0,k.jsxs)(c.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,k.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:z,onChange:e=>l({blockMargin:e}),inputProps:{min:-300}}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:E,onChange:e=>l({blockPadding:e}),inputProps:{min:-300}})]})}),s?.hasC&&(0,k.jsx)(c.Panel,{className:n()(W),children:(0,k.jsx)(c.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:m,className:"sl-ei-icon-block-link-panel",children:(0,k.jsx)(c.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:V||"",onChange:e=>l({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,k.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,k.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})]})}const fe=(0,s.memo)((function({currentEffect:e,onIconClick:t}){return ae("sl-ei-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-ei-icon-block-effects-container",children:[(0,k.jsxs)("div",{class:"sl-ei-ribbon-block-effect-images",children:[(0,k.jsx)("img",{src:y}),(0,k.jsx)("img",{src:w})]}),se.map(((a,o)=>{const l=a.name;return(0,k.jsx)("div",{style:{display:"inline-block",position:"relative"},id:l===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist "+(l===e?" sl-ei-list-selected":""),onClick:t,title:l,"data-effect-name":l},o)}))]})}),((e,t)=>e.currentEffect===t.currentEffect)),be=(0,s.memo)((function({currentPattern:e,onIconClick:t}){return ae("sl-ei-list-selected-pattern"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"155px"},children:re.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:a===e?"sl-ei-list-selected-pattern":null,className:"sl-ei-icon-block-animlist"+(a===e?" sl-ei-list-selected":""),onClick:t,title:a,"data-pattern-name":a,children:(0,k.jsx)("div",{className:"sl-ei-ribbon-block-pattern sl-ei-ribbon-block-back-pattern-"+a.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},o)))})}),((e,t)=>e.currentPattern===t.currentPattern));function pe({attributes:t,setAttributes:a,isInEditor:l=!0}){const{align:s,bold:r,italic:i,uppercase:c,fontSize:d,lineHeight:f,letterSpacing:b,posOffset:p,textColor:g,bgColor:h,content:x,hasTextShadow:u,textShadow:m,blockMargin:y,blockPadding:w,bgPattern:j,patternOpacity:S,effect:_,hasEffectBorder:C,effectBorderColor:v}=t;let B={...z(null,y,w),fontWeight:r?"bold":null,fontStyle:i?"italic":null,textTransform:c?"uppercase":null,"--sl-ei-box-ribbon-text-color":g,"--sl-ei-box-ribbon-background-color":h,"--sl-ei-box-ribbon-pattern-opacity":String(S),"--sl-ei-box-ribbon-pos-offset":p+"px","--sl-ei-box-ribbon-effect-border-color":C?v:null,textShadow:u?m:null,fontSize:"24px"!=d?d:null,lineHeight:"1.5"!=f?f:null,letterSpacing:"0px"!=b?b:null};const N=ne(_),P="No Pattern"!=j?`sl-ei-ribbon-block-pattern sl-ei-ribbon-block-back-pattern-${j}`:"";return(0,k.jsxs)("div",{style:B,className:n()(`sl-ei-ribbon-block-${_}`,`sl-ei-ribbon-block-${_}-${s}`),children:[("No Pattern"!=j||C)&&(0,k.jsx)("span",{className:n()(P,C?N?.effectBorder:"")}),l?(0,k.jsx)(o.RichText,{tagName:"div",value:x,allowedFormats:["safelayout/text-icon"],onChange:e=>a({content:e}),placeholder:(0,e.__)("Ribbon","safelayout-elegant-icons")}):(0,k.jsx)(o.RichText.Content,{value:x})]})}const ge=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-box-ribbon","version":"1.4.0","title":"Box Ribbon (Safelayout)","parent":["safelayout/safelayout-icon-box"],"category":"blocks-safelayout-category","description":"Icon box ribbon.","supports":{"html":false},"attributes":{"content":{"type":"string","default":"Ribbon"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"bgColor":{"type":"string","default":"#ea4335"},"bold":{"type":"boolean","default":false},"italic":{"type":"boolean","default":false},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"24px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"posOffset":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"1px 1px 2px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"effect001"},"hasEffectBorder":{"type":"boolean","default":false},"effectBorderColor":{"type":"string","default":"#fff"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),{name:he}=ge;(0,t.registerBlockType)({name:he,...ge},{title:(0,e.__)("Box Ribbon (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Icon box ribbon.","safelayout-elegant-icons"),icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M5.35 5.53 6 8.29 5.35 11.03 7.76 12.52 9.24 14.93 12 14.29 14.76 14.93 16.24 12.52 18.65 11.03 18 8.29 18.65 5.53 16.25 4.04 14.76 1.63 12 2.29 9.25 1.64 7.75 4.04ZM12.01 13.13C9.35 13.13 7.2 10.99 7.2 8.32 7.2 5.68 9.35 3.53 12.01 3.53 14.65 3.53 16.8 5.68 16.8 8.32 16.8 10.99 14.65 13.13 12.01 13.13ZM11.99 11.93C10 11.93 8.4 10.33 8.4 8.33 8.4 6.35 10 4.73 11.99 4.73S15.6 6.35 15.6 8.33C15.6 10.33 13.98 11.93 11.99 11.93ZM16.6 13.25 15.06 15.94 12.56 15.38 15.6 22.37 17.28 19.73H20.28ZM7.36 13.34 8.86 16.04 11.41 15.43 8.4 22.37 6.72 19.73H3.72Z"})]}),edit:function(e){const{attributes:t,setAttributes:a}=e,{hasBgShadow:l,bgShadow:s,effect:r}=t,i=ne(r),c={...i?.parentStyle,filter:l?"drop-shadow("+s+")":null},d=(0,o.useBlockProps)({className:n()("safelayout-ei-ribbon-block"),style:c});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(de,{attributes:t,setAttributes:a}),(0,k.jsx)("div",{...d,children:(0,k.jsx)(pe,{attributes:t,setAttributes:a})})]})},save:function({attributes:e}){const{hasBgShadow:t,bgShadow:a,effect:l}=e,s=ne(l),r={...s?.parentStyle,filter:t?"drop-shadow("+a+")":null},i=o.useBlockProps.save({className:n()("safelayout-ei-ribbon-block"),style:r});return(0,k.jsx)("div",{...i,children:(0,k.jsx)(pe,{attributes:e,isInEditor:!1})})}})})()})(); -
safelayout-elegant-icons/trunk/build/container/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/safelayout-container", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Container (Safelayout)", 7 7 "category": "blocks-safelayout-category", -
safelayout-elegant-icons/trunk/build/container/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => ' 6305e3d940bcbdbdddb1');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => 'f309725aea7ccb1374fa'); -
safelayout-elegant-icons/trunk/build/container/index.js
r3339507 r3370210 1 (()=>{var e={452:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,i(o)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=r(t,o));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},470:(e,t,o)=>{"use strict";var a=o(795);t.H=a.createRoot,a.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function o(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,a=window.React,n=window.wp.primitives,i=(0,a.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(n.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})),r=window.wp.data,l=window.wp.blockEditor;var s=o(452),c=o.n(s);const d=window.ReactJSXRuntime;function f({attributes:e,isInEditor:t=!0,others:o}){const{TagName1:a,TagName2:n,TagHelper:i,className1:r,className2:s,helperCName:f,style1:p,style2:b,helperStyle:h}=e,g=""!=r?`sl-ei-container-block-${r}`:null,x=""!=s?`sl-ei-container-block-${s}`:null,u=o?.children?null:t?(0,l.useBlockProps)():l.useBlockProps.save(),{children:m,...y}=o?.children?{children:o.children}:t?(0,l.useInnerBlocksProps)(u):l.useInnerBlocksProps.save(u),k=(0,d.jsx)(n,{className:x,style:b,children:m});return(0,d.jsxs)(a,{...y,className:c()("sl-ei-container-block",g),style:p,children:[""!=i&&(0,d.jsx)(i,{className:c()(f),style:h}),""!=n?k:m]})}const p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-container","version":"1. 3.0","title":"Container (Safelayout)","category":"blocks-safelayout-category","parent":["safelayout/safelayout-icon-box"],"description":"Container block.","supports":{"html":false},"attributes":{"TagName1":{"type":"string","default":"div"},"TagName2":{"type":"string","default":""},"TagHelper":{"type":"string","default":""},"className1":{"type":"string","default":""},"className2":{"type":"string","default":""},"helperCName":{"type":"string","default":""},"style1":{"type":"object"},"style2":{"type":"object"},"helperStyle":{"type":"object"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),b={iconPos:"top",hasBg:!0,hasBtn:!0,hasRibbon:!1,hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff"},h={align:void 0,textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff"};(0,e.__)("Color","safelayout-elegant-icons"),(0,e.__)("Inner shadow","safelayout-elegant-icons"),(0,e.__)("Color","safelayout-elegant-icons"),(0,e.__)("Inner shadow","safelayout-elegant-icons");function g(e){if(e)return{hasBgShadow:!0,bgShadow:e}}function x(e){if(e)return{hasTextShadow:!0,textShadow:e}}function u(e,t,o,a,n,i){return{...b,hasRibbon:e,...g(t),bgPattern:o,patternOpacity:a,effect:n,slbbAnim:i}}function m(e,t,o,a,n,i,r,l,s,c,d){return{...h,align:e,textColor:t,bold:o,fontSize:a,posOffset:n,...g(i),...x(r),bgPattern:l,patternOpacity:s,hasEffectBorder:c,effectBorderColor:d}}u(!0,"0px 1px 3px #000","pattern002",.5,"effect001","background-color"),m("left","#000",!0,"16px",15,"0px 1px 1px #000","1px 1px 1px #fff","pattern002",.4,!0,"#CC0000"),u(!1,"0px 0px 4px #000","pattern001",.3,"effect002","effect-color"),u(!0,"0px 1px 6px #000000b0","No Pattern",.2,"effect003","slide-top"),m("right","#00f",!0,"16px",0,"0px 1px 1px #000","1px 1px 1px #fff","pattern001",.3,!0,"#CC0000"),u(!0,"-2px 2px 5px #000","pattern003",.25,"effect004","slide-right"),m(void 0,"#00f",!0,"16px",4,"0px 1px 2px #000","1px 1px 1px #fff","pattern002",.3,!0,"#fff"),u(!0,"0px 2px 5px #000","pattern002",.3,"effect005","slide-bottom"),m("right","#00f",!0,"16px",0,"0px 1px 2px #000","1px 1px 1px #fff","pattern004",.4,!0,"#fff"),(0,e.__)("Fill color","safelayout-elegant-icons"),(0,e.__)("Dots color","safelayout-elegant-icons"),u(!0,"0px 0px 4px #000","pattern005",.1,"effect006","blue-glow"),m(void 0,"#00f",!0,"18px",22,"1px 1px 1px #000","1px 1px 1px #fff","pattern004",.3,!0,"#fff"),u(!1,"2px 3px 5px #000","pattern001",.5,"effect007","split-horizontal"),(0,e.__)("Animation Background color","safelayout-elegant-icons"),(0,e.__)("Animation Effect color","safelayout-elegant-icons"),(0,e.__)("Animation Border color","safelayout-elegant-icons"),(0,e.__)("Animation Text color","safelayout-elegant-icons"),(0,e.__)("Animation Split color","safelayout-elegant-icons"),(0,e.__)("Animation Split color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons");const y=["not use",'.sl-ei-container-block-effect001{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:50px 10px 51px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect001{border-radius:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect001:after,.sl-ei-icon-box-back-shape-effect001:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow1);content:"";height:45px;left:0;position:absolute;top:0;width:100%}.sl-ei-icon-box-back-shape-effect001:before{border-top-left-radius:inherit;border-top-right-radius:inherit}.sl-ei-icon-box-back-shape-effect001:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;top:auto}','.sl-ei-container-block-effect002{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:20px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect002{border-radius:inherit}.sl-ei-icon-box-back-shape-effect002:after,.sl-ei-icon-box-back-shape-effect002:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect002:before{border-top-left-radius:inherit;border-top-right-radius:inherit;-webkit-clip-path:polygon(85% 0,80% 5%,20% 5%,15% 0);clip-path:polygon(85% 0,80% 5%,20% 5%,15% 0)}.sl-ei-icon-box-back-shape-effect002:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;-webkit-clip-path:polygon(0 75%,0 100%,20% 100%,0 75%,100% 100%,80% 100%,100% 75%,100% 100%);clip-path:polygon(0 75%,0 100%,20% 100%,0 75%,100% 100%,80% 100%,100% 75%,100% 100%);top:auto}','.sl-ei-container-block-effect003{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:20px 15px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect003:after,.sl-ei-container-block-effect003:before{border:5px solid;border-color:var(--sl-ei-box-effect-color);border-radius:inherit;bottom:0;-webkit-clip-path:polygon(30% 30%,30% 0,0 0,0 30%,100% 30%,100% 0,70% 0,70% 100%,100% 100%,100% 70%,0 70%,0 100%,30% 100%,30% 70%);clip-path:polygon(30% 30%,30% 0,0 0,0 30%,100% 30%,100% 0,70% 0,70% 100%,100% 100%,100% 70%,0 70%,0 100%,30% 100%,30% 70%);content:"";left:0;position:absolute;right:0;top:0;z-index:-1}.sl-ei-container-block-effect003:after{border:2px solid;border-color:var(--sl-ei-box-effect-color);bottom:8px;-webkit-clip-path:polygon(25% 25%,25% 0,0 0,0 25%,100% 25%,100% 0,75% 0,75% 100%,100% 100%,100% 75%,0 75%,0 100%,25% 100%,25% 75%);clip-path:polygon(25% 25%,25% 0,0 0,0 25%,100% 25%,100% 0,75% 0,75% 100%,100% 100%,100% 75%,0 75%,0 100%,25% 100%,25% 75%);filter:brightness(.85);left:8px;right:8px;top:8px}.sl-ei-container-block-effect003 .sl-ei-icon-box-back-pattern-anim{z-index:-2}',".sl-ei-container-block-effect004{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:15px 10px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-icon{margin:10px;z-index:1}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow1);-webkit-clip-path:polygon(30px 0,100% 0,100% 100%,15px 100%);clip-path:polygon(30px 0,100% 0,100% 100%,15px 100%);margin:0 -10px;padding:5px 5px 5px 10px;position:relative}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h1,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h2,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h3,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h4,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h5,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h6{margin:auto!important}",'.sl-ei-container-block-effect005{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;overflow:hidden;padding:10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect005:before{background:var(--sl-ei-box-effect-color);box-shadow:inset 0 0 15px rgba(0,0,0,.451);content:"";height:200px;left:-95px;position:absolute;top:-100px;transform:rotate(40deg);width:160px;z-index:-1}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-icon{padding:10px 5px}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head:after{border-top:5px dotted;border-color:var(--sl-ei-box-effect-color1);clear:both;content:"";display:block;height:3px;margin:11px auto 0;width:100px}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h1,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h2,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h3,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h4,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h5,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h6{margin:auto!important}.sl-ei-container-block-effect005 .sl-ei-icon-box-back-pattern-anim{z-index:-2}','.sl-ei-container-block-effect006{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:45px 10px 25px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect006{border-radius:inherit}.sl-ei-icon-box-back-shape-effect006:after,.sl-ei-icon-box-back-shape-effect006:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect006:before{border-top-left-radius:inherit;border-top-right-radius:inherit;-webkit-clip-path:polygon(0 0,100% 0,100% 7.5%,85% 7.5%,80% 12.5%,20% 12.5%,15% 7.5%,0 7.5%);clip-path:polygon(0 0,100% 0,100% 7.5%,85% 7.5%,80% 12.5%,20% 12.5%,15% 7.5%,0 7.5%)}.sl-ei-icon-box-back-shape-effect006:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;-webkit-clip-path:polygon(0 100%,100% 100%,100% 90%,85% 90%,80% 95%,20% 95%,15% 90%,0 90%);clip-path:polygon(0 100%,100% 100%,100% 90%,85% 90%,80% 95%,20% 95%,15% 90%,0 90%);top:auto}','.sl-ei-container-block-effect007{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;overflow:hidden;padding:15px 15px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect007:after,.sl-ei-container-block-effect007:before{background:var(--sl-ei-box-effect-color);border-radius:0 100px 100px 0;bottom:30px;content:"";left:0;position:absolute;top:100px;width:13px}.sl-ei-container-block-effect007:after{border-radius:100px 0 0 100px;left:auto;right:0}.sl-ei-container-block-effect007 .sl-ei-container-block-effect007-icon{aspect-ratio:1/1;background:var(--sl-ei-box-effect-color);border-radius:50%;box-shadow:6px 0 10px rgba(0,0,0,.3),0 0 0 12px #fff,0 0 10px 8px #000;display:inline-flex;height:-moz-fit-content;height:fit-content;margin:10px;padding:15px;position:relative}'],k=window.wp.richText;var w=o(470),_=o(795);const j=window.wp.components,S=(0,a.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(n.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),v=(0,a.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(n.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),C=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],B=e=>e&&-1!=e.indexOf("gradient"),N=(e,t)=>Math.round(e*10**t)/10**t;function A(e){const{grad:t,id:o}=e;function a(e,t,o){var a=t.slice(o).search(/,|\)|\d/);","==t[o+a]?e.push(0):")"==t[o+a]&&e.push(1)}let n=[],i=[],r=[".","-","+","1","2","3","4","5","6","7","8","9","0"],l=t.indexOf("(")+1,s=0,c=l,f=t.length;for(;c<f;){if(l=1,"#"===t[c])n.push(t.substr(c,l=t.slice(c).search(/,|\)|\s/))),a(i,t,c+l);else if("r"===t[c]||"h"===t[c])n.push(t.substr(c,l=t.indexOf(")",c)-c+1)),a(i,t,c+l);else if(-1!=r.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),o=t.indexOf("deg",c);-1!=o&&(-1===e||o<e)?s=180-Number(t.substr(c,l=o-c)):i.push(t.substr(c,l=e-c)/100)}c+=l}s=-s*(Math.PI/180);const p=N(.5+.5*Math.sin(s),4),b=N(.5-.5*Math.cos(s),4),h=N(.5+.5*Math.sin(s+Math.PI),4),g=N(.5-.5*Math.cos(s+Math.PI),4);return"radial"===t.substr(0,6)?(0,d.jsx)(I,{id:o,colors:n,offsets:i,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,d.jsx)($,{id:o,colors:n,offsets:i,x1:p,y1:b,x2:h,y2:g})}function I(e){const{colors:t,offsets:o,id:a,cx:n,cy:i,r,fx:l,fy:s}=e;return(0,d.jsx)("radialGradient",{id:a,cx:n,cy:i,r,fx:l,fy:s,children:(0,d.jsx)(z,{colors:t,offsets:o})})}function $(e){const{colors:t,offsets:o,id:a,x1:n,y1:i,x2:r,y2:l}=e;return(0,d.jsx)("linearGradient",{id:a,x1:n,y1:i,x2:r,y2:l,children:(0,d.jsx)(z,{colors:t,offsets:o})})}function z(e){const{colors:t,offsets:o}=e;return(0,d.jsx)(d.Fragment,{children:t.map(((e,t)=>(0,d.jsx)("stop",{"stop-color":e,offset:o[t]},t)))})}function E(e){const{pos:t,objArray:o,id:a}=e,n=`fillGrad${t+a}`,i=`strokeGrad${t+a}`;let r;return(0,d.jsx)(d.Fragment,{children:o.map(((e,t)=>(0,d.jsxs)("defs",{children:[B(e.fill.type)&&(r=e.fill)&&("radial"===r.type.substr(0,6)?(0,d.jsx)(I,{id:n+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,d.jsx)($,{id:n+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2})),B(e.stroke.type)&&(r=e.stroke)&&("radial"===r.type.substr(0,6)?(0,d.jsx)(I,{id:i+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,d.jsx)($,{id:i+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}))]},t)))})}function P(e){const{pos:t,objArray:o,id:n,rx:i}=e,r=`fillGrad${t+n}`,l=`strokeGrad${t+n}`;return(0,d.jsx)(d.Fragment,{children:o.map(((e,t)=>"rect"===e.shape?(0,a.createElement)("rect",{...e.others,rx:i,style:e?.style,fill:B(e.fill.type)?`url(#${r+t})`:e.fill.type,stroke:B(e.stroke.type)?`url(#${l+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,a.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:B(e.fill.type)?`url(#${r+t})`:e.fill.type,stroke:B(e.stroke.type)?`url(#${l+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function T({attributes:e,paths:t,effectObj:o,isInEditor:a=!0,others:n}){const{blockId:i,rotate:r,flipHorizontal:l,flipVertical:s,hasBg:c,bgShape:f,bgShapeVal:p,rotateBg:b,size:h,color:g,strokeColor:x,strokeWidth:u,hasShadow:m,shadow:y,svgFilter:k,bgColor:w,bgStrokeColor:_,bgStrokeWidth:S,hasBgShadow:v,bgShadow:I,hasBaseShadow:$,baseShadowWidth:z,baseShadowHeight:T,baseShadowTop:O,padding:V,bgRadius:F,animation:M,slbbAnim:W,label:L,title:R,linkUrl:H,linkRel:G,linkTarget:D}=e,Z=N(.88*F,2),J=`path${i}`,X=`fillGrad${i}`,Y=`strokeGrad${i}`,U=`bgFillGrad${i}`,q=`bgStrokeGrad${i}`,K=`fillGradBase${i}`,Q=g.map(((e,t)=>B(e)?`url(#${X+t})`:"")),ee=x.map(((e,t)=>B(e)?`url(#${Y+t})`:"")),te=B(w)?`url(#${U})`:"",oe=B(_)?`url(#${q})`:"",ae=c?`calc(110% - ${Math.round(2.4*Number(V))}px)`:"100%",ne=(m?y:"")+("none"!=k?` url(#${k})`:""),ie=v?I:null,re=0!=b?`rotate(${b}deg)`:null,le=n?.oldAnim?M:W,se=le&&"No Animation"!=le?`sl-ei-icon-block-animation-${le}`:null,ce=(0!=r?`rotate(${r}deg)`:"")+(l||s?` scale(${l?-1:1}, ${s?-1:1})`:""),de=""!=ce?(c||$?"translate(-50%, -50%) ":"")+ce:null,fe=(0,d.jsxs)(d.Fragment,{children:[(c||$)&&(0,d.jsxs)(j.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,d.jsxs)("defs",{children:[""!=te&&(0,d.jsx)(A,{grad:w,id:U}),""!=oe&&(0,d.jsx)(A,{grad:_,id:q}),o&&o.before.length>0&&(0,d.jsx)(E,{pos:"before",objArray:o.before,id:i}),o&&o.after.length>0&&(0,d.jsx)(E,{pos:"after",objArray:o.after,id:i})]}),$&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(E,{pos:"Base",objArray:C,id:i}),(0,d.jsx)("ellipse",{cx:"48",cy:O,rx:z/2,ry:T/2,fill:`url(#${K+0})`})]}),c&&(0,d.jsxs)("g",{style:{transform:re},children:[o&&o.before.length>0&&(0,d.jsx)(P,{pos:"before",objArray:o.before,id:i,rx:Z}),"rect"===f?(0,d.jsx)(j.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||w,stroke:oe||_,strokeWidth:S,style:{filter:ie}}):(0,d.jsx)("path",{d:p,fill:te||w,stroke:oe||_,strokeWidth:S,style:{filter:ie}}),o&&o.after.length>0&&(0,d.jsx)(P,{pos:"after",objArray:o.after,id:i,rx:Z})]})]}),(0,d.jsxs)(j.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:ae,width:ae},children:[(0,d.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,d.jsx)(A,{grad:g[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,d.jsx)(A,{grad:x[t],id:Y+t},t)))]}),(0,d.jsx)("symbol",{viewBox:"0 0 24 24",id:J,children:t.map(((e,t)=>(0,d.jsx)(j.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||g[e.color||0],stroke:ee[e.strokeColor||0]||x[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==n?.d1?(0,d.jsx)("use",{href:`#${J}`,style:{filter:ne||null}}):(0,d.jsx)("use",{xlinkHref:`#${J}`,style:{filter:ne||null}})]})]});return H&&!a?(0,d.jsx)("a",{style:{height:h,width:h},href:H,target:D||null,rel:G||null,"aria-label":L||null,title:R||null,className:se,children:fe}):(0,d.jsx)("div",{style:{height:h,width:h},"aria-label":L||null,title:R||null,className:se,children:fe})}function O({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),o=e?.attributes?.color||["#5c5c5c"],a=e.paths,n="47px";return(0,d.jsx)("div",{style:{height:n,width:n},children:(0,d.jsxs)(j.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,d.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:a.map(((e,t)=>(0,d.jsx)(j.Path,{"vector-effect":"non-scaling-stroke",fill:o[e.color||0],d:e.d,style:e.style},t)))}),(0,d.jsx)("use",{href:`#${t}`})]})})}const V=window.wp.element,F=({colorValue:e,label:t})=>(0,d.jsxs)(j.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(j.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,d.jsx)(j.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),M=e=>({onToggle:t,isOpen:o})=>{const{colorValue:a,label:n,disabled:i}=e,r={onClick:t,className:c()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":o}),"aria-expanded":o};return(0,d.jsx)(j.Button,{...r,disabled:i,children:(0,d.jsx)(F,{colorValue:a,label:n})})};function W({settings:e,label:t,disabled:o,position:a}){var n;const i={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:t,disabled:o};return(0,d.jsx)(j.Dropdown,{popoverProps:{placement:a?.pos||"left-start",offset:a?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:M(i),renderContent:()=>(0,d.jsx)(j.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,d.jsx)(D,{...e})})})})}const L={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},R={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},H=[L,R],G=(0,V.memo)((function({colors:e,onClick:t,img:o,tab:a}){return(0,d.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,o)=>(0,d.jsx)("span",{onClick:t,style:{background:e}},o)))})}),((e,t)=>e.tab===t.tab));function D({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:o,label:n,onlySolid:i,onColorChange:r,onColorArrayClick:l,onGradientChange:s,onGradientArrayClick:f,colorValue:p,gradientValue:b,clearable:h,showTitle:g=!1,enableAlpha:x,headingLevel:u}){(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[L.value]:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.ColorPalette,{value:p,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:x,colors:[],headingLevel:u}),(0,d.jsx)(G,{colors:J,onClick:l,tab:"COLOR"})]}),[R.value]:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.GradientPicker,{__nextHasNoMargin:!0,value:B(b)?b:`linear-gradient(${b} 0%, ${b} 100%)`,onChange:e=>s(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:x,gradients:[],headingLevel:u}),(0,d.jsx)(G,{colors:X,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,d.jsx)(j.BaseControl,{__nextHasNoMarginBottom:!0,className:c()("block-editor-color-gradient-control",o),children:(0,d.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,d.jsxs)(j.__experimentalVStack,{spacing:1,children:[g&&(0,d.jsx)("legend",{children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,d.jsx)(j.BaseControl.VisualLabel,{children:n})})}),(0,d.jsx)(j.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:i?[L]:H,initialTabName:B(b)?R.value:L.value,children:e=>{return t=e.value,(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function Z(e){const{attribute:t,label:o,onlySolid:a,change:n,click:i,disabled:r,position:l}=e;return(0,d.jsx)(W,{settings:{onlySolid:a,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:n,onGradientChange:n,onColorArrayClick:i,onGradientArrayClick:i,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:o,disabled:r,position:l})}const J=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],X=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],Y=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],U=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],q={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},K=e=>Q.find((({name:t})=>t===e))||null,Q=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:Y,attributes:{...q,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:Y,attributes:{...q,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:Y,attributes:{...q,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:Y,attributes:{...q,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:Y,attributes:{...q,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:Y,attributes:{...q,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:Y,attributes:{...q,bgShape:"path",bgShapeVal:U[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:Y,attributes:{...q,bgShape:"path",bgShapeVal:U[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:U[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],ee=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],te={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},oe=(n.SVG,n.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),ae=(t,o)=>{const a=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return o<=1?"":" "+a[t]},ne=e=>{let t=ee.find((({name:t})=>t===e)),o="";return t&&(o=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),o},ie=e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e)))),t||null},re=e=>{let t="";return SLEIiconArray.some((o=>t=o[0].libCode===e.name.substring(0,3)&&" ("+o[0].libName+")")),t||" (unknown)"},le=e=>{let t=null;return SLEIiconArray.some((o=>t=o[0].libCode===e&&o[0]?.class)),t||""},se=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),ce=(e,t)=>{let o=se(e)[t];return t<3?parseFloat(o):o},de=(e,t,o)=>{let a=se(e);return a[t]=o,"drop-shadow("+a.join("px ")+")"},fe=(e,t,o,a,n,i)=>{let r={...oe,color:i||["#5c5c5c"],...t?.attributes,size:o,blockId:"sl-ei-icon-block-"+a+t.name.replaceAll(" ","_")},l=n||r?.effect,s=l?K(l):null;s?.attributes&&(r={...r,...s?.attributes}),e.attributes=r,e.effectObj=s},pe=(0,V.memo)((function({currentEffect:e,onIconClick:t}){xe("sl-ei-list-selected-effect");const o={};return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Q.map(((a,n)=>{const i=a.attributes.rotateBg,r=a.name;return fe(o,te,i?76:92,"effectList"+n,r,a.color),(0,d.jsx)("div",{style:{padding:i?"14px":null,display:n?null:"block",margin:n?null:"3px auto"},id:r===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(r===e?" sl-ei-list-selected":""),onClick:t,title:n?"effect0"+n:"No Effect","data-effect-name":r,children:(0,d.jsx)(T,{attributes:o.attributes,effectObj:o.effectObj,paths:te.paths})},n)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),be=((0,V.memo)((function({currentAnim:e,onIconClick:t}){xe("sl-ei-list-selected-anim");const o={...te,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},a={};return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:ee.map(((n,i)=>(o.attributes.slbbAnim=n.name,fe(a,o,54,"animList"+i,null),(0,d.jsx)("div",{id:n.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ne(n.name)+(n.name===e?" sl-ei-list-selected":""),onClick:t,title:n.name.replaceAll("-"," "),"data-anim-name":n.name,children:(0,d.jsx)(T,{attributes:a.attributes,effectObj:a.effectObj,paths:o.paths})},i))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),e=>(0,d.jsx)(j.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:he(e),renderContent:()=>(0,d.jsx)(j.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,d.jsx)(ge,{...e})})})})})),he=e=>({onToggle:t,isOpen:o})=>{const{name:a,paths:n,color:i,label:r,disabled:l}=e,s={},f={onClick:t,className:c()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o};let p=ie(a);return null===p&&(p={name:a,paths:n,attributes:{color:i}}),fe(s,p,64,"selected",null,["#3535ff"]),(0,d.jsx)(j.Button,{...f,disabled:l,style:{border:"1px solid #add8e6"},children:(0,d.jsxs)(j.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,d.jsx)(T,{attributes:s.attributes,effectObj:s.effectObj,paths:p.paths})}),(0,d.jsx)(j.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:r,children:r})]})})};function ge(t){const{name:o,onIconClick:n}=t;let i,r=[];(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[l,s]=(0,V.useState)(""),[c,f]=(0,V.useState)((e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e))&&o)),t?t[0].libName:SLEIiconArray[0][0].libName})(o));if(l)r.push(null),SLEIiconArray.map((e=>r=r.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(l.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,o)=>e=t[0].libName===c&&o+1)),r=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.SearchControl,{value:l,onChange:s,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,d.jsx)(j.SelectControl,{value:c,onChange:f,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,d.jsx)("option",{value:e[0].libName,children:t})}))}),(0,d.jsx)(ue,{icons:r,name:o,onIconClick:n,selectedLibrary:c,searchVal:l,packsImageShow:i})]})}const xe=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ue=(0,V.memo)((function({icons:e,name:t,onIconClick:o,selectedLibrary:a,searchVal:n,packsImageShow:i}){return xe("sl-ei-list-selected-icon"),(0,d.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,a)=>{if(a){let i=e.name.substring(0,3);return(0,d.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:o,title:e.name.substring(4)+(n?re(e):""),"data-icon-name":e.name,children:i<="400"?(0,d.jsx)("span",{className:le(i),children:String.fromCharCode(59392+e.c)}):(0,d.jsx)(O,{icon:e})},a)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),me={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:""},ye="safelayout/text-icon",ke={name:ye,title:"Icon (Safelayout)",keywords:[(0,e.__)("Icon","safelayout-elegant-icons"),(0,e.__)("Safelayout","safelayout-elegant-icons"),(0,e.__)("Elegant","safelayout-elegant-icons")],tagName:"span",className:"safelayout-text-icon",attributes:{className:"class",attrib:"dataicon"},contentEditable:!1,edit:function({value:t,onChange:o,isObjectActive:a,activeObjectAttributes:n,contentRef:i}){const r=(0,k.useAnchor)({editableContentElement:i.current,settings:ke});let{attrib:s}=n;return s&&(we=JSON.parse(atob(s))),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.BlockControls,{children:(0,d.jsx)(j.ToolbarGroup,{children:(0,d.jsx)(j.ToolbarButton,{icon:(0,d.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,d.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,d.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,d.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,d.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,d.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),title:(0,e.__)("Insert Icon (Safelayout)","safelayout-elegant-icons"),onClick:()=>{if(s)o((0,k.remove)(t,t.start,t.end));else{we={...me,blockId:je()},s=btoa(JSON.stringify(we));let e=ve(we);o((0,k.insertObject)(t,{type:ye,attributes:{className:`safelayout-text-icon sl-ei-fo-${we.blockId}`,attrib:s},innerHTML:`<style>.sl-ei-fo-${we.blockId} { ${Se(we,e)} }</style>`}))}},isActive:a})})}),a&&(0,d.jsx)(j.Popover,{placement:"top-start",variant:"toolbar",resize:!1,focusOnMount:!1,anchor:r,offset:20,children:(0,d.jsx)("div",{className:"sl-ei-icon-block-format-container",id:"sl-ei-icon-text-container-00",children:(0,d.jsx)(_e,{attributes:we,setAttributes:(e,a)=>{if(a)o((0,k.remove)(t,t.start,t.end));else{for(var n in e)we[n]=e[n];!function(e,t,o){setTimeout((()=>{e.blockId=je();const a=btoa(JSON.stringify(e));let n=ve(e);const i=t.replacements.slice();i[t.start]={type:ye,attributes:{className:`safelayout-text-icon sl-ei-fo-${e.blockId}`,attrib:a},innerHTML:`<style>.sl-ei-fo-${e.blockId} { ${Se(e,n)} }</style>`},o({...t,replacements:i})}),2)}(we,t,o)}}})})})]})}};let we;function _e(t){const{attributes:o,setAttributes:n}=t,{name:i,paths:r,hasBg:l,bgShape:s,top:c,size:f,color:p,strokeColor:b,strokeWidth:h,hasShadow:g,shadow:x,bgColor:u,bgStrokeColor:m,bgStrokeWidth:y,hasBaseShadow:k,baseShadowWidth:w,baseShadowHeight:_,baseShadowTop:C,padding:B,bgRadius:N,effect:A}=o;return(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-text-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(be,{name:i,paths:r,color:p,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+i.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),a=ie(o);xe("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let i=a?.attributes;i?.color||(i={...i,color:[p[0]]}),i?.strokeColor||(i={...i,strokeColor:[b[0]]}),i?.strokeWidth||(i={...i,strokeWidth:[h[0]]}),n({name:o,paths:a.paths,...i})}}),(0,d.jsx)(j.Panel,{children:(0,d.jsx)(j.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,d.jsx)(pe,{currentEffect:A,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),a=K(o);xe("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect");let i=a?.attributes?.padding;if(i){let e=parseInt(f);e<32?i*=.15:e<50?i*=.25:e<74?i*=.5:e<82&&(i*=.7),n({effect:o,...a?.attributes,padding:Math.round(i)})}else n({effect:o,...a?.attributes})}})})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,d.jsx)(j.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:c,onChange:e=>n({top:e})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(f),onChange:e=>n({size:e+"px"})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:B,disabled:!l,onChange:e=>n({padding:e})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:N,disabled:!l||"rect"!=s,onChange:e=>n({bgRadius:e})})]})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[p.map(((t,o,a)=>(0,d.jsx)(Z,{attribute:t,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+ae(o,a.length),click:e=>{let t=[...p];t[o]=e.target.style.background,n({color:t})},change:e=>{let t=[...p];e&&(t[o]=e),n({color:t})}},o))),b.map(((t,o,a)=>(0,d.jsx)(Z,{attribute:t,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+ae(o,a.length),click:e=>{let t=[...b];t[o]=e.target.style.background,n({strokeColor:t})},change:e=>{let t=[...b];e&&(t[o]=e),n({strokeColor:t})}},o)))]})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,d.jsx)(j.ToggleControl,{checked:l,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>n({hasBg:e})}),(0,d.jsx)(Z,{attribute:u,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>n({bgColor:e.target.style.background}),change:e=>e&&n({bgColor:e}),disabled:!l}),(0,d.jsx)(Z,{attribute:m,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>n({bgStrokeColor:e.target.style.background}),change:e=>e&&n({bgStrokeColor:e}),disabled:!l})]})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:S,children:[h.map(((t,o,a)=>(0,d.jsx)(j.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+ae(o,a.length),min:0,max:200,value:t,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let t=[...h];t[o]=e,n({strokeWidth:t})}},o))),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:y,disabled:!l,onChange:e=>n({bgStrokeWidth:e})})]})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:v,children:[(0,d.jsx)(j.ToggleControl,{checked:g,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>n({hasShadow:e})}),(0,d.jsx)(Z,{attribute:ce(x,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>n({shadow:de(x,3,e.target.style.background)}),change:e=>n({shadow:de(x,3,e)}),disabled:!g}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,2),disabled:!g,onChange:e=>n({shadow:de(x,2,e)})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,0),disabled:!g,onChange:e=>n({shadow:de(x,0,e)})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,1),disabled:!g,onChange:e=>n({shadow:de(x,1,e)})})]})}),(0,d.jsx)(j.Panel,{children:(0,d.jsxs)(j.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:v,children:[(0,d.jsx)(j.ToggleControl,{checked:k,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>n({hasBaseShadow:e})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:C,disabled:!k,onChange:e=>n({baseShadowTop:e})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:w,disabled:!k,onChange:e=>n({baseShadowWidth:e})}),(0,d.jsx)(j.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:_,disabled:!k,onChange:e=>n({baseShadowHeight:e})})]})}),(0,d.jsx)("div",{style:{textAlign:"center"},children:(0,d.jsx)(j.Button,{variant:"secondary",onClick:()=>n(null,1),style:{marginBottom:"10px"},children:(0,e.__)("Remove this icon","safelayout-elegant-icons")})}),(0,d.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,d.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,d.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})}function je(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function Se(e,t){const o=e.hasBg?`calc(110% - ${Math.round(2.4*Number(e.padding))}px)`:"100%";return`display: inline-block;background-repeat: no-repeat;background-position: center;position: relative;background-size: ${o} ${o}, 100% 100%;top:${e.top}px;width:${e.size};height:${e.size};background-image:${t}`}function ve(e){const t=K(e?.effect),o=function(e,t){return 0!=t.rotateBg&&e.length>1&&(e[0]=e[0].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 96 96","-14 -14 124 124"),e[1]=e[1].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 24 24","-3 -3 30 30")),t.hasBaseShadow&&(0!=t.rotateBg?e.length>1&&(e[0]=e[0].replaceAll("40% 40%","35% 32%").replaceAll("-14 -14 124 124",`-14 -14 124 ${124+Math.max(t.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("-3 -3 30 30",`-3 -3 30 ${30+Math.max((t.baseShadowTop-96+6)/4.5,0)}`)):e.length>1?(e[0]=e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(t.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("0 0 24 24",`0 0 24 ${24+Math.max((t.baseShadowTop-96+6)/3.5,0)}`)):e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(t.baseShadowTop-96+6,0)}`)),e}(function(e){const t=document.createElement("div"),o=(0,w.H)(t);return(0,_.flushSync)((()=>{o.render(e)})),t.firstElementChild.innerHTML.replaceAll("</svg>","</svg>>>.").split(">>.").slice(0,-1)}((0,d.jsx)(T,{attributes:{...e},paths:e.paths,effectObj:t})),e),a="data:image/svg+xml;base64,";let n="";return n=o.length>1?`url('${a}${btoa(o[1])}'), url('${a}${btoa(o[0])}');`:`url('${a}${btoa(o[0])}');`,n}const{name:Ce}=p;(0,t.registerBlockType)({name:Ce,...p},{title:(0,e.__)("Container (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Container block.","safelayout-elegant-icons"),icon:i,edit:function(e){return(0,d.jsx)(f,{attributes:e.attributes})},save:function({attributes:e}){return(0,d.jsx)(f,{attributes:e,isInEditor:!1})}}),(0,r.subscribe)((()=>{const e=wp.data.select("core/editor")?.isSavingPost(),t=wp.data.select("core/editor")?.isAutosavingPost();if(!e&&!t){const e=wp.data.select("core/block-editor"),t=e.getBlocksByName("safelayout/safelayout-icon-box"),o=e.getBlocksByClientId(t),a=[];for(let e=0;e<o.length;e++){let t=o[e]?.attributes;"No Effect"==t.effect||a.includes(t?.effect)?t.elementStyle="":(t.elementStyle=y[Number(t?.effect?.substring(6))],a.push(t?.effect))}}}));const{fName:Be,...Ne}=ke;(0,k.registerFormatType)(Be,Ne)})()})();1 (()=>{var e={452:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,i(o)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=r(t,o));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},470:(e,t,o)=>{"use strict";var a=o(795);t.H=a.createRoot,a.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function o(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,a=window.React,n=window.wp.primitives,i=(0,a.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(n.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})),r=window.wp.data,l=window.wp.blockEditor;var s=o(452),c=o.n(s);const d=window.ReactJSXRuntime;function f({attributes:e,isInEditor:t=!0,others:o}){const{TagName1:a,TagName2:n,TagHelper:i,className1:r,className2:s,helperCName:f,style1:p,style2:b,helperStyle:h}=e,g=""!=r?`sl-ei-container-block-${r}`:null,x=""!=s?`sl-ei-container-block-${s}`:null,u=o?.children?null:t?(0,l.useBlockProps)():l.useBlockProps.save(),{children:m,...y}=o?.children?{children:o.children}:t?(0,l.useInnerBlocksProps)(u):l.useInnerBlocksProps.save(u),k=(0,d.jsx)(n,{className:x,style:b,children:m});return(0,d.jsxs)(a,{...y,className:c()("sl-ei-container-block",g),style:p,children:[""!=i&&(0,d.jsx)(i,{className:c()(f),style:h}),""!=n?k:m]})}const p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-container","version":"1.4.0","title":"Container (Safelayout)","category":"blocks-safelayout-category","parent":["safelayout/safelayout-icon-box"],"description":"Container block.","supports":{"html":false},"attributes":{"TagName1":{"type":"string","default":"div"},"TagName2":{"type":"string","default":""},"TagHelper":{"type":"string","default":""},"className1":{"type":"string","default":""},"className2":{"type":"string","default":""},"helperCName":{"type":"string","default":""},"style1":{"type":"object"},"style2":{"type":"object"},"helperStyle":{"type":"object"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js"}'),b={iconPos:"top",hasBg:!0,hasBtn:!0,hasRibbon:!1,hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff"},h={align:void 0,textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff"};(0,e.__)("Color","safelayout-elegant-icons"),(0,e.__)("Inner shadow","safelayout-elegant-icons"),(0,e.__)("Color","safelayout-elegant-icons"),(0,e.__)("Inner shadow","safelayout-elegant-icons");function g(e){if(e)return{hasBgShadow:!0,bgShadow:e}}function x(e){if(e)return{hasTextShadow:!0,textShadow:e}}function u(e,t,o,a,n,i){return{...b,hasRibbon:e,...g(t),bgPattern:o,patternOpacity:a,effect:n,slbbAnim:i}}function m(e,t,o,a,n,i,r,l,s,c,d){return{...h,align:e,textColor:t,bold:o,fontSize:a,posOffset:n,...g(i),...x(r),bgPattern:l,patternOpacity:s,hasEffectBorder:c,effectBorderColor:d}}u(!0,"0px 1px 3px #000","pattern002",.5,"effect001","background-color"),m("left","#000",!0,"16px",15,"0px 1px 1px #000","1px 1px 1px #fff","pattern002",.4,!0,"#CC0000"),u(!1,"0px 0px 4px #000","pattern001",.3,"effect002","effect-color"),u(!0,"0px 1px 6px #000000b0","No Pattern",.2,"effect003","slide-top"),m("right","#00f",!0,"16px",0,"0px 1px 1px #000","1px 1px 1px #fff","pattern001",.3,!0,"#CC0000"),u(!0,"-2px 2px 5px #000","pattern003",.25,"effect004","slide-right"),m(void 0,"#00f",!0,"16px",4,"0px 1px 2px #000","1px 1px 1px #fff","pattern002",.3,!0,"#fff"),u(!0,"0px 2px 5px #000","pattern002",.3,"effect005","slide-bottom"),m("right","#00f",!0,"16px",0,"0px 1px 2px #000","1px 1px 1px #fff","pattern004",.4,!0,"#fff"),(0,e.__)("Fill color","safelayout-elegant-icons"),(0,e.__)("Dots color","safelayout-elegant-icons"),u(!0,"0px 0px 4px #000","pattern005",.1,"effect006","blue-glow"),m(void 0,"#00f",!0,"18px",22,"1px 1px 1px #000","1px 1px 1px #fff","pattern004",.3,!0,"#fff"),u(!1,"2px 3px 5px #000","pattern001",.5,"effect007","split-horizontal"),(0,e.__)("Animation Background color","safelayout-elegant-icons"),(0,e.__)("Animation Effect color","safelayout-elegant-icons"),(0,e.__)("Animation Border color","safelayout-elegant-icons"),(0,e.__)("Animation Text color","safelayout-elegant-icons"),(0,e.__)("Animation Split color","safelayout-elegant-icons"),(0,e.__)("Animation Split color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Stretch color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons"),(0,e.__)("Animation Slide color","safelayout-elegant-icons");const y=["not use",'.sl-ei-container-block-effect001{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:50px 10px 51px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect001{border-radius:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect001:after,.sl-ei-icon-box-back-shape-effect001:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow1);content:"";height:45px;left:0;position:absolute;top:0;width:100%}.sl-ei-icon-box-back-shape-effect001:before{border-top-left-radius:inherit;border-top-right-radius:inherit}.sl-ei-icon-box-back-shape-effect001:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;top:auto}','.sl-ei-container-block-effect002{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:20px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect002{border-radius:inherit}.sl-ei-icon-box-back-shape-effect002:after,.sl-ei-icon-box-back-shape-effect002:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect002:before{border-top-left-radius:inherit;border-top-right-radius:inherit;-webkit-clip-path:polygon(85% 0,80% 5%,20% 5%,15% 0);clip-path:polygon(85% 0,80% 5%,20% 5%,15% 0)}.sl-ei-icon-box-back-shape-effect002:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;-webkit-clip-path:polygon(0 75%,0 100%,20% 100%,0 75%,100% 100%,80% 100%,100% 75%,100% 100%);clip-path:polygon(0 75%,0 100%,20% 100%,0 75%,100% 100%,80% 100%,100% 75%,100% 100%);top:auto}','.sl-ei-container-block-effect003{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:20px 15px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect003:after,.sl-ei-container-block-effect003:before{border:5px solid;border-color:var(--sl-ei-box-effect-color);border-radius:inherit;bottom:0;-webkit-clip-path:polygon(30% 30%,30% 0,0 0,0 30%,100% 30%,100% 0,70% 0,70% 100%,100% 100%,100% 70%,0 70%,0 100%,30% 100%,30% 70%);clip-path:polygon(30% 30%,30% 0,0 0,0 30%,100% 30%,100% 0,70% 0,70% 100%,100% 100%,100% 70%,0 70%,0 100%,30% 100%,30% 70%);content:"";left:0;position:absolute;right:0;top:0;z-index:-1}.sl-ei-container-block-effect003:after{border:2px solid;border-color:var(--sl-ei-box-effect-color);bottom:8px;-webkit-clip-path:polygon(25% 25%,25% 0,0 0,0 25%,100% 25%,100% 0,75% 0,75% 100%,100% 100%,100% 75%,0 75%,0 100%,25% 100%,25% 75%);clip-path:polygon(25% 25%,25% 0,0 0,0 25%,100% 25%,100% 0,75% 0,75% 100%,100% 100%,100% 75%,0 75%,0 100%,25% 100%,25% 75%);filter:brightness(.85);left:8px;right:8px;top:8px}.sl-ei-container-block-effect003 .sl-ei-icon-box-back-pattern-anim{z-index:-2}',".sl-ei-container-block-effect004{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:15px 10px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-icon{margin:10px;z-index:1}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow1);-webkit-clip-path:polygon(30px 0,100% 0,100% 100%,15px 100%);clip-path:polygon(30px 0,100% 0,100% 100%,15px 100%);margin:0 -10px;padding:5px 5px 5px 10px;position:relative}.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h1,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h2,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h3,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h4,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h5,.sl-ei-container-block-effect004 .sl-ei-container-block-effect004-head h6{margin:auto!important}",'.sl-ei-container-block-effect005{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;overflow:hidden;padding:10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect005:before{background:var(--sl-ei-box-effect-color);box-shadow:inset 0 0 15px rgba(0,0,0,.451);content:"";height:200px;left:-95px;position:absolute;top:-100px;transform:rotate(40deg);width:160px;z-index:-1}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-icon{padding:10px 5px}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head:after{border-top:5px dotted;border-color:var(--sl-ei-box-effect-color1);clear:both;content:"";display:block;height:3px;margin:11px auto 0;width:100px}.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h1,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h2,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h3,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h4,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h5,.sl-ei-container-block-effect005 .sl-ei-container-block-effect005-head h6{margin:auto!important}.sl-ei-container-block-effect005 .sl-ei-icon-box-back-pattern-anim{z-index:-2}','.sl-ei-container-block-effect006{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;padding:45px 10px 25px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-icon-box-back-shape-effect006{border-radius:inherit}.sl-ei-icon-box-back-shape-effect006:after,.sl-ei-icon-box-back-shape-effect006:before{background:var(--sl-ei-box-effect-color);box-shadow:var(--sl-ei-box-effect-shadow);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.sl-ei-icon-box-back-shape-effect006:before{border-top-left-radius:inherit;border-top-right-radius:inherit;-webkit-clip-path:polygon(0 0,100% 0,100% 7.5%,85% 7.5%,80% 12.5%,20% 12.5%,15% 7.5%,0 7.5%);clip-path:polygon(0 0,100% 0,100% 7.5%,85% 7.5%,80% 12.5%,20% 12.5%,15% 7.5%,0 7.5%)}.sl-ei-icon-box-back-shape-effect006:after{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;-webkit-clip-path:polygon(0 100%,100% 100%,100% 90%,85% 90%,80% 95%,20% 95%,15% 90%,0 90%);clip-path:polygon(0 100%,100% 100%,100% 90%,85% 90%,80% 95%,20% 95%,15% 90%,0 90%);top:auto}','.sl-ei-container-block-effect007{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;overflow:hidden;padding:15px 15px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect007:after,.sl-ei-container-block-effect007:before{background:var(--sl-ei-box-effect-color);border-radius:0 100px 100px 0;bottom:30px;content:"";left:0;position:absolute;top:100px;width:13px}.sl-ei-container-block-effect007:after{border-radius:100px 0 0 100px;left:auto;right:0}.sl-ei-container-block-effect007 .sl-ei-container-block-effect007-icon{aspect-ratio:1/1;background:var(--sl-ei-box-effect-color);border-radius:50%;box-shadow:6px 0 10px rgba(0,0,0,.3),0 0 0 12px #fff,0 0 10px 8px #000;display:inline-flex;height:-moz-fit-content;height:fit-content;margin:10px;padding:15px;position:relative}'],k=window.wp.richText;var w=o(470),S=o(795);const _=window.wp.components,j=(0,a.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(n.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),v=(0,a.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(n.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),C=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],B=e=>e&&-1!=e.indexOf("gradient"),N=(e,t)=>Math.round(e*10**t)/10**t;function A(e){const{grad:t,id:o}=e;function a(e,t,o){var a=t.slice(o).search(/,|\)|\d/);","==t[o+a]?e.push(0):")"==t[o+a]&&e.push(1)}let n=[],i=[],r=[".","-","+","1","2","3","4","5","6","7","8","9","0"],l=t.indexOf("(")+1,s=0,c=l,f=t.length;for(;c<f;){if(l=1,"#"===t[c])n.push(t.substr(c,l=t.slice(c).search(/,|\)|\s/))),a(i,t,c+l);else if("r"===t[c]||"h"===t[c])n.push(t.substr(c,l=t.indexOf(")",c)-c+1)),a(i,t,c+l);else if(-1!=r.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),o=t.indexOf("deg",c);-1!=o&&(-1===e||o<e)?s=180-Number(t.substr(c,l=o-c)):i.push(t.substr(c,l=e-c)/100)}c+=l}s=-s*(Math.PI/180);const p=N(.5+.5*Math.sin(s),4),b=N(.5-.5*Math.cos(s),4),h=N(.5+.5*Math.sin(s+Math.PI),4),g=N(.5-.5*Math.cos(s+Math.PI),4);return"radial"===t.substr(0,6)?(0,d.jsx)(I,{id:o,colors:n,offsets:i,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,d.jsx)($,{id:o,colors:n,offsets:i,x1:p,y1:b,x2:h,y2:g})}function I(e){const{colors:t,offsets:o,id:a,cx:n,cy:i,r,fx:l,fy:s}=e;return(0,d.jsx)("radialGradient",{id:a,cx:n,cy:i,r,fx:l,fy:s,children:(0,d.jsx)(z,{colors:t,offsets:o})})}function $(e){const{colors:t,offsets:o,id:a,x1:n,y1:i,x2:r,y2:l}=e;return(0,d.jsx)("linearGradient",{id:a,x1:n,y1:i,x2:r,y2:l,children:(0,d.jsx)(z,{colors:t,offsets:o})})}function z(e){const{colors:t,offsets:o}=e;return(0,d.jsx)(d.Fragment,{children:t.map(((e,t)=>(0,d.jsx)("stop",{"stop-color":e,offset:o[t]},t)))})}function E(e){const{pos:t,objArray:o,id:a}=e,n=`fillGrad${t+a}`,i=`strokeGrad${t+a}`;let r;return(0,d.jsx)(d.Fragment,{children:o.map(((e,t)=>(0,d.jsxs)("defs",{children:[B(e.fill.type)&&(r=e.fill)&&("radial"===r.type.substr(0,6)?(0,d.jsx)(I,{id:n+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,d.jsx)($,{id:n+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2})),B(e.stroke.type)&&(r=e.stroke)&&("radial"===r.type.substr(0,6)?(0,d.jsx)(I,{id:i+t,colors:r.colors,offsets:r.offsets,cx:r.cx,cy:r.cy,r:r.r,fx:r.fx,fy:r.fy}):(0,d.jsx)($,{id:i+t,colors:r.colors,offsets:r.offsets,x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}))]},t)))})}function P(e){const{pos:t,objArray:o,id:n,rx:i}=e,r=`fillGrad${t+n}`,l=`strokeGrad${t+n}`;return(0,d.jsx)(d.Fragment,{children:o.map(((e,t)=>"rect"===e.shape?(0,a.createElement)("rect",{...e.others,rx:i,style:e?.style,fill:B(e.fill.type)?`url(#${r+t})`:e.fill.type,stroke:B(e.stroke.type)?`url(#${l+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,a.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:B(e.fill.type)?`url(#${r+t})`:e.fill.type,stroke:B(e.stroke.type)?`url(#${l+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function T({attributes:e,paths:t,effectObj:o,isInEditor:a=!0,others:n}){const{blockId:i,rotate:r,flipHorizontal:l,flipVertical:s,hasBg:c,bgShape:f,bgShapeVal:p,rotateBg:b,size:h,color:g,strokeColor:x,strokeWidth:u,hasShadow:m,shadow:y,svgFilter:k,bgColor:w,bgStrokeColor:S,bgStrokeWidth:j,hasBgShadow:v,bgShadow:I,hasBaseShadow:$,baseShadowWidth:z,baseShadowHeight:T,baseShadowTop:O,padding:V,bgRadius:F,animation:M,slbbAnim:W,label:R,title:L,linkUrl:H,linkRel:G,linkTarget:D}=e,Z=N(.88*F,2),J=`path${i}`,X=`fillGrad${i}`,Y=`strokeGrad${i}`,U=`bgFillGrad${i}`,q=`bgStrokeGrad${i}`,K=`fillGradBase${i}`,Q=g.map(((e,t)=>B(e)?`url(#${X+t})`:"")),ee=x.map(((e,t)=>B(e)?`url(#${Y+t})`:"")),te=B(w)?`url(#${U})`:"",oe=B(S)?`url(#${q})`:"",ae=c?`calc(110% - ${Math.round(2.4*Number(V))}px)`:"100%",ne=(m?y:"")+("none"!=k?` url(#${k})`:""),ie=v?I:null,re=0!=b?`rotate(${b}deg)`:null,le=n?.oldAnim?M:W,se=le&&"No Animation"!=le?`sl-ei-icon-block-animation-${le}`:null,ce=(0!=r?`rotate(${r}deg)`:"")+(l||s?` scale(${l?-1:1}, ${s?-1:1})`:""),de=""!=ce?(c||$?"translate(-50%, -50%) ":"")+ce:null,fe=(0,d.jsxs)(d.Fragment,{children:[(c||$)&&(0,d.jsxs)(_.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,d.jsxs)("defs",{children:[""!=te&&(0,d.jsx)(A,{grad:w,id:U}),""!=oe&&(0,d.jsx)(A,{grad:S,id:q}),o&&o.before.length>0&&(0,d.jsx)(E,{pos:"before",objArray:o.before,id:i}),o&&o.after.length>0&&(0,d.jsx)(E,{pos:"after",objArray:o.after,id:i})]}),$&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(E,{pos:"Base",objArray:C,id:i}),(0,d.jsx)("ellipse",{cx:"48",cy:O,rx:z/2,ry:T/2,fill:`url(#${K+0})`})]}),c&&(0,d.jsxs)("g",{style:{transform:re},children:[o&&o.before.length>0&&(0,d.jsx)(P,{pos:"before",objArray:o.before,id:i,rx:Z}),"rect"===f?(0,d.jsx)(_.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||w,stroke:oe||S,strokeWidth:j,style:{filter:ie}}):(0,d.jsx)("path",{d:p,fill:te||w,stroke:oe||S,strokeWidth:j,style:{filter:ie}}),o&&o.after.length>0&&(0,d.jsx)(P,{pos:"after",objArray:o.after,id:i,rx:Z})]})]}),(0,d.jsxs)(_.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:ae,width:ae},children:[(0,d.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,d.jsx)(A,{grad:g[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,d.jsx)(A,{grad:x[t],id:Y+t},t)))]}),(0,d.jsx)("symbol",{viewBox:"0 0 24 24",id:J,children:t.map(((e,t)=>(0,d.jsx)(_.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||g[e.color||0],stroke:ee[e.strokeColor||0]||x[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==n?.d1?(0,d.jsx)("use",{href:`#${J}`,style:{filter:ne||null}}):(0,d.jsx)("use",{xlinkHref:`#${J}`,style:{filter:ne||null}})]})]});return H&&!a?(0,d.jsx)("a",{style:{height:h,width:h},href:H,target:D||null,rel:G||null,"aria-label":R||null,title:L||null,className:se,children:fe}):(0,d.jsx)("div",{style:{height:h,width:h},"aria-label":R||null,title:L||null,className:se,children:fe})}function O({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),o=e?.attributes?.color||["#5c5c5c"],a=e.paths,n="47px";return(0,d.jsx)("div",{style:{height:n,width:n},children:(0,d.jsxs)(_.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,d.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:a.map(((e,t)=>(0,d.jsx)(_.Path,{"vector-effect":"non-scaling-stroke",fill:o[e.color||0],d:e.d,style:e.style},t)))}),(0,d.jsx)("use",{href:`#${t}`})]})})}const V=window.wp.element,F=({colorValue:e,label:t})=>(0,d.jsxs)(_.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)(_.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,d.jsx)(_.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),M=e=>({onToggle:t,isOpen:o})=>{const{colorValue:a,label:n,disabled:i}=e,r={onClick:t,className:c()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":o}),"aria-expanded":o};return(0,d.jsx)(_.Button,{...r,disabled:i,children:(0,d.jsx)(F,{colorValue:a,label:n})})};function W({settings:e,label:t,disabled:o,position:a,style:n}){var i;const r={colorValue:null!==(i=e.gradientValue)&&void 0!==i?i:e.colorValue,label:t,disabled:o};return(0,d.jsx)(_.Dropdown,{style:n,popoverProps:{placement:a?.pos||"left-start",offset:a?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:M(r),renderContent:()=>(0,d.jsx)(_.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,d.jsx)(D,{...e})})})})}const R={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},L={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},H=[R,L],G=(0,V.memo)((function({colors:e,onClick:t,img:o,tab:a}){return(0,d.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,o)=>(0,d.jsx)("span",{onClick:t,style:{background:e}},o)))})}),((e,t)=>e.tab===t.tab));function D({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:o,label:n,onlySolid:i,onColorChange:r,onColorArrayClick:l,onGradientChange:s,onGradientArrayClick:f,colorValue:p,gradientValue:b,clearable:h,showTitle:g=!1,enableAlpha:x,headingLevel:u}){(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[R.value]:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_.ColorPalette,{value:p,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:x,colors:[],headingLevel:u}),(0,d.jsx)(G,{colors:J,onClick:l,tab:"COLOR"})]}),[L.value]:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_.GradientPicker,{__nextHasNoMargin:!0,value:B(b)?b:`linear-gradient(${b} 0%, ${b} 100%)`,onChange:e=>s(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:x,gradients:[],headingLevel:u}),(0,d.jsx)(G,{colors:X,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,d.jsx)(_.BaseControl,{__nextHasNoMarginBottom:!0,className:c()("block-editor-color-gradient-control",o),children:(0,d.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,d.jsxs)(_.__experimentalVStack,{spacing:1,children:[g&&(0,d.jsx)("legend",{children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,d.jsx)(_.BaseControl.VisualLabel,{children:n})})}),(0,d.jsx)(_.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:i?[R]:H,initialTabName:B(b)?L.value:R.value,children:e=>{return t=e.value,(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function Z(e){const{attribute:t,label:o,onlySolid:a,change:n,click:i,disabled:r,position:l,style:s}=e;return(0,d.jsx)(W,{settings:{onlySolid:a,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:n,onGradientChange:n,onColorArrayClick:i,onGradientArrayClick:i,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:o,disabled:r,position:l,style:s})}const J=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],X=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],Y=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],U=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],q={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},K=e=>Q.find((({name:t})=>t===e))||null,Q=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:Y,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:Y,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:Y,attributes:{...q,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:Y,attributes:{...q,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:Y,attributes:{...q,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:Y,attributes:{...q,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:Y,attributes:{...q,bgShape:"path",bgShapeVal:U[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:Y,attributes:{...q,bgShape:"path",bgShapeVal:U[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:U[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],ee=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],te={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},oe=(n.SVG,n.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),ae=(t,o)=>{const a=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return o<=1?"":" "+a[t]},ne=e=>{let t=ee.find((({name:t})=>t===e)),o="";return t&&(o=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),o},ie=e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e)))),t||null},re=e=>{let t="";return SLEIiconArray.some((o=>t=o[0].libCode===e.name.substring(0,3)&&" ("+o[0].libName+")")),t||" (unknown)"},le=e=>{let t=null;return SLEIiconArray.some((o=>t=o[0].libCode===e&&o[0]?.class)),t||""},se=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),ce=(e,t)=>{let o=se(e)[t];return t<3?parseFloat(o):o},de=(e,t,o)=>{let a=se(e);return a[t]=o,"drop-shadow("+a.join("px ")+")"},fe=(e,t,o,a,n,i)=>{let r={...oe,color:i||["#5c5c5c"],...t?.attributes,size:o,blockId:"sl-ei-icon-block-"+a+t.name.replaceAll(" ","_")},l=n||r?.effect,s=l?K(l):null;s?.attributes&&(r={...r,...s?.attributes}),e.attributes=r,e.effectObj=s},pe=(0,V.memo)((function({currentEffect:e,onIconClick:t}){xe("sl-ei-list-selected-effect");const o={};return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Q.map(((a,n)=>{const i=a.attributes.rotateBg,r=a.name;return fe(o,te,i?76:92,"effectList"+n,r,a.color),(0,d.jsx)("div",{style:{padding:i?"14px":null,display:n?null:"block",margin:n?null:"3px auto"},id:r===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(r===e?" sl-ei-list-selected":""),onClick:t,title:n?"effect0"+n:"No Effect","data-effect-name":r,children:(0,d.jsx)(T,{attributes:o.attributes,effectObj:o.effectObj,paths:te.paths})},n)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),be=((0,V.memo)((function({currentAnim:e,onIconClick:t}){xe("sl-ei-list-selected-anim");const o={...te,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},a={};return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:ee.map(((n,i)=>(o.attributes.slbbAnim=n.name,fe(a,o,54,"animList"+i,null),(0,d.jsx)("div",{id:n.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ne(n.name)+(n.name===e?" sl-ei-list-selected":""),onClick:t,title:n.name.replaceAll("-"," "),"data-anim-name":n.name,children:(0,d.jsx)(T,{attributes:a.attributes,effectObj:a.effectObj,paths:o.paths})},i))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),e=>(0,d.jsx)(_.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:he(e),renderContent:()=>(0,d.jsx)(_.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,d.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,d.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,d.jsx)(ge,{...e})})})})})),he=e=>({onToggle:t,isOpen:o})=>{const{name:a,paths:n,color:i,label:r,disabled:l}=e,s={},f={onClick:t,className:c()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":o}),"aria-expanded":o};let p=ie(a);return null===p&&(p={name:a,paths:n,attributes:{color:i}}),fe(s,p,64,"selected",null,["#3535ff"]),(0,d.jsx)(_.Button,{...f,disabled:l,style:{border:"1px solid #add8e6"},children:(0,d.jsxs)(_.__experimentalHStack,{justify:"flex-start",children:[(0,d.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,d.jsx)(T,{attributes:s.attributes,effectObj:s.effectObj,paths:p.paths})}),(0,d.jsx)(_.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:r,children:r})]})})};function ge(t){const{name:o,onIconClick:n}=t;let i,r=[];(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[l,s]=(0,V.useState)(""),[c,f]=(0,V.useState)((e=>{let t=null;return SLEIiconArray.some((o=>t=o.find((({name:t})=>t===e))&&o)),t?t[0].libName:SLEIiconArray[0][0].libName})(o));if(l)r.push(null),SLEIiconArray.map((e=>r=r.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(l.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,o)=>e=t[0].libName===c&&o+1)),r=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_.SearchControl,{value:l,onChange:s,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,d.jsx)(_.SelectControl,{value:c,onChange:f,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,d.jsx)("option",{value:e[0].libName,children:t})}))}),(0,d.jsx)(ue,{icons:r,name:o,onIconClick:n,selectedLibrary:c,searchVal:l,packsImageShow:i})]})}const xe=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ue=(0,V.memo)((function({icons:e,name:t,onIconClick:o,selectedLibrary:a,searchVal:n,packsImageShow:i}){return xe("sl-ei-list-selected-icon"),(0,d.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,a)=>{if(a){let i=e.name.substring(0,3);return(0,d.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:o,title:e.name.substring(4)+(n?re(e):""),"data-icon-name":e.name,children:i<="400"?(0,d.jsx)("span",{className:le(i),children:String.fromCharCode(59392+e.c)}):(0,d.jsx)(O,{icon:e})},a)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),me={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:""},ye="safelayout/text-icon",ke={name:ye,title:"Icon (Safelayout)",keywords:[(0,e.__)("Icon","safelayout-elegant-icons"),(0,e.__)("Safelayout","safelayout-elegant-icons"),(0,e.__)("Elegant","safelayout-elegant-icons")],tagName:"span",className:"safelayout-text-icon",attributes:{className:"class",attrib:"dataicon"},contentEditable:!1,edit:function({value:t,onChange:o,isObjectActive:a,activeObjectAttributes:n,contentRef:i}){const r=(0,k.useAnchor)({editableContentElement:i.current,settings:ke});let{attrib:s}=n;return s&&(we=JSON.parse(atob(s))),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.BlockControls,{children:(0,d.jsx)(_.ToolbarGroup,{children:(0,d.jsx)(_.ToolbarButton,{icon:(0,d.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,d.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,d.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,d.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,d.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,d.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),title:(0,e.__)("Insert Icon (Safelayout)","safelayout-elegant-icons"),onClick:()=>{if(s)o((0,k.remove)(t,t.start,t.end));else{we={...me,blockId:_e()},s=btoa(JSON.stringify(we));let e=ve(we);o((0,k.insertObject)(t,{type:ye,attributes:{className:`safelayout-text-icon sl-ei-fo-${we.blockId}`,attrib:s},innerHTML:`<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-text-css-${we.blockId}">.sl-ei-fo-${we.blockId} { ${je(we,e)} }</style>`}))}},isActive:a})})}),a&&(0,d.jsx)(_.Popover,{placement:"top-start",variant:"toolbar",resize:!1,focusOnMount:!1,anchor:r,offset:20,children:(0,d.jsx)("div",{className:"sl-ei-icon-block-format-container",id:"sl-ei-icon-text-container-00",children:(0,d.jsx)(Se,{attributes:we,setAttributes:(e,a)=>{if(a)o((0,k.remove)(t,t.start,t.end));else{for(var n in e)we[n]=e[n];!function(e,t,o){setTimeout((()=>{e.blockId=_e();const a=btoa(JSON.stringify(e));let n=ve(e);const i=t.replacements.slice();i[t.start]={type:ye,attributes:{className:`safelayout-text-icon sl-ei-fo-${e.blockId}`,attrib:a},innerHTML:`<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-text-css-${e.blockId}">.sl-ei-fo-${e.blockId} { ${je(e,n)} }</style>`},o({...t,replacements:i})}),2)}(we,t,o)}}})})})]})}};let we;function Se(t){const{attributes:o,setAttributes:n}=t,{name:i,paths:r,hasBg:l,bgShape:s,top:c,size:f,color:p,strokeColor:b,strokeWidth:h,hasShadow:g,shadow:x,bgColor:u,bgStrokeColor:m,bgStrokeWidth:y,hasBaseShadow:k,baseShadowWidth:w,baseShadowHeight:S,baseShadowTop:C,padding:B,bgRadius:N,effect:A}=o;return(0,a.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-text-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(be,{name:i,paths:r,color:p,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+i.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),a=ie(o);xe("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let i=a?.attributes;i?.color||(i={...i,color:[p[0]]}),i?.strokeColor||(i={...i,strokeColor:[b[0]]}),i?.strokeWidth||(i={...i,strokeWidth:[h[0]]}),n({name:o,paths:a.paths,...i})}}),(0,d.jsx)(_.Panel,{children:(0,d.jsx)(_.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,d.jsx)(pe,{currentEffect:A,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),a=K(o);xe("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect");let i=a?.attributes?.padding;if(i){let e=parseInt(f);e<32?i*=.15:e<50?i*=.25:e<74?i*=.5:e<82&&(i*=.7),n({effect:o,...a?.attributes,padding:Math.round(i)})}else n({effect:o,...a?.attributes})}})})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,d.jsx)(_.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:c,onChange:e=>n({top:e})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(f),onChange:e=>n({size:e+"px"})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:B,disabled:!l,onChange:e=>n({padding:e})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:N,disabled:!l||"rect"!=s,onChange:e=>n({bgRadius:e})})]})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[p.map(((t,o,a)=>(0,d.jsx)(Z,{attribute:t,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+ae(o,a.length),click:e=>{let t=[...p];t[o]=e.target.style.background,n({color:t})},change:e=>{let t=[...p];e&&(t[o]=e),n({color:t})}},o))),b.map(((t,o,a)=>(0,d.jsx)(Z,{attribute:t,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+ae(o,a.length),click:e=>{let t=[...b];t[o]=e.target.style.background,n({strokeColor:t})},change:e=>{let t=[...b];e&&(t[o]=e),n({strokeColor:t})}},o)))]})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,d.jsx)(_.ToggleControl,{checked:l,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>n({hasBg:e})}),(0,d.jsx)(Z,{attribute:u,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>n({bgColor:e.target.style.background}),change:e=>e&&n({bgColor:e}),disabled:!l}),(0,d.jsx)(Z,{attribute:m,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>n({bgStrokeColor:e.target.style.background}),change:e=>e&&n({bgStrokeColor:e}),disabled:!l})]})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:j,children:[h.map(((t,o,a)=>(0,d.jsx)(_.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+ae(o,a.length),min:0,max:200,value:t,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let t=[...h];t[o]=e,n({strokeWidth:t})}},o))),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:y,disabled:!l,onChange:e=>n({bgStrokeWidth:e})})]})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:v,children:[(0,d.jsx)(_.ToggleControl,{checked:g,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>n({hasShadow:e})}),(0,d.jsx)(Z,{attribute:ce(x,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>n({shadow:de(x,3,e.target.style.background)}),change:e=>n({shadow:de(x,3,e)}),disabled:!g}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,2),disabled:!g,onChange:e=>n({shadow:de(x,2,e)})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,0),disabled:!g,onChange:e=>n({shadow:de(x,0,e)})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ce(x,1),disabled:!g,onChange:e=>n({shadow:de(x,1,e)})})]})}),(0,d.jsx)(_.Panel,{children:(0,d.jsxs)(_.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:v,children:[(0,d.jsx)(_.ToggleControl,{checked:k,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>n({hasBaseShadow:e})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:C,disabled:!k,onChange:e=>n({baseShadowTop:e})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:w,disabled:!k,onChange:e=>n({baseShadowWidth:e})}),(0,d.jsx)(_.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:S,disabled:!k,onChange:e=>n({baseShadowHeight:e})})]})}),(0,d.jsx)("div",{style:{textAlign:"center"},children:(0,d.jsx)(_.Button,{variant:"secondary",onClick:()=>n(null,1),style:{marginBottom:"10px"},children:(0,e.__)("Remove this icon","safelayout-elegant-icons")})}),(0,d.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,d.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,d.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})}function _e(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function je(e,t){const o=e.hasBg?`calc(110% - ${Math.round(2.4*Number(e.padding))}px)`:"100%";return`display: inline-block;background-repeat: no-repeat;background-position: center;position: relative;background-size: ${o} ${o}, 100% 100%;top:${e.top}px;width:${e.size};height:${e.size};background-image:${t}`}function ve(e){const t=K(e?.effect),o=function(e,t){return 0!=t.rotateBg&&e.length>1&&(e[0]=e[0].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 96 96","-14 -14 124 124"),e[1]=e[1].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 24 24","-3 -3 30 30")),t.hasBaseShadow&&(0!=t.rotateBg?e.length>1&&(e[0]=e[0].replaceAll("40% 40%","35% 32%").replaceAll("-14 -14 124 124",`-14 -14 124 ${124+Math.max(t.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("-3 -3 30 30",`-3 -3 30 ${30+Math.max((t.baseShadowTop-96+6)/4.5,0)}`)):e.length>1?(e[0]=e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(t.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("0 0 24 24",`0 0 24 ${24+Math.max((t.baseShadowTop-96+6)/3.5,0)}`)):e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(t.baseShadowTop-96+6,0)}`)),e}(function(e){const t=document.createElement("div"),o=(0,w.H)(t);return(0,S.flushSync)((()=>{o.render(e)})),t.firstElementChild.innerHTML.replaceAll("</svg>","</svg>>>.").split(">>.").slice(0,-1)}((0,d.jsx)(T,{attributes:{...e},paths:e.paths,effectObj:t})),e),a="data:image/svg+xml;base64,";let n="";return n=o.length>1?`url('${a}${btoa(o[1])}'), url('${a}${btoa(o[0])}');`:`url('${a}${btoa(o[0])}');`,n}const{name:Ce}=p;(0,t.registerBlockType)({name:Ce,...p},{title:(0,e.__)("Container (Safelayout)","safelayout-elegant-icons"),description:(0,e.__)("Container block.","safelayout-elegant-icons"),icon:i,edit:function(e){return(0,d.jsx)(f,{attributes:e.attributes})},save:function({attributes:e}){return(0,d.jsx)(f,{attributes:e,isInEditor:!1})}}),(0,r.subscribe)((()=>{const e=wp.data.select("core/editor")?.isSavingPost(),t=wp.data.select("core/editor")?.isAutosavingPost();if(!e&&!t){const e=wp.data.select("core/block-editor"),t=e.getBlocksByName("safelayout/safelayout-icon-box"),o=e.getBlocksByClientId(t),a=[];for(let e=0;e<o.length;e++){let t=o[e]?.attributes;"No Effect"==t.effect||a.includes(t?.effect)?t.elementStyle="":(t.elementStyle=y[Number(t?.effect?.substring(6))],a.push(t?.effect))}}}));const{fName:Be,...Ne}=ke;(0,k.registerFormatType)(Be,Ne)})()})(); -
safelayout-elegant-icons/trunk/build/icon-box/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/safelayout-icon-box", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Icon Box (Safelayout)", 7 7 "category": "blocks-safelayout-category", -
safelayout-elegant-icons/trunk/build/icon-box/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' bb6c7b588cf3f5cc879e');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '674b90ed779afb5d0371'); -
safelayout-elegant-icons/trunk/build/icon-box/index.js
r3339507 r3370210 1 (()=>{var e,t={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=i(t,a));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},470:(e,t,a)=>{"use strict";var o=a(795);t.H=o.createRoot,o.hydrateRoot},606:(e,t,a)=>{"use strict";const o=window.wp.i18n,l=window.wp.blocks,n=window.wp.blockEditor;var i=a(452),s=a.n(i);const r=window.wp.element,c=window.wp.data;var f=a(470),d=a(795);const p=window.wp.components,b=window.React,g=window.wp.primitives,u=(0,b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,b.createElement)(g.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),h=(0,b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,b.createElement)(g.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),x=(0,b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,b.createElement)(g.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,b.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,b.createElement)(g.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),y=(0,b.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,b.createElement)(g.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,b.createElement)(g.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,b.createElement)(g.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),k=window.ReactJSXRuntime,_=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],w=e=>e&&-1!=e.indexOf("gradient"),j=(e,t)=>Math.round(e*10**t)/10**t;function C(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=t.indexOf("(")+1,r=0,c=s,f=t.length;for(;c<f;){if(s=1,"#"===t[c])l.push(t.substr(c,s=t.slice(c).search(/,|\)|\s/))),o(n,t,c+s);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,s=t.indexOf(")",c)-c+1)),o(n,t,c+s);else if(-1!=i.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?r=180-Number(t.substr(c,s=a-c)):n.push(t.substr(c,s=e-c)/100)}c+=s}r=-r*(Math.PI/180);const d=j(.5+.5*Math.sin(r),4),p=j(.5-.5*Math.cos(r),4),b=j(.5+.5*Math.sin(r+Math.PI),4),g=j(.5-.5*Math.cos(r+Math.PI),4);return"radial"===t.substr(0,6)?(0,k.jsx)(v,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(B,{id:a,colors:l,offsets:n,x1:d,y1:p,x2:b,y2:g})}function v(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r:i,fx:s,fy:r}=e;return(0,k.jsx)("radialGradient",{id:o,cx:l,cy:n,r:i,fx:s,fy:r,children:(0,k.jsx)(S,{colors:t,offsets:a})})}function B(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:i,y2:s}=e;return(0,k.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:i,y2:s,children:(0,k.jsx)(S,{colors:t,offsets:a})})}function S(e){const{colors:t,offsets:a}=e;return(0,k.jsx)(k.Fragment,{children:t.map(((e,t)=>(0,k.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function N(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let i;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>(0,k.jsxs)("defs",{children:[w(e.fill.type)&&(i=e.fill)&&("radial"===i.type.substr(0,6)?(0,k.jsx)(v,{id:l+t,colors:i.colors,offsets:i.offsets,cx:i.cx,cy:i.cy,r:i.r,fx:i.fx,fy:i.fy}):(0,k.jsx)(B,{id:l+t,colors:i.colors,offsets:i.offsets,x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2})),w(e.stroke.type)&&(i=e.stroke)&&("radial"===i.type.substr(0,6)?(0,k.jsx)(v,{id:n+t,colors:i.colors,offsets:i.offsets,cx:i.cx,cy:i.cy,r:i.r,fx:i.fx,fy:i.fy}):(0,k.jsx)(B,{id:n+t,colors:i.colors,offsets:i.offsets,x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2}))]},t)))})}function A(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,i=`strokeGrad${t+o}`;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,b.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:w(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:w(e.stroke.type)?`url(#${i+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,b.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:w(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:w(e.stroke.type)?`url(#${i+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function P(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function I({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:i,flipHorizontal:s,flipVertical:r,hasBg:c,bgShape:f,bgShapeVal:d,rotateBg:b,size:g,color:u,strokeColor:h,strokeWidth:x,hasShadow:m,shadow:y,svgFilter:v,bgColor:B,bgStrokeColor:S,bgStrokeWidth:P,hasBgShadow:I,bgShadow:V,hasBaseShadow:R,baseShadowWidth:T,baseShadowHeight:O,baseShadowTop:E,padding:M,bgRadius:$,animation:z,slbbAnim:L,label:G,title:H,linkUrl:W,linkRel:F,linkTarget:D}=e,Z=j(.88*$,2),U=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=u.map(((e,t)=>w(e)?`url(#${X+t})`:"")),ee=h.map(((e,t)=>w(e)?`url(#${Y+t})`:"")),te=w(B)?`url(#${J})`:"",ae=w(S)?`url(#${q})`:"",oe=c?`calc(110% - ${Math.round(2.4*Number(M))}px)`:"100%",le=(m?y:"")+("none"!=v?` url(#${v})`:""),ne=I?V:null,ie=0!=b?`rotate(${b}deg)`:null,se=l?.oldAnim?z:L,re=se&&"No Animation"!=se?`sl-ei-icon-block-animation-${se}`:null,ce=(0!=i?`rotate(${i}deg)`:"")+(s||r?` scale(${s?-1:1}, ${r?-1:1})`:""),fe=""!=ce?(c||R?"translate(-50%, -50%) ":"")+ce:null,de=(0,k.jsxs)(k.Fragment,{children:[(c||R)&&(0,k.jsxs)(p.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,k.jsxs)("defs",{children:[""!=te&&(0,k.jsx)(C,{grad:B,id:J}),""!=ae&&(0,k.jsx)(C,{grad:S,id:q}),a&&a.before.length>0&&(0,k.jsx)(N,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,k.jsx)(N,{pos:"after",objArray:a.after,id:n})]}),R&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(N,{pos:"Base",objArray:_,id:n}),(0,k.jsx)("ellipse",{cx:"48",cy:E,rx:T/2,ry:O/2,fill:`url(#${K+0})`})]}),c&&(0,k.jsxs)("g",{style:{transform:ie},children:[a&&a.before.length>0&&(0,k.jsx)(A,{pos:"before",objArray:a.before,id:n,rx:Z}),"rect"===f?(0,k.jsx)(p.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||B,stroke:ae||S,strokeWidth:P,style:{filter:ne}}):(0,k.jsx)("path",{d,fill:te||B,stroke:ae||S,strokeWidth:P,style:{filter:ne}}),a&&a.after.length>0&&(0,k.jsx)(A,{pos:"after",objArray:a.after,id:n,rx:Z})]})]}),(0,k.jsxs)(p.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:fe,height:oe,width:oe},children:[(0,k.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:u[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:h[t],id:Y+t},t)))]}),(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:t.map(((e,t)=>(0,k.jsx)(p.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||u[e.color||0],stroke:ee[e.strokeColor||0]||h[e.strokeColor||0],strokeWidth:x[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,k.jsx)("use",{href:`#${U}`,style:{filter:le||null}}):(0,k.jsx)("use",{xlinkHref:`#${U}`,style:{filter:le||null}})]})]});return W&&!o?(0,k.jsx)("a",{style:{height:g,width:g},href:W,target:D||null,rel:F||null,"aria-label":G||null,title:H||null,className:re,children:de}):(0,k.jsx)("div",{style:{height:g,width:g},"aria-label":G||null,title:H||null,className:re,children:de})}function V({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,k.jsx)("div",{style:{height:l,width:l},children:(0,k.jsxs)(p.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,k.jsx)(p.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,k.jsx)("use",{href:`#${t}`})]})})}const R=({colorValue:e,label:t})=>(0,k.jsxs)(p.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(p.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,k.jsx)(p.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),T=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:n}=e,i={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,k.jsx)(p.Button,{...i,disabled:n,children:(0,k.jsx)(R,{colorValue:o,label:l})})};function O({settings:e,label:t,disabled:a,position:o}){var l;const n={colorValue:null!==(l=e.gradientValue)&&void 0!==l?l:e.colorValue,label:t,disabled:a};return(0,k.jsx)(p.Dropdown,{popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:T(n),renderContent:()=>(0,k.jsx)(p.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,k.jsx)(L,{...e})})})})}const E={name:"color",title:(0,o.__)("Solid","safelayout-elegant-icons"),value:"color"},M={name:"gradient",title:(0,o.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},$=[E,M],z=(0,r.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,k.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,k.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function L({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:n,onColorArrayClick:i,onGradientChange:r,onGradientArrayClick:c,colorValue:f,gradientValue:d,clearable:g,showTitle:u=!1,enableAlpha:h,headingLevel:x}){(0,b.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[E.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p.ColorPalette,{value:f,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,colors:[],headingLevel:x}),(0,k.jsx)(z,{colors:H,onClick:i,tab:"COLOR"})]}),[M.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p.GradientPicker,{__nextHasNoMargin:!0,value:w(d)?d:`linear-gradient(${d} 0%, ${d} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,gradients:[],headingLevel:x}),(0,k.jsx)(z,{colors:W,onClick:c,img:!0,tab:"GRADIENT"})]})};return(0,k.jsx)(p.BaseControl,{__nextHasNoMarginBottom:!0,className:s()("block-editor-color-gradient-control",a),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(p.__experimentalVStack,{spacing:1,children:[u&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(p.BaseControl.VisualLabel,{children:o})})}),(0,k.jsx)(p.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[E]:$,initialTabName:w(d)?M.value:E.value,children:e=>{return t=e.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function G(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:i,position:s}=e;return(0,k.jsx)(O,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:i,position:s})}const H=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],W=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],F={iconPos:"top",hasBg:!0,hasBtn:!0,hasRibbon:!1,hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff"},D={align:void 0,textColor:"#00f",hasBg:!0,bgColor:"#3f3",bold:!1,italic:!1,uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:5,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],effect:"No Effect",slbbAnim:"No Animation",animColor:"#fff"},Z={align:void 0,textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff"},U={icon:!1,iconBack:!1,head:!1,top:"icon"},X={icon:!0,iconBack:!1,head:!0,top:"icon"},Y={position:"relative",zIndex:1},J={top:"20px",right:"20px",bottom:"20px",left:"20px"},q=[{type:"color",label:(0,o.__)("Color","safelayout-elegant-icons"),solid:!1,var:"--sl-ei-box-effect-color"},{type:"toggle",label:(0,o.__)("Inner shadow","safelayout-elegant-icons"),varType:"array",var:["--sl-ei-box-effect-shadow","--sl-ei-box-effect-shadow1"],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset","rgb(0 0 0 / 33%) 0 0 13px inset"]}],K=[{type:"color",label:(0,o.__)("Color","safelayout-elegant-icons"),solid:!1,var:"--sl-ei-box-effect-color"},{type:"toggle",label:(0,o.__)("Inner shadow","safelayout-elegant-icons"),varType:"array",var:["--sl-ei-box-effect-shadow"],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset"]}];function Q(e){if(e)return{hasBgShadow:!0,bgShadow:e}}function ee(e){if(e)return{hasTextShadow:!0,textShadow:e}}function te(e,t,a,o,l,n){return{...F,hasRibbon:e,...Q(t),bgPattern:a,patternOpacity:o,effect:l,slbbAnim:n}}function ae(e,t,a,o,l,n,i,s,r,c,f){return{...Z,align:e,textColor:t,bold:a,fontSize:o,posOffset:l,...Q(n),...ee(i),bgPattern:s,patternOpacity:r,hasEffectBorder:c,effectBorderColor:f}}const oe=e=>le.find((({name:t})=>t===e))||null,le=[{name:"No Effect",template:U,attributes:{...F,hasBg:!1,hasBtn:!1}},{name:"effect001",template:U,attributes:{...te(!0,"0px 1px 3px #000","pattern002",.5,"effect001","background-color"),borderRadius:J,effectValue0:"linear-gradient(45deg,#ee9b00 18%,#efca49 79%,#f3dba3 100%)",effectValue1:"true"},rAttributes:{...ae("left","#000",!0,"16px",15,"0px 1px 1px #000","1px 1px 1px #fff","pattern002",.4,!0,"#CC0000"),bgColor:"linear-gradient(180deg,#0076ff 0%,#47f4ff 52%,#078eff 95%,#0083ff 100%)"},bAttributes:{...D,bgColor:"linear-gradient(#fbe225 0%, #efbc22 50%, #efcd62 100%, #e2cda0 100%)",fontSize:"14px",hasBgShadow:!0,bgShadow:"0px 1px 2px #000",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",border:{color:"#fff",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect002",slbbAnim:"shadow",animColor:"#d63638"},effectAttributes:q,baseStyle:Y,effectBgInShape:!0},{name:"effect002",template:U,attributes:{...te(!1,"0px 0px 4px #000","pattern001",.3,"effect002","effect-color"),borderRadius:J,effectValue0:"rgb(255, 102, 102)",effectValue1:"true",animColor:"rgb(255, 51, 51)"},bAttributes:{...D,hasBg:!1,border:{color:"#0000003B",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconPos:"right",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#00f"],effect:"effect001",slbbAnim:"border-color",animColor:"#3e3eff"},effectAttributes:K,baseStyle:Y,effectBgInShape:!0},{name:"effect003",template:U,attributes:{...te(!0,"0px 1px 6px #000000b0","No Pattern",.2,"effect003","slide-top"),blockPadding:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"rgb(255, 51, 51)",effectValue1:"true",animColor:"#ffeded"},rAttributes:{...ae("right","#00f",!0,"16px",0,"0px 1px 1px #000","1px 1px 1px #fff","pattern001",.3,!0,"#CC0000"),bgColor:"linear-gradient(135deg,#ffff00c4 0%,#ff00 100%)"},bAttributes:{...D,bgColor:"rgb(255, 153, 153)",hasBgShadow:!0,bgShadow:"0px 1px 5px #000",border:{color:"#ffffff",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},effect:"effect003",slbbAnim:"slide-bottom"},effectAttributes:[{...K[0],solid:!0},{...K[1]}]},{name:"effect004",template:X,attributes:{...te(!0,"-2px 2px 5px #000","pattern003",.25,"effect004","slide-right"),borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"linear-gradient(#fff2c6 0%, #f07100 100%)",animColor:"linear-gradient(#d1c9a4 0%, #d8d4b8 12%, #dedeca 28%, #e4e7d8 48%, #eaf2ea 67%, #eef8f4 87%, #eef8f4 100%)"},rAttributes:{...ae(void 0,"#00f",!0,"16px",4,"0px 1px 2px #000","1px 1px 1px #fff","pattern002",.3,!0,"#fff"),bgColor:"linear-gradient(#fff2c6 0%, #f07100 100%)",lineHeight:"1.1",effect:"effect002"},bAttributes:{...D,bgColor:"linear-gradient(90deg, #fa804a 0%, #fa8551 50%, #fa9061 50%, #fa9f77 100%)",hasBgShadow:!0,bgShadow:"0px 1px 2px #000",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect004",slbbAnim:"light1",animColor:"#d63638"},effectAttributes:[{...q[0]},{...q[1],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset","rgb(0 0 0 / 35%) 0px 0px 8px inset"]}]},{name:"effect005",template:X,attributes:{...te(!0,"0px 2px 5px #000","pattern002",.3,"effect005","slide-bottom"),borderRadius:{top:"15px",right:"15px",bottom:"15px",left:"15px"},effectValue0:"#33ff33",effectValue1:"#2a872a",animColor:"rgb(255, 204, 204)"},rAttributes:{...ae("right","#00f",!0,"16px",0,"0px 1px 2px #000","1px 1px 1px #fff","pattern004",.4,!0,"#fff"),bgColor:"linear-gradient(#1a786c 0%, #89ff5a 50%, #feedbb 100%)",effect:"effect002"},bAttributes:{...D,hasBgShadow:!0,bgShadow:"0px 1px 2px #000",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect003",bgColor:"#FF9933",textColor:"#fff",slbbAnim:"swap-color"},effectAttributes:[{...K[0],label:(0,o.__)("Fill color","safelayout-elegant-icons")},{type:"color",label:(0,o.__)("Dots color","safelayout-elegant-icons"),solid:!0,var:"--sl-ei-box-effect-color1"},{...K[1]}]},{name:"effect006",template:U,attributes:{...te(!0,"0px 0px 4px #000","pattern005",.1,"effect006","blue-glow"),borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"#ff8200",effectValue1:"true",animColor:"rgb(204, 255, 255)"},rAttributes:{...ae(void 0,"#00f",!0,"18px",22,"1px 1px 1px #000","1px 1px 1px #fff","pattern004",.3,!0,"#fff"),bgColor:"linear-gradient(142deg,#510700 0%,#fd6f53 10%,#fd714c 33%,#ab2000 67%,#7a1400 100%)",effect:"effect004"},bAttributes:{...D,bgColor:"linear-gradient(90deg, #fbe225 0%, #efbc22 50%, #efcd62 51%, #e2cda0 100%)",hasBgShadow:!0,bgShadow:"0px 1px 1px #000000CF",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconName:"000_chevron left",iconPaths:[{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}],iconColor:["rgb(0, 204, 204)"],effect:"effect005",slbbAnim:"brighten"},effectAttributes:K,baseStyle:Y,effectBgInShape:!0},{name:"effect007",template:{icon:!0,iconBack:!1,head:!1,top:"icon"},attributes:{...te(!1,"2px 3px 5px #000","pattern001",.5,"effect007","split-horizontal"),borderRadius:J,effectValue0:"linear-gradient(180deg,#7c03e0 0%,#bdbdff 52%,#6200df 100%)",effectValue1:"true"},bAttributes:{...D,bgColor:"#0ff",hasBgShadow:!0,bgShadow:"0px 1px 1px #000000C7",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",border:{color:"#0000004F",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"000_chevron right",iconPaths:[{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}],effect:"effect002",slbbAnim:"slide-top"},effectAttributes:K}],ne=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ie=[{name:"No Animation",parent:""},{name:"light",inPattern:!0},{name:"light1",inPattern:!0},{name:"background-color",control:!0,label:(0,o.__)("Animation Background color","safelayout-elegant-icons"),solid:!1},{name:"effect-color",base:!0,control:!0,label:(0,o.__)("Animation Effect color","safelayout-elegant-icons"),solid:!0},{name:"border-color",control:!0,label:(0,o.__)("Animation Border color","safelayout-elegant-icons"),solid:!0},{name:"text-color",control:!0,label:(0,o.__)("Animation Text color","safelayout-elegant-icons"),solid:!0},{name:"split-horizontal",inPattern:!0,control:!0,label:(0,o.__)("Animation Split color","safelayout-elegant-icons"),solid:!1},{name:"split-vertical",inPattern:!0,control:!0,label:(0,o.__)("Animation Split color","safelayout-elegant-icons"),solid:!1},{name:"stretch-horizontal",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-vertical",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-corner1",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-corner2",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"slide-top",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-bottom",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-left",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-right",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"transparent-darken",inPattern:!0},{name:"content-zoom-out"},{name:"zoom-in",base:!0},{name:"zoom-out",base:!0},{name:"move-up",base:!0},{name:"move-down",base:!0},{name:"brighten",base:!0},{name:"darken",base:!0},{name:"grayscale",base:!0},{name:"sepia",base:!0},{name:"opacity",base:!0},{name:"shadow",base:!0},{name:"yellow-glow",base:!0},{name:"red-glow",base:!0},{name:"blue-glow",base:!0},{name:"violet-glow",base:!0}],se=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],re=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],ce={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},fe=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:se,attributes:{...ce,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:se,attributes:{...ce,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:se,attributes:{...ce,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:se,attributes:{...ce,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:se,attributes:{...ce,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:se,attributes:{...ce,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:se,attributes:{...ce,bgShape:"path",bgShapeVal:re[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:se,attributes:{...ce,bgShape:"path",bgShapeVal:re[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:re[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],de=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],pe={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},be=(g.SVG,g.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),ge=e=>{let t=de.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},ue=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},he=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},xe=(e,t,a,o,l,n)=>{let i={...be,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},s=l||i?.effect,r=s?(c=s,fe.find((({name:e})=>e===c))||null):null;var c;r?.attributes&&(i={...i,...r?.attributes}),e.attributes=i,e.effectObj=r};(0,r.memo)((function({currentEffect:e,onIconClick:t}){me("sl-ei-list-selected-effect");const a={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:fe.map(((o,l)=>{const n=o.attributes.rotateBg,i=o.name;return xe(a,pe,n?76:92,"effectList"+l,i,o.color),(0,k.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:i===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(i===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":i,children:(0,k.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:pe.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,r.memo)((function({currentAnim:e,onIconClick:t}){me("sl-ei-list-selected-anim");const a={...pe,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:de.map(((l,n)=>(a.attributes.slbbAnim=l.name,xe(o,a,54,"animList"+n,null),(0,k.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ge(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,k.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim));const me=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ye=((0,r.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return me("sl-ei-list-selected-icon"),(0,k.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,k.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?ue(e):""),"data-icon-name":e.name,children:n<="400"?(0,k.jsx)("span",{className:he(n),children:String.fromCharCode(59392+e.c)}):(0,k.jsx)(V,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),a.p+"images/icon-box-effect1.0d2d1f38.webp"),ke=a.p+"images/icon-box-effect2.b94e6e6a.webp";function _e({attributes:e,isInEditor:t=!0,others:a}){const{TagName1:o,TagName2:l,TagHelper:i,className1:r,className2:c,helperCName:f,style1:d,style2:p,helperStyle:b}=e,g=""!=r?`sl-ei-container-block-${r}`:null,u=""!=c?`sl-ei-container-block-${c}`:null,h=a?.children?null:t?(0,n.useBlockProps)():n.useBlockProps.save(),{children:x,...m}=a?.children?{children:a.children}:t?(0,n.useInnerBlocksProps)(h):n.useInnerBlocksProps.save(h),y=(0,k.jsx)(l,{className:u,style:p,children:x});return(0,k.jsxs)(o,{...m,className:s()("sl-ei-container-block",g),style:d,children:[""!=i&&(0,k.jsx)(i,{className:s()(f),style:b}),""!=l?y:x]})}const we={TagName1:"div",TagName2:"",TagHelper:"",className1:"",className2:"",helperCName:"",style1:{},style2:{},helperStyle:{}},je={elementStyle:"",iconPos:"top",iconVerticalPos:"flex-start",hasBg:!1,hasBtn:!1,hasRibbon:!1,bgColor:"linear-gradient(#eff 0%, #10ffff 100%)",hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},label:"",title:"",bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff",classes:"",boxTitle:"Heading",boxDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",minWidth:void 0,minHeight:void 0};SLEImceIcons.iconBox=(e,t)=>{const a=(0,f.H)(e),o=(0,k.jsx)("div",{children:"safe1359icon1359safe"}),l=(0,k.jsx)("div",{children:"safe1359head1359safe"}),n=(0,k.jsx)("div",{children:"safe1359text1359safe"}),i=(0,k.jsx)("div",{children:"safe1359btn1359safe"}),s=(0,k.jsx)("div",{children:"safe1359ribbon1359safe"}),r={icon:o,head:l},c=oe(t.effect),p=t.effect.toLowerCase().replace(" ","-"),b=c.template,g=we,u=t.boxTitle,h=t.boxDescription;let x,m,y=[];b.icon&&(x={className1:`${p}-icon`},b.iconBack&&(x={...x,TagName2:"div",className2:`${p}-icon-back`}),r.icon=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:o}})),b.head&&""!=u&&(x={className1:`${p}-head`},r.head=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:l}})),"icon"==b.top&&""!=u&&y.push(r.head),"icon"!=b.top&&y.push(r.icon),""!=h&&y.push(n),t.hasBtn&&y.push(i),x={className1:`${p}-content`},m=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:y}}),x={className1:p+" sl-ei-container-block-main",...Be(t.bgPattern,t.slbbAnim)},y=[],"icon"==b.top?y.push(r.icon):""!=u&&y.push(r.head),m=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:[...y,m]}}),t.hasRibbon&&(m=[m,s]),(0,d.flushSync)((()=>{a.render((0,k.jsx)(Te,{attributes:t,isInEditor:!1,others:{children:m}}))}))},SLEImceIcons.menuIconBox=(e,t,a)=>{const o=(0,f.H)(e);t={...je,...t},t?.animation&&(t.slbbAnim=t.animation,t.animation=void 0),o.render((0,k.jsx)(Ce,{att:t,others:a}))};const Ce=e=>{let{att:t,others:a}=e;SLEImceIcons.attIconBox=t;const[o,l]=(0,r.useState)(t);return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(ve,{attributes:t,others:a,setAttributes:e=>{for(var o in e)t[o]=e[o];l({...t}),SLEImceIcons.attIconBox=t,a?.callBack&&a.callBack()}})})};function ve(e){const{attributes:t,setAttributes:a,clientId:i,others:r}=e,{hasBg:f,hasBtn:d,hasRibbon:b,bgColor:g,iconPos:_,iconVerticalPos:w,hasBgShadow:j,bgShadow:C,blockPadding:v,blockMargin:B,label:S,title:N,border:A,borderRadius:P,effect:I,bgPattern:V,patternOpacity:R,slbbAnim:T,animColor:O,classes:E,boxTitle:M,boxDescription:$,minWidth:z,minHeight:L}=t,H=r?.hasC?"div":n.InspectorControls,W=r?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,F=r?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null,{__unstableMarkNextChangeAsNotPersistent:D,replaceInnerBlocks:Z,updateBlockAttributes:U}=(0,c.useDispatch)(n.store);function X(e,t){let a=e.split("px ")[t];return t<3?parseFloat(a):a}function Y(e,t,a){let o=e.split("px ");return o[t]=a,o.join("px ")}function J(e,t){for(let a=0;a<e.length;a++)"safelayout/safelayout-icon"===e[a].name||"core/image"===e[a].name?t.icon||(t.icon=e[a]):"core/heading"===e[a].name?t.head=e[a]:"core/paragraph"===e[a].name||"core/group"===e[a].name?t.text||(t.text=e[a]):"safelayout/safelayout-box-button"===e[a].name?t.btn=e[a]:"safelayout/safelayout-box-ribbon"===e[a].name?t.ribbon=e[a]:e[a].innerBlocks.length>0&&J(e[a].innerBlocks,t)}function q(e,t,a,o,n,i,s,r,c){let f,d={className1:`${e}-content`},p=[];i&&p.push(i),o.text&&p.push(o.text),f=!t&&a?[...p,o.btn]:t&&s?[...p,s]:[...p],p=[],n&&(p=[n]);let b=(0,l.createBlock)("safelayout/safelayout-container",d,f);return d={className1:e+" sl-ei-container-block-main",...Be(r,c)},(0,l.createBlock)("safelayout/safelayout-container",d,[...p,b])}function K(e,t,o,n,s,r){const c=oe(e);if(c){const f={icon:null,head:null,text:null,btn:null,ribbon:null};let p,g=null,u=null,h=null,x=b,m=d,y=e.toLowerCase().replace(" ","-"),k=V,_=T;J(wp.data.select("core/block-editor").getBlock(i).innerBlocks,f),o?u={effect:e,...o}:(u={effect:e,...c?.attributes},k=u?.bgPattern,_=u?.slbbAnim,x=c?.attributes?.hasRibbon,x&&(f.ribbon=(0,l.createBlock)("safelayout/safelayout-box-ribbon",{...f?.ribbon?.attributes,...c?.rAttributes})),m=c?.attributes?.hasBtn,m&&(f.btn=(0,l.createBlock)("safelayout/safelayout-box-button",{...f?.btn?.attributes,...c?.bAttributes}))),c.template.icon&&f.icon&&(h={className1:`${y}-icon`},c.template.iconBack&&(h={...h,TagName2:"div",className2:`${y}-icon-back`}),f.icon=(0,l.createBlock)("safelayout/safelayout-container",h,[f.icon])),c.template.head&&f.head&&(h={className1:`${y}-head`},f.head=(0,l.createBlock)("safelayout/safelayout-container",h,[f.head])),g="icon"==c.template.top?q(y,t,m,f,f.icon,f.head,n,k,_):q(y,t,m,f,f.head,f.icon,n,k,_),p=!s&&x?[g,f.ribbon]:s&&r?[g,r]:[g],Z(i,p),D(),a(u)}}return(0,k.jsxs)(H,{children:[!r?.hasC&&(0,k.jsx)(p.Panel,{children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Icon position","safelayout-elegant-icons"),children:[(0,k.jsxs)(p.__experimentalToggleGroupControl,{value:_,isBlock:!0,onChange:e=>a({iconPos:e}),size:"small",children:[(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"left",label:(0,o.__)("Left","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"top",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"right",label:(0,o.__)("Right","safelayout-elegant-icons")})]}),"top"!=_&&(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon vertical align","safelayout-elegant-icons")}),"top"!=_&&(0,k.jsxs)(p.__experimentalToggleGroupControl,{value:w,isBlock:!0,onChange:e=>a({iconVerticalPos:e}),size:"small",children:[(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"flex-start",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"center",label:(0,o.__)("Center","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"flex-end",label:(0,o.__)("Bottom","safelayout-elegant-icons")})]})]})}),r?.hasC&&(0,k.jsxs)("div",{style:{padding:"10px 10px 0",marginBottom:"3px"},children:[(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon position","safelayout-elegant-icons")}),(0,k.jsxs)(p.__experimentalToggleGroupControl,{value:_,isBlock:!0,onChange:e=>a({iconPos:e}),size:"small",children:[(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"left",label:(0,o.__)("Left","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"top",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"right",label:(0,o.__)("Right","safelayout-elegant-icons")})]}),"top"!=_&&(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon vertical align","safelayout-elegant-icons")}),"top"!=_&&(0,k.jsxs)(p.__experimentalToggleGroupControl,{value:w,isBlock:!0,onChange:e=>a({iconVerticalPos:e}),size:"small",children:[(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"flex-start",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"center",label:(0,o.__)("Center","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalToggleGroupControlOption,{value:"flex-end",label:(0,o.__)("Bottom","safelayout-elegant-icons")})]}),(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{fontWeight:"bold"},children:(0,o.__)("Title","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:M.replaceAll("<br>","\n"),onChange:e=>a({boxTitle:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,o.__)("This is the heading","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",width:"100%"}}),(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{marginTop:"5px",fontWeight:"bold"},children:(0,o.__)("Description","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:$.replaceAll("<br>","\n"),onChange:e=>a({boxDescription:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px",width:"100%"}}),(0,k.jsx)(p.ToggleControl,{checked:d,help:(0,o.__)("Add a Read More button to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Read More button","safelayout-elegant-icons"),onChange:e=>a({hasBtn:e})}),(0,k.jsx)(p.ToggleControl,{checked:b,help:(0,o.__)("Add a Ribbon to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Ribbon","safelayout-elegant-icons"),onChange:e=>a({hasRibbon:e})})]}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Box effect","safelayout-elegant-icons"),icon:"admin-customizer",children:[(0,k.jsx)(Ve,{currentEffect:I,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name");if(me("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),r?.hasC){const e=oe(o);e?.attributes?.hasRibbon&&(SLEImceIcons.attRibbon={...SLEImceIcons.attRibbon,...e?.rAttributes,key:SLEImceIcons.attRibbon.key+1}),e?.attributes?.hasBtn&&(SLEImceIcons.attButton={...SLEImceIcons.attButton,...e?.bAttributes,key:SLEImceIcons.attButton.key+1}),a({effect:o,...e?.attributes})}else K(o)}}),"No Effect"!=I&&(0,k.jsx)(p.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Effect property","safelayout-elegant-icons")}),"No Effect"!=I&&oe(I)?.effectAttributes.map(((e,l)=>{switch(e.type){case"color":return(0,k.jsx)(G,{attribute:t["effectValue"+l],label:(0,o.__)(e.label,"safelayout-elegant-icons"),onlySolid:e.solid,click:e=>{let t={};t["effectValue"+l]=e.target.style.background,a(t)},change:e=>{let t={};t["effectValue"+l]=e,a(t)},position:{offset:r?.popoverOffset}},l);case"toggle":return(0,k.jsx)(p.ToggleControl,{checked:""!=t["effectValue"+l],label:(0,o.__)(e.label,"safelayout-elegant-icons"),onChange:e=>{let t={};t["effectValue"+l]=e?"true":"",a(t)}},l)}}))]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(p.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,o.__)("Minimum Width","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:e=>a({minWidth:e}),value:z,size:"small"})]}),(0,k.jsx)(p.Button,{variant:"secondary",onClick:()=>a({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,o.__)("Reset","safelayout-elegant-icons")}),(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(p.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,o.__)("Minimum Height","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:e=>a({minHeight:e}),value:L,size:"small"})]}),(0,k.jsx)(p.Button,{variant:"secondary",onClick:()=>a({minHeight:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,o.__)("Reset","safelayout-elegant-icons")})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,k.jsx)(p.ToggleControl,{checked:f,help:(0,o.__)("Add a background color to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Background color","safelayout-elegant-icons"),onChange:e=>a({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,k.jsx)(G,{attribute:g,label:(0,o.__)("Background color","safelayout-elegant-icons"),click:e=>a({bgColor:e.target.style.background}),change:e=>e&&a({bgColor:e}),disabled:!f,position:{offset:r?.popoverOffset}})]})}),!r?.hasC&&(0,k.jsx)(p.Panel,{children:(0,k.jsx)(p.PanelBody,{title:(0,o.__)("Read More button","safelayout-elegant-icons"),icon:u,initialOpen:!1,children:(0,k.jsx)(p.ToggleControl,{checked:d,help:(0,o.__)("Add a Read More button to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Read More button","safelayout-elegant-icons"),onChange:e=>{if(e){const t={bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",hasBgShadow:!0,bgShadow:"0px 1px 3px #000",borderRadius:{top:"3px",right:"3px",bottom:"3px",left:"3px"},slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"},a=(0,l.createBlock)("safelayout/safelayout-box-button",t);K(I,!0,{hasBtn:e},a)}else K(I,!0,{hasBtn:e})}})})}),!r?.hasC&&(0,k.jsx)(p.Panel,{children:(0,k.jsx)(p.PanelBody,{title:(0,o.__)("Ribbon","safelayout-elegant-icons"),icon:"awards",initialOpen:!1,children:(0,k.jsx)(p.ToggleControl,{checked:b,help:(0,o.__)("Add a Ribbon to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Ribbon","safelayout-elegant-icons"),onChange:e=>{if(e){const t={textColor:"#00f",bgColor:"linear-gradient(0deg, #fff2c6 0%, #FF8D28 100%)",bold:!0,fontSize:"16px",hasBgShadow:!0,bgShadow:"0px 1px 1px #000",effect:"effect001",hasEffectBorder:!0,effectBorderColor:"#00f"},a=(0,l.createBlock)("safelayout/safelayout-box-ribbon",t);K(I,!1,{hasRibbon:e},null,!0,a)}else K(I,!1,{hasRibbon:e},null,!0)}})})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(p.__experimentalBorderBoxControl,{onChange:e=>a({border:e}),value:A,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:r?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,k.jsx)(p.Button,{variant:"secondary",onClick:()=>a({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,o.__)("Reset","safelayout-elegant-icons")}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,o.__)("Border radius","safelayout-elegant-icons"),values:P,onChange:e=>a({borderRadius:e})})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Background pattern","safelayout-elegant-icons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(p.RangeControl,{label:(0,o.__)("Pattern opacity","safelayout-elegant-icons"),min:.1,max:1,step:.05,className:"sl-ei-icon-block-no-margin-bottom",value:R,withInputField:!1,disabled:"No Pattern"===V,onChange:e=>a({patternOpacity:e})}),(0,k.jsx)(Ae,{currentPattern:V,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-pattern-name");if(me("sl-ei-list-selected-pattern"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-pattern"),r?.hasC)a({bgPattern:o});else{const e=wp.data.select("core/block-editor").getBlock(i),t=e.attributes.slbbAnim;if(e.innerBlocks.length>0)if("safelayout/safelayout-container"!=e.innerBlocks[0].name){const n={icon:null,head:null,text:null};let s=null,r="no-effect";J(e.innerBlocks,n);let c={className1:`${r}-content`};s=(0,l.createBlock)("safelayout/safelayout-container",c,[n.head,n.text]),c={className1:r+" sl-ei-container-block-main",...Be(o,t)},s=(0,l.createBlock)("safelayout/safelayout-container",c,[n.icon,s]),Z(i,[s]),D(),a({bgPattern:o})}else{const a={};a[e.innerBlocks[0].clientId]=Be(o,t),a[i]={bgPattern:o},U([e.innerBlocks[0].clientId,i],a,!0)}}}})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(p.ToggleControl,{checked:j,label:(0,o.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBgShadow:e})}),(0,k.jsx)(G,{attribute:X(C,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({bgShadow:Y(C,3,e.target.style.background)}),change:e=>a({bgShadow:Y(C,3,e)}),disabled:!j,position:{offset:r?.popoverOffset}}),(0,k.jsx)(p.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,2),disabled:!j,onChange:e=>a({bgShadow:Y(C,2,e)})}),(0,k.jsx)(p.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,0),disabled:!j,onChange:e=>a({bgShadow:Y(C,0,e)})}),(0,k.jsx)(p.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,1),disabled:!j,onChange:e=>a({bgShadow:Y(C,1,e)})})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:["No Animation"!=T&&Pe(T)?.control&&(0,k.jsx)(G,{attribute:O,label:(0,o.__)(Pe(T)?.label,"safelayout-elegant-icons"),onlySolid:Pe(T)?.solid,click:e=>a({animColor:e.target.style.background}),change:e=>a({animColor:e}),position:{offset:r?.popoverOffset}}),(0,k.jsx)(Ie,{currentAnim:T,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name"),l=Pe(o),n=r?.hasC?null:wp.data.select("core/block-editor").getBlock(i),s=r?.hasC?SLEImceIcons.attIconBox.animColor:n.attributes.animColor,c=r?.hasC?null:n.attributes.bgPattern;let f={};if(l?.solid&&-1!==s.indexOf("gradient")&&(f={animColor:"#fff"}),me("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),r?.hasC)a({slbbAnim:o,...f});else{const e={};e[n.innerBlocks[0].clientId]=Be(c,o),e[i]={slbbAnim:o,...f},U([n.innerBlocks[0].clientId,i],e,!0)}}})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,k.jsx)(p.__experimentalBoxControl,{label:(0,o.__)("Margin","safelayout-elegant-icons"),values:B,onChange:e=>a({blockMargin:e})}),(0,k.jsx)(p.__experimentalBoxControl,{label:(0,o.__)("Padding","safelayout-elegant-icons"),values:v,onChange:e=>a({blockPadding:e})})]})}),(0,k.jsx)(p.Panel,{className:s()(W),children:(0,k.jsxs)(p.PanelBody,{title:(0,o.__)("Tooltip and Label","safelayout-elegant-icons"),initialOpen:!1,icon:"testimonial",children:[(0,k.jsx)(p.TextControl,{label:(0,o.__)("Tooltip","safelayout-elegant-icons"),value:N||"",onChange:e=>a({title:e})}),(0,k.jsx)(p.TextControl,{label:(0,o.__)("Label","safelayout-elegant-icons"),value:S||"",onChange:e=>a({label:e}),help:(0,o.__)("It is for screen readers.","safelayout-elegant-icons")})]})}),r?.hasC&&(0,k.jsx)(p.Panel,{className:s()(F),children:(0,k.jsx)(p.PanelBody,{title:(0,o.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:y,className:"sl-ei-icon-block-link-panel",children:(0,k.jsx)(p.TextControl,{label:(0,o.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:E||"",onChange:e=>a({classes:e}),help:(0,o.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,k.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,k.jsx)("a",{href:(0,o.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,o.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,o.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})}function Be(e,t){let a="",o="",l=Pe(t)?.inPattern;return("No Pattern"!=e||l)&&(a="div",o="sl-ei-icon-box-back-pattern-anim "),"No Pattern"!=e&&(o+=`sl-ei-icon-box-back-pattern sl-ei-icon-box-back-pattern-${e} `),l&&(o+=`sl-ei-icon-box-back-anim sl-ei-icon-box-back-animation-${t}`),{TagHelper:a,helperCName:o}}function Se(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}function Ne(e,t,a){return t&&(e=t?.top?{...e,...Se("Top",t?.top),...Se("Right",t?.right),...Se("Bottom",t?.bottom),...Se("Left",t?.left)}:{...e,...Se("",t)}),a&&(e={...e,borderTopLeftRadius:a?.top||null,borderTopRightRadius:a?.right||null,borderBottomRightRadius:a?.bottom||null,borderBottomLeftRadius:a?.left||null}),e}const Ae=(0,r.memo)((function({currentPattern:e,onIconClick:t}){return me("sl-ei-list-selected-pattern"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"155px"},children:ne.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:a===e?"sl-ei-list-selected-pattern":null,className:"sl-ei-icon-block-animlist"+(a===e?" sl-ei-list-selected":""),onClick:t,title:a,"data-pattern-name":a,children:(0,k.jsx)("div",{className:"sl-ei-icon-box-back-pattern-anim sl-ei-icon-box-back-pattern sl-ei-icon-box-back-pattern-"+a.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",opacity:"0.8",zIndex:"1"}})},o)))})}),((e,t)=>e.currentPattern===t.currentPattern)),Pe=e=>ie.find((({name:t})=>t===e))||null,Ie=(0,r.memo)((function({currentAnim:e,onIconClick:t}){return me("sl-ei-list-selected-anim"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:ie.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",textAlign:"center",padding:"6px","--sl-ei-box-anim-color":"#6f6fff"},id:a.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+(a?.parent||"")+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name.replaceAll("-"," "),"data-anim-name":a.name,children:(0,k.jsx)("div",{className:`sl-ei-icon-box-block-animation-${a.name}`,style:{background:"#bebebe",transition:"all 0.2s linear","--sl-ei-box-effect-color":"#47ff47"},children:(0,k.jsxs)("div",{className:"sl-ei-container-block-main sl-ei-icon-box-block-animlist-parent"+(a?.inPattern?` sl-ei-icon-box-back-anim sl-ei-icon-box-back-animation-${a.name}`:""),children:[(0,k.jsx)("div",{className:"sl-ei-icon-box-block-animlist"}),"icon box"]})})},o)))})}),((e,t)=>e.currentAnim===t.currentAnim)),Ve=(0,r.memo)((function({currentEffect:e,onIconClick:t}){return me("sl-ei-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-ei-icon-block-effects-container",style:{height:"298px"},children:[(0,k.jsxs)("div",{class:"sl-ei-ribbon-block-effect-images",children:[(0,k.jsx)("img",{src:ye}),(0,k.jsx)("img",{src:ke})]}),le.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",position:"relative",height:"140px",padding:"6px"},id:a.name===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name,"data-effect-name":a.name},o)))]})}),((e,t)=>e.currentEffect===t.currentEffect)),Re={name:"403_night landscape",paths:[{d:"M8.849 9.416 1.917 19.5 15.781 19.5z",color:0,style:{filter:"brightness(0.8)"}},{d:"M16.033 11.937 9.983 19.5 22.083 19.5z",color:0},{d:"M19.94 4.5C20.234 4.963 20.403 5.467 20.403 6.055c0 1.639-1.303 2.941-2.941 2.941-.294 0-.546-.042-.798-.127.504 .841 1.428 1.387 2.479 1.387 1.639 0 2.941-1.303 2.941-2.941C22.083 5.972 21.201 4.837 19.94 4.5z",color:1}],color:["#9575CD","#40C4FF"],rotateBg:90,size:"168px",align:"center",hasShadow:!0,shadow:"drop-shadow(0px 1px 1px #000)",hasBgShadow:!0,bgShadow:"drop-shadow(1px -1px 1px #000)",hasBaseShadow:!0,padding:20,bgColor:"linear-gradient(235deg, #b259ff 0%, #d29aff 24%, #a6ff66 75%, #8cff4c 99%, #8cff4c 100%)",bgRadius:50,bgStrokeWidth:0,effect:"effect004"};function Te({attributes:e,template:t,isInEditor:a=!0,others:o}){const{elementStyle:l,hasBg:i,bgColor:r,iconPos:c,iconVerticalPos:f,hasBgShadow:d,bgShadow:p,blockMargin:b,blockPadding:g,label:u,title:h,border:x,borderRadius:m,effect:y,bgPattern:_,patternOpacity:w,animation:j,slbbAnim:C,animColor:v,classes:B,minWidth:S,minHeight:N}=e;let A=P(null,b,g);A=Ne(A,x,m);const I=o?.oldAnim?j:C,V=Pe(I),R=I&&"No Animation"!=I&&!V?.base?`sl-ei-icon-box-block-animation-${I}`:null,T=I&&"No Animation"!=I&&V?.base?`sl-ei-icon-box-block-animation-${I}`:null,O="No Effect"!=y?`sl-ei-icon-box-block-${y}`:null,E={className:s()(`sl-ei-icon-box-block-${c}`,O,R),style:A},M=o?.children?null:a?(0,n.useBlockProps)(E):n.useBlockProps.save(E),{children:$,...z}=o?.children?{children:o.children,...E}:a?(0,n.useInnerBlocksProps)(M,t):n.useInnerBlocksProps.save(M),L=oe(y);let G={"--sl-ei-box-background-color":i?r:null,"--sl-ei-box-back-shadow-color":d?p:null,"--sl-ei-box-pattern-opacity":"No Pattern"!=_?String(w):null,"--sl-ei-box-anim-color":I&&"No Animation"!=I?v:null,"--sl-ei-box-vertical-align":"top"!=c?f:null,minWidth:S||null,minHeight:N||null};return"No Effect"!=y&&(G={...G,...L?.baseStyle},L?.effectAttributes.map(((t,a)=>{"array"==t?.varType?""!=e["effectValue"+a]&&t.var.map(((e,a)=>{G[e]=t.val[a]})):G[t.var]=e["effectValue"+a]}))),(0,k.jsxs)(k.Fragment,{children:[!a&&o?.styleOldPos&&""!=l&&(0,k.jsx)("style",{type:"text/css",id:`safelayout-icon-box-block-${y}-css`,children:l}),(0,k.jsxs)("div",{className:s()("safelayout-ei-icon-box-block",T,B),style:G,children:[L?.effectBgOutShape&&(0,k.jsx)("div",{className:`sl-ei-icon-box-back-shape-${y}`,style:Ne(P(null,b,g),null,m)}),(0,k.jsxs)("div",{...z,"aria-label":u||null,title:h||null,children:[L?.effectBgInShape&&(0,k.jsx)("div",{className:`sl-ei-icon-box-back-shape-${y}`}),$]}),!a&&!o?.styleOldPos&&""!=l&&(0,k.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",id:`safelayout-icon-box-block-${y}-css`,children:l})]})]})}const Oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-icon-box","version":"1.3.0","title":"Icon Box (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful SVG icon box.","supports":{"html":false},"attributes":{"elementStyle":{"type":"string","default":""},"iconPos":{"type":"string","default":"top"},"iconVerticalPos":{"type":"string","default":"flex-start"},"hasBg":{"type":"boolean","default":true},"hasBtn":{"type":"boolean","default":false},"hasRibbon":{"type":"boolean","default":false},"bgColor":{"type":"string","default":"linear-gradient(#eff 0%, #10ffff 100%)"},"hasBgShadow":{"type":"boolean","default":true},"bgShadow":{"type":"string","default":"0px 2px 5px #000"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"border":{"type":"object"},"borderRadius":{"type":"object"},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"No Effect"},"effectValue0":{"type":"string","default":""},"effectValue1":{"type":"string","default":""},"effectValue2":{"type":"string","default":""},"effectValue3":{"type":"string","default":""},"slbbAnim":{"type":"string","default":"No Animation"},"animColor":{"type":"string","default":"#fff"},"minWidth":{"type":"string"},"minHeight":{"type":"string"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');function Ee(e,t,a){return{textAlign:e,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function Me(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}const $e={elementStyle:{type:"string",default:""},iconPos:{type:"string",default:"top"},iconVerticalPos:{type:"string",default:"flex-start"},hasBg:{type:"boolean",default:!1},hasBtn:{type:"boolean",default:!1},hasRibbon:{type:"boolean",default:!1},bgColor:{type:"string",default:"linear-gradient(#eff 0%, #10ffff 100%)"},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"3px 3px 5px #000"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},label:{type:"string",default:""},title:{type:"string",default:""},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effect:{type:"string",default:"No Effect"},effectValue0:{type:"string",default:""},effectValue1:{type:"string",default:""},effectValue2:{type:"string",default:""},effectValue3:{type:"string",default:""},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"}},ze={hasBg:{type:"boolean",default:!0},hasBgShadow:{type:"boolean",default:!0},bgShadow:{type:"string",default:"0px 2px 5px #000"}},Le=[{attributes:{...$e,...ze,minWidth:{type:"string"},minHeight:{type:"string"}},migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})},{attributes:{...$e,...ze},save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1,others:{styleOldPos:!0}})},{attributes:$e,save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1})},{attributes:{iconPos:{type:"string",default:"top"},hasBg:{type:"boolean",default:!1},bgColor:{type:"string",default:"linear-gradient(#eff 0%, #10ffff 100%)"},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"3px 3px 5px #000"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},label:{type:"string",default:""},title:{type:"string",default:""},effect:{type:"string",default:"No Effect"},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effectValue0:{type:"string",default:""},effectValue1:{type:"string",default:""},effectValue2:{type:"string",default:""},effectValue3:{type:"string",default:""}},save({attributes:e}){const{hasBg:t,bgColor:a,iconPos:o,hasBgShadow:l,bgShadow:i,blockMargin:s,blockPadding:r,label:c,title:f,border:d,borderRadius:p}=e;let b={...Ee(null,s,r),background:t?a:null,boxShadow:l?i:null};b=function(e,t,a){return t&&(e=t?.top?{...e,...Me("Top",t?.top),...Me("Right",t?.right),...Me("Bottom",t?.bottom),...Me("Left",t?.left)}:{...e,...Me("",t)}),a&&(e={...e,borderTopLeftRadius:a?.top||null,borderTopRightRadius:a?.right||null,borderBottomRightRadius:a?.bottom||null,borderBottomLeftRadius:a?.left||null}),e}(b,d,p);const g=n.useBlockProps.save({className:`sl-ei-icon-box-block-${o}`,style:b}),u=n.useInnerBlocksProps.save(g);return(0,k.jsx)("div",{...u,"aria-label":c||null,title:f||null})}}],{name:Ge}=Oe;(0,l.registerBlockType)({name:Ge,...Oe},{title:(0,o.__)("Icon Box (Safelayout)","safelayout-elegant-icons"),description:(0,o.__)("Beautiful SVG icon box.","safelayout-elegant-icons"),keywords:[(0,o.__)("Icon box","safelayout-elegant-icons"),(0,o.__)("Icons box","safelayout-elegant-icons"),(0,o.__)("Safelayout","safelayout-elegant-icons"),(0,o.__)("Elegant","safelayout-elegant-icons")],icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad201",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-ei-main-icon-grad201)",stroke:"#333333","stroke-width":"1",d:"M11.364.645C12.403.995 9.358 2.713 11.261 3.865 12.331 4.513 14.666 1.581 15.838.923 16.836.368 18.585.255 19.47 2.189 20.591 4.637 19.613 11.005 15.571 13.566 11.487 16.138 6.344 14.832 4.563 10.83 2.496 6.17 7.773-.578 11.363.646ZM12.608 7.281C13.359 8.968 17.444 6.766 16.507 4.4 15.9 2.868 11.898 5.686 12.608 7.281Z"}),(0,k.jsx)("path",{fill:"#2c2c2c",d:"M2.584 20.043C2.308 20.043 2.084 20.267 2.084 20.543 2.084 20.819 2.308 21.043 2.584 21.043H21.416C21.692 21.043 21.916 20.819 21.916 20.543 21.916 20.267 21.692 20.043 21.416 20.043ZM2.584 21.99C2.308 21.99 2.084 22.214 2.084 22.49 2.084 22.766 2.308 22.99 2.584 22.99H21.416C21.692 22.99 21.916 22.766 21.916 22.49 21.916 22.214 21.692 21.99 21.416 21.99ZM6.024 17.2C5.747 17.2 5.524 17.424 5.524 17.7 5.524 17.976 5.747 18.2 6.024 18.2H17.976C18.253 18.2 18.476 17.976 18.476 17.7 18.476 17.424 18.253 17.2 17.976 17.2Z"})]}),example:{attributes:F,innerBlocks:[{name:"safelayout/safelayout-container",attributes:{className1:"no-effect sl-ei-container-block-main"},innerBlocks:[{name:"safelayout/safelayout-icon",attributes:{...Re,size:"82px",padding:10}},{name:"safelayout/safelayout-container",innerBlocks:[{name:"core/heading",attributes:{level:4,textAlign:"center",content:(0,o.__)("Heading","safelayout-elegant-icons")}},{name:"core/paragraph",attributes:{align:"center",content:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons")}}]}]}]},edit:function(e){const{attributes:t,setAttributes:a,clientId:l}=e,n={allowedBlocks:["safelayout/safelayout-icon","safelayout/safelayout-container","core/heading","core/paragraph","core/image","core/group"],template:[["safelayout/safelayout-container",{className1:"no-effect sl-ei-container-block-main"},[["safelayout/safelayout-icon",{...Re,size:"82px",padding:10}],["safelayout/safelayout-container",{},[["core/heading",{level:2,textAlign:"center",placeholder:(0,o.__)("Heading","safelayout-elegant-icons")}],["core/paragraph",{align:"center",placeholder:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons")}]]]]]],templateLock:"insert"};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ve,{attributes:t,setAttributes:a,clientId:l}),(0,k.jsx)(Te,{attributes:t,template:n})]})},save:function({attributes:e}){return(0,k.jsx)(Te,{attributes:e,isInEditor:!1})},deprecated:Le})},795:e=>{"use strict";e.exports=window.ReactDOM}},a={};function o(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,l,n)=>{if(!a){var i=1/0;for(f=0;f<e.length;f++){for(var[a,l,n]=e[f],s=!0,r=0;r<a.length;r++)(!1&n||i>=n)&&Object.keys(o.O).every((e=>o.O[e](a[r])))?a.splice(r--,1):(s=!1,n<i&&(i=n));if(s){e.splice(f--,1);var c=l();void 0!==c&&(t=c)}}return t}n=n||0;for(var f=e.length;f>0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[a,l,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var l=a.length-1;l>-1&&(!e||!/^http(s?):/.test(e));)e=a[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{var e={433:0,165:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var l,n,[i,s,r]=a,c=0;if(i.some((t=>0!==e[t]))){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(r)var f=r(o)}for(t&&t(a);c<i.length;c++)n=i[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(f)},a=globalThis.webpackChunksafelayout_elegant_icons=globalThis.webpackChunksafelayout_elegant_icons||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var l=o.O(void 0,[165],(()=>o(606)));l=o.O(l)})();1 (()=>{var e,t={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=i(t,a));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},470:(e,t,a)=>{"use strict";var o=a(795);t.H=o.createRoot,o.hydrateRoot},606:(e,t,a)=>{"use strict";const o=window.wp.i18n,l=window.wp.blocks,n=window.wp.blockEditor;var i=a(452),s=a.n(i);const r=window.wp.element,c=window.wp.data;var f=a(470),d=a(795);const b=window.wp.components,p=window.React,g=window.wp.primitives,u=(0,p.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),h=(0,p.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),x=(0,p.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,p.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,p.createElement)(g.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),y=(0,p.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,p.createElement)(g.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,p.createElement)(g.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,p.createElement)(g.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),k=window.ReactJSXRuntime,_=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],w=e=>e&&-1!=e.indexOf("gradient"),j=(e,t)=>Math.round(e*10**t)/10**t;function C(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=t.indexOf("(")+1,r=0,c=s,f=t.length;for(;c<f;){if(s=1,"#"===t[c])l.push(t.substr(c,s=t.slice(c).search(/,|\)|\s/))),o(n,t,c+s);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,s=t.indexOf(")",c)-c+1)),o(n,t,c+s);else if(-1!=i.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?r=180-Number(t.substr(c,s=a-c)):n.push(t.substr(c,s=e-c)/100)}c+=s}r=-r*(Math.PI/180);const d=j(.5+.5*Math.sin(r),4),b=j(.5-.5*Math.cos(r),4),p=j(.5+.5*Math.sin(r+Math.PI),4),g=j(.5-.5*Math.cos(r+Math.PI),4);return"radial"===t.substr(0,6)?(0,k.jsx)(v,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(B,{id:a,colors:l,offsets:n,x1:d,y1:b,x2:p,y2:g})}function v(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r:i,fx:s,fy:r}=e;return(0,k.jsx)("radialGradient",{id:o,cx:l,cy:n,r:i,fx:s,fy:r,children:(0,k.jsx)(S,{colors:t,offsets:a})})}function B(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:i,y2:s}=e;return(0,k.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:i,y2:s,children:(0,k.jsx)(S,{colors:t,offsets:a})})}function S(e){const{colors:t,offsets:a}=e;return(0,k.jsx)(k.Fragment,{children:t.map(((e,t)=>(0,k.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function N(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let i;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>(0,k.jsxs)("defs",{children:[w(e.fill.type)&&(i=e.fill)&&("radial"===i.type.substr(0,6)?(0,k.jsx)(v,{id:l+t,colors:i.colors,offsets:i.offsets,cx:i.cx,cy:i.cy,r:i.r,fx:i.fx,fy:i.fy}):(0,k.jsx)(B,{id:l+t,colors:i.colors,offsets:i.offsets,x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2})),w(e.stroke.type)&&(i=e.stroke)&&("radial"===i.type.substr(0,6)?(0,k.jsx)(v,{id:n+t,colors:i.colors,offsets:i.offsets,cx:i.cx,cy:i.cy,r:i.r,fx:i.fx,fy:i.fy}):(0,k.jsx)(B,{id:n+t,colors:i.colors,offsets:i.offsets,x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2}))]},t)))})}function A(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,i=`strokeGrad${t+o}`;return(0,k.jsx)(k.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,p.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:w(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:w(e.stroke.type)?`url(#${i+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,p.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:w(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:w(e.stroke.type)?`url(#${i+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function P(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function I({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:i,flipHorizontal:s,flipVertical:r,hasBg:c,bgShape:f,bgShapeVal:d,rotateBg:p,size:g,color:u,strokeColor:h,strokeWidth:x,hasShadow:m,shadow:y,svgFilter:v,bgColor:B,bgStrokeColor:S,bgStrokeWidth:P,hasBgShadow:I,bgShadow:V,hasBaseShadow:R,baseShadowWidth:T,baseShadowHeight:O,baseShadowTop:E,padding:M,bgRadius:$,animation:z,slbbAnim:L,label:G,title:H,linkUrl:W,linkRel:F,linkTarget:D}=e,Z=j(.88*$,2),U=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,q=`bgStrokeGrad${n}`,K=`fillGradBase${n}`,Q=u.map(((e,t)=>w(e)?`url(#${X+t})`:"")),ee=h.map(((e,t)=>w(e)?`url(#${Y+t})`:"")),te=w(B)?`url(#${J})`:"",ae=w(S)?`url(#${q})`:"",oe=c?`calc(110% - ${Math.round(2.4*Number(M))}px)`:"100%",le=(m?y:"")+("none"!=v?` url(#${v})`:""),ne=I?V:null,ie=0!=p?`rotate(${p}deg)`:null,se=l?.oldAnim?z:L,re=se&&"No Animation"!=se?`sl-ei-icon-block-animation-${se}`:null,ce=(0!=i?`rotate(${i}deg)`:"")+(s||r?` scale(${s?-1:1}, ${r?-1:1})`:""),fe=""!=ce?(c||R?"translate(-50%, -50%) ":"")+ce:null,de=(0,k.jsxs)(k.Fragment,{children:[(c||R)&&(0,k.jsxs)(b.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,k.jsxs)("defs",{children:[""!=te&&(0,k.jsx)(C,{grad:B,id:J}),""!=ae&&(0,k.jsx)(C,{grad:S,id:q}),a&&a.before.length>0&&(0,k.jsx)(N,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,k.jsx)(N,{pos:"after",objArray:a.after,id:n})]}),R&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(N,{pos:"Base",objArray:_,id:n}),(0,k.jsx)("ellipse",{cx:"48",cy:E,rx:T/2,ry:O/2,fill:`url(#${K+0})`})]}),c&&(0,k.jsxs)("g",{style:{transform:ie},children:[a&&a.before.length>0&&(0,k.jsx)(A,{pos:"before",objArray:a.before,id:n,rx:Z}),"rect"===f?(0,k.jsx)(b.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:te||B,stroke:ae||S,strokeWidth:P,style:{filter:ne}}):(0,k.jsx)("path",{d,fill:te||B,stroke:ae||S,strokeWidth:P,style:{filter:ne}}),a&&a.after.length>0&&(0,k.jsx)(A,{pos:"after",objArray:a.after,id:n,rx:Z})]})]}),(0,k.jsxs)(b.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:fe,height:oe,width:oe},children:[(0,k.jsxs)("defs",{children:[Q.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:u[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,k.jsx)(C,{grad:h[t],id:Y+t},t)))]}),(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:t.map(((e,t)=>(0,k.jsx)(b.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||u[e.color||0],stroke:ee[e.strokeColor||0]||h[e.strokeColor||0],strokeWidth:x[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,k.jsx)("use",{href:`#${U}`,style:{filter:le||null}}):(0,k.jsx)("use",{xlinkHref:`#${U}`,style:{filter:le||null}})]})]});return W&&!o?(0,k.jsx)("a",{style:{height:g,width:g},href:W,target:D||null,rel:F||null,"aria-label":G||null,title:H||null,className:re,children:de}):(0,k.jsx)("div",{style:{height:g,width:g},"aria-label":G||null,title:H||null,className:re,children:de})}function V({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,k.jsx)("div",{style:{height:l,width:l},children:(0,k.jsxs)(b.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,k.jsx)(b.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,k.jsx)("use",{href:`#${t}`})]})})}const R=({colorValue:e,label:t})=>(0,k.jsxs)(b.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(b.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,k.jsx)(b.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),T=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:n}=e,i={onClick:t,className:s()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,k.jsx)(b.Button,{...i,disabled:n,children:(0,k.jsx)(R,{colorValue:o,label:l})})};function O({settings:e,label:t,disabled:a,position:o,style:l}){var n;const i={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:t,disabled:a};return(0,k.jsx)(b.Dropdown,{style:l,popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:T(i),renderContent:()=>(0,k.jsx)(b.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,k.jsx)(L,{...e})})})})}const E={name:"color",title:(0,o.__)("Solid","safelayout-elegant-icons"),value:"color"},M={name:"gradient",title:(0,o.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},$=[E,M],z=(0,r.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,k.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,k.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function L({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:n,onColorArrayClick:i,onGradientChange:r,onGradientArrayClick:c,colorValue:f,gradientValue:d,clearable:g,showTitle:u=!1,enableAlpha:h,headingLevel:x}){(0,p.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const m={[E.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(b.ColorPalette,{value:f,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,colors:[],headingLevel:x}),(0,k.jsx)(z,{colors:H,onClick:i,tab:"COLOR"})]}),[M.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(b.GradientPicker,{__nextHasNoMargin:!0,value:w(d)?d:`linear-gradient(${d} 0%, ${d} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:g,enableAlpha:h,gradients:[],headingLevel:x}),(0,k.jsx)(z,{colors:W,onClick:c,img:!0,tab:"GRADIENT"})]})};return(0,k.jsx)(b.BaseControl,{__nextHasNoMarginBottom:!0,className:s()("block-editor-color-gradient-control",a),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(b.__experimentalVStack,{spacing:1,children:[u&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(b.BaseControl.VisualLabel,{children:o})})}),(0,k.jsx)(b.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[E]:$,initialTabName:w(d)?M.value:E.value,children:e=>{return t=e.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:m[t]});var t}})]})})})}function G(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:i,position:s,style:r}=e;return(0,k.jsx)(O,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:i,position:s,style:r})}const H=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],W=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],F={iconPos:"top",hasBg:!0,hasBtn:!0,hasRibbon:!1,hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff"},D={align:void 0,textColor:"#00f",hasBg:!0,bgColor:"#3f3",bold:!1,italic:!1,uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconPos:"left",iconGap:5,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],effect:"No Effect",slbbAnim:"No Animation",animColor:"#fff"},Z={align:void 0,textColor:"#00f",bgColor:"#ea4335",bold:!1,italic:!1,uppercase:!1,fontSize:"24px",lineHeight:"1.5",letterSpacing:"0px",posOffset:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},bgPattern:"No Pattern",patternOpacity:.2,effect:"effect001",hasEffectBorder:!1,effectBorderColor:"#fff"},U={icon:!1,iconBack:!1,head:!1,top:"icon"},X={icon:!0,iconBack:!1,head:!0,top:"icon"},Y={position:"relative",zIndex:1},J={top:"20px",right:"20px",bottom:"20px",left:"20px"},q=[{type:"color",label:(0,o.__)("Color","safelayout-elegant-icons"),solid:!1,var:"--sl-ei-box-effect-color"},{type:"toggle",label:(0,o.__)("Inner shadow","safelayout-elegant-icons"),varType:"array",var:["--sl-ei-box-effect-shadow","--sl-ei-box-effect-shadow1"],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset","rgb(0 0 0 / 33%) 0 0 13px inset"]}],K=[{type:"color",label:(0,o.__)("Color","safelayout-elegant-icons"),solid:!1,var:"--sl-ei-box-effect-color"},{type:"toggle",label:(0,o.__)("Inner shadow","safelayout-elegant-icons"),varType:"array",var:["--sl-ei-box-effect-shadow"],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset"]}];function Q(e){if(e)return{hasBgShadow:!0,bgShadow:e}}function ee(e){if(e)return{hasTextShadow:!0,textShadow:e}}function te(e,t,a,o,l,n){return{...F,hasRibbon:e,...Q(t),bgPattern:a,patternOpacity:o,effect:l,slbbAnim:n}}function ae(e,t,a,o,l,n,i,s,r,c,f){return{...Z,align:e,textColor:t,bold:a,fontSize:o,posOffset:l,...Q(n),...ee(i),bgPattern:s,patternOpacity:r,hasEffectBorder:c,effectBorderColor:f}}const oe=e=>le.find((({name:t})=>t===e))||null,le=[{name:"No Effect",template:U,attributes:{...F,hasBg:!1,hasBtn:!1}},{name:"effect001",template:U,attributes:{...te(!0,"0px 1px 3px #000","pattern002",.5,"effect001","background-color"),borderRadius:J,effectValue0:"linear-gradient(45deg,#ee9b00 18%,#efca49 79%,#f3dba3 100%)",effectValue1:"true"},rAttributes:{...ae("left","#000",!0,"16px",15,"0px 1px 1px #000","1px 1px 1px #fff","pattern002",.4,!0,"#CC0000"),bgColor:"linear-gradient(180deg,#0076ff 0%,#47f4ff 52%,#078eff 95%,#0083ff 100%)"},bAttributes:{...D,bgColor:"linear-gradient(#fbe225 0%, #efbc22 50%, #efcd62 100%, #e2cda0 100%)",fontSize:"14px",hasBgShadow:!0,bgShadow:"0px 1px 2px #000",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",border:{color:"#fff",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect002",slbbAnim:"shadow",animColor:"#d63638"},effectAttributes:q,baseStyle:Y,effectBgInShape:!0},{name:"effect002",template:U,attributes:{...te(!1,"0px 0px 4px #000","pattern001",.3,"effect002","effect-color"),borderRadius:J,effectValue0:"rgb(255, 102, 102)",effectValue1:"true",animColor:"rgb(255, 51, 51)"},bAttributes:{...D,hasBg:!1,border:{color:"#0000003B",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconPos:"right",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#00f"],effect:"effect001",slbbAnim:"border-color",animColor:"#3e3eff"},effectAttributes:K,baseStyle:Y,effectBgInShape:!0},{name:"effect003",template:U,attributes:{...te(!0,"0px 1px 6px #000000b0","No Pattern",.2,"effect003","slide-top"),blockPadding:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"rgb(255, 51, 51)",effectValue1:"true",animColor:"#ffeded"},rAttributes:{...ae("right","#00f",!0,"16px",0,"0px 1px 1px #000","1px 1px 1px #fff","pattern001",.3,!0,"#CC0000"),bgColor:"linear-gradient(135deg,#ffff00c4 0%,#ff00 100%)"},bAttributes:{...D,bgColor:"rgb(255, 153, 153)",hasBgShadow:!0,bgShadow:"0px 1px 5px #000",border:{color:"#ffffff",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},effect:"effect003",slbbAnim:"slide-bottom"},effectAttributes:[{...K[0],solid:!0},{...K[1]}]},{name:"effect004",template:X,attributes:{...te(!0,"-2px 2px 5px #000","pattern003",.25,"effect004","slide-right"),borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"linear-gradient(#fff2c6 0%, #f07100 100%)",animColor:"linear-gradient(#d1c9a4 0%, #d8d4b8 12%, #dedeca 28%, #e4e7d8 48%, #eaf2ea 67%, #eef8f4 87%, #eef8f4 100%)"},rAttributes:{...ae(void 0,"#00f",!0,"16px",4,"0px 1px 2px #000","1px 1px 1px #fff","pattern002",.3,!0,"#fff"),bgColor:"linear-gradient(#fff2c6 0%, #f07100 100%)",lineHeight:"1.1",effect:"effect002"},bAttributes:{...D,bgColor:"linear-gradient(90deg, #fa804a 0%, #fa8551 50%, #fa9061 50%, #fa9f77 100%)",hasBgShadow:!0,bgShadow:"0px 1px 2px #000",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect004",slbbAnim:"light1",animColor:"#d63638"},effectAttributes:[{...q[0]},{...q[1],val:["rgb(0 0 0 / 45%) 0px 0px 15px inset","rgb(0 0 0 / 35%) 0px 0px 8px inset"]}]},{name:"effect005",template:X,attributes:{...te(!0,"0px 2px 5px #000","pattern002",.3,"effect005","slide-bottom"),borderRadius:{top:"15px",right:"15px",bottom:"15px",left:"15px"},effectValue0:"#33ff33",effectValue1:"#2a872a",animColor:"rgb(255, 204, 204)"},rAttributes:{...ae("right","#00f",!0,"16px",0,"0px 1px 2px #000","1px 1px 1px #fff","pattern004",.4,!0,"#fff"),bgColor:"linear-gradient(#1a786c 0%, #89ff5a 50%, #feedbb 100%)",effect:"effect002"},bAttributes:{...D,hasBgShadow:!0,bgShadow:"0px 1px 2px #000",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},effect:"effect003",bgColor:"#FF9933",textColor:"#fff",slbbAnim:"swap-color"},effectAttributes:[{...K[0],label:(0,o.__)("Fill color","safelayout-elegant-icons")},{type:"color",label:(0,o.__)("Dots color","safelayout-elegant-icons"),solid:!0,var:"--sl-ei-box-effect-color1"},{...K[1]}]},{name:"effect006",template:U,attributes:{...te(!0,"0px 0px 4px #000","pattern005",.1,"effect006","blue-glow"),borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},effectValue0:"#ff8200",effectValue1:"true",animColor:"rgb(204, 255, 255)"},rAttributes:{...ae(void 0,"#00f",!0,"18px",22,"1px 1px 1px #000","1px 1px 1px #fff","pattern004",.3,!0,"#fff"),bgColor:"linear-gradient(142deg,#510700 0%,#fd6f53 10%,#fd714c 33%,#ab2000 67%,#7a1400 100%)",effect:"effect004"},bAttributes:{...D,bgColor:"linear-gradient(90deg, #fbe225 0%, #efbc22 50%, #efcd62 51%, #e2cda0 100%)",hasBgShadow:!0,bgShadow:"0px 1px 1px #000000CF",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconName:"000_chevron left",iconPaths:[{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}],iconColor:["rgb(0, 204, 204)"],effect:"effect005",slbbAnim:"brighten"},effectAttributes:K,baseStyle:Y,effectBgInShape:!0},{name:"effect007",template:{icon:!0,iconBack:!1,head:!1,top:"icon"},attributes:{...te(!1,"2px 3px 5px #000","pattern001",.5,"effect007","split-horizontal"),borderRadius:J,effectValue0:"linear-gradient(180deg,#7c03e0 0%,#bdbdff 52%,#6200df 100%)",effectValue1:"true"},bAttributes:{...D,bgColor:"#0ff",hasBgShadow:!0,bgShadow:"0px 1px 1px #000000C7",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",border:{color:"#0000004F",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"000_chevron right",iconPaths:[{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}],effect:"effect002",slbbAnim:"slide-top"},effectAttributes:K}],ne=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ie=[{name:"No Animation",parent:""},{name:"light",inPattern:!0},{name:"light1",inPattern:!0},{name:"background-color",control:!0,label:(0,o.__)("Animation Background color","safelayout-elegant-icons"),solid:!1},{name:"effect-color",base:!0,control:!0,label:(0,o.__)("Animation Effect color","safelayout-elegant-icons"),solid:!0},{name:"border-color",control:!0,label:(0,o.__)("Animation Border color","safelayout-elegant-icons"),solid:!0},{name:"text-color",control:!0,label:(0,o.__)("Animation Text color","safelayout-elegant-icons"),solid:!0},{name:"split-horizontal",inPattern:!0,control:!0,label:(0,o.__)("Animation Split color","safelayout-elegant-icons"),solid:!1},{name:"split-vertical",inPattern:!0,control:!0,label:(0,o.__)("Animation Split color","safelayout-elegant-icons"),solid:!1},{name:"stretch-horizontal",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-vertical",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-corner1",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"stretch-corner2",inPattern:!0,control:!0,label:(0,o.__)("Animation Stretch color","safelayout-elegant-icons"),solid:!1},{name:"slide-top",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-bottom",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-left",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"slide-right",inPattern:!0,control:!0,label:(0,o.__)("Animation Slide color","safelayout-elegant-icons"),solid:!1},{name:"transparent-darken",inPattern:!0},{name:"content-zoom-out"},{name:"zoom-in",base:!0},{name:"zoom-out",base:!0},{name:"move-up",base:!0},{name:"move-down",base:!0},{name:"brighten",base:!0},{name:"darken",base:!0},{name:"grayscale",base:!0},{name:"sepia",base:!0},{name:"opacity",base:!0},{name:"shadow",base:!0},{name:"yellow-glow",base:!0},{name:"red-glow",base:!0},{name:"blue-glow",base:!0},{name:"violet-glow",base:!0}],se=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],re=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],ce={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},fe=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:se,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:se,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:se,attributes:{...ce,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:se,attributes:{...ce,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:se,attributes:{...ce,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:se,attributes:{...ce,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:se,attributes:{...ce,bgShape:"path",bgShapeVal:re[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:se,attributes:{...ce,bgShape:"path",bgShapeVal:re[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:re[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],de=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],be={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},pe=(g.SVG,g.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),ge=e=>{let t=de.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},ue=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},he=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},xe=(e,t,a,o,l,n)=>{let i={...pe,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},s=l||i?.effect,r=s?(c=s,fe.find((({name:e})=>e===c))||null):null;var c;r?.attributes&&(i={...i,...r?.attributes}),e.attributes=i,e.effectObj=r};(0,r.memo)((function({currentEffect:e,onIconClick:t}){me("sl-ei-list-selected-effect");const a={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:fe.map(((o,l)=>{const n=o.attributes.rotateBg,i=o.name;return xe(a,be,n?76:92,"effectList"+l,i,o.color),(0,k.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:i===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(i===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":i,children:(0,k.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:be.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),(0,r.memo)((function({currentAnim:e,onIconClick:t}){me("sl-ei-list-selected-anim");const a={...be,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:de.map(((l,n)=>(a.attributes.slbbAnim=l.name,xe(o,a,54,"animList"+n,null),(0,k.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ge(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,k.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim));const me=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},ye=((0,r.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return me("sl-ei-list-selected-icon"),(0,k.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,k.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?ue(e):""),"data-icon-name":e.name,children:n<="400"?(0,k.jsx)("span",{className:he(n),children:String.fromCharCode(59392+e.c)}):(0,k.jsx)(V,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary)),a.p+"images/icon-box-effect1.0d2d1f38.webp"),ke=a.p+"images/icon-box-effect2.b94e6e6a.webp";function _e({attributes:e,isInEditor:t=!0,others:a}){const{TagName1:o,TagName2:l,TagHelper:i,className1:r,className2:c,helperCName:f,style1:d,style2:b,helperStyle:p}=e,g=""!=r?`sl-ei-container-block-${r}`:null,u=""!=c?`sl-ei-container-block-${c}`:null,h=a?.children?null:t?(0,n.useBlockProps)():n.useBlockProps.save(),{children:x,...m}=a?.children?{children:a.children}:t?(0,n.useInnerBlocksProps)(h):n.useInnerBlocksProps.save(h),y=(0,k.jsx)(l,{className:u,style:b,children:x});return(0,k.jsxs)(o,{...m,className:s()("sl-ei-container-block",g),style:d,children:[""!=i&&(0,k.jsx)(i,{className:s()(f),style:p}),""!=l?y:x]})}const we={TagName1:"div",TagName2:"",TagHelper:"",className1:"",className2:"",helperCName:"",style1:{},style2:{},helperStyle:{}},je={elementStyle:"",iconPos:"top",iconVerticalPos:"flex-start",hasBg:!1,hasBtn:!1,hasRibbon:!1,bgColor:"linear-gradient(#eff 0%, #10ffff 100%)",hasBgShadow:!1,bgShadow:"3px 3px 5px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},label:"",title:"",bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",effectValue0:"",effectValue1:"",effectValue2:"",effectValue3:"",slbbAnim:"No Animation",animColor:"#fff",classes:"",boxTitle:"Heading",boxDescription:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",minWidth:void 0,minHeight:void 0};SLEImceIcons.iconBox=(e,t)=>{const a=(0,f.H)(e),o=(0,k.jsx)("div",{children:"safe1359icon1359safe"}),l=(0,k.jsx)("div",{children:"safe1359head1359safe"}),n=(0,k.jsx)("div",{children:"safe1359text1359safe"}),i=(0,k.jsx)("div",{children:"safe1359btn1359safe"}),s=(0,k.jsx)("div",{children:"safe1359ribbon1359safe"}),r={icon:o,head:l},c=oe(t.effect),b=t.effect.toLowerCase().replace(" ","-"),p=c.template,g=we,u=t.boxTitle,h=t.boxDescription;let x,m,y=[];p.icon&&(x={className1:`${b}-icon`},p.iconBack&&(x={...x,TagName2:"div",className2:`${b}-icon-back`}),r.icon=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:o}})),p.head&&""!=u&&(x={className1:`${b}-head`},r.head=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:l}})),"icon"==p.top&&""!=u&&y.push(r.head),"icon"!=p.top&&y.push(r.icon),""!=h&&y.push(n),t.hasBtn&&y.push(i),x={className1:`${b}-content`},m=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:y}}),x={className1:b+" sl-ei-container-block-main",...Be(t.bgPattern,t.slbbAnim)},y=[],"icon"==p.top?y.push(r.icon):""!=u&&y.push(r.head),m=(0,k.jsx)(_e,{attributes:{...g,...x},isInEditor:!1,others:{children:[...y,m]}}),t.hasRibbon&&(m=[m,s]),(0,d.flushSync)((()=>{a.render((0,k.jsx)(Te,{attributes:t,isInEditor:!1,others:{children:m}}))}))},SLEImceIcons.menuIconBox=(e,t,a)=>{const o=(0,f.H)(e);t={...je,...t},t?.animation&&(t.slbbAnim=t.animation,t.animation=void 0),o.render((0,k.jsx)(Ce,{att:t,others:a}))};const Ce=e=>{let{att:t,others:a}=e;SLEImceIcons.attIconBox=t;const[o,l]=(0,r.useState)(t);return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(ve,{attributes:t,others:a,setAttributes:e=>{for(var o in e)t[o]=e[o];l({...t}),SLEImceIcons.attIconBox=t,a?.callBack&&a.callBack()}})})};function ve(e){const{attributes:t,setAttributes:a,clientId:i,others:r}=e,{hasBg:f,hasBtn:d,hasRibbon:p,bgColor:g,iconPos:_,iconVerticalPos:w,hasBgShadow:j,bgShadow:C,blockPadding:v,blockMargin:B,label:S,title:N,border:A,borderRadius:P,effect:I,bgPattern:V,patternOpacity:R,slbbAnim:T,animColor:O,classes:E,boxTitle:M,boxDescription:$,minWidth:z,minHeight:L}=t,H=r?.hasC?"div":n.InspectorControls,W=r?.hasC?"safelayout-ei-icon-dialog-mce-panel":null,F=r?.hasC?"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link":null,{__unstableMarkNextChangeAsNotPersistent:D,replaceInnerBlocks:Z,updateBlockAttributes:U}=(0,c.useDispatch)(n.store);function X(e,t){let a=e.split("px ")[t];return t<3?parseFloat(a):a}function Y(e,t,a){let o=e.split("px ");return o[t]=a,o.join("px ")}function J(e,t){for(let a=0;a<e.length;a++)"safelayout/safelayout-icon"===e[a].name||"core/image"===e[a].name?t.icon||(t.icon=e[a]):"core/heading"===e[a].name?t.head=e[a]:"core/paragraph"===e[a].name||"core/group"===e[a].name?t.text||(t.text=e[a]):"safelayout/safelayout-box-button"===e[a].name?t.btn=e[a]:"safelayout/safelayout-box-ribbon"===e[a].name?t.ribbon=e[a]:e[a].innerBlocks.length>0&&J(e[a].innerBlocks,t)}function q(e,t,a,o,n,i,s,r,c){let f,d={className1:`${e}-content`},b=[];i&&b.push(i),o.text&&b.push(o.text),f=!t&&a?[...b,o.btn]:t&&s?[...b,s]:[...b],b=[],n&&(b=[n]);let p=(0,l.createBlock)("safelayout/safelayout-container",d,f);return d={className1:e+" sl-ei-container-block-main",...Be(r,c)},(0,l.createBlock)("safelayout/safelayout-container",d,[...b,p])}function K(e,t,o,n,s,r){const c=oe(e);if(c){const f={icon:null,head:null,text:null,btn:null,ribbon:null};let b,g=null,u=null,h=null,x=p,m=d,y=e.toLowerCase().replace(" ","-"),k=V,_=T;J(wp.data.select("core/block-editor").getBlock(i).innerBlocks,f),o?u={effect:e,...o}:(u={effect:e,...c?.attributes},k=u?.bgPattern,_=u?.slbbAnim,x=c?.attributes?.hasRibbon,x&&(f.ribbon=(0,l.createBlock)("safelayout/safelayout-box-ribbon",{...f?.ribbon?.attributes,...c?.rAttributes})),m=c?.attributes?.hasBtn,m&&(f.btn=(0,l.createBlock)("safelayout/safelayout-box-button",{...f?.btn?.attributes,...c?.bAttributes}))),c.template.icon&&f.icon&&(h={className1:`${y}-icon`},c.template.iconBack&&(h={...h,TagName2:"div",className2:`${y}-icon-back`}),f.icon=(0,l.createBlock)("safelayout/safelayout-container",h,[f.icon])),c.template.head&&f.head&&(h={className1:`${y}-head`},f.head=(0,l.createBlock)("safelayout/safelayout-container",h,[f.head])),g="icon"==c.template.top?q(y,t,m,f,f.icon,f.head,n,k,_):q(y,t,m,f,f.head,f.icon,n,k,_),b=!s&&x?[g,f.ribbon]:s&&r?[g,r]:[g],Z(i,b),D(),a(u)}}return(0,k.jsxs)(H,{children:[!r?.hasC&&(0,k.jsx)(b.Panel,{children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Icon position","safelayout-elegant-icons"),children:[(0,k.jsxs)(b.__experimentalToggleGroupControl,{value:_,isBlock:!0,onChange:e=>a({iconPos:e}),size:"small",children:[(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"left",label:(0,o.__)("Left","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"top",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"right",label:(0,o.__)("Right","safelayout-elegant-icons")})]}),"top"!=_&&(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon vertical align","safelayout-elegant-icons")}),"top"!=_&&(0,k.jsxs)(b.__experimentalToggleGroupControl,{value:w,isBlock:!0,onChange:e=>a({iconVerticalPos:e}),size:"small",children:[(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"flex-start",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"center",label:(0,o.__)("Center","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"flex-end",label:(0,o.__)("Bottom","safelayout-elegant-icons")})]})]})}),r?.hasC&&(0,k.jsxs)("div",{style:{padding:"10px 10px 0",marginBottom:"3px"},children:[(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon position","safelayout-elegant-icons")}),(0,k.jsxs)(b.__experimentalToggleGroupControl,{value:_,isBlock:!0,onChange:e=>a({iconPos:e}),size:"small",children:[(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"left",label:(0,o.__)("Left","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"top",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"right",label:(0,o.__)("Right","safelayout-elegant-icons")})]}),"top"!=_&&(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Icon vertical align","safelayout-elegant-icons")}),"top"!=_&&(0,k.jsxs)(b.__experimentalToggleGroupControl,{value:w,isBlock:!0,onChange:e=>a({iconVerticalPos:e}),size:"small",children:[(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"flex-start",label:(0,o.__)("Top","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"center",label:(0,o.__)("Center","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalToggleGroupControlOption,{value:"flex-end",label:(0,o.__)("Bottom","safelayout-elegant-icons")})]}),(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{fontWeight:"bold"},children:(0,o.__)("Title","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:M.replaceAll("<br>","\n"),onChange:e=>a({boxTitle:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,o.__)("This is the heading","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",width:"100%"}}),(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",style:{marginTop:"5px",fontWeight:"bold"},children:(0,o.__)("Description","safelayout-elegant-icons")}),(0,k.jsx)("textarea",{value:$.replaceAll("<br>","\n"),onChange:e=>a({boxDescription:e.target.value.replaceAll("\n","<br>")}),placeholder:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px",width:"100%"}}),(0,k.jsx)(b.ToggleControl,{checked:d,help:(0,o.__)("Add a Read More button to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Read More button","safelayout-elegant-icons"),onChange:e=>a({hasBtn:e})}),(0,k.jsx)(b.ToggleControl,{checked:p,help:(0,o.__)("Add a Ribbon to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Ribbon","safelayout-elegant-icons"),onChange:e=>a({hasRibbon:e})})]}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Box effect","safelayout-elegant-icons"),icon:"admin-customizer",children:[(0,k.jsx)(Ve,{currentEffect:I,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name");if(me("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect"),r?.hasC){const e=oe(o);e?.attributes?.hasRibbon&&(SLEImceIcons.attRibbon={...SLEImceIcons.attRibbon,...e?.rAttributes,key:SLEImceIcons.attRibbon.key+1}),e?.attributes?.hasBtn&&(SLEImceIcons.attButton={...SLEImceIcons.attButton,...e?.bAttributes,key:SLEImceIcons.attButton.key+1}),a({effect:o,...e?.attributes})}else K(o)}}),"No Effect"!=I&&(0,k.jsx)(b.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Effect property","safelayout-elegant-icons")}),"No Effect"!=I&&oe(I)?.effectAttributes.map(((e,l)=>{switch(e.type){case"color":return(0,k.jsx)(G,{attribute:t["effectValue"+l],label:(0,o.__)(e.label,"safelayout-elegant-icons"),onlySolid:e.solid,click:e=>{let t={};t["effectValue"+l]=e.target.style.background,a(t)},change:e=>{let t={};t["effectValue"+l]=e,a(t)},position:{offset:r?.popoverOffset}},l);case"toggle":return(0,k.jsx)(b.ToggleControl,{checked:""!=t["effectValue"+l],label:(0,o.__)(e.label,"safelayout-elegant-icons"),onChange:e=>{let t={};t["effectValue"+l]=e?"true":"",a(t)}},l)}}))]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(b.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,o.__)("Minimum Width","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:e=>a({minWidth:e}),value:z,size:"small"})]}),(0,k.jsx)(b.Button,{variant:"secondary",onClick:()=>a({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,o.__)("Reset","safelayout-elegant-icons")}),(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(b.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,o.__)("Minimum Height","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:e=>a({minHeight:e}),value:L,size:"small"})]}),(0,k.jsx)(b.Button,{variant:"secondary",onClick:()=>a({minHeight:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,o.__)("Reset","safelayout-elegant-icons")})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,k.jsx)(b.ToggleControl,{checked:f,help:(0,o.__)("Add a background color to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Background color","safelayout-elegant-icons"),onChange:e=>a({hasBg:e}),className:"sl-ei-icon-block-no-margin-bottom"}),(0,k.jsx)(G,{attribute:g,label:(0,o.__)("Background color","safelayout-elegant-icons"),click:e=>a({bgColor:e.target.style.background}),change:e=>e&&a({bgColor:e}),disabled:!f,position:{offset:r?.popoverOffset}})]})}),!r?.hasC&&(0,k.jsx)(b.Panel,{children:(0,k.jsx)(b.PanelBody,{title:(0,o.__)("Read More button","safelayout-elegant-icons"),icon:u,initialOpen:!1,children:(0,k.jsx)(b.ToggleControl,{checked:d,help:(0,o.__)("Add a Read More button to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Read More button","safelayout-elegant-icons"),onChange:e=>{if(e){const t={bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",hasBgShadow:!0,bgShadow:"0px 1px 3px #000",borderRadius:{top:"3px",right:"3px",bottom:"3px",left:"3px"},slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"},a=(0,l.createBlock)("safelayout/safelayout-box-button",t);K(I,!0,{hasBtn:e},a)}else K(I,!0,{hasBtn:e})}})})}),!r?.hasC&&(0,k.jsx)(b.Panel,{children:(0,k.jsx)(b.PanelBody,{title:(0,o.__)("Ribbon","safelayout-elegant-icons"),icon:"awards",initialOpen:!1,children:(0,k.jsx)(b.ToggleControl,{checked:p,help:(0,o.__)("Add a Ribbon to the icon box.","safelayout-elegant-icons"),label:(0,o.__)("Ribbon","safelayout-elegant-icons"),onChange:e=>{if(e){const t={textColor:"#00f",bgColor:"linear-gradient(0deg, #fff2c6 0%, #FF8D28 100%)",bold:!0,fontSize:"16px",hasBgShadow:!0,bgShadow:"0px 1px 1px #000",effect:"effect001",hasEffectBorder:!0,effectBorderColor:"#00f"},a=(0,l.createBlock)("safelayout/safelayout-box-ribbon",t);K(I,!1,{hasRibbon:e},null,!0,a)}else K(I,!1,{hasRibbon:e},null,!0)}})})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Border","safelayout-elegant-icons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(b.__experimentalBorderBoxControl,{onChange:e=>a({border:e}),value:A,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:r?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,k.jsx)(b.Button,{variant:"secondary",onClick:()=>a({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,o.__)("Reset","safelayout-elegant-icons")}),(0,k.jsx)(b.__experimentalBoxControl,{label:(0,o.__)("Border radius","safelayout-elegant-icons"),values:P,onChange:e=>a({borderRadius:e})})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Background pattern","safelayout-elegant-icons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(b.RangeControl,{label:(0,o.__)("Pattern opacity","safelayout-elegant-icons"),min:.1,max:1,step:.05,className:"sl-ei-icon-block-no-margin-bottom",value:R,withInputField:!1,disabled:"No Pattern"===V,onChange:e=>a({patternOpacity:e})}),(0,k.jsx)(Ae,{currentPattern:V,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-pattern-name");if(me("sl-ei-list-selected-pattern"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-pattern"),r?.hasC)a({bgPattern:o});else{const e=wp.data.select("core/block-editor").getBlock(i),t=e.attributes.slbbAnim;if(e.innerBlocks.length>0)if("safelayout/safelayout-container"!=e.innerBlocks[0].name){const n={icon:null,head:null,text:null};let s=null,r="no-effect";J(e.innerBlocks,n);let c={className1:`${r}-content`};s=(0,l.createBlock)("safelayout/safelayout-container",c,[n.head,n.text]),c={className1:r+" sl-ei-container-block-main",...Be(o,t)},s=(0,l.createBlock)("safelayout/safelayout-container",c,[n.icon,s]),Z(i,[s]),D(),a({bgPattern:o})}else{const a={};a[e.innerBlocks[0].clientId]=Be(o,t),a[i]={bgPattern:o},U([e.innerBlocks[0].clientId,i],a,!0)}}}})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(b.ToggleControl,{checked:j,label:(0,o.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBgShadow:e})}),(0,k.jsx)(G,{attribute:X(C,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({bgShadow:Y(C,3,e.target.style.background)}),change:e=>a({bgShadow:Y(C,3,e)}),disabled:!j,position:{offset:r?.popoverOffset}}),(0,k.jsx)(b.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:100,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,2),disabled:!j,onChange:e=>a({bgShadow:Y(C,2,e)})}),(0,k.jsx)(b.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,0),disabled:!j,onChange:e=>a({bgShadow:Y(C,0,e)})}),(0,k.jsx)(b.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:X(C,1),disabled:!j,onChange:e=>a({bgShadow:Y(C,1,e)})})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:["No Animation"!=T&&Pe(T)?.control&&(0,k.jsx)(G,{attribute:O,label:(0,o.__)(Pe(T)?.label,"safelayout-elegant-icons"),onlySolid:Pe(T)?.solid,click:e=>a({animColor:e.target.style.background}),change:e=>a({animColor:e}),position:{offset:r?.popoverOffset}}),(0,k.jsx)(Ie,{currentAnim:T,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name"),l=Pe(o),n=r?.hasC?null:wp.data.select("core/block-editor").getBlock(i),s=r?.hasC?SLEImceIcons.attIconBox.animColor:n.attributes.animColor,c=r?.hasC?null:n.attributes.bgPattern;let f={};if(l?.solid&&-1!==s.indexOf("gradient")&&(f={animColor:"#fff"}),me("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),r?.hasC)a({slbbAnim:o,...f});else{const e={};e[n.innerBlocks[0].clientId]=Be(c,o),e[i]={slbbAnim:o,...f},U([n.innerBlocks[0].clientId,i],e,!0)}}})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,k.jsx)(b.__experimentalBoxControl,{label:(0,o.__)("Margin","safelayout-elegant-icons"),values:B,onChange:e=>a({blockMargin:e})}),(0,k.jsx)(b.__experimentalBoxControl,{label:(0,o.__)("Padding","safelayout-elegant-icons"),values:v,onChange:e=>a({blockPadding:e})})]})}),(0,k.jsx)(b.Panel,{className:s()(W),children:(0,k.jsxs)(b.PanelBody,{title:(0,o.__)("Tooltip and Label","safelayout-elegant-icons"),initialOpen:!1,icon:"testimonial",children:[(0,k.jsx)(b.TextControl,{label:(0,o.__)("Tooltip","safelayout-elegant-icons"),value:N||"",onChange:e=>a({title:e})}),(0,k.jsx)(b.TextControl,{label:(0,o.__)("Label","safelayout-elegant-icons"),value:S||"",onChange:e=>a({label:e}),help:(0,o.__)("It is for screen readers.","safelayout-elegant-icons")})]})}),r?.hasC&&(0,k.jsx)(b.Panel,{className:s()(F),children:(0,k.jsx)(b.PanelBody,{title:(0,o.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:y,className:"sl-ei-icon-block-link-panel",children:(0,k.jsx)(b.TextControl,{label:(0,o.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:E||"",onChange:e=>a({classes:e}),help:(0,o.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,k.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,k.jsx)("a",{href:(0,o.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,o.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,o.__)("Upgrade to Pro","safelayout-elegant-icons")})})]})}function Be(e,t){let a="",o="",l=Pe(t)?.inPattern;return("No Pattern"!=e||l)&&(a="div",o="sl-ei-icon-box-back-pattern-anim "),"No Pattern"!=e&&(o+=`sl-ei-icon-box-back-pattern sl-ei-icon-box-back-pattern-${e} `),l&&(o+=`sl-ei-icon-box-back-anim sl-ei-icon-box-back-animation-${t}`),{TagHelper:a,helperCName:o}}function Se(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}function Ne(e,t,a){return t&&(e=t?.top?{...e,...Se("Top",t?.top),...Se("Right",t?.right),...Se("Bottom",t?.bottom),...Se("Left",t?.left)}:{...e,...Se("",t)}),a&&(e={...e,borderTopLeftRadius:a?.top||null,borderTopRightRadius:a?.right||null,borderBottomRightRadius:a?.bottom||null,borderBottomLeftRadius:a?.left||null}),e}const Ae=(0,r.memo)((function({currentPattern:e,onIconClick:t}){return me("sl-ei-list-selected-pattern"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",style:{height:"155px"},children:ne.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:a===e?"sl-ei-list-selected-pattern":null,className:"sl-ei-icon-block-animlist"+(a===e?" sl-ei-list-selected":""),onClick:t,title:a,"data-pattern-name":a,children:(0,k.jsx)("div",{className:"sl-ei-icon-box-back-pattern-anim sl-ei-icon-box-back-pattern sl-ei-icon-box-back-pattern-"+a.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",opacity:"0.8",zIndex:"1"}})},o)))})}),((e,t)=>e.currentPattern===t.currentPattern)),Pe=e=>ie.find((({name:t})=>t===e))||null,Ie=(0,r.memo)((function({currentAnim:e,onIconClick:t}){return me("sl-ei-list-selected-anim"),(0,k.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:ie.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",textAlign:"center",padding:"6px","--sl-ei-box-anim-color":"#6f6fff"},id:a.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+(a?.parent||"")+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name.replaceAll("-"," "),"data-anim-name":a.name,children:(0,k.jsx)("div",{className:`sl-ei-icon-box-block-animation-${a.name}`,style:{background:"#bebebe",transition:"all 0.2s linear","--sl-ei-box-effect-color":"#47ff47"},children:(0,k.jsxs)("div",{className:"sl-ei-container-block-main sl-ei-icon-box-block-animlist-parent"+(a?.inPattern?` sl-ei-icon-box-back-anim sl-ei-icon-box-back-animation-${a.name}`:""),children:[(0,k.jsx)("div",{className:"sl-ei-icon-box-block-animlist"}),"icon box"]})})},o)))})}),((e,t)=>e.currentAnim===t.currentAnim)),Ve=(0,r.memo)((function({currentEffect:e,onIconClick:t}){return me("sl-ei-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-ei-icon-block-effects-container",style:{height:"298px"},children:[(0,k.jsxs)("div",{class:"sl-ei-ribbon-block-effect-images",children:[(0,k.jsx)("img",{src:ye}),(0,k.jsx)("img",{src:ke})]}),le.map(((a,o)=>(0,k.jsx)("div",{style:{display:"inline-block",position:"relative",height:"140px",padding:"6px"},id:a.name===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(a.name===e?" sl-ei-list-selected":""),onClick:t,title:a.name,"data-effect-name":a.name},o)))]})}),((e,t)=>e.currentEffect===t.currentEffect)),Re={name:"403_night landscape",paths:[{d:"M8.849 9.416 1.917 19.5 15.781 19.5z",color:0,style:{filter:"brightness(0.8)"}},{d:"M16.033 11.937 9.983 19.5 22.083 19.5z",color:0},{d:"M19.94 4.5C20.234 4.963 20.403 5.467 20.403 6.055c0 1.639-1.303 2.941-2.941 2.941-.294 0-.546-.042-.798-.127.504 .841 1.428 1.387 2.479 1.387 1.639 0 2.941-1.303 2.941-2.941C22.083 5.972 21.201 4.837 19.94 4.5z",color:1}],color:["#9575CD","#40C4FF"],rotateBg:90,size:"168px",align:"center",hasShadow:!0,shadow:"drop-shadow(0px 1px 1px #000)",hasBgShadow:!0,bgShadow:"drop-shadow(1px -1px 1px #000)",hasBaseShadow:!0,padding:20,bgColor:"linear-gradient(235deg, #b259ff 0%, #d29aff 24%, #a6ff66 75%, #8cff4c 99%, #8cff4c 100%)",bgRadius:50,bgStrokeWidth:0,effect:"effect004"};function Te({attributes:e,template:t,isInEditor:a=!0,others:o}){const{elementStyle:l,hasBg:i,bgColor:r,iconPos:c,iconVerticalPos:f,hasBgShadow:d,bgShadow:b,blockMargin:p,blockPadding:g,label:u,title:h,border:x,borderRadius:m,effect:y,bgPattern:_,patternOpacity:w,animation:j,slbbAnim:C,animColor:v,classes:B,minWidth:S,minHeight:N}=e;let A=P(null,p,g);A=Ne(A,x,m);const I=o?.oldAnim?j:C,V=Pe(I),R=I&&"No Animation"!=I&&!V?.base?`sl-ei-icon-box-block-animation-${I}`:null,T=I&&"No Animation"!=I&&V?.base?`sl-ei-icon-box-block-animation-${I}`:null,O="No Effect"!=y?`sl-ei-icon-box-block-${y}`:null,E={className:s()(`sl-ei-icon-box-block-${c}`,O,R),style:A},M=o?.children?null:a?(0,n.useBlockProps)(E):n.useBlockProps.save(E),{children:$,...z}=o?.children?{children:o.children,...E}:a?(0,n.useInnerBlocksProps)(M,t):n.useInnerBlocksProps.save(M),L=oe(y);let G={"--sl-ei-box-background-color":i?r:null,"--sl-ei-box-back-shadow-color":d?b:null,"--sl-ei-box-pattern-opacity":"No Pattern"!=_?String(w):null,"--sl-ei-box-anim-color":I&&"No Animation"!=I?v:null,"--sl-ei-box-vertical-align":"top"!=c?f:null,minWidth:S||null,minHeight:N||null};return"No Effect"!=y&&(G={...G,...L?.baseStyle},L?.effectAttributes.map(((t,a)=>{"array"==t?.varType?""!=e["effectValue"+a]&&t.var.map(((e,a)=>{G[e]=t.val[a]})):G[t.var]=e["effectValue"+a]}))),(0,k.jsxs)(k.Fragment,{children:[!a&&o?.styleOldPos&&""!=l&&(0,k.jsx)("style",{type:"text/css",id:`safelayout-icon-box-block-${y}-css`,children:l}),(0,k.jsxs)("div",{className:s()("safelayout-ei-icon-box-block",T,B),style:G,children:[L?.effectBgOutShape&&(0,k.jsx)("div",{className:`sl-ei-icon-box-back-shape-${y}`,style:Ne(P(null,p,g),null,m)}),(0,k.jsxs)("div",{...z,"aria-label":u||null,title:h||null,children:[L?.effectBgInShape&&(0,k.jsx)("div",{className:`sl-ei-icon-box-back-shape-${y}`}),$]}),!a&&!o?.styleOldPos&&""!=l&&(0,k.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",id:`safelayout-icon-box-block-${y}-css`,children:l})]})]})}const Oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-icon-box","version":"1.4.0","title":"Icon Box (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful SVG icon box.","supports":{"html":false},"attributes":{"elementStyle":{"type":"string","default":""},"iconPos":{"type":"string","default":"top"},"iconVerticalPos":{"type":"string","default":"flex-start"},"hasBg":{"type":"boolean","default":true},"hasBtn":{"type":"boolean","default":false},"hasRibbon":{"type":"boolean","default":false},"bgColor":{"type":"string","default":"linear-gradient(#eff 0%, #10ffff 100%)"},"hasBgShadow":{"type":"boolean","default":true},"bgShadow":{"type":"string","default":"0px 2px 5px #000"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"border":{"type":"object"},"borderRadius":{"type":"object"},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"No Effect"},"effectValue0":{"type":"string","default":""},"effectValue1":{"type":"string","default":""},"effectValue2":{"type":"string","default":""},"effectValue3":{"type":"string","default":""},"slbbAnim":{"type":"string","default":"No Animation"},"animColor":{"type":"string","default":"#fff"},"minWidth":{"type":"string"},"minHeight":{"type":"string"}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');function Ee(e,t,a){return{textAlign:e,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function Me(e,t){return{[`border${e}Width`]:t?.width||null,[`border${e}Color`]:t?.color||null,[`border${e}Style`]:t?.style||null}}const $e={elementStyle:{type:"string",default:""},iconPos:{type:"string",default:"top"},iconVerticalPos:{type:"string",default:"flex-start"},hasBg:{type:"boolean",default:!1},hasBtn:{type:"boolean",default:!1},hasRibbon:{type:"boolean",default:!1},bgColor:{type:"string",default:"linear-gradient(#eff 0%, #10ffff 100%)"},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"3px 3px 5px #000"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},label:{type:"string",default:""},title:{type:"string",default:""},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effect:{type:"string",default:"No Effect"},effectValue0:{type:"string",default:""},effectValue1:{type:"string",default:""},effectValue2:{type:"string",default:""},effectValue3:{type:"string",default:""},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"}},ze={hasBg:{type:"boolean",default:!0},hasBgShadow:{type:"boolean",default:!0},bgShadow:{type:"string",default:"0px 2px 5px #000"}},Le=[{attributes:{...$e,...ze,minWidth:{type:"string"},minHeight:{type:"string"}},migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})},{attributes:{...$e,...ze},save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1,others:{styleOldPos:!0}})},{attributes:$e,save:({attributes:e})=>(0,k.jsx)(Te,{attributes:e,isInEditor:!1})},{attributes:{iconPos:{type:"string",default:"top"},hasBg:{type:"boolean",default:!1},bgColor:{type:"string",default:"linear-gradient(#eff 0%, #10ffff 100%)"},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"3px 3px 5px #000"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},label:{type:"string",default:""},title:{type:"string",default:""},effect:{type:"string",default:"No Effect"},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effectValue0:{type:"string",default:""},effectValue1:{type:"string",default:""},effectValue2:{type:"string",default:""},effectValue3:{type:"string",default:""}},save({attributes:e}){const{hasBg:t,bgColor:a,iconPos:o,hasBgShadow:l,bgShadow:i,blockMargin:s,blockPadding:r,label:c,title:f,border:d,borderRadius:b}=e;let p={...Ee(null,s,r),background:t?a:null,boxShadow:l?i:null};p=function(e,t,a){return t&&(e=t?.top?{...e,...Me("Top",t?.top),...Me("Right",t?.right),...Me("Bottom",t?.bottom),...Me("Left",t?.left)}:{...e,...Me("",t)}),a&&(e={...e,borderTopLeftRadius:a?.top||null,borderTopRightRadius:a?.right||null,borderBottomRightRadius:a?.bottom||null,borderBottomLeftRadius:a?.left||null}),e}(p,d,b);const g=n.useBlockProps.save({className:`sl-ei-icon-box-block-${o}`,style:p}),u=n.useInnerBlocksProps.save(g);return(0,k.jsx)("div",{...u,"aria-label":c||null,title:f||null})}}],{name:Ge}=Oe;(0,l.registerBlockType)({name:Ge,...Oe},{title:(0,o.__)("Icon Box (Safelayout)","safelayout-elegant-icons"),description:(0,o.__)("Beautiful SVG icon box.","safelayout-elegant-icons"),keywords:[(0,o.__)("Icon box","safelayout-elegant-icons"),(0,o.__)("Icons box","safelayout-elegant-icons"),(0,o.__)("Safelayout","safelayout-elegant-icons"),(0,o.__)("Elegant","safelayout-elegant-icons")],icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad201",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-ei-main-icon-grad201)",stroke:"#333333","stroke-width":"1",d:"M11.364.645C12.403.995 9.358 2.713 11.261 3.865 12.331 4.513 14.666 1.581 15.838.923 16.836.368 18.585.255 19.47 2.189 20.591 4.637 19.613 11.005 15.571 13.566 11.487 16.138 6.344 14.832 4.563 10.83 2.496 6.17 7.773-.578 11.363.646ZM12.608 7.281C13.359 8.968 17.444 6.766 16.507 4.4 15.9 2.868 11.898 5.686 12.608 7.281Z"}),(0,k.jsx)("path",{fill:"#2c2c2c",d:"M2.584 20.043C2.308 20.043 2.084 20.267 2.084 20.543 2.084 20.819 2.308 21.043 2.584 21.043H21.416C21.692 21.043 21.916 20.819 21.916 20.543 21.916 20.267 21.692 20.043 21.416 20.043ZM2.584 21.99C2.308 21.99 2.084 22.214 2.084 22.49 2.084 22.766 2.308 22.99 2.584 22.99H21.416C21.692 22.99 21.916 22.766 21.916 22.49 21.916 22.214 21.692 21.99 21.416 21.99ZM6.024 17.2C5.747 17.2 5.524 17.424 5.524 17.7 5.524 17.976 5.747 18.2 6.024 18.2H17.976C18.253 18.2 18.476 17.976 18.476 17.7 18.476 17.424 18.253 17.2 17.976 17.2Z"})]}),example:{attributes:F,innerBlocks:[{name:"safelayout/safelayout-container",attributes:{className1:"no-effect sl-ei-container-block-main"},innerBlocks:[{name:"safelayout/safelayout-icon",attributes:{...Re,size:"82px",padding:10}},{name:"safelayout/safelayout-container",innerBlocks:[{name:"core/heading",attributes:{level:4,textAlign:"center",content:(0,o.__)("Heading","safelayout-elegant-icons")}},{name:"core/paragraph",attributes:{align:"center",content:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons")}}]}]}]},edit:function(e){const{attributes:t,setAttributes:a,clientId:l}=e,n={allowedBlocks:["safelayout/safelayout-icon","safelayout/safelayout-container","core/heading","core/paragraph","core/image","core/group"],template:[["safelayout/safelayout-container",{className1:"no-effect sl-ei-container-block-main"},[["safelayout/safelayout-icon",{...Re,size:"82px",padding:10}],["safelayout/safelayout-container",{},[["core/heading",{level:2,textAlign:"center",placeholder:(0,o.__)("Heading","safelayout-elegant-icons")}],["core/paragraph",{align:"center",placeholder:(0,o.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.","safelayout-elegant-icons")}]]]]]],templateLock:"insert"};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ve,{attributes:t,setAttributes:a,clientId:l}),(0,k.jsx)(Te,{attributes:t,template:n})]})},save:function({attributes:e}){return(0,k.jsx)(Te,{attributes:e,isInEditor:!1})},deprecated:Le})},795:e=>{"use strict";e.exports=window.ReactDOM}},a={};function o(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,l,n)=>{if(!a){var i=1/0;for(f=0;f<e.length;f++){for(var[a,l,n]=e[f],s=!0,r=0;r<a.length;r++)(!1&n||i>=n)&&Object.keys(o.O).every((e=>o.O[e](a[r])))?a.splice(r--,1):(s=!1,n<i&&(i=n));if(s){e.splice(f--,1);var c=l();void 0!==c&&(t=c)}}return t}n=n||0;for(var f=e.length;f>0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[a,l,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var l=a.length-1;l>-1&&(!e||!/^http(s?):/.test(e));)e=a[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{var e={433:0,165:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var l,n,[i,s,r]=a,c=0;if(i.some((t=>0!==e[t]))){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(r)var f=r(o)}for(t&&t(a);c<i.length;c++)n=i[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(f)},a=globalThis.webpackChunksafelayout_elegant_icons=globalThis.webpackChunksafelayout_elegant_icons||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var l=o.O(void 0,[165],(()=>o(606)));l=o.O(l)})(); -
safelayout-elegant-icons/trunk/build/icon/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/safelayout-icon", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Icon (Safelayout)", 7 7 "category": "blocks-safelayout-category", -
safelayout-elegant-icons/trunk/build/icon/index-rtl.css
r3311514 r3370210 1 @font-face{font-display:block;font-family:safelayoutwordpress;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpress.856556f1.woff2) format("woff2")}@font-face{font-display:block;font-family:safelayoutwordpressdashicons;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpressdashicons.b20fa40f.woff2) format("woff2")}.sl-ei-icon-block-color-gradient-container{height:150px;padding:2px}.sl-ei-icon-block-color-gradient-container,.sl-ei-icon-block-icons-container{border:1px solid #ccc;box-sizing:border-box;line-height:10px;margin-top:10px;overflow-y:scroll;overscroll-behavior:contain;position:relative;white-space:normal;width:100%}.sl-ei-icon-block-icons-container{height:204px;padding:1px}.sl-ei-icon-block-icons-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-anim-container{border:1px solid #ccc;box-sizing:border-box;height:228px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-anim-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-effects-container{border:1px solid #ccc;box-sizing:border-box;font-size:16px;height:230px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-effects-container .sl-ei-list-selected{box-shadow:inset 0 0 0 7px aqua!important}.sl-ei-ribbon-block-effect-images{right:0;pointer-events:none;position:absolute;top:0;width:100%}.sl-ei-icon-block-color-gradient-container span{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:25px;margin:2px;padding:0;width:25px}.sl-ei-icon-block-color-gradient-container span:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:48px;margin:1px;padding:0;width:48px}.sl-ei-icon-block-list span{color:#5c5c5c;display:inline-block;font-size:47px;font-style:normal;font-variant:normal;font-weight:400;line-height:100%;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased}.sl-ei-icon-block-list:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-font-wordpress{font-family:safelayoutwordpress}.sl-ei-font-wordpressdashicons{font-family:safelayoutwordpressdashicons}.sl-ei-icon-block-animlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:70px;margin:2px;padding:8px;width:71px}.sl-ei-icon-block-animlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-effectlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:106px;margin:3px;padding:7px;width:106px}.sl-ei-icon-block-effectlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-panel{min-height:64px!important;min-width:64px!important}.sl-ei-icon-block-animlist div,.sl-ei-icon-block-effectlist div,.sl-ei-icon-block-list div,.sl-ei-icon-block-panel div{display:inline-block;overflow:visible;position:relative}.sl-ei-icon-block-animlist svg,.sl-ei-icon-block-effectlist svg,.sl-ei-icon-block-list svg,.sl-ei-icon-block-panel svg{display:block;overflow:visible!important;width:100%}.sl-ei-icon-block-animlist svg g,.sl-ei-icon-block-effectlist svg g,.sl-ei-icon-block-list svg g,.sl-ei-icon-block-panel svg g{transform-origin:50% 50%}.sl-ei-icon-block-animlist svg path,.sl-ei-icon-block-animlist svg rect,.sl-ei-icon-block-effectlist svg path,.sl-ei-icon-block-effectlist svg rect,.sl-ei-icon-block-list svg path,.sl-ei-icon-block-list svg rect,.sl-ei-icon-block-panel svg path,.sl-ei-icon-block-panel svg rect{vector-effect:non-scaling-stroke}.sl-ei-icon-block-animlist svg:nth-child(2),.sl-ei-icon-block-effectlist svg:nth-child(2),.sl-ei-icon-block-list svg:nth-child(2),.sl-ei-icon-block-panel svg:nth-child(2){right:50%;position:absolute;top:50%;transform:translate(50%,-50%)}.sl-ei-icon-block-no-margin-bottom{margin-bottom:0!important}.sl-ei-icon-block-low-margin-bottom{margin-bottom:5px!important}.sl-ei-icon-block-no-padding-left-right{padding-right:0!important;padding-left:0!important}.sl-ei-icon-block-color-panel-icon .dashicons{transform:scale(-1)}.sl-ei-icon-block-link-panel .block-editor-link-control{min-width:100%!important}.sl-ei-icon-block-link-panel .block-editor-link-control a{width:80px}.sl-ei-icon-block-custom-icon-name{padding:15px;width:350px}.sl-ei-icon-block-upgrade-pro{border-top:1px solid #e0e0e0;text-align:center}.sl-ei-icon-block-upgrade-pro a{background:rgba(100,201,0,.769)!important;border:1px solid!important;border-radius:3px;box-sizing:border-box;color:blue!important;cursor:pointer;display:inline-block;font-size:13px;line-height:2.15384615;margin:10px!important;min-height:30px;text-align:center!important;text-decoration:none;white-space:nowrap;width:60%}.sl-ei-icon-block-upgrade-pro a:hover{background:rgba(119,238,0,.933)!important}.sl-ei-icon-block-pro-menu{color:#dc3636}.sl-ei-icon-block-format-container{height:400px;overflow:auto;overscroll-behavior:contain;padding:10px;width:330px}.sl-ei-icon-block-format-container .sl-ei-format-text-icon{margin:4px 16px!important}.sl-ei-icon-block-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-format-container .components-panel{margin:10px 0!important;padding-bottom:5px!important}.sl-ei-icon-block-mce-format-container {border:1px solid #7abff7;height:380px;overflow:auto;padding:7px 5px;width:322px}.sl-ei-icon-block-mce-format-container .sl-ei-format-text-icon{margin:0 16px!important}.sl-ei-icon-block-mce-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.safelayout-ei-icon-dialog-mce-panel{margin:8px 0}.safelayout-ei-icon-dialog-mce-panel .components-panel__body-title{background:#e8f2ff}.sl-ei-icon-block-mce-preview-container{border:1px solid #7abff7;height:120px;margin-bottom:5px;text-align:center;width:332px}.sl-ei-icon-block-mce-preview-container .sl-ei-icon-block-mce-preview-title{background-color:#e0e0e0;border-bottom:1px solid #7abff7;margin-bottom:5px;text-align:center}.mce-sl-ei-icon-block-dialog .mce-window-head{background-color:#3858e9!important;border:none!important;min-height:auto!important;padding:5px 0!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-title{color:#fff!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-close .mce-i-remove:before{color:#fff!important;padding:5px 0!important}.safelayout-ei-icon-dialog-mce-panel-link *{white-space:normal}.block-editor-url-input{min-width:95%!important;width:95%!important}.safelayout-ei-elementor-widget-icon{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-main-icon-grad001\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-main-icon-grad001%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.elementor-control-type-Safelayout_icons_control{padding:0 7px!important}.components-simple-tooltip{color:#fff}.sl-ei-pro-version-message{display:inline-block;font-size:11px;line-height:1.3;margin:10px 0;padding:0 10px;text-align:center;-webkit-text-decoration:auto;text-decoration:auto;white-space:normal}1 @font-face{font-display:block;font-family:safelayoutwordpress;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpress.856556f1.woff2) format("woff2")}@font-face{font-display:block;font-family:safelayoutwordpressdashicons;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpressdashicons.b20fa40f.woff2) format("woff2")}.sl-ei-icon-block-color-gradient-container{height:150px;padding:2px}.sl-ei-icon-block-color-gradient-container,.sl-ei-icon-block-icons-container{border:1px solid #ccc;box-sizing:border-box;line-height:10px;margin-top:10px;overflow-y:scroll;overscroll-behavior:contain;position:relative;white-space:normal;width:100%}.sl-ei-icon-block-icons-container{height:204px;padding:1px}.sl-ei-icon-block-icons-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-anim-container{border:1px solid #ccc;box-sizing:border-box;height:228px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-anim-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-effects-container{border:1px solid #ccc;box-sizing:border-box;font-size:16px;height:230px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-effects-container .sl-ei-list-selected{box-shadow:inset 0 0 0 7px aqua!important}.sl-ei-ribbon-block-effect-images{right:0;pointer-events:none;position:absolute;top:0;width:100%}.sl-ei-icon-block-color-gradient-container span{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:25px;margin:2px;padding:0;width:25px}.sl-ei-icon-block-color-gradient-container span:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:48px;margin:1px;padding:0;width:48px}.sl-ei-icon-block-list span{color:#5c5c5c;display:inline-block;font-size:47px;font-style:normal;font-variant:normal;font-weight:400;line-height:100%;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased}.sl-ei-icon-block-list:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-font-wordpress{font-family:safelayoutwordpress}.sl-ei-font-wordpressdashicons{font-family:safelayoutwordpressdashicons}.sl-ei-icon-block-animlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:70px;margin:2px;padding:8px;width:71px}.sl-ei-icon-block-animlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-effectlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:106px;margin:3px;padding:7px;width:106px}.sl-ei-icon-block-effectlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-panel{min-height:64px!important;min-width:64px!important}.sl-ei-icon-block-animlist div,.sl-ei-icon-block-effectlist div,.sl-ei-icon-block-list div,.sl-ei-icon-block-panel div{display:inline-block;overflow:visible;position:relative}.sl-ei-icon-block-animlist svg,.sl-ei-icon-block-effectlist svg,.sl-ei-icon-block-list svg,.sl-ei-icon-block-panel svg{display:block;overflow:visible!important;width:100%}.sl-ei-icon-block-animlist svg g,.sl-ei-icon-block-effectlist svg g,.sl-ei-icon-block-list svg g,.sl-ei-icon-block-panel svg g{transform-origin:50% 50%}.sl-ei-icon-block-animlist svg path,.sl-ei-icon-block-animlist svg rect,.sl-ei-icon-block-effectlist svg path,.sl-ei-icon-block-effectlist svg rect,.sl-ei-icon-block-list svg path,.sl-ei-icon-block-list svg rect,.sl-ei-icon-block-panel svg path,.sl-ei-icon-block-panel svg rect{vector-effect:non-scaling-stroke}.sl-ei-icon-block-animlist svg:nth-child(2),.sl-ei-icon-block-effectlist svg:nth-child(2),.sl-ei-icon-block-list svg:nth-child(2),.sl-ei-icon-block-panel svg:nth-child(2){right:50%;position:absolute;top:50%;transform:translate(50%,-50%)}.sl-ei-icon-block-no-margin-bottom{margin-bottom:0!important}.sl-ei-icon-block-low-margin-bottom{margin-bottom:5px!important}.sl-ei-icon-block-no-padding-left-right{padding-right:0!important;padding-left:0!important}.sl-ei-icon-block-color-panel-icon .dashicons{transform:scale(-1)}.sl-ei-icon-block-link-panel .block-editor-link-control{min-width:100%!important}.sl-ei-icon-block-link-panel .block-editor-link-control a{width:80px}.sl-ei-icon-block-custom-icon-name{padding:15px;width:350px}.sl-ei-icon-block-upgrade-pro{border-top:1px solid #e0e0e0;text-align:center}.sl-ei-icon-block-upgrade-pro a{background:rgba(100,201,0,.769)!important;border:1px solid!important;border-radius:3px;box-sizing:border-box;color:blue!important;cursor:pointer;display:inline-block;font-size:13px;line-height:2.15384615;margin:10px!important;min-height:30px;text-align:center!important;text-decoration:none;white-space:nowrap;width:60%}.sl-ei-icon-block-upgrade-pro a:hover{background:rgba(119,238,0,.933)!important}.sl-ei-icon-block-pro-menu{color:#dc3636}.sl-ei-icon-block-format-container{height:400px;overflow:auto;overscroll-behavior:contain;padding:10px;width:330px}.sl-ei-icon-block-format-container .sl-ei-format-text-icon{margin:4px 16px!important}.sl-ei-icon-block-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-format-container .components-panel{margin:10px 0!important;padding-bottom:5px!important}.sl-ei-icon-block-mce-format-container,.sl-ei-icon-block-social-format-container{border:1px solid #7abff7;height:380px;overflow:auto;padding:7px 5px;width:322px}.sl-ei-icon-block-mce-format-container .sl-ei-format-text-icon,.sl-ei-icon-block-social-format-container .sl-ei-format-text-icon{margin:0 16px!important}.sl-ei-icon-block-mce-format-container .block-editor-panel-color-gradient-settings__dropdown,.sl-ei-icon-block-social-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-social-format-container{margin-top:10px;padding:7px 55px}.safelayout-ei-icon-dialog-mce-panel{margin:8px 0}.safelayout-ei-icon-dialog-mce-panel .components-panel__body-title{background:#e8f2ff}.sl-ei-icon-block-mce-preview-container,.sl-ei-icon-block-social-preview-container{border:1px solid #7abff7;height:120px;margin-bottom:5px;text-align:center;width:332px}.sl-ei-icon-block-mce-preview-container .sl-ei-icon-block-mce-preview-title,.sl-ei-icon-block-social-preview-container .sl-ei-icon-block-mce-preview-title{background-color:#e0e0e0;border-bottom:1px solid #7abff7;margin-bottom:5px;text-align:center}.sl-ei-icon-block-social-preview-container{width:480px}.mce-sl-ei-icon-block-dialog .mce-window-head{background-color:#3858e9!important;border:none!important;min-height:auto!important;padding:5px 0!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-title{color:#fff!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-close .mce-i-remove:before{color:#fff!important;padding:5px 0!important}.safelayout-ei-icon-dialog-mce-panel-link *{white-space:normal}.block-editor-url-input{min-width:95%!important;width:95%!important}.safelayout-ei-elementor-widget-icon{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-main-icon-grad001\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-main-icon-grad001%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.elementor-control-type-Safelayout_icons_control,.elementor-control-type-Safelayout_socialprofiles_control,.elementor-control-type-Safelayout_socialshare_control{padding:0 7px!important}.components-simple-tooltip{color:#fff}.sl-ei-pro-version-message{display:inline-block;font-size:11px;line-height:1.3;margin:10px 0;padding:0 10px;text-align:center;-webkit-text-decoration:auto;text-decoration:auto;white-space:normal}.sl-ei-sort-list{background:#d9f4f7;border:1px solid #e6adda;line-height:1.4;margin:5px;padding:4px}.sl-ei-sort-list-text{display:inline-block;margin-top:2px;opacity:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px}.sl-ei-sort-list-opacity{opacity:.5}.sl-ei-sort-list-button{float:inline-end;height:24px;padding-top:2px;width:24px}.sl-ei-sort-list-knob{cursor:move}.sl-ei-sort-list-delete{cursor:pointer}.sl-ei-sort-list-edit{height:24px!important;padding:4px 10px!important}.sl-ei-social-add-button{height:30px;justify-content:center;padding:4px 12px;width:100%}.sl-ei-social-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:78px;margin:2px;padding:0;text-align:center;width:78px}.sl-ei-social-list,.sl-ei-social-list div{display:inline-block}.sl-ei-social-list-name{display:block!important;margin-top:5px}.safelayout-ei-elementor-widget-socialprofiles{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-social-Profiles-grad101\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-social-Profiles-grad101%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M12 12C13.8 12 15.273 10.527 15.273 8.727S13.8 5.455 12 5.455 8.727 6.927 8.727 8.727 10.2 12 12 12ZM18.545 16.996C18.545 14.269 14.215 13.091 12 13.091S5.455 14.269 5.455 16.996V18.545H18.545V16.996ZM19.636 2.182H4.364C3.153 2.182 2.182 3.164 2.182 4.364V19.636C2.182 20.836 3.153 21.818 4.364 21.818H19.636C20.836 21.818 21.818 20.836 21.818 19.636V4.364C21.818 3.164 20.836 2.182 19.636 2.182Z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.safelayout-ei-elementor-widget-socialshare{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-socialshare-Profiles-grad101\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-socialshare-Profiles-grad101%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M17.7 14.4c1.992 0 3.6 1.608 3.6 3.6s-1.608 3.6-3.6 3.6-3.6-1.608-3.6-3.6c0-.288.036-.552.108-.828l-5.256-2.76c-.66.732-1.596 1.188-2.652 1.188-1.992 0-3.6-1.608-3.6-3.6s1.608-3.6 3.6-3.6c1.056 0 1.992.468 2.652 1.188l5.256-2.76c-.072-.276-.108-.54-.108-.828 0-1.992 1.608-3.6 3.6-3.6s3.6 1.608 3.6 3.6-1.608 3.6-3.6 3.6c-1.056 0-1.992-.468-2.652-1.188l-5.256 2.76c.072.276 .108.54 .108.828s-.036.552-.108.828l5.256 2.76c.66-.732 1.596-1.188 2.652-1.188z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.sl-ei-icon-social-share-note{margin-bottom:5px;text-align:center} -
safelayout-elegant-icons/trunk/build/icon/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 02dae83d7e0524f818e0');1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9efa11eaa3949089d061'); -
safelayout-elegant-icons/trunk/build/icon/index.css
r3311514 r3370210 1 @font-face{font-display:block;font-family:safelayoutwordpress;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpress.856556f1.woff2) format("woff2")}@font-face{font-display:block;font-family:safelayoutwordpressdashicons;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpressdashicons.b20fa40f.woff2) format("woff2")}.sl-ei-icon-block-color-gradient-container{height:150px;padding:2px}.sl-ei-icon-block-color-gradient-container,.sl-ei-icon-block-icons-container{border:1px solid #ccc;box-sizing:border-box;line-height:10px;margin-top:10px;overflow-y:scroll;overscroll-behavior:contain;position:relative;white-space:normal;width:100%}.sl-ei-icon-block-icons-container{height:204px;padding:1px}.sl-ei-icon-block-icons-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-anim-container{border:1px solid #ccc;box-sizing:border-box;height:228px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-anim-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-effects-container{border:1px solid #ccc;box-sizing:border-box;font-size:16px;height:230px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-effects-container .sl-ei-list-selected{box-shadow:inset 0 0 0 7px aqua!important}.sl-ei-ribbon-block-effect-images{left:0;pointer-events:none;position:absolute;top:0;width:100%}.sl-ei-icon-block-color-gradient-container span{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:25px;margin:2px;padding:0;width:25px}.sl-ei-icon-block-color-gradient-container span:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:48px;margin:1px;padding:0;width:48px}.sl-ei-icon-block-list span{color:#5c5c5c;display:inline-block;font-size:47px;font-style:normal;font-variant:normal;font-weight:400;line-height:100%;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased}.sl-ei-icon-block-list:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-font-wordpress{font-family:safelayoutwordpress}.sl-ei-font-wordpressdashicons{font-family:safelayoutwordpressdashicons}.sl-ei-icon-block-animlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:70px;margin:2px;padding:8px;width:71px}.sl-ei-icon-block-animlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-effectlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:106px;margin:3px;padding:7px;width:106px}.sl-ei-icon-block-effectlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-panel{min-height:64px!important;min-width:64px!important}.sl-ei-icon-block-animlist div,.sl-ei-icon-block-effectlist div,.sl-ei-icon-block-list div,.sl-ei-icon-block-panel div{display:inline-block;overflow:visible;position:relative}.sl-ei-icon-block-animlist svg,.sl-ei-icon-block-effectlist svg,.sl-ei-icon-block-list svg,.sl-ei-icon-block-panel svg{display:block;overflow:visible!important;width:100%}.sl-ei-icon-block-animlist svg g,.sl-ei-icon-block-effectlist svg g,.sl-ei-icon-block-list svg g,.sl-ei-icon-block-panel svg g{transform-origin:50% 50%}.sl-ei-icon-block-animlist svg path,.sl-ei-icon-block-animlist svg rect,.sl-ei-icon-block-effectlist svg path,.sl-ei-icon-block-effectlist svg rect,.sl-ei-icon-block-list svg path,.sl-ei-icon-block-list svg rect,.sl-ei-icon-block-panel svg path,.sl-ei-icon-block-panel svg rect{vector-effect:non-scaling-stroke}.sl-ei-icon-block-animlist svg:nth-child(2),.sl-ei-icon-block-effectlist svg:nth-child(2),.sl-ei-icon-block-list svg:nth-child(2),.sl-ei-icon-block-panel svg:nth-child(2){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.sl-ei-icon-block-no-margin-bottom{margin-bottom:0!important}.sl-ei-icon-block-low-margin-bottom{margin-bottom:5px!important}.sl-ei-icon-block-no-padding-left-right{padding-left:0!important;padding-right:0!important}.sl-ei-icon-block-color-panel-icon .dashicons{transform:scale(-1)}.sl-ei-icon-block-link-panel .block-editor-link-control{min-width:100%!important}.sl-ei-icon-block-link-panel .block-editor-link-control a{width:80px}.sl-ei-icon-block-custom-icon-name{padding:15px;width:350px}.sl-ei-icon-block-upgrade-pro{border-top:1px solid #e0e0e0;text-align:center}.sl-ei-icon-block-upgrade-pro a{background:rgba(100,201,0,.769)!important;border:1px solid!important;border-radius:3px;box-sizing:border-box;color:blue!important;cursor:pointer;display:inline-block;font-size:13px;line-height:2.15384615;margin:10px!important;min-height:30px;text-align:center!important;text-decoration:none;white-space:nowrap;width:60%}.sl-ei-icon-block-upgrade-pro a:hover{background:rgba(119,238,0,.933)!important}.sl-ei-icon-block-pro-menu{color:#dc3636}.sl-ei-icon-block-format-container{height:400px;overflow:auto;overscroll-behavior:contain;padding:10px;width:330px}.sl-ei-icon-block-format-container .sl-ei-format-text-icon{margin:4px 16px!important}.sl-ei-icon-block-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-format-container .components-panel{margin:10px 0!important;padding-bottom:5px!important}.sl-ei-icon-block-mce-format-container {border:1px solid #7abff7;height:380px;overflow:auto;padding:7px 5px;width:322px}.sl-ei-icon-block-mce-format-container .sl-ei-format-text-icon{margin:0 16px!important}.sl-ei-icon-block-mce-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.safelayout-ei-icon-dialog-mce-panel{margin:8px 0}.safelayout-ei-icon-dialog-mce-panel .components-panel__body-title{background:#e8f2ff}.sl-ei-icon-block-mce-preview-container{border:1px solid #7abff7;height:120px;margin-bottom:5px;text-align:center;width:332px}.sl-ei-icon-block-mce-preview-container .sl-ei-icon-block-mce-preview-title{background-color:#e0e0e0;border-bottom:1px solid #7abff7;margin-bottom:5px;text-align:center}.mce-sl-ei-icon-block-dialog .mce-window-head{background-color:#3858e9!important;border:none!important;min-height:auto!important;padding:5px 0!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-title{color:#fff!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-close .mce-i-remove:before{color:#fff!important;padding:5px 0!important}.safelayout-ei-icon-dialog-mce-panel-link *{white-space:normal}.block-editor-url-input{min-width:95%!important;width:95%!important}.safelayout-ei-elementor-widget-icon{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-main-icon-grad001\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-main-icon-grad001%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.elementor-control-type-Safelayout_icons_control{padding:0 7px!important}.components-simple-tooltip{color:#fff}.sl-ei-pro-version-message{display:inline-block;font-size:11px;line-height:1.3;margin:10px 0;padding:0 10px;text-align:center;-webkit-text-decoration:auto;text-decoration:auto;white-space:normal}1 @font-face{font-display:block;font-family:safelayoutwordpress;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpress.856556f1.woff2) format("woff2")}@font-face{font-display:block;font-family:safelayoutwordpressdashicons;font-style:normal;font-weight:400;src:url(../fonts/safelayoutwordpressdashicons.b20fa40f.woff2) format("woff2")}.sl-ei-icon-block-color-gradient-container{height:150px;padding:2px}.sl-ei-icon-block-color-gradient-container,.sl-ei-icon-block-icons-container{border:1px solid #ccc;box-sizing:border-box;line-height:10px;margin-top:10px;overflow-y:scroll;overscroll-behavior:contain;position:relative;white-space:normal;width:100%}.sl-ei-icon-block-icons-container{height:204px;padding:1px}.sl-ei-icon-block-icons-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-anim-container{border:1px solid #ccc;box-sizing:border-box;height:228px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-anim-container .sl-ei-list-selected{background:aqua}.sl-ei-icon-block-effects-container{border:1px solid #ccc;box-sizing:border-box;font-size:16px;height:230px;line-height:10px;margin-top:10px;overflow-y:scroll;padding:2px;position:relative;white-space:normal;width:100%;width:250px}.sl-ei-icon-block-effects-container .sl-ei-list-selected{box-shadow:inset 0 0 0 7px aqua!important}.sl-ei-ribbon-block-effect-images{left:0;pointer-events:none;position:absolute;top:0;width:100%}.sl-ei-icon-block-color-gradient-container span{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:25px;margin:2px;padding:0;width:25px}.sl-ei-icon-block-color-gradient-container span:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:48px;margin:1px;padding:0;width:48px}.sl-ei-icon-block-list span{color:#5c5c5c;display:inline-block;font-size:47px;font-style:normal;font-variant:normal;font-weight:400;line-height:100%;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased}.sl-ei-icon-block-list:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-font-wordpress{font-family:safelayoutwordpress}.sl-ei-font-wordpressdashicons{font-family:safelayoutwordpressdashicons}.sl-ei-icon-block-animlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:70px;margin:2px;padding:8px;width:71px}.sl-ei-icon-block-animlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-effectlist{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;display:inline-block;height:106px;margin:3px;padding:7px;width:106px}.sl-ei-icon-block-effectlist:hover{border-radius:0;box-shadow:0 0 0 2px rgba(0,0,0,.9)}.sl-ei-icon-block-panel{min-height:64px!important;min-width:64px!important}.sl-ei-icon-block-animlist div,.sl-ei-icon-block-effectlist div,.sl-ei-icon-block-list div,.sl-ei-icon-block-panel div{display:inline-block;overflow:visible;position:relative}.sl-ei-icon-block-animlist svg,.sl-ei-icon-block-effectlist svg,.sl-ei-icon-block-list svg,.sl-ei-icon-block-panel svg{display:block;overflow:visible!important;width:100%}.sl-ei-icon-block-animlist svg g,.sl-ei-icon-block-effectlist svg g,.sl-ei-icon-block-list svg g,.sl-ei-icon-block-panel svg g{transform-origin:50% 50%}.sl-ei-icon-block-animlist svg path,.sl-ei-icon-block-animlist svg rect,.sl-ei-icon-block-effectlist svg path,.sl-ei-icon-block-effectlist svg rect,.sl-ei-icon-block-list svg path,.sl-ei-icon-block-list svg rect,.sl-ei-icon-block-panel svg path,.sl-ei-icon-block-panel svg rect{vector-effect:non-scaling-stroke}.sl-ei-icon-block-animlist svg:nth-child(2),.sl-ei-icon-block-effectlist svg:nth-child(2),.sl-ei-icon-block-list svg:nth-child(2),.sl-ei-icon-block-panel svg:nth-child(2){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.sl-ei-icon-block-no-margin-bottom{margin-bottom:0!important}.sl-ei-icon-block-low-margin-bottom{margin-bottom:5px!important}.sl-ei-icon-block-no-padding-left-right{padding-left:0!important;padding-right:0!important}.sl-ei-icon-block-color-panel-icon .dashicons{transform:scale(-1)}.sl-ei-icon-block-link-panel .block-editor-link-control{min-width:100%!important}.sl-ei-icon-block-link-panel .block-editor-link-control a{width:80px}.sl-ei-icon-block-custom-icon-name{padding:15px;width:350px}.sl-ei-icon-block-upgrade-pro{border-top:1px solid #e0e0e0;text-align:center}.sl-ei-icon-block-upgrade-pro a{background:rgba(100,201,0,.769)!important;border:1px solid!important;border-radius:3px;box-sizing:border-box;color:blue!important;cursor:pointer;display:inline-block;font-size:13px;line-height:2.15384615;margin:10px!important;min-height:30px;text-align:center!important;text-decoration:none;white-space:nowrap;width:60%}.sl-ei-icon-block-upgrade-pro a:hover{background:rgba(119,238,0,.933)!important}.sl-ei-icon-block-pro-menu{color:#dc3636}.sl-ei-icon-block-format-container{height:400px;overflow:auto;overscroll-behavior:contain;padding:10px;width:330px}.sl-ei-icon-block-format-container .sl-ei-format-text-icon{margin:4px 16px!important}.sl-ei-icon-block-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-format-container .components-panel{margin:10px 0!important;padding-bottom:5px!important}.sl-ei-icon-block-mce-format-container,.sl-ei-icon-block-social-format-container{border:1px solid #7abff7;height:380px;overflow:auto;padding:7px 5px;width:322px}.sl-ei-icon-block-mce-format-container .sl-ei-format-text-icon,.sl-ei-icon-block-social-format-container .sl-ei-format-text-icon{margin:0 16px!important}.sl-ei-icon-block-mce-format-container .block-editor-panel-color-gradient-settings__dropdown,.sl-ei-icon-block-social-format-container .block-editor-panel-color-gradient-settings__dropdown{padding:0!important}.sl-ei-icon-block-social-format-container{margin-top:10px;padding:7px 55px}.safelayout-ei-icon-dialog-mce-panel{margin:8px 0}.safelayout-ei-icon-dialog-mce-panel .components-panel__body-title{background:#e8f2ff}.sl-ei-icon-block-mce-preview-container,.sl-ei-icon-block-social-preview-container{border:1px solid #7abff7;height:120px;margin-bottom:5px;text-align:center;width:332px}.sl-ei-icon-block-mce-preview-container .sl-ei-icon-block-mce-preview-title,.sl-ei-icon-block-social-preview-container .sl-ei-icon-block-mce-preview-title{background-color:#e0e0e0;border-bottom:1px solid #7abff7;margin-bottom:5px;text-align:center}.sl-ei-icon-block-social-preview-container{width:480px}.mce-sl-ei-icon-block-dialog .mce-window-head{background-color:#3858e9!important;border:none!important;min-height:auto!important;padding:5px 0!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-title{color:#fff!important}.mce-sl-ei-icon-block-dialog .mce-window-head .mce-close .mce-i-remove:before{color:#fff!important;padding:5px 0!important}.safelayout-ei-icon-dialog-mce-panel-link *{white-space:normal}.block-editor-url-input{min-width:95%!important;width:95%!important}.safelayout-ei-elementor-widget-icon{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-main-icon-grad001\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-main-icon-grad001%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.elementor-control-type-Safelayout_icons_control,.elementor-control-type-Safelayout_socialprofiles_control,.elementor-control-type-Safelayout_socialshare_control{padding:0 7px!important}.components-simple-tooltip{color:#fff}.sl-ei-pro-version-message{display:inline-block;font-size:11px;line-height:1.3;margin:10px 0;padding:0 10px;text-align:center;-webkit-text-decoration:auto;text-decoration:auto;white-space:normal}.sl-ei-sort-list{background:#d9f4f7;border:1px solid #e6adda;line-height:1.4;margin:5px;padding:4px}.sl-ei-sort-list-text{display:inline-block;margin-top:2px;opacity:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px}.sl-ei-sort-list-opacity{opacity:.5}.sl-ei-sort-list-button{float:inline-end;height:24px;padding-top:2px;width:24px}.sl-ei-sort-list-knob{cursor:move}.sl-ei-sort-list-delete{cursor:pointer}.sl-ei-sort-list-edit{height:24px!important;padding:4px 10px!important}.sl-ei-social-add-button{height:30px;justify-content:center;padding:4px 12px;width:100%}.sl-ei-social-list{border-radius:5%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:78px;margin:2px;padding:0;text-align:center;width:78px}.sl-ei-social-list,.sl-ei-social-list div{display:inline-block}.sl-ei-social-list-name{display:block!important;margin-top:5px}.safelayout-ei-elementor-widget-socialprofiles{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-social-Profiles-grad101\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-social-Profiles-grad101%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M12 12C13.8 12 15.273 10.527 15.273 8.727S13.8 5.455 12 5.455 8.727 6.927 8.727 8.727 10.2 12 12 12ZM18.545 16.996C18.545 14.269 14.215 13.091 12 13.091S5.455 14.269 5.455 16.996V18.545H18.545V16.996ZM19.636 2.182H4.364C3.153 2.182 2.182 3.164 2.182 4.364V19.636C2.182 20.836 3.153 21.818 4.364 21.818H19.636C20.836 21.818 21.818 20.836 21.818 19.636V4.364C21.818 3.164 20.836 2.182 19.636 2.182Z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.safelayout-ei-elementor-widget-socialshare{background-image:url("data:image/svg+xml;utf8,<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"sl-ei-socialshare-Profiles-grad101\" x1=\"0.15\" y1=\"0.85\" x2=\"0.85\" y2=\"0.15\"><stop stop-color=\"%23FF59BF\" offset=\"0\" /><stop stop-color=\"%23FF99D9\" offset=\"0.25\" /><stop stop-color=\"%23A6FF66\" offset=\"0.75\" /><stop stop-color=\"%238CFF4C\" offset=\"1\" /></linearGradient></defs><path fill=\"url%28%23sl-ei-socialshare-Profiles-grad101%29\" stroke=\"%23333333\" stroke-width=\"1\" d=\"M17.7 14.4c1.992 0 3.6 1.608 3.6 3.6s-1.608 3.6-3.6 3.6-3.6-1.608-3.6-3.6c0-.288.036-.552.108-.828l-5.256-2.76c-.66.732-1.596 1.188-2.652 1.188-1.992 0-3.6-1.608-3.6-3.6s1.608-3.6 3.6-3.6c1.056 0 1.992.468 2.652 1.188l5.256-2.76c-.072-.276-.108-.54-.108-.828 0-1.992 1.608-3.6 3.6-3.6s3.6 1.608 3.6 3.6-1.608 3.6-3.6 3.6c-1.056 0-1.992-.468-2.652-1.188l-5.256 2.76c.072.276 .108.54 .108.828s-.036.552-.108.828l5.256 2.76c.66-.732 1.596-1.188 2.652-1.188z\" /></svg>");background-position:50%;background-repeat:no-repeat;color:transparent!important}.sl-ei-icon-social-share-note{margin-bottom:5px;text-align:center} -
safelayout-elegant-icons/trunk/build/icon/index.js
r3339507 r3370210 1 (()=>{var e,t={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=s(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=s(t,a));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},471:(e,t,a)=>{"use strict";const o=window.wp.i18n,l=window.wp.blocks,n=window.wp.blockEditor,s=window.wp.element;var r=a(452),i=a.n(r);const c=window.React,d=window.wp.components,f=window.wp.primitives,g=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),b=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})),h=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})),p=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),u=(0,c.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(f.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),x=window.ReactJSXRuntime,y=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],k=e=>e&&-1!=e.indexOf("gradient"),w=(e,t)=>Math.round(e*10**t)/10**t;function j(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],r=t.indexOf("(")+1,i=0,c=r,d=t.length;for(;c<d;){if(r=1,"#"===t[c])l.push(t.substr(c,r=t.slice(c).search(/,|\)|\s/))),o(n,t,c+r);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,r=t.indexOf(")",c)-c+1)),o(n,t,c+r);else if(-1!=s.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?i=180-Number(t.substr(c,r=a-c)):n.push(t.substr(c,r=e-c)/100)}c+=r}i=-i*(Math.PI/180);const f=w(.5+.5*Math.sin(i),4),g=w(.5-.5*Math.cos(i),4),b=w(.5+.5*Math.sin(i+Math.PI),4),h=w(.5-.5*Math.cos(i+Math.PI),4);return"radial"===t.substr(0,6)?(0,x.jsx)(_,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(v,{id:a,colors:l,offsets:n,x1:f,y1:g,x2:b,y2:h})}function _(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r:s,fx:r,fy:i}=e;return(0,x.jsx)("radialGradient",{id:o,cx:l,cy:n,r:s,fx:r,fy:i,children:(0,x.jsx)(S,{colors:t,offsets:a})})}function v(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:s,y2:r}=e;return(0,x.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:s,y2:r,children:(0,x.jsx)(S,{colors:t,offsets:a})})}function S(e){const{colors:t,offsets:a}=e;return(0,x.jsx)(x.Fragment,{children:t.map(((e,t)=>(0,x.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function C(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let s;return(0,x.jsx)(x.Fragment,{children:a.map(((e,t)=>(0,x.jsxs)("defs",{children:[k(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(_,{id:l+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(v,{id:l+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),k(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(_,{id:n+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(v,{id:n+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},t)))})}function B(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,s=`strokeGrad${t+o}`;return(0,x.jsx)(x.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,c.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:k(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,c.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:k(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function N(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function I({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:s,flipHorizontal:r,flipVertical:i,hasBg:c,bgShape:f,bgShapeVal:g,rotateBg:b,size:h,color:p,strokeColor:u,strokeWidth:m,hasShadow:_,shadow:v,svgFilter:S,bgColor:N,bgStrokeColor:I,bgStrokeWidth:z,hasBgShadow:A,bgShadow:V,hasBaseShadow:F,baseShadowWidth:M,baseShadowHeight:P,baseShadowTop:E,padding:L,bgRadius:T,animation:H,slbbAnim:R,label:W,title:O,linkUrl:G,linkRel:$,linkTarget:D}=e,U=w(.88*T,2),Z=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,Q=`bgStrokeGrad${n}`,q=`fillGradBase${n}`,K=p.map(((e,t)=>k(e)?`url(#${X+t})`:"")),ee=u.map(((e,t)=>k(e)?`url(#${Y+t})`:"")),te=k(N)?`url(#${J})`:"",ae=k(I)?`url(#${Q})`:"",oe=c?`calc(110% - ${Math.round(2.4*Number(L))}px)`:"100%",le=(_?v:"")+("none"!=S?` url(#${S})`:""),ne=A?V:null,se=0!=b?`rotate(${b}deg)`:null,re=l?.oldAnim?H:R,ie=re&&"No Animation"!=re?`sl-ei-icon-block-animation-${re}`:null,ce=(0!=s?`rotate(${s}deg)`:"")+(r||i?` scale(${r?-1:1}, ${i?-1:1})`:""),de=""!=ce?(c||F?"translate(-50%, -50%) ":"")+ce:null,fe=(0,x.jsxs)(x.Fragment,{children:[(c||F)&&(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,x.jsxs)("defs",{children:[""!=te&&(0,x.jsx)(j,{grad:N,id:J}),""!=ae&&(0,x.jsx)(j,{grad:I,id:Q}),a&&a.before.length>0&&(0,x.jsx)(C,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,x.jsx)(C,{pos:"after",objArray:a.after,id:n})]}),F&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(C,{pos:"Base",objArray:y,id:n}),(0,x.jsx)("ellipse",{cx:"48",cy:E,rx:M/2,ry:P/2,fill:`url(#${q+0})`})]}),c&&(0,x.jsxs)("g",{style:{transform:se},children:[a&&a.before.length>0&&(0,x.jsx)(B,{pos:"before",objArray:a.before,id:n,rx:U}),"rect"===f?(0,x.jsx)(d.Rect,{x:"4",y:"4",width:"88",height:"88",rx:U,fill:te||N,stroke:ae||I,strokeWidth:z,style:{filter:ne}}):(0,x.jsx)("path",{d:g,fill:te||N,stroke:ae||I,strokeWidth:z,style:{filter:ne}}),a&&a.after.length>0&&(0,x.jsx)(B,{pos:"after",objArray:a.after,id:n,rx:U})]})]}),(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:oe,width:oe},children:[(0,x.jsxs)("defs",{children:[K.map(((e,t)=>""!=e&&(0,x.jsx)(j,{grad:p[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,x.jsx)(j,{grad:u[t],id:Y+t},t)))]}),(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:Z,children:t.map(((e,t)=>(0,x.jsx)(d.Path,{"vector-effect":"non-scaling-stroke",fill:K[e.color||0]||p[e.color||0],stroke:ee[e.strokeColor||0]||u[e.strokeColor||0],strokeWidth:m[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,x.jsx)("use",{href:`#${Z}`,style:{filter:le||null}}):(0,x.jsx)("use",{xlinkHref:`#${Z}`,style:{filter:le||null}})]})]});return G&&!o?(0,x.jsx)("a",{style:{height:h,width:h},href:G,target:D||null,rel:$||null,"aria-label":W||null,title:O||null,className:ie,children:fe}):(0,x.jsx)("div",{style:{height:h,width:h},"aria-label":W||null,title:O||null,className:ie,children:fe})}function z({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,x.jsx)("div",{style:{height:l,width:l},children:(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,x.jsx)(d.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,x.jsx)("use",{href:`#${t}`})]})})}const A=({colorValue:e,label:t})=>(0,x.jsxs)(d.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(d.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,x.jsx)(d.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),V=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:n}=e,s={onClick:t,className:i()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,x.jsx)(d.Button,{...s,disabled:n,children:(0,x.jsx)(A,{colorValue:o,label:l})})};function F({settings:e,label:t,disabled:a,position:o }){var l;const n={colorValue:null!==(l=e.gradientValue)&&void 0!==l?l:e.colorValue,label:t,disabled:a};return(0,x.jsx)(d.Dropdown,{popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:V(n),renderContent:()=>(0,x.jsx)(d.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,x.jsx)(T,{...e})})})})}const M={name:"color",title:(0,o.__)("Solid","safelayout-elegant-icons"),value:"color"},P={name:"gradient",title:(0,o.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},E=[M,P],L=(0,s.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,x.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,x.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function T({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:n,onColorArrayClick:s,onGradientChange:r,onGradientArrayClick:f,colorValue:g,gradientValue:b,clearable:h,showTitle:p=!1,enableAlpha:u,headingLevel:m}){(0,c.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const y={[M.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.ColorPalette,{value:g,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:u,colors:[],headingLevel:m}),(0,x.jsx)(L,{colors:R,onClick:s,tab:"COLOR"})]}),[P.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.GradientPicker,{__nextHasNoMargin:!0,value:k(b)?b:`linear-gradient(${b} 0%, ${b} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:u,gradients:[],headingLevel:m}),(0,x.jsx)(L,{colors:W,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,x.jsx)(d.BaseControl,{__nextHasNoMarginBottom:!0,className:i()("block-editor-color-gradient-control",a),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(d.__experimentalVStack,{spacing:1,children:[p&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(d.BaseControl.VisualLabel,{children:o})})}),(0,x.jsx)(d.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[M]:E,initialTabName:k(b)?P.value:M.value,children:e=>{return t=e.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:y[t]});var t}})]})})})}function H(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:s,position:r}=e;return(0,x.jsx)(F,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:s,position:r})}const R=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],W=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],O=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],G=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],$={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},D=e=>U.find((({name:t})=>t===e))||null,U=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:O,attributes:{...$,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:O,attributes:{...$,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:O,attributes:{...$,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:O,attributes:{...$,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:O,attributes:{...$,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:O,attributes:{...$,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:O,attributes:{...$,bgShape:"path",bgShapeVal:G[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:O,attributes:{...$,bgShape:"path",bgShapeVal:G[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:G[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],Z=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],X={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},Y=(0,x.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x.jsx)(f.Path,{d:"M15.1 4.8 12.1 2.3V4C7.7 4 4.1 7.6 4.1 12 4.1 15.7 6.6 18.9 10.1 19.7 10.4 19.8 10.7 19.8 11.1 19.9L11.3 18.4C10.9 18.4 10.6 18.3 10.2 18.2L10.1 18.4V18.2C7.5 17.4 5.6 14.9 5.6 12 5.6 8.4 8.5 5.5 12.1 5.5V7.3L15.1 4.8ZM20 11C19.8 9.6 19.3 8.3 18.4 7.2L17.2 8C17.9 8.9 18.3 10 18.5 11.1L20 11ZM18.5 12.8C18.4 13.3 18.3 13.9 18.1 14.4S17.6 15.4 17.3 15.9L18.5 16.8C18.9 16.3 19.3 15.7 19.5 15S20 13.7 20 13L18.5 12.8ZM12.9 18.4 13.1 19.9C14.5 19.7 15.8 19.2 16.9 18.3L16 17.2C15.1 17.9 14 18.3 12.9 18.4ZM14 9H10C9.4 9 9 9.4 9 10V14C9 14.6 9.4 15 10 15H14C14.6 15 15 14.6 15 14V10C15 9.4 14.6 9 14 9Z"})}),J={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"};function Q(e){const{attributes:t,setAttributes:a,isSelected:l}=e,{align:r,rotate:i,flipHorizontal:c,flipVertical:f,rotateBg:y,name:k,paths:w,hasBg:j,bgShape:_,size:v,color:S,strokeColor:C,strokeWidth:B,hasShadow:N,shadow:I,bgColor:z,bgStrokeColor:A,bgStrokeWidth:V,hasBgShadow:F,bgShadow:M,hasBaseShadow:P,baseShadowWidth:E,baseShadowHeight:L,baseShadowTop:T,padding:R,bgRadius:W,effect:O,slbbAnim:G,blockPadding:$,blockMargin:U,label:Z,title:X,linkUrl:J,linkRel:Q,linkTarget:ee}=t,ae="_blank"===ee,oe="noreferrer noopener",[le,re]=(0,s.useState)(null),[fe,ge]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{l||ge(!1)}),[l]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(n.BlockControls,{children:[(0,x.jsx)(n.BlockAlignmentToolbar,{controls:["left","center","right"],value:r,onChange:e=>a({align:e})}),(0,x.jsxs)(d.ToolbarGroup,{children:[(0,x.jsx)(d.ToolbarButton,{icon:g,label:(0,o.__)("Rotate","safelayout-elegant-icons"),onClick:()=>a({rotate:(i+45)%360}),isPressed:0!=i}),(0,x.jsx)(d.ToolbarButton,{icon:b,label:(0,o.__)("Flip horizontal","safelayout-elegant-icons"),onClick:()=>a({flipHorizontal:!c}),isPressed:c}),(0,x.jsx)(d.ToolbarButton,{icon:h,label:(0,o.__)("Flip vertical","safelayout-elegant-icons"),onClick:()=>a({flipVertical:!f}),isPressed:f})]}),(0,x.jsx)(d.ToolbarGroup,{children:(0,x.jsx)(d.ToolbarButton,{icon:Y,label:(0,o.__)("Rotate background","safelayout-elegant-icons"),onClick:()=>a({rotateBg:(y+45)%360}),isPressed:0!=y})})]}),(0,x.jsxs)(n.InspectorControls,{children:[(0,x.jsx)(de,{name:k,paths:w,color:S,label:(0,o.__)("Icon","safelayout-elegant-icons")+": "+k.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),l=te(o);be("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let n=l?.attributes;n?.color||(n={...n,color:[S[0]]}),n?.strokeColor||(n={...n,strokeColor:[C[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[B[0]]}),a({name:o,paths:l.paths,...n})}}),(0,x.jsx)(d.Panel,{children:(0,x.jsx)(d.PanelBody,{title:(0,o.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(ie,{currentEffect:O,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),l=D(o);be("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect");let n=l?.attributes?.padding;if(n){let e=parseInt(v);e<32?n*=.15:e<50?n*=.25:e<74?n*=.5:e<82&&(n*=.7),a({effect:o,...l?.attributes,padding:Math.round(n)})}else a({effect:o,...l?.attributes})}})})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(q,{label:(0,o.__)("Size","safelayout-elegant-icons"),size:v,setAttributes:a}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:R,disabled:!j,onChange:e=>a({padding:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:W,disabled:!j||"rect"!=_,onChange:e=>a({bgRadius:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[S.map(((e,t,l)=>(0,x.jsx)(H,{attribute:e,label:(0,o.__)("Icon Fill Color","safelayout-elegant-icons")+K(t,l.length),click:e=>{let o=[...S];o[t]=e.target.style.background,a({color:o})},change:e=>{let o=[...S];e&&(o[t]=e),a({color:o})}},t))),C.map(((e,t,l)=>(0,x.jsx)(H,{attribute:e,label:(0,o.__)("Icon Stroke Color","safelayout-elegant-icons")+K(t,l.length),click:e=>{let o=[...C];o[t]=e.target.style.background,a({strokeColor:o})},change:e=>{let o=[...C];e&&(o[t]=e),a({strokeColor:o})}},t)))]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(d.ToggleControl,{checked:j,help:(0,o.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,o.__)("Background shape","safelayout-elegant-icons"),onChange:e=>a({hasBg:e})}),(0,x.jsx)(H,{attribute:z,label:(0,o.__)("Background color","safelayout-elegant-icons"),click:e=>a({bgColor:e.target.style.background}),change:e=>e&&a({bgColor:e}),disabled:!j}),(0,x.jsx)(H,{attribute:A,label:(0,o.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>a({bgStrokeColor:e.target.style.background}),change:e=>e&&a({bgStrokeColor:e}),disabled:!j})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[B.map(((e,t,l)=>(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Icon Stroke Width","safelayout-elegant-icons")+K(t,l.length),min:0,max:200,value:e,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let o=[...B];o[t]=e,a({strokeWidth:o})}},t))),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:V,disabled:!j,onChange:e=>a({bgStrokeWidth:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:N,label:(0,o.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasShadow:e})}),(0,x.jsx)(H,{attribute:ne(I,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({shadow:se(I,3,e.target.style.background)}),change:e=>a({shadow:se(I,3,e)}),disabled:!N}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ne(I,2),disabled:!N,onChange:e=>a({shadow:se(I,2,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(I,0),disabled:!N,onChange:e=>a({shadow:se(I,0,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(I,1),disabled:!N,onChange:e=>a({shadow:se(I,1,e)})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:F,label:(0,o.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBgShadow:e}),disabled:!j}),(0,x.jsx)(H,{attribute:ne(M,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({bgShadow:se(M,3,e.target.style.background)}),change:e=>a({bgShadow:se(M,3,e)}),disabled:!F||!j}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ne(M,2),disabled:!F||!j,onChange:e=>a({bgShadow:se(M,2,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(M,0),disabled:!F||!j,onChange:e=>a({bgShadow:se(M,0,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(M,1),disabled:!F||!j,onChange:e=>a({bgShadow:se(M,1,e)})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:P,label:(0,o.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBaseShadow:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:T,disabled:!P,onChange:e=>a({baseShadowTop:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:E,disabled:!P,onChange:e=>a({baseShadowWidth:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:L,disabled:!P,onChange:e=>a({baseShadowHeight:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsx)(d.PanelBody,{title:(0,o.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(ce,{currentAnim:G,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name");be("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),a({slbbAnim:o})}})})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(d.__experimentalBoxControl,{label:(0,o.__)("Margin","safelayout-elegant-icons"),values:U,onChange:e=>a({blockMargin:e})}),(0,x.jsx)(d.__experimentalBoxControl,{label:(0,o.__)("Padding","safelayout-elegant-icons"),values:$,onChange:e=>a({blockPadding:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,x.jsx)(d.TextControl,{label:(0,o.__)("Tooltip","safelayout-elegant-icons"),value:X||"",onChange:e=>a({title:e})}),(0,x.jsx)(d.TextControl,{label:(0,o.__)("Label","safelayout-elegant-icons"),value:Z||"",onChange:e=>a({label:e}),help:(0,o.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,x.jsx)(d.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Link url","safelayout-elegant-icons")}),(0,x.jsx)(n.__experimentalLinkControl,{value:{url:J,opensInNewTab:ae},onChange:({url:e="",opensInNewTab:t})=>{a({linkUrl:e}),ae!==t&&function(e){const t=e?"_blank":void 0;let o=Q;t&&!Q?o=oe:t||Q!==oe||(o=void 0),a({linkTarget:t,linkRel:o})}(t)},onRemove:()=>{a({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(d.TextControl,{label:(0,o.__)("Link rel","safelayout-elegant-icons"),value:Q||"",onChange:e=>a({linkRel:e})})]})}),(0,x.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,x.jsx)("a",{href:(0,o.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,o.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,o.__)("Upgrade to Pro","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}const q=e=>{const{label:t,size:a,setAttributes:o,help:l}=e;let[n,s]=(0,d.__experimentalParseQuantityAndUnitFromRawValue)(a);const r={px:{min:8,max:800,step:1,default:64},"%":{min:2,max:100,step:1,default:8},vw:{min:1,max:100,step:1,default:6},vh:{min:1,max:100,step:1,default:8},em:{min:1,max:50,step:.1,default:4},rem:{min:1,max:50,step:.1,default:4}};return r[s]||(s="px",o({size:n+s})),(0,x.jsx)(d.BaseControl,{__nextHasNoMarginBottom:!0,help:l,label:t,children:(0,x.jsxs)(d.Flex,{children:[(0,x.jsx)(d.FlexItem,{isBlock:!0,children:(0,x.jsx)(d.RangeControl,{value:n,min:r[s].min,max:r[s].max,step:r[s].step,withInputField:!1,onChange:e=>o({size:e+s}),__nextHasNoMarginBottom:!0})}),(0,x.jsx)(d.FlexItem,{isBlock:!0,children:(0,x.jsx)(d.__experimentalSpacer,{paddingLeft:2,paddingright:2,children:(0,x.jsx)(d.__experimentalUnitControl,{value:a,units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],onChange:e=>o({size:e}),onUnitChange:e=>o({size:r[e].default+e}),min:r[s].min,max:r[s].max,step:r[s].step,size:"__unstable-large"})})})]})})},K=(e,t)=>{const a=[(0,o.__)("one","safelayout-elegant-icons"),(0,o.__)("two","safelayout-elegant-icons"),(0,o.__)("three","safelayout-elegant-icons"),(0,o.__)("four","safelayout-elegant-icons"),(0,o.__)("five","safelayout-elegant-icons")];return t<=1?"":" "+a[e]},ee=e=>{let t=Z.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},te=e=>{let t=null;return SLEIiconArray.some((a=>t=a.find((({name:t})=>t===e)))),t||null},ae=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},oe=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},le=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),ne=(e,t)=>{let a=le(e)[t];return t<3?parseFloat(a):a},se=(e,t,a)=>{let o=le(e);return o[t]=a,"drop-shadow("+o.join("px ")+")"},re=(e,t,a,o,l,n)=>{let s={...J,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},r=l||s?.effect,i=r?D(r):null;i?.attributes&&(s={...s,...i?.attributes}),e.attributes=s,e.effectObj=i},ie=(0,s.memo)((function({currentEffect:e,onIconClick:t}){be("sl-ei-list-selected-effect");const a={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:U.map(((o,l)=>{const n=o.attributes.rotateBg,s=o.name;return re(a,X,n?76:92,"effectList"+l,s,o.color),(0,x.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":s,children:(0,x.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:X.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),ce=(0,s.memo)((function({currentAnim:e,onIconClick:t}){be("sl-ei-list-selected-anim");const a={...X,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:Z.map(((l,n)=>(a.attributes.slbbAnim=l.name,re(o,a,54,"animList"+n,null),(0,x.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ee(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,x.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),de=e=>(0,x.jsx)(d.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:fe(e),renderContent:()=>(0,x.jsx)(d.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,x.jsx)(ge,{...e})})})})}),fe=e=>({onToggle:t,isOpen:a})=>{const{name:o,paths:l,color:n,label:s,disabled:r}=e,c={},f={onClick:t,className:i()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":a}),"aria-expanded":a};let g=te(o);return null===g&&(g={name:o,paths:l,attributes:{color:n}}),re(c,g,64,"selected",null,["#3535ff"]),(0,x.jsx)(d.Button,{...f,disabled:r,style:{border:"1px solid #add8e6"},children:(0,x.jsxs)(d.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,x.jsx)(I,{attributes:c.attributes,effectObj:c.effectObj,paths:g.paths})}),(0,x.jsx)(d.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:s,children:s})]})})};function ge(e){const{name:t,onIconClick:a}=e;let l,n=[];(0,c.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[r,i]=(0,s.useState)(""),[f,g]=(0,s.useState)((e=>{let t=null;return SLEIiconArray.some((a=>t=a.find((({name:t})=>t===e))&&a)),t?t[0].libName:SLEIiconArray[0][0].libName})(t));if(r)n.push(null),SLEIiconArray.map((e=>n=n.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(r.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,a)=>e=t[0].libName===f&&a+1)),n=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.SearchControl,{value:r,onChange:i,placeholder:(0,o.__)("Search icon","safelayout-elegant-icons")}),(0,x.jsx)(d.SelectControl,{value:f,onChange:g,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,x.jsx)("option",{value:e[0].libName,children:t})}))}),(0,x.jsx)(he,{icons:n,name:t,onIconClick:a,selectedLibrary:f,searchVal:r,packsImageShow:l})]})}const be=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},he=(0,s.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return be("sl-ei-list-selected-icon"),(0,x.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,x.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?ae(e):""),"data-icon-name":e.name,children:n<="400"?(0,x.jsx)("span",{className:oe(n),children:String.fromCharCode(59392+e.c)}):(0,x.jsx)(z,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary));function pe({attributes:e,isInEditor:t=!0,others:a}){const{paths:o,effect:l,animation:n,slbbAnim:s}=e,r=ee(a?.oldAnim?n:s),i=D(l),c=(0,x.jsx)(I,{attributes:e,paths:o,effectObj:i,isInEditor:t,others:a});return""===r?c:(0,x.jsx)("div",{className:r,children:c})}const ue=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-icon","version":"1.3.0","title":"Icon (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful SVG icons.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"align":{"type":"string"},"rotate":{"type":"number","default":0},"flipHorizontal":{"type":"boolean","default":false},"flipVertical":{"type":"boolean","default":false},"rotateBg":{"type":"number","default":0},"name":{"type":"string","default":"001_admin customizer"},"paths":{"type":"array","default":[{"d":"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}]},"hasBg":{"type":"boolean","default":true},"bgShape":{"type":"string","default":"rect"},"bgShapeVal":{"type":"string","default":""},"size":{"type":"string","default":"48px"},"color":{"type":"array","default":["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"]},"strokeColor":{"type":"array","default":["#000"]},"strokeWidth":{"type":"array","default":[0]},"hasShadow":{"type":"boolean","default":false},"shadow":{"type":"string","default":"drop-shadow(2px 2px 1px #000)"},"svgFilter":{"type":"string","default":"none"},"bgColor":{"type":"string","default":"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)"},"bgStrokeColor":{"type":"string","default":"#000"},"bgStrokeWidth":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"drop-shadow(0px 3px 2px #000)"},"hasBaseShadow":{"type":"boolean","default":false},"baseShadowWidth":{"type":"number","default":70},"baseShadowHeight":{"type":"number","default":12},"baseShadowTop":{"type":"number","default":96},"padding":{"type":"number","default":3},"bgRadius":{"type":"number","default":10},"effect":{"type":"string","default":"No Effect"},"slbbAnim":{"type":"string","default":"No Animation"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),me={blockId:{type:"string"},align:{type:"string"},rotate:{type:"number",default:0},flipHorizontal:{type:"boolean",default:!1},flipVertical:{type:"boolean",default:!1},rotateBg:{type:"number",default:0},name:{type:"string",default:"403_close up mode"},paths:{type:"array",default:[{d:"M3.292 12c0 8.662 6.783 8.708 7.792 8.708s1.833 0 1.833 0S12.046 13.146 3.292 12z",color:0,style:{filter:"brightness(0.7)"}},{d:"M11.083 12.917h1.833v7.792H11.083Z",color:0,style:{filter:"brightness(0.85)"}},{d:"M16.583 8.333c0 2.338-2.383 3.758-3.667 3.758s-.917-1.421-.917-3.758 2.292-4.217 2.292-4.217S16.583 5.996 16.583 8.333zM7.417 8.333c0 2.338 2.383 3.758 3.667 3.758s.917-1.421.917-3.758-2.292-4.217-2.292-4.217S7.417 5.996 7.417 8.333z",color:1,style:{filter:"brightness(0.7)"}},{d:"M12 13.375c-1.008-.733-.871-2.062 1.1-4.033C15.117 7.325 15.667 4.208 15.667 4.208s2.292 1.558 2.292 4.125C17.958 11.038 15.346 13.375 12 13.375zM12 13.375c1.008-.733.871-2.062-1.1-4.033C8.883 7.325 8.333 4.208 8.333 4.208s-2.292 1.558-2.292 4.125C6.042 11.038 8.654 13.375 12 13.375z",color:1,style:{filter:"brightness(0.9)"}},{d:"M14.75 8.333c0 2.796-1.238 5.042-2.75 5.042s-2.75-2.246-2.75-5.042 2.75-5.042 2.75-5.042S14.75 5.538 14.75 8.333z",color:1},{d:"M11.083 20.708c0 0 .825 0 1.833 0s7.792-.046 7.792-8.708C11.954 13.146 11.083 20.708 11.083 20.708z",color:0}]},hasBg:{type:"boolean",default:!0},bgShape:{type:"string",default:"rect"},bgShapeVal:{type:"string",default:""},size:{type:"string",default:"64px"},color:{type:"array",default:["#4CAF50","#F44336"]},strokeColor:{type:"array",default:["#000"]},strokeWidth:{type:"array",default:[0]},hasShadow:{type:"boolean",default:!1},shadow:{type:"string",default:"drop-shadow(2px 2px 1px #000)"},svgFilter:{type:"string",default:"none"},bgColor:{type:"string",default:"linear-gradient(#78ebff 0%,#b8f0c0 18%,#f5f582 50%,#fab3ba 82%,#ff7aee 100%)"},bgStrokeColor:{type:"string",default:"#000"},bgStrokeWidth:{type:"number",default:1},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"drop-shadow(0px 3px 2px #000)"},hasBaseShadow:{type:"boolean",default:!1},baseShadowWidth:{type:"number",default:70},baseShadowHeight:{type:"number",default:12},baseShadowTop:{type:"number",default:96},padding:{type:"number",default:10},bgRadius:{type:"number",default:10},effect:{type:"string",default:"No Effect"},animation:{type:"string",default:"No Animation"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""}},xe={name:{type:"string",default:"001_admin customizer"},paths:{type:"array",default:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}]},size:{type:"string",default:"48px"},color:{type:"array",default:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"]},bgColor:{type:"string",default:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)"},bgStrokeWidth:{type:"number",default:0},padding:{type:"number",default:3}},ye=[{attributes:{...me,...xe},migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:{...me,...xe},save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{d1:!0}})})}},{attributes:me,save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{d1:!0}})})}}],{name:ke}=ue;(0,l.registerBlockType)({name:ke,...ue},{title:(0,o.__)("Icon (Safelayout)","safelayout-elegant-icons"),description:(0,o.__)("Beautiful SVG icons.","safelayout-elegant-icons"),keywords:[(0,o.__)("Icon","safelayout-elegant-icons"),(0,o.__)("Icons","safelayout-elegant-icons"),(0,o.__)("Safelayout","safelayout-elegant-icons"),(0,o.__)("Elegant","safelayout-elegant-icons")],icon:(0,x.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("defs",{children:(0,x.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad001",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,x.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,x.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,x.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,x.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,x.jsx)("path",{fill:"url(#sl-ei-main-icon-grad001)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),example:{attributes:{size:"168px",align:"center",rotateBg:45,hasShadow:!0,shadow:"drop-shadow(0px 1px 1px #000)",hasBgShadow:!0,bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12,bgStrokeWidth:0,effect:"effect004"}},edit:function(e){const{attributes:t,setAttributes:a,isSelected:o,clientId:l}=e,{align:r,blockMargin:i,blockPadding:c}=t;(0,s.useLayoutEffect)((()=>{t.blockId=l}),[]);const d=N(r,i,c),f=(0,n.useBlockProps)({className:"safelayout-ei-icon-block",style:d});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Q,{attributes:t,setAttributes:a,isSelected:o}),(0,x.jsx)("div",{...f,children:(0,x.jsx)(pe,{attributes:t})})]})},save:function({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1})})},deprecated:ye})}},a={};function o(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,l,n)=>{if(!a){var s=1/0;for(d=0;d<e.length;d++){for(var[a,l,n]=e[d],r=!0,i=0;i<a.length;i++)(!1&n||s>=n)&&Object.keys(o.O).every((e=>o.O[e](a[i])))?a.splice(i--,1):(r=!1,n<s&&(s=n));if(r){e.splice(d--,1);var c=l();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,l,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={185:0,269:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var l,n,[s,r,i]=a,c=0;if(s.some((t=>0!==e[t]))){for(l in r)o.o(r,l)&&(o.m[l]=r[l]);if(i)var d=i(o)}for(t&&t(a);c<s.length;c++)n=s[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(d)},a=globalThis.webpackChunksafelayout_elegant_icons=globalThis.webpackChunksafelayout_elegant_icons||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var l=o.O(void 0,[269],(()=>o(471)));l=o.O(l)})();1 (()=>{var e,t={452:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=s(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)o.call(e,a)&&e[a]&&(t=s(t,a));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()},471:(e,t,a)=>{"use strict";const o=window.wp.i18n,l=window.wp.blocks,n=window.wp.blockEditor,s=window.wp.element;var r=a(452),i=a.n(r);const c=window.React,d=window.wp.components,f=window.wp.primitives,g=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),b=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})),h=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})),p=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),u=(0,c.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(f.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),x=window.ReactJSXRuntime,y=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],k=e=>e&&-1!=e.indexOf("gradient"),w=(e,t)=>Math.round(e*10**t)/10**t;function j(e){const{grad:t,id:a}=e;function o(e,t,a){var o=t.slice(a).search(/,|\)|\d/);","==t[a+o]?e.push(0):")"==t[a+o]&&e.push(1)}let l=[],n=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],r=t.indexOf("(")+1,i=0,c=r,d=t.length;for(;c<d;){if(r=1,"#"===t[c])l.push(t.substr(c,r=t.slice(c).search(/,|\)|\s/))),o(n,t,c+r);else if("r"===t[c]||"h"===t[c])l.push(t.substr(c,r=t.indexOf(")",c)-c+1)),o(n,t,c+r);else if(-1!=s.indexOf(t[c])){let e=c+t.slice(c).search(/,|%|\)/),a=t.indexOf("deg",c);-1!=a&&(-1===e||a<e)?i=180-Number(t.substr(c,r=a-c)):n.push(t.substr(c,r=e-c)/100)}c+=r}i=-i*(Math.PI/180);const f=w(.5+.5*Math.sin(i),4),g=w(.5-.5*Math.cos(i),4),b=w(.5+.5*Math.sin(i+Math.PI),4),h=w(.5-.5*Math.cos(i+Math.PI),4);return"radial"===t.substr(0,6)?(0,x.jsx)(_,{id:a,colors:l,offsets:n,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(v,{id:a,colors:l,offsets:n,x1:f,y1:g,x2:b,y2:h})}function _(e){const{colors:t,offsets:a,id:o,cx:l,cy:n,r:s,fx:r,fy:i}=e;return(0,x.jsx)("radialGradient",{id:o,cx:l,cy:n,r:s,fx:r,fy:i,children:(0,x.jsx)(S,{colors:t,offsets:a})})}function v(e){const{colors:t,offsets:a,id:o,x1:l,y1:n,x2:s,y2:r}=e;return(0,x.jsx)("linearGradient",{id:o,x1:l,y1:n,x2:s,y2:r,children:(0,x.jsx)(S,{colors:t,offsets:a})})}function S(e){const{colors:t,offsets:a}=e;return(0,x.jsx)(x.Fragment,{children:t.map(((e,t)=>(0,x.jsx)("stop",{"stop-color":e,offset:a[t]},t)))})}function C(e){const{pos:t,objArray:a,id:o}=e,l=`fillGrad${t+o}`,n=`strokeGrad${t+o}`;let s;return(0,x.jsx)(x.Fragment,{children:a.map(((e,t)=>(0,x.jsxs)("defs",{children:[k(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(_,{id:l+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(v,{id:l+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),k(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(_,{id:n+t,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(v,{id:n+t,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},t)))})}function B(e){const{pos:t,objArray:a,id:o,rx:l}=e,n=`fillGrad${t+o}`,s=`strokeGrad${t+o}`;return(0,x.jsx)(x.Fragment,{children:a.map(((e,t)=>"rect"===e.shape?(0,c.createElement)("rect",{...e.others,rx:l,style:e?.style,fill:k(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t}):(0,c.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:k(e.fill.type)?`url(#${n+t})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+t})`:e.stroke.type,strokeWidth:e.strokeWidth,key:t})))})}function N(e,t,a){return{textAlign:e||null,marginTop:t?.top||null,marginRight:t?.right||null,marginBottom:t?.bottom||null,marginLeft:t?.left||null,paddingTop:a?.top||null,paddingRight:a?.right||null,paddingBottom:a?.bottom||null,paddingLeft:a?.left||null}}function I({attributes:e,paths:t,effectObj:a,isInEditor:o=!0,others:l}){const{blockId:n,rotate:s,flipHorizontal:r,flipVertical:i,hasBg:c,bgShape:f,bgShapeVal:g,rotateBg:b,size:h,color:p,strokeColor:u,strokeWidth:m,hasShadow:_,shadow:v,svgFilter:S,bgColor:N,bgStrokeColor:I,bgStrokeWidth:z,hasBgShadow:A,bgShadow:V,hasBaseShadow:F,baseShadowWidth:M,baseShadowHeight:P,baseShadowTop:E,padding:L,bgRadius:T,animation:H,slbbAnim:R,label:W,title:O,linkUrl:G,linkRel:$,linkTarget:D}=e,U=w(.88*T,2),Z=`path${n}`,X=`fillGrad${n}`,Y=`strokeGrad${n}`,J=`bgFillGrad${n}`,Q=`bgStrokeGrad${n}`,q=`fillGradBase${n}`,K=p.map(((e,t)=>k(e)?`url(#${X+t})`:"")),ee=u.map(((e,t)=>k(e)?`url(#${Y+t})`:"")),te=k(N)?`url(#${J})`:"",ae=k(I)?`url(#${Q})`:"",oe=c?`calc(110% - ${Math.round(2.4*Number(L))}px)`:"100%",le=(_?v:"")+("none"!=S?` url(#${S})`:""),ne=A?V:null,se=0!=b?`rotate(${b}deg)`:null,re=l?.oldAnim?H:R,ie=re&&"No Animation"!=re?`sl-ei-icon-block-animation-${re}`:null,ce=(0!=s?`rotate(${s}deg)`:"")+(r||i?` scale(${r?-1:1}, ${i?-1:1})`:""),de=""!=ce?(c||F?"translate(-50%, -50%) ":"")+ce:null,fe=(0,x.jsxs)(x.Fragment,{children:[(c||F)&&(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[c&&(0,x.jsxs)("defs",{children:[""!=te&&(0,x.jsx)(j,{grad:N,id:J}),""!=ae&&(0,x.jsx)(j,{grad:I,id:Q}),a&&a.before.length>0&&(0,x.jsx)(C,{pos:"before",objArray:a.before,id:n}),a&&a.after.length>0&&(0,x.jsx)(C,{pos:"after",objArray:a.after,id:n})]}),F&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(C,{pos:"Base",objArray:y,id:n}),(0,x.jsx)("ellipse",{cx:"48",cy:E,rx:M/2,ry:P/2,fill:`url(#${q+0})`})]}),c&&(0,x.jsxs)("g",{style:{transform:se},children:[a&&a.before.length>0&&(0,x.jsx)(B,{pos:"before",objArray:a.before,id:n,rx:U}),"rect"===f?(0,x.jsx)(d.Rect,{x:"4",y:"4",width:"88",height:"88",rx:U,fill:te||N,stroke:ae||I,strokeWidth:z,style:{filter:ne}}):(0,x.jsx)("path",{d:g,fill:te||N,stroke:ae||I,strokeWidth:z,style:{filter:ne}}),a&&a.after.length>0&&(0,x.jsx)(B,{pos:"after",objArray:a.after,id:n,rx:U})]})]}),(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:oe,width:oe},children:[(0,x.jsxs)("defs",{children:[K.map(((e,t)=>""!=e&&(0,x.jsx)(j,{grad:p[t],id:X+t},t))),ee.map(((e,t)=>""!=e&&(0,x.jsx)(j,{grad:u[t],id:Y+t},t)))]}),(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:Z,children:t.map(((e,t)=>(0,x.jsx)(d.Path,{"vector-effect":"non-scaling-stroke",fill:K[e.color||0]||p[e.color||0],stroke:ee[e.strokeColor||0]||u[e.strokeColor||0],strokeWidth:m[e.strokeWidth||0],d:e.d,style:e.style},t)))}),!0!==l?.d1?(0,x.jsx)("use",{href:`#${Z}`,style:{filter:le||null}}):(0,x.jsx)("use",{xlinkHref:`#${Z}`,style:{filter:le||null}})]})]});return G&&!o?(0,x.jsx)("a",{style:{height:h,width:h},href:G,target:D||null,rel:$||null,"aria-label":W||null,title:O||null,className:ie,children:fe}):(0,x.jsx)("div",{style:{height:h,width:h},"aria-label":W||null,title:O||null,className:ie,children:fe})}function z({icon:e}){const t="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),a=e?.attributes?.color||["#5c5c5c"],o=e.paths,l="47px";return(0,x.jsx)("div",{style:{height:l,width:l},children:(0,x.jsxs)(d.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:t,children:o.map(((e,t)=>(0,x.jsx)(d.Path,{"vector-effect":"non-scaling-stroke",fill:a[e.color||0],d:e.d,style:e.style},t)))}),(0,x.jsx)("use",{href:`#${t}`})]})})}const A=({colorValue:e,label:t})=>(0,x.jsxs)(d.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(d.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,x.jsx)(d.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t,children:t})]}),V=e=>({onToggle:t,isOpen:a})=>{const{colorValue:o,label:l,disabled:n}=e,s={onClick:t,className:i()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":a}),"aria-expanded":a};return(0,x.jsx)(d.Button,{...s,disabled:n,children:(0,x.jsx)(A,{colorValue:o,label:l})})};function F({settings:e,label:t,disabled:a,position:o,style:l}){var n;const s={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:t,disabled:a};return(0,x.jsx)(d.Dropdown,{style:l,popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:V(s),renderContent:()=>(0,x.jsx)(d.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,x.jsx)(T,{...e})})})})}const M={name:"color",title:(0,o.__)("Solid","safelayout-elegant-icons"),value:"color"},P={name:"gradient",title:(0,o.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},E=[M,P],L=(0,s.memo)((function({colors:e,onClick:t,img:a,tab:o}){return(0,x.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,a)=>(0,x.jsx)("span",{onClick:t,style:{background:e}},a)))})}),((e,t)=>e.tab===t.tab));function T({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,className:a,label:o,onlySolid:l,onColorChange:n,onColorArrayClick:s,onGradientChange:r,onGradientArrayClick:f,colorValue:g,gradientValue:b,clearable:h,showTitle:p=!1,enableAlpha:u,headingLevel:m}){(0,c.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const y={[M.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.ColorPalette,{value:g,onChange:e=>n(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:u,colors:[],headingLevel:m}),(0,x.jsx)(L,{colors:R,onClick:s,tab:"COLOR"})]}),[P.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.GradientPicker,{__nextHasNoMargin:!0,value:k(b)?b:`linear-gradient(${b} 0%, ${b} 100%)`,onChange:e=>r(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:t,clearable:h,enableAlpha:u,gradients:[],headingLevel:m}),(0,x.jsx)(L,{colors:W,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,x.jsx)(d.BaseControl,{__nextHasNoMarginBottom:!0,className:i()("block-editor-color-gradient-control",a),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(d.__experimentalVStack,{spacing:1,children:[p&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(d.BaseControl.VisualLabel,{children:o})})}),(0,x.jsx)(d.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:l?[M]:E,initialTabName:k(b)?P.value:M.value,children:e=>{return t=e.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:y[t]});var t}})]})})})}function H(e){const{attribute:t,label:a,onlySolid:o,change:l,click:n,disabled:s,position:r,style:i}=e;return(0,x.jsx)(F,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:t,gradientValue:t,onColorChange:l,onGradientChange:l,onColorArrayClick:n,onGradientArrayClick:n,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:a,disabled:s,position:r,style:i})}const R=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],W=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],O=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],G=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],$={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},D=e=>U.find((({name:t})=>t===e))||null,U=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:O,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:O,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:O,attributes:{...$,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:O,attributes:{...$,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:O,attributes:{...$,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:O,attributes:{...$,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:O,attributes:{...$,bgShape:"path",bgShapeVal:G[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:O,attributes:{...$,bgShape:"path",bgShapeVal:G[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:G[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],Z=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],X={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},Y=(0,x.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x.jsx)(f.Path,{d:"M15.1 4.8 12.1 2.3V4C7.7 4 4.1 7.6 4.1 12 4.1 15.7 6.6 18.9 10.1 19.7 10.4 19.8 10.7 19.8 11.1 19.9L11.3 18.4C10.9 18.4 10.6 18.3 10.2 18.2L10.1 18.4V18.2C7.5 17.4 5.6 14.9 5.6 12 5.6 8.4 8.5 5.5 12.1 5.5V7.3L15.1 4.8ZM20 11C19.8 9.6 19.3 8.3 18.4 7.2L17.2 8C17.9 8.9 18.3 10 18.5 11.1L20 11ZM18.5 12.8C18.4 13.3 18.3 13.9 18.1 14.4S17.6 15.4 17.3 15.9L18.5 16.8C18.9 16.3 19.3 15.7 19.5 15S20 13.7 20 13L18.5 12.8ZM12.9 18.4 13.1 19.9C14.5 19.7 15.8 19.2 16.9 18.3L16 17.2C15.1 17.9 14 18.3 12.9 18.4ZM14 9H10C9.4 9 9 9.4 9 10V14C9 14.6 9.4 15 10 15H14C14.6 15 15 14.6 15 14V10C15 9.4 14.6 9 14 9Z"})}),J={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"};function Q(e){const{attributes:t,setAttributes:a,isSelected:l,clientId:r}=e,{align:i,rotate:c,flipHorizontal:f,flipVertical:y,rotateBg:k,name:w,paths:j,hasBg:_,bgShape:v,size:S,color:C,strokeColor:B,strokeWidth:N,hasShadow:I,shadow:z,bgColor:A,bgStrokeColor:V,bgStrokeWidth:F,hasBgShadow:M,bgShadow:P,hasBaseShadow:E,baseShadowWidth:L,baseShadowHeight:T,baseShadowTop:R,padding:W,bgRadius:O,effect:G,slbbAnim:$,blockPadding:U,blockMargin:Z,label:X,title:J,linkUrl:Q,linkRel:ee,linkTarget:ae}=t,oe="_blank"===ae,le="noreferrer noopener",[re,fe]=(0,s.useState)(null),[ge,he]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{l||he(!1)}),[l]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(n.BlockControls,{children:[(0,x.jsx)(n.BlockAlignmentToolbar,{controls:["left","center","right"],value:i,onChange:e=>a({align:e})}),(0,x.jsxs)(d.ToolbarGroup,{children:[(0,x.jsx)(d.ToolbarButton,{icon:g,label:(0,o.__)("Rotate","safelayout-elegant-icons"),onClick:()=>a({rotate:(c+45)%360}),isPressed:0!=c}),(0,x.jsx)(d.ToolbarButton,{icon:b,label:(0,o.__)("Flip horizontal","safelayout-elegant-icons"),onClick:()=>a({flipHorizontal:!f}),isPressed:f}),(0,x.jsx)(d.ToolbarButton,{icon:h,label:(0,o.__)("Flip vertical","safelayout-elegant-icons"),onClick:()=>a({flipVertical:!y}),isPressed:y})]}),(0,x.jsx)(d.ToolbarGroup,{children:(0,x.jsx)(d.ToolbarButton,{icon:Y,label:(0,o.__)("Rotate background","safelayout-elegant-icons"),onClick:()=>a({rotateBg:(k+45)%360}),isPressed:0!=k,disabled:!_})})]}),(0,x.jsxs)(n.InspectorControls,{children:[(0,x.jsx)(de,{name:w,paths:j,color:C,label:(0,o.__)("Icon","safelayout-elegant-icons")+": "+w.substring(4),onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-icon-name"),l=te(o);be("sl-ei-list-selected-icon"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-icon");let n=l?.attributes;n?.color||(n={...n,color:[C[0]]}),n?.strokeColor||(n={...n,strokeColor:[B[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[N[0]]}),a({name:o,paths:l.paths,...n})}}),(0,x.jsx)(d.Panel,{children:(0,x.jsx)(d.PanelBody,{title:(0,o.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(ie,{currentEffect:G,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-effect-name"),l=D(o);be("sl-ei-list-selected-effect"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-effect");let n=l?.attributes?.padding;if(n){const e=parseInt(wp.data.select("core/block-editor").getBlock(r).attributes.size);e<32?n*=.15:e<50?n*=.25:e<74?n*=.5:e<82&&(n*=.7),a({effect:o,...l?.attributes,padding:Math.round(n)})}else a({effect:o,...l?.attributes})}})})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(q,{label:(0,o.__)("Size","safelayout-elegant-icons"),size:S,setAttributes:a}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:W,disabled:!_,onChange:e=>a({padding:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:O,disabled:!_||"rect"!=v,onChange:e=>a({bgRadius:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[C.map(((e,t,l)=>(0,x.jsx)(H,{attribute:e,label:(0,o.__)("Icon Fill Color","safelayout-elegant-icons")+K(t,l.length),click:e=>{let o=[...C];o[t]=e.target.style.background,a({color:o})},change:e=>{let o=[...C];e&&(o[t]=e),a({color:o})}},t))),B.map(((e,t,l)=>(0,x.jsx)(H,{attribute:e,label:(0,o.__)("Icon Stroke Color","safelayout-elegant-icons")+K(t,l.length),click:e=>{let o=[...B];o[t]=e.target.style.background,a({strokeColor:o})},change:e=>{let o=[...B];e&&(o[t]=e),a({strokeColor:o})}},t)))]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(d.ToggleControl,{checked:_,help:(0,o.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,o.__)("Background shape","safelayout-elegant-icons"),onChange:e=>a({hasBg:e})}),(0,x.jsx)(H,{attribute:A,label:(0,o.__)("Background color","safelayout-elegant-icons"),click:e=>a({bgColor:e.target.style.background}),change:e=>e&&a({bgColor:e}),disabled:!_}),(0,x.jsx)(H,{attribute:V,label:(0,o.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>a({bgStrokeColor:e.target.style.background}),change:e=>e&&a({bgStrokeColor:e}),disabled:!_})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[N.map(((e,t,l)=>(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Icon Stroke Width","safelayout-elegant-icons")+K(t,l.length),min:0,max:200,value:e,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let o=[...N];o[t]=e,a({strokeWidth:o})}},t))),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:F,disabled:!_,onChange:e=>a({bgStrokeWidth:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:I,label:(0,o.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasShadow:e})}),(0,x.jsx)(H,{attribute:ne(z,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({shadow:se(z,3,e.target.style.background)}),change:e=>a({shadow:se(z,3,e)}),disabled:!I}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ne(z,2),disabled:!I,onChange:e=>a({shadow:se(z,2,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(z,0),disabled:!I,onChange:e=>a({shadow:se(z,0,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(z,1),disabled:!I,onChange:e=>a({shadow:se(z,1,e)})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:M,label:(0,o.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBgShadow:e}),disabled:!_}),(0,x.jsx)(H,{attribute:ne(P,3),label:(0,o.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>a({bgShadow:se(P,3,e.target.style.background)}),change:e=>a({bgShadow:se(P,3,e)}),disabled:!M||!_}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:ne(P,2),disabled:!M||!_,onChange:e=>a({bgShadow:se(P,2,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(P,0),disabled:!M||!_,onChange:e=>a({bgShadow:se(P,0,e)})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:ne(P,1),disabled:!M||!_,onChange:e=>a({bgShadow:se(P,1,e)})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:u,children:[(0,x.jsx)(d.ToggleControl,{checked:E,label:(0,o.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>a({hasBaseShadow:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:R,disabled:!E,onChange:e=>a({baseShadowTop:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:L,disabled:!E,onChange:e=>a({baseShadowWidth:e})}),(0,x.jsx)(d.RangeControl,{label:(0,o.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:T,disabled:!E,onChange:e=>a({baseShadowHeight:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsx)(d.PanelBody,{title:(0,o.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(ce,{currentAnim:$,onIconClick:e=>{const t=e.currentTarget,o=t.getAttribute("data-anim-name");be("sl-ei-list-selected-anim"),t.classList.add("sl-ei-list-selected"),t.setAttribute("id","sl-ei-list-selected-anim"),a({slbbAnim:o})}})})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(d.__experimentalBoxControl,{label:(0,o.__)("Margin","safelayout-elegant-icons"),values:Z,onChange:e=>a({blockMargin:e})}),(0,x.jsx)(d.__experimentalBoxControl,{label:(0,o.__)("Padding","safelayout-elegant-icons"),values:U,onChange:e=>a({blockPadding:e})})]})}),(0,x.jsx)(d.Panel,{children:(0,x.jsxs)(d.PanelBody,{title:(0,o.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,x.jsx)(d.TextControl,{label:(0,o.__)("Tooltip","safelayout-elegant-icons"),value:J||"",onChange:e=>a({title:e})}),(0,x.jsx)(d.TextControl,{label:(0,o.__)("Label","safelayout-elegant-icons"),value:X||"",onChange:e=>a({label:e}),help:(0,o.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,x.jsx)(d.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,o.__)("Link url","safelayout-elegant-icons")}),(0,x.jsx)(n.__experimentalLinkControl,{value:{url:Q,opensInNewTab:oe},onChange:({url:e="",opensInNewTab:t})=>{a({linkUrl:e}),oe!==t&&function(e){const t=e?"_blank":void 0;let o=ee;t&&!ee?o=le:t||ee!==le||(o=void 0),a({linkTarget:t,linkRel:o})}(t)},onRemove:()=>{a({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(d.TextControl,{label:(0,o.__)("Link rel","safelayout-elegant-icons"),value:ee||"",onChange:e=>a({linkRel:e})})]})}),(0,x.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,x.jsx)("a",{href:(0,o.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,o.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,o.__)("Upgrade to Pro","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}const q=e=>{const{label:t,size:a,setAttributes:o,help:l}=e;let[n,s]=(0,d.__experimentalParseQuantityAndUnitFromRawValue)(a);const r={px:{min:8,max:800,step:1,default:64},"%":{min:2,max:100,step:1,default:8},vw:{min:1,max:100,step:1,default:6},vh:{min:1,max:100,step:1,default:8},em:{min:1,max:50,step:.1,default:4},rem:{min:1,max:50,step:.1,default:4}};return r[s]||(s="px",o({size:n+s})),(0,x.jsx)(d.BaseControl,{__nextHasNoMarginBottom:!0,help:l,label:t,children:(0,x.jsxs)(d.Flex,{children:[(0,x.jsx)(d.FlexItem,{isBlock:!0,children:(0,x.jsx)(d.RangeControl,{value:n,min:r[s].min,max:r[s].max,step:r[s].step,withInputField:!1,onChange:e=>o({size:e+s}),__nextHasNoMarginBottom:!0})}),(0,x.jsx)(d.FlexItem,{isBlock:!0,children:(0,x.jsx)(d.__experimentalSpacer,{paddingLeft:2,paddingright:2,children:(0,x.jsx)(d.__experimentalUnitControl,{value:a,units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"em",label:"em"},{value:"rem",label:"rem"}],onChange:e=>o({size:e}),onUnitChange:e=>o({size:r[e].default+e}),min:r[s].min,max:r[s].max,step:r[s].step,size:"__unstable-large"})})})]})})},K=(e,t)=>{const a=[(0,o.__)("one","safelayout-elegant-icons"),(0,o.__)("two","safelayout-elegant-icons"),(0,o.__)("three","safelayout-elegant-icons"),(0,o.__)("four","safelayout-elegant-icons"),(0,o.__)("five","safelayout-elegant-icons")];return t<=1?"":" "+a[e]},ee=e=>{let t=Z.find((({name:t})=>t===e)),a="";return t&&(a=""!=t?.parent?`sl-ei-icon-block-animation-${t.parent}-parent`:""),a},te=e=>{let t=null;return SLEIiconArray.some((a=>t=a.find((({name:t})=>t===e)))),t||null},ae=e=>{let t="";return SLEIiconArray.some((a=>t=a[0].libCode===e.name.substring(0,3)&&" ("+a[0].libName+")")),t||" (unknown)"},oe=e=>{let t=null;return SLEIiconArray.some((a=>t=a[0].libCode===e&&a[0]?.class)),t||""},le=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),ne=(e,t)=>{let a=le(e)[t];return t<3?parseFloat(a):a},se=(e,t,a)=>{let o=le(e);return o[t]=a,"drop-shadow("+o.join("px ")+")"},re=(e,t,a,o,l,n)=>{let s={...J,color:n||["#5c5c5c"],...t?.attributes,size:a,blockId:"sl-ei-icon-block-"+o+t.name.replaceAll(" ","_")},r=l||s?.effect,i=r?D(r):null;i?.attributes&&(s={...s,...i?.attributes}),e.attributes=s,e.effectObj=i},ie=(0,s.memo)((function({currentEffect:e,onIconClick:t}){be("sl-ei-list-selected-effect");const a={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:U.map(((o,l)=>{const n=o.attributes.rotateBg,s=o.name;return re(a,X,n?76:92,"effectList"+l,s,o.color),(0,x.jsx)("div",{style:{padding:n?"14px":null,display:l?null:"block",margin:l?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:t,title:l?"effect0"+l:"No Effect","data-effect-name":s,children:(0,x.jsx)(I,{attributes:a.attributes,effectObj:a.effectObj,paths:X.paths})},l)}))})})}),((e,t)=>e.currentEffect===t.currentEffect)),ce=(0,s.memo)((function({currentAnim:e,onIconClick:t}){be("sl-ei-list-selected-anim");const a={...X,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:Z.map(((l,n)=>(a.attributes.slbbAnim=l.name,re(o,a,54,"animList"+n,null),(0,x.jsx)("div",{id:l.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+ee(l.name)+(l.name===e?" sl-ei-list-selected":""),onClick:t,title:l.name.replaceAll("-"," "),"data-anim-name":l.name,children:(0,x.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:a.paths})},n))))})})}),((e,t)=>e.currentAnim===t.currentAnim)),de=e=>(0,x.jsx)(d.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:fe(e),renderContent:()=>(0,x.jsx)(d.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,x.jsx)(ge,{...e})})})})}),fe=e=>({onToggle:t,isOpen:a})=>{const{name:o,paths:l,color:n,label:s,disabled:r}=e,c={},f={onClick:t,className:i()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":a}),"aria-expanded":a};let g=te(o);return null===g&&(g={name:o,paths:l,attributes:{color:n}}),re(c,g,64,"selected",null,["#3535ff"]),(0,x.jsx)(d.Button,{...f,disabled:r,style:{border:"1px solid #add8e6"},children:(0,x.jsxs)(d.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,x.jsx)(I,{attributes:c.attributes,effectObj:c.effectObj,paths:g.paths})}),(0,x.jsx)(d.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:s,children:s})]})})};function ge(e){const{name:t,onIconClick:a}=e;let l,n=[];(0,c.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[r,i]=(0,s.useState)(""),[f,g]=(0,s.useState)((e=>{let t=null;return SLEIiconArray.some((a=>t=a.find((({name:t})=>t===e))&&a)),t?t[0].libName:SLEIiconArray[0][0].libName})(t));if(r)n.push(null),SLEIiconArray.map((e=>n=n.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(r.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((t,a)=>e=t[0].libName===f&&a+1)),n=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.SearchControl,{value:r,onChange:i,placeholder:(0,o.__)("Search icon","safelayout-elegant-icons")}),(0,x.jsx)(d.SelectControl,{value:f,onChange:g,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const t=e[0].libName+" ("+(e.length-1)+")";return(0,x.jsx)("option",{value:e[0].libName,children:t})}))}),(0,x.jsx)(he,{icons:n,name:t,onIconClick:a,selectedLibrary:f,searchVal:r,packsImageShow:l})]})}const be=e=>{const t=document.getElementById(e);t&&(t.classList.remove("sl-ei-list-selected"),t.removeAttribute("id"))},he=(0,s.memo)((function({icons:e,name:t,onIconClick:a,selectedLibrary:o,searchVal:l,packsImageShow:n}){return be("sl-ei-list-selected-icon"),(0,x.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let n=e.name.substring(0,3);return(0,x.jsx)("div",{id:e.name===t?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===t?" sl-ei-list-selected":""),onClick:a,title:e.name.substring(4)+(l?ae(e):""),"data-icon-name":e.name,children:n<="400"?(0,x.jsx)("span",{className:oe(n),children:String.fromCharCode(59392+e.c)}):(0,x.jsx)(z,{icon:e})},o)}}))})}),((e,t)=>e.searchVal===t.searchVal&&e.selectedLibrary===t.selectedLibrary));function pe({attributes:e,isInEditor:t=!0,others:a}){const{paths:o,effect:l,animation:n,slbbAnim:s}=e,r=ee(a?.oldAnim?n:s),i=D(l),c=(0,x.jsx)(I,{attributes:e,paths:o,effectObj:i,isInEditor:t,others:a});return""===r?c:(0,x.jsx)("div",{className:r,children:c})}const ue=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-icon","version":"1.4.0","title":"Icon (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful SVG icons.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"align":{"type":"string"},"rotate":{"type":"number","default":0},"flipHorizontal":{"type":"boolean","default":false},"flipVertical":{"type":"boolean","default":false},"rotateBg":{"type":"number","default":0},"name":{"type":"string","default":"001_admin customizer"},"paths":{"type":"array","default":[{"d":"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}]},"hasBg":{"type":"boolean","default":true},"bgShape":{"type":"string","default":"rect"},"bgShapeVal":{"type":"string","default":""},"size":{"type":"string","default":"48px"},"color":{"type":"array","default":["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"]},"strokeColor":{"type":"array","default":["#000"]},"strokeWidth":{"type":"array","default":[0]},"hasShadow":{"type":"boolean","default":false},"shadow":{"type":"string","default":"drop-shadow(2px 2px 1px #000)"},"svgFilter":{"type":"string","default":"none"},"bgColor":{"type":"string","default":"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)"},"bgStrokeColor":{"type":"string","default":"#000"},"bgStrokeWidth":{"type":"number","default":0},"hasBgShadow":{"type":"boolean","default":false},"bgShadow":{"type":"string","default":"drop-shadow(0px 3px 2px #000)"},"hasBaseShadow":{"type":"boolean","default":false},"baseShadowWidth":{"type":"number","default":70},"baseShadowHeight":{"type":"number","default":12},"baseShadowTop":{"type":"number","default":96},"padding":{"type":"number","default":3},"bgRadius":{"type":"number","default":10},"effect":{"type":"string","default":"No Effect"},"slbbAnim":{"type":"string","default":"No Animation"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""}},"textdomain":"safelayout-elegant-icons","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),me={blockId:{type:"string"},align:{type:"string"},rotate:{type:"number",default:0},flipHorizontal:{type:"boolean",default:!1},flipVertical:{type:"boolean",default:!1},rotateBg:{type:"number",default:0},name:{type:"string",default:"403_close up mode"},paths:{type:"array",default:[{d:"M3.292 12c0 8.662 6.783 8.708 7.792 8.708s1.833 0 1.833 0S12.046 13.146 3.292 12z",color:0,style:{filter:"brightness(0.7)"}},{d:"M11.083 12.917h1.833v7.792H11.083Z",color:0,style:{filter:"brightness(0.85)"}},{d:"M16.583 8.333c0 2.338-2.383 3.758-3.667 3.758s-.917-1.421-.917-3.758 2.292-4.217 2.292-4.217S16.583 5.996 16.583 8.333zM7.417 8.333c0 2.338 2.383 3.758 3.667 3.758s.917-1.421.917-3.758-2.292-4.217-2.292-4.217S7.417 5.996 7.417 8.333z",color:1,style:{filter:"brightness(0.7)"}},{d:"M12 13.375c-1.008-.733-.871-2.062 1.1-4.033C15.117 7.325 15.667 4.208 15.667 4.208s2.292 1.558 2.292 4.125C17.958 11.038 15.346 13.375 12 13.375zM12 13.375c1.008-.733.871-2.062-1.1-4.033C8.883 7.325 8.333 4.208 8.333 4.208s-2.292 1.558-2.292 4.125C6.042 11.038 8.654 13.375 12 13.375z",color:1,style:{filter:"brightness(0.9)"}},{d:"M14.75 8.333c0 2.796-1.238 5.042-2.75 5.042s-2.75-2.246-2.75-5.042 2.75-5.042 2.75-5.042S14.75 5.538 14.75 8.333z",color:1},{d:"M11.083 20.708c0 0 .825 0 1.833 0s7.792-.046 7.792-8.708C11.954 13.146 11.083 20.708 11.083 20.708z",color:0}]},hasBg:{type:"boolean",default:!0},bgShape:{type:"string",default:"rect"},bgShapeVal:{type:"string",default:""},size:{type:"string",default:"64px"},color:{type:"array",default:["#4CAF50","#F44336"]},strokeColor:{type:"array",default:["#000"]},strokeWidth:{type:"array",default:[0]},hasShadow:{type:"boolean",default:!1},shadow:{type:"string",default:"drop-shadow(2px 2px 1px #000)"},svgFilter:{type:"string",default:"none"},bgColor:{type:"string",default:"linear-gradient(#78ebff 0%,#b8f0c0 18%,#f5f582 50%,#fab3ba 82%,#ff7aee 100%)"},bgStrokeColor:{type:"string",default:"#000"},bgStrokeWidth:{type:"number",default:1},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"drop-shadow(0px 3px 2px #000)"},hasBaseShadow:{type:"boolean",default:!1},baseShadowWidth:{type:"number",default:70},baseShadowHeight:{type:"number",default:12},baseShadowTop:{type:"number",default:96},padding:{type:"number",default:10},bgRadius:{type:"number",default:10},effect:{type:"string",default:"No Effect"},animation:{type:"string",default:"No Animation"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""}},xe={name:{type:"string",default:"001_admin customizer"},paths:{type:"array",default:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}]},size:{type:"string",default:"48px"},color:{type:"array",default:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"]},bgColor:{type:"string",default:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)"},bgStrokeWidth:{type:"number",default:0},padding:{type:"number",default:3}},ye=[{attributes:{...me,...xe},migrate:e=>({...e,slbbAnim:e.animation,animation:void 0}),save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:{...me,...xe},save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{d1:!0}})})}},{attributes:me,save({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1,others:{d1:!0}})})}}],{name:ke}=ue;(0,l.registerBlockType)({name:ke,...ue},{title:(0,o.__)("Icon (Safelayout)","safelayout-elegant-icons"),description:(0,o.__)("Beautiful SVG icons.","safelayout-elegant-icons"),keywords:[(0,o.__)("Icon","safelayout-elegant-icons"),(0,o.__)("Icons","safelayout-elegant-icons"),(0,o.__)("Safelayout","safelayout-elegant-icons"),(0,o.__)("Elegant","safelayout-elegant-icons")],icon:(0,x.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("defs",{children:(0,x.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad001",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,x.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,x.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,x.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,x.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,x.jsx)("path",{fill:"url(#sl-ei-main-icon-grad001)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),example:{attributes:{size:"168px",align:"center",rotateBg:45,hasShadow:!0,shadow:"drop-shadow(0px 1px 1px #000)",hasBgShadow:!0,bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12,bgStrokeWidth:0,effect:"effect004"}},edit:function(e){const{attributes:t,setAttributes:a,isSelected:o,clientId:l}=e,{align:r,blockMargin:i,blockPadding:c}=t;(0,s.useLayoutEffect)((()=>{t.blockId=l}),[]);const d=N(r,i,c),f=(0,n.useBlockProps)({className:"safelayout-ei-icon-block",style:d});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Q,{attributes:t,setAttributes:a,isSelected:o,clientId:l}),(0,x.jsx)("div",{...f,children:(0,x.jsx)(pe,{attributes:t})})]})},save:function({attributes:e}){const{align:t,blockMargin:a,blockPadding:o}=e,l=N(t,a,o),s=n.useBlockProps.save({className:"safelayout-ei-icon-block",style:l});return(0,x.jsx)("div",{...s,children:(0,x.jsx)(pe,{attributes:e,isInEditor:!1})})},deprecated:ye})}},a={};function o(e){var l=a[e];if(void 0!==l)return l.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,l,n)=>{if(!a){var s=1/0;for(d=0;d<e.length;d++){for(var[a,l,n]=e[d],r=!0,i=0;i<a.length;i++)(!1&n||s>=n)&&Object.keys(o.O).every((e=>o.O[e](a[i])))?a.splice(i--,1):(r=!1,n<s&&(s=n));if(r){e.splice(d--,1);var c=l();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,l,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={185:0,269:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var l,n,[s,r,i]=a,c=0;if(s.some((t=>0!==e[t]))){for(l in r)o.o(r,l)&&(o.m[l]=r[l]);if(i)var d=i(o)}for(t&&t(a);c<s.length;c++)n=s[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(d)},a=globalThis.webpackChunksafelayout_elegant_icons=globalThis.webpackChunksafelayout_elegant_icons||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var l=o.O(void 0,[269],(()=>o(471)));l=o.O(l)})(); -
safelayout-elegant-icons/trunk/build/icon/style-index-rtl.css
r3246267 r3370210 1 .safelayout-ei-icon-block{display:block}.safelayout-ei-icon-block a,.safelayout-ei-icon-block div,.safelayout-ei-icon-block span{display:inline-block; overflow:visible;position:relative}.safelayout-ei-icon-block svg{display:block;overflow:visible!important;pointer-events:none;width:100%}.safelayout-ei-icon-block svg g{transform-origin:50% 50%}.safelayout-ei-icon-block svg path,.safelayout-ei-icon-block svg rect{vector-effect:non-scaling-stroke}.safelayout-ei-icon-block svg:nth-child(2){right:50%;position:absolute;top:50%;transform:translate(50%,-50%)}.sl-ei-icon-block-stroke-scale{vector-effect:none!important}.sl-ei-icon-block-animation-bell,.sl-ei-icon-block-animation-bounce,.sl-ei-icon-block-animation-dance,.sl-ei-icon-block-animation-expand,.sl-ei-icon-block-animation-jelly,.sl-ei-icon-block-animation-pulse,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-rotate-2D,.sl-ei-icon-block-animation-rotate-3D-X,.sl-ei-icon-block-animation-rotate-3D-Y,.sl-ei-icon-block-animation-rubber,.sl-ei-icon-block-animation-spring,.sl-ei-icon-block-animation-surprise,.sl-ei-icon-block-animation-swing,.sl-ei-icon-block-animation-swing-3D-X,.sl-ei-icon-block-animation-swing-3D-Y,.sl-ei-icon-block-animation-swing1,.sl-ei-icon-block-animation-tremble,.sl-ei-icon-block-animation-wobble,.sl-ei-icon-block-animation-yoyo,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-ei-icon-block-animation-rotate-2D:hover{animation:sl-ei-rotate-2D-anim .85s cubic-bezier(.35,.9,.59,1.07) 1}@keyframes sl-ei-rotate-2D-anim{0%{transform:rotate(0)}to{transform:rotate(-1turn)}}.sl-ei-icon-block-animation-push-parent,.sl-ei-icon-block-animation-rotate-3D-parent,.sl-ei-icon-block-animation-swing-3D-parent{perspective:200px}.sl-ei-icon-block-animation-rotate-3D-X:hover{animation:sl-ei-rotate-3D-X-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-X-anim{0%{transform:rotateX(1turn)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-rotate-3D-Y:hover{animation:sl-ei-rotate-3D-Y-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-Y-anim{0%{transform:rotateY(-1turn)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-zoom-in:hover{transform:scale(1.07)}.sl-ei-icon-block-animation-zoom-out:hover{transform:scale(.93)}.sl-ei-icon-block-animation-push:hover{transform:rotateX(10deg);transform-origin:0% 110%}.sl-ei-icon-block-animation-move-up:hover{transform:translateY(-2px)}.sl-ei-icon-block-animation-move-down:hover{transform:translateY(2px)}.sl-ei-icon-block-animation-swing:hover{animation:sl-ei-swing-anim .85s linear 1;transform-origin:50% 100%}@keyframes sl-ei-swing-anim{25%{transform:rotate(20deg)}50%{transform:rotate(0)}75%{transform:rotate(-20deg)}}.sl-ei-icon-block-animation-swing1:hover{animation:sl-ei-swing1-anim .85s linear 1}@keyframes sl-ei-swing1-anim{20%{transform:rotate(-15deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(5deg)}to{transform:rotate(0)}}.sl-ei-icon-block-animation-swing-3D-X:hover{animation:sl-ei-swing-3D-X-anim .85s linear 1}@keyframes sl-ei-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-swing-3D-Y:hover{animation:sl-ei-swing-3D-Y-anim .85s linear 1}@keyframes sl-ei-swing-3D-Y-anim{20%{transform:rotateY(-15deg)}40%{transform:rotateY(12deg)}60%{transform:rotateY(-8deg)}80%{transform:rotateY(5deg)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-bell:hover{animation:sl-ei-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-ei-bell-anim{11%{transform:rotate(-8deg)}29%{transform:rotate(6.5deg)}47%{transform:rotate(-5deg)}65%{transform:rotate(3.5deg)}83%{transform:rotate(-2deg)}}.sl-ei-icon-block-animation-pulse:hover{animation:sl-ei-pulse-anim .75s linear 1}@keyframes sl-ei-pulse-anim{10%{transform:scale(1.2)}60%{transform:scale(1)}65%{transform:scale(1.2)}to{transform:scale(1)}}.sl-ei-icon-block-animation-bounce:hover{animation:sl-ei-bounce-anim 1s linear 1;transform-origin:50% 100%}@keyframes sl-ei-bounce-anim{0%{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0) scale(1)}40%{animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:translateY(-35%) scale(.9,1.1)}70%{transform:scale(1)}85%{transform:translate(0) scale(1.1,.9)}95%{transform:scale(1)}}.sl-ei-icon-block-animation-yoyo:hover{animation:sl-ei-yoyo-anim .75s ease-in-out 1}@keyframes sl-ei-yoyo-anim{25%{transform:translate(2px,-2px)}75%{transform:translate(-2px,2px)}}.sl-ei-icon-block-animation-wobble:hover{animation:sl-ei-wobble-anim .75s linear 1}@keyframes sl-ei-wobble-anim{16%{transform:translateX(-6px)}33%{transform:translateX(4px)}50%{transform:translateX(-3px)}66%{transform:translateX(2px)}83%{transform:translateX(-1px)}}.sl-ei-icon-block-animation-expand:hover{animation:sl-ei-expand-anim .75s linear 1}@keyframes sl-ei-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}.sl-ei-icon-block-animation-tremble:hover{animation:sl-ei-tremble-anim .75s linear 1}@keyframes sl-ei-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(-3deg)}20%,40%,60%,80%{transform:rotate(3deg)}}.sl-ei-icon-block-animation-surprise:hover{animation:sl-ei-surprise-anim .75s linear 1}@keyframes sl-ei-surprise-anim{10%{transform:scale(.95) rotate(-3deg)}20%{transform:scale(.9) rotate(3deg)}30%{transform:scale(1.1) rotate(-3deg)}40%,60%,80%{transform:scale(1.1) rotate(3deg)}50%,70%,90%{transform:scale(1.1) rotate(-3deg)}}.sl-ei-icon-block-animation-dance:hover{animation:sl-ei-dance-anim .75s linear 1}@keyframes sl-ei-dance-anim{16%{transform:skew(10deg,10deg)}33%{transform:skew(-8deg,-8deg)}49%{transform:skew(5deg,5deg)}66%{transform:skew(-4deg,-4deg)}83%{transform:skew(2deg,2deg)}}.sl-ei-icon-block-animation-rubber:hover{animation:sl-ei-rubber-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-rubber-anim{30%{transform:scale(1.03,.97)}40%{transform:scale(.98,1.02)}60%{transform:scale(1.01,.98)}75%{transform:scale(.99,1.01)}90%{transform:scale(1.01,.99)}}.sl-ei-icon-block-animation-jelly:hover{animation:sl-ei-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-jelly-anim{30%{transform:skew(-18deg)}45%{transform:skew(16deg)}60%{transform:skew(-10deg)}73%{transform:skew(6deg)}87%{transform:skew(-4deg)}}.sl-ei-icon-block-animation-spring:hover{animation:sl-ei-spring-anim .85s ease-in-out 1;transform-origin:50% 100%}@keyframes sl-ei-spring-anim{20%{transform:scaleY(.8)}60%{transform:scaleY(1.2)}}.sl-ei-icon-block-animation-blue-glow,.sl-ei-icon-block-animation-blur,.sl-ei-icon-block-animation-brighten,.sl-ei-icon-block-animation-contrast,.sl-ei-icon-block-animation-darken,.sl-ei-icon-block-animation-grayscale,.sl-ei-icon-block-animation-hue-rotate,.sl-ei-icon-block-animation-invert,.sl-ei-icon-block-animation-move-down,.sl-ei-icon-block-animation-move-up,.sl-ei-icon-block-animation-opacity,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-red-glow,.sl-ei-icon-block-animation-sepia,.sl-ei-icon-block-animation-violet-glow,.sl-ei-icon-block-animation-yellow-glow,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-ei-icon-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}.sl-ei-icon-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}.sl-ei-icon-block-animation-blue-glow:hover{filter:drop-shadow(0 0 5px blue)}.sl-ei-icon-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}.sl-ei-icon-block-animation-brighten:hover{filter:brightness(1.15)}.sl-ei-icon-block-animation-darken:hover{filter:brightness(.85)}.sl-ei-icon-block-animation-blur:hover{filter:blur(1px)}.sl-ei-icon-block-animation-grayscale:hover{filter:grayscale(80%)}.sl-ei-icon-block-animation-invert:hover{filter:invert(80%)}.sl-ei-icon-block-animation-contrast:hover{filter:contrast(200%)}.sl-ei-icon-block-animation-hue-rotate:hover{filter:hue-rotate(90deg)}.sl-ei-icon-block-animation-sepia:hover{filter:sepia(80%)}.sl-ei-icon-block-animation-opacity:hover{opacity:.7}.sl-ei-icon-block-animation-flash:hover{animation:sl-ei-flash-anim .75s cubic-bezier(.4,0,.2,1) 1}@keyframes sl-ei-flash-anim{25%,80%{opacity:0}45%,55%{opacity:1}}1 .safelayout-ei-icon-block{display:block}.safelayout-ei-icon-block a,.safelayout-ei-icon-block div,.safelayout-ei-icon-block span{display:inline-block;flex:none;font-family:inherit;overflow:visible;position:relative}.safelayout-ei-icon-block svg{display:block;overflow:visible!important;pointer-events:none;width:100%}.safelayout-ei-icon-block svg g{transform-origin:50% 50%}.safelayout-ei-icon-block svg path,.safelayout-ei-icon-block svg rect{vector-effect:non-scaling-stroke}.safelayout-ei-icon-block svg:nth-child(2){right:50%;position:absolute;top:50%;transform:translate(50%,-50%)}.sl-ei-icon-block-stroke-scale{vector-effect:none!important}.sl-ei-icon-block-animation-bell,.sl-ei-icon-block-animation-bounce,.sl-ei-icon-block-animation-dance,.sl-ei-icon-block-animation-expand,.sl-ei-icon-block-animation-jelly,.sl-ei-icon-block-animation-pulse,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-rotate-2D,.sl-ei-icon-block-animation-rotate-3D-X,.sl-ei-icon-block-animation-rotate-3D-Y,.sl-ei-icon-block-animation-rubber,.sl-ei-icon-block-animation-spring,.sl-ei-icon-block-animation-surprise,.sl-ei-icon-block-animation-swing,.sl-ei-icon-block-animation-swing-3D-X,.sl-ei-icon-block-animation-swing-3D-Y,.sl-ei-icon-block-animation-swing1,.sl-ei-icon-block-animation-tremble,.sl-ei-icon-block-animation-wobble,.sl-ei-icon-block-animation-yoyo,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-ei-icon-block-animation-rotate-2D:hover{animation:sl-ei-rotate-2D-anim .85s cubic-bezier(.35,.9,.59,1.07) 1}@keyframes sl-ei-rotate-2D-anim{0%{transform:rotate(0)}to{transform:rotate(-1turn)}}.sl-ei-icon-block-animation-push-parent,.sl-ei-icon-block-animation-rotate-3D-parent,.sl-ei-icon-block-animation-swing-3D-parent{perspective:200px}.sl-ei-icon-block-animation-rotate-3D-X:hover{animation:sl-ei-rotate-3D-X-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-X-anim{0%{transform:rotateX(1turn)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-rotate-3D-Y:hover{animation:sl-ei-rotate-3D-Y-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-Y-anim{0%{transform:rotateY(-1turn)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-zoom-in:hover{transform:scale(1.07)}.sl-ei-icon-block-animation-zoom-out:hover{transform:scale(.93)}.sl-ei-icon-block-animation-push:hover{transform:rotateX(10deg);transform-origin:0% 110%}.sl-ei-icon-block-animation-move-up:hover{transform:translateY(-2px)}.sl-ei-icon-block-animation-move-down:hover{transform:translateY(2px)}.sl-ei-icon-block-animation-swing:hover{animation:sl-ei-swing-anim .85s linear 1;transform-origin:50% 100%}@keyframes sl-ei-swing-anim{25%{transform:rotate(20deg)}50%{transform:rotate(0)}75%{transform:rotate(-20deg)}}.sl-ei-icon-block-animation-swing1:hover{animation:sl-ei-swing1-anim .85s linear 1}@keyframes sl-ei-swing1-anim{20%{transform:rotate(-15deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(5deg)}to{transform:rotate(0)}}.sl-ei-icon-block-animation-swing-3D-X:hover{animation:sl-ei-swing-3D-X-anim .85s linear 1}@keyframes sl-ei-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-swing-3D-Y:hover{animation:sl-ei-swing-3D-Y-anim .85s linear 1}@keyframes sl-ei-swing-3D-Y-anim{20%{transform:rotateY(-15deg)}40%{transform:rotateY(12deg)}60%{transform:rotateY(-8deg)}80%{transform:rotateY(5deg)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-bell:hover{animation:sl-ei-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-ei-bell-anim{11%{transform:rotate(-8deg)}29%{transform:rotate(6.5deg)}47%{transform:rotate(-5deg)}65%{transform:rotate(3.5deg)}83%{transform:rotate(-2deg)}}.sl-ei-icon-block-animation-pulse:hover{animation:sl-ei-pulse-anim .75s linear 1}@keyframes sl-ei-pulse-anim{10%{transform:scale(1.2)}60%{transform:scale(1)}65%{transform:scale(1.2)}to{transform:scale(1)}}.sl-ei-icon-block-animation-bounce:hover{animation:sl-ei-bounce-anim 1s linear 1;transform-origin:50% 100%}@keyframes sl-ei-bounce-anim{0%{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0) scale(1)}40%{animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:translateY(-35%) scale(.9,1.1)}70%{transform:scale(1)}85%{transform:translate(0) scale(1.1,.9)}95%{transform:scale(1)}}.sl-ei-icon-block-animation-yoyo:hover{animation:sl-ei-yoyo-anim .75s ease-in-out 1}@keyframes sl-ei-yoyo-anim{25%{transform:translate(2px,-2px)}75%{transform:translate(-2px,2px)}}.sl-ei-icon-block-animation-wobble:hover{animation:sl-ei-wobble-anim .75s linear 1}@keyframes sl-ei-wobble-anim{16%{transform:translateX(-6px)}33%{transform:translateX(4px)}50%{transform:translateX(-3px)}66%{transform:translateX(2px)}83%{transform:translateX(-1px)}}.sl-ei-icon-block-animation-expand:hover{animation:sl-ei-expand-anim .75s linear 1}@keyframes sl-ei-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}.sl-ei-icon-block-animation-tremble:hover{animation:sl-ei-tremble-anim .75s linear 1}@keyframes sl-ei-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(-3deg)}20%,40%,60%,80%{transform:rotate(3deg)}}.sl-ei-icon-block-animation-surprise:hover{animation:sl-ei-surprise-anim .75s linear 1}@keyframes sl-ei-surprise-anim{10%{transform:scale(.95) rotate(-3deg)}20%{transform:scale(.9) rotate(3deg)}30%{transform:scale(1.1) rotate(-3deg)}40%,60%,80%{transform:scale(1.1) rotate(3deg)}50%,70%,90%{transform:scale(1.1) rotate(-3deg)}}.sl-ei-icon-block-animation-dance:hover{animation:sl-ei-dance-anim .75s linear 1}@keyframes sl-ei-dance-anim{16%{transform:skew(10deg,10deg)}33%{transform:skew(-8deg,-8deg)}49%{transform:skew(5deg,5deg)}66%{transform:skew(-4deg,-4deg)}83%{transform:skew(2deg,2deg)}}.sl-ei-icon-block-animation-rubber:hover{animation:sl-ei-rubber-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-rubber-anim{30%{transform:scale(1.03,.97)}40%{transform:scale(.98,1.02)}60%{transform:scale(1.01,.98)}75%{transform:scale(.99,1.01)}90%{transform:scale(1.01,.99)}}.sl-ei-icon-block-animation-jelly:hover{animation:sl-ei-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-jelly-anim{30%{transform:skew(-18deg)}45%{transform:skew(16deg)}60%{transform:skew(-10deg)}73%{transform:skew(6deg)}87%{transform:skew(-4deg)}}.sl-ei-icon-block-animation-spring:hover{animation:sl-ei-spring-anim .85s ease-in-out 1;transform-origin:50% 100%}@keyframes sl-ei-spring-anim{20%{transform:scaleY(.8)}60%{transform:scaleY(1.2)}}.sl-ei-icon-block-animation-blue-glow,.sl-ei-icon-block-animation-blur,.sl-ei-icon-block-animation-brighten,.sl-ei-icon-block-animation-contrast,.sl-ei-icon-block-animation-darken,.sl-ei-icon-block-animation-grayscale,.sl-ei-icon-block-animation-hue-rotate,.sl-ei-icon-block-animation-invert,.sl-ei-icon-block-animation-move-down,.sl-ei-icon-block-animation-move-up,.sl-ei-icon-block-animation-opacity,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-red-glow,.sl-ei-icon-block-animation-sepia,.sl-ei-icon-block-animation-violet-glow,.sl-ei-icon-block-animation-yellow-glow,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-ei-icon-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}.sl-ei-icon-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}.sl-ei-icon-block-animation-blue-glow:hover{filter:drop-shadow(0 0 5px blue)}.sl-ei-icon-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}.sl-ei-icon-block-animation-brighten:hover{filter:brightness(1.15)}.sl-ei-icon-block-animation-darken:hover{filter:brightness(.85)}.sl-ei-icon-block-animation-blur:hover{filter:blur(1px)}.sl-ei-icon-block-animation-grayscale:hover{filter:grayscale(80%)}.sl-ei-icon-block-animation-invert:hover{filter:invert(80%)}.sl-ei-icon-block-animation-contrast:hover{filter:contrast(200%)}.sl-ei-icon-block-animation-hue-rotate:hover{filter:hue-rotate(90deg)}.sl-ei-icon-block-animation-sepia:hover{filter:sepia(80%)}.sl-ei-icon-block-animation-opacity:hover{opacity:.7}.sl-ei-icon-block-animation-flash:hover{animation:sl-ei-flash-anim .75s cubic-bezier(.4,0,.2,1) 1}@keyframes sl-ei-flash-anim{25%,80%{opacity:0}45%,55%{opacity:1}}.sl-ei-social-head{font-weight:500;margin-top:10px} -
safelayout-elegant-icons/trunk/build/icon/style-index.css
r3187409 r3370210 1 .safelayout-ei-icon-block{display:block}.safelayout-ei-icon-block a,.safelayout-ei-icon-block div,.safelayout-ei-icon-block span{display:inline-block; overflow:visible;position:relative}.safelayout-ei-icon-block svg{display:block;overflow:visible!important;pointer-events:none;width:100%}.safelayout-ei-icon-block svg g{transform-origin:50% 50%}.safelayout-ei-icon-block svg path,.safelayout-ei-icon-block svg rect{vector-effect:non-scaling-stroke}.safelayout-ei-icon-block svg:nth-child(2){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.sl-ei-icon-block-stroke-scale{vector-effect:none!important}.sl-ei-icon-block-animation-bell,.sl-ei-icon-block-animation-bounce,.sl-ei-icon-block-animation-dance,.sl-ei-icon-block-animation-expand,.sl-ei-icon-block-animation-jelly,.sl-ei-icon-block-animation-pulse,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-rotate-2D,.sl-ei-icon-block-animation-rotate-3D-X,.sl-ei-icon-block-animation-rotate-3D-Y,.sl-ei-icon-block-animation-rubber,.sl-ei-icon-block-animation-spring,.sl-ei-icon-block-animation-surprise,.sl-ei-icon-block-animation-swing,.sl-ei-icon-block-animation-swing-3D-X,.sl-ei-icon-block-animation-swing-3D-Y,.sl-ei-icon-block-animation-swing1,.sl-ei-icon-block-animation-tremble,.sl-ei-icon-block-animation-wobble,.sl-ei-icon-block-animation-yoyo,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-ei-icon-block-animation-rotate-2D:hover{animation:sl-ei-rotate-2D-anim .85s cubic-bezier(.35,.9,.59,1.07) 1}@keyframes sl-ei-rotate-2D-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.sl-ei-icon-block-animation-push-parent,.sl-ei-icon-block-animation-rotate-3D-parent,.sl-ei-icon-block-animation-swing-3D-parent{perspective:200px}.sl-ei-icon-block-animation-rotate-3D-X:hover{animation:sl-ei-rotate-3D-X-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-X-anim{0%{transform:rotateX(1turn)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-rotate-3D-Y:hover{animation:sl-ei-rotate-3D-Y-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-Y-anim{0%{transform:rotateY(1turn)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-zoom-in:hover{transform:scale(1.07)}.sl-ei-icon-block-animation-zoom-out:hover{transform:scale(.93)}.sl-ei-icon-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-ei-icon-block-animation-move-up:hover{transform:translateY(-2px)}.sl-ei-icon-block-animation-move-down:hover{transform:translateY(2px)}.sl-ei-icon-block-animation-swing:hover{animation:sl-ei-swing-anim .85s linear 1;transform-origin:50% 100%}@keyframes sl-ei-swing-anim{25%{transform:rotate(-20deg)}50%{transform:rotate(0)}75%{transform:rotate(20deg)}}.sl-ei-icon-block-animation-swing1:hover{animation:sl-ei-swing1-anim .85s linear 1}@keyframes sl-ei-swing1-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}.sl-ei-icon-block-animation-swing-3D-X:hover{animation:sl-ei-swing-3D-X-anim .85s linear 1}@keyframes sl-ei-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-swing-3D-Y:hover{animation:sl-ei-swing-3D-Y-anim .85s linear 1}@keyframes sl-ei-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-bell:hover{animation:sl-ei-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-ei-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}.sl-ei-icon-block-animation-pulse:hover{animation:sl-ei-pulse-anim .75s linear 1}@keyframes sl-ei-pulse-anim{10%{transform:scale(1.2)}60%{transform:scale(1)}65%{transform:scale(1.2)}to{transform:scale(1)}}.sl-ei-icon-block-animation-bounce:hover{animation:sl-ei-bounce-anim 1s linear 1;transform-origin:50% 100%}@keyframes sl-ei-bounce-anim{0%{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0) scale(1)}40%{animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:translateY(-35%) scale(.9,1.1)}70%{transform:scale(1)}85%{transform:translate(0) scale(1.1,.9)}95%{transform:scale(1)}}.sl-ei-icon-block-animation-yoyo:hover{animation:sl-ei-yoyo-anim .75s ease-in-out 1}@keyframes sl-ei-yoyo-anim{25%{transform:translate(-2px,-2px)}75%{transform:translate(2px,2px)}}.sl-ei-icon-block-animation-wobble:hover{animation:sl-ei-wobble-anim .75s linear 1}@keyframes sl-ei-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}.sl-ei-icon-block-animation-expand:hover{animation:sl-ei-expand-anim .75s linear 1}@keyframes sl-ei-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}.sl-ei-icon-block-animation-tremble:hover{animation:sl-ei-tremble-anim .75s linear 1}@keyframes sl-ei-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}.sl-ei-icon-block-animation-surprise:hover{animation:sl-ei-surprise-anim .75s linear 1}@keyframes sl-ei-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}.sl-ei-icon-block-animation-dance:hover{animation:sl-ei-dance-anim .75s linear 1}@keyframes sl-ei-dance-anim{16%{transform:skew(-10deg,-10deg)}33%{transform:skew(8deg,8deg)}49%{transform:skew(-5deg,-5deg)}66%{transform:skew(4deg,4deg)}83%{transform:skew(-2deg,-2deg)}}.sl-ei-icon-block-animation-rubber:hover{animation:sl-ei-rubber-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-rubber-anim{30%{transform:scale(1.03,.97)}40%{transform:scale(.98,1.02)}60%{transform:scale(1.01,.98)}75%{transform:scale(.99,1.01)}90%{transform:scale(1.01,.99)}}.sl-ei-icon-block-animation-jelly:hover{animation:sl-ei-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}.sl-ei-icon-block-animation-spring:hover{animation:sl-ei-spring-anim .85s ease-in-out 1;transform-origin:50% 100%}@keyframes sl-ei-spring-anim{20%{transform:scaleY(.8)}60%{transform:scaleY(1.2)}}.sl-ei-icon-block-animation-blue-glow,.sl-ei-icon-block-animation-blur,.sl-ei-icon-block-animation-brighten,.sl-ei-icon-block-animation-contrast,.sl-ei-icon-block-animation-darken,.sl-ei-icon-block-animation-grayscale,.sl-ei-icon-block-animation-hue-rotate,.sl-ei-icon-block-animation-invert,.sl-ei-icon-block-animation-move-down,.sl-ei-icon-block-animation-move-up,.sl-ei-icon-block-animation-opacity,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-red-glow,.sl-ei-icon-block-animation-sepia,.sl-ei-icon-block-animation-violet-glow,.sl-ei-icon-block-animation-yellow-glow,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-ei-icon-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}.sl-ei-icon-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}.sl-ei-icon-block-animation-blue-glow:hover{filter:drop-shadow(0 0 5px blue)}.sl-ei-icon-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}.sl-ei-icon-block-animation-brighten:hover{filter:brightness(1.15)}.sl-ei-icon-block-animation-darken:hover{filter:brightness(.85)}.sl-ei-icon-block-animation-blur:hover{filter:blur(1px)}.sl-ei-icon-block-animation-grayscale:hover{filter:grayscale(80%)}.sl-ei-icon-block-animation-invert:hover{filter:invert(80%)}.sl-ei-icon-block-animation-contrast:hover{filter:contrast(200%)}.sl-ei-icon-block-animation-hue-rotate:hover{filter:hue-rotate(90deg)}.sl-ei-icon-block-animation-sepia:hover{filter:sepia(80%)}.sl-ei-icon-block-animation-opacity:hover{opacity:.7}.sl-ei-icon-block-animation-flash:hover{animation:sl-ei-flash-anim .75s cubic-bezier(.4,0,.2,1) 1}@keyframes sl-ei-flash-anim{25%,80%{opacity:0}45%,55%{opacity:1}}1 .safelayout-ei-icon-block{display:block}.safelayout-ei-icon-block a,.safelayout-ei-icon-block div,.safelayout-ei-icon-block span{display:inline-block;flex:none;font-family:inherit;overflow:visible;position:relative}.safelayout-ei-icon-block svg{display:block;overflow:visible!important;pointer-events:none;width:100%}.safelayout-ei-icon-block svg g{transform-origin:50% 50%}.safelayout-ei-icon-block svg path,.safelayout-ei-icon-block svg rect{vector-effect:non-scaling-stroke}.safelayout-ei-icon-block svg:nth-child(2){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.sl-ei-icon-block-stroke-scale{vector-effect:none!important}.sl-ei-icon-block-animation-bell,.sl-ei-icon-block-animation-bounce,.sl-ei-icon-block-animation-dance,.sl-ei-icon-block-animation-expand,.sl-ei-icon-block-animation-jelly,.sl-ei-icon-block-animation-pulse,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-rotate-2D,.sl-ei-icon-block-animation-rotate-3D-X,.sl-ei-icon-block-animation-rotate-3D-Y,.sl-ei-icon-block-animation-rubber,.sl-ei-icon-block-animation-spring,.sl-ei-icon-block-animation-surprise,.sl-ei-icon-block-animation-swing,.sl-ei-icon-block-animation-swing-3D-X,.sl-ei-icon-block-animation-swing-3D-Y,.sl-ei-icon-block-animation-swing1,.sl-ei-icon-block-animation-tremble,.sl-ei-icon-block-animation-wobble,.sl-ei-icon-block-animation-yoyo,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-ei-icon-block-animation-rotate-2D:hover{animation:sl-ei-rotate-2D-anim .85s cubic-bezier(.35,.9,.59,1.07) 1}@keyframes sl-ei-rotate-2D-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.sl-ei-icon-block-animation-push-parent,.sl-ei-icon-block-animation-rotate-3D-parent,.sl-ei-icon-block-animation-swing-3D-parent{perspective:200px}.sl-ei-icon-block-animation-rotate-3D-X:hover{animation:sl-ei-rotate-3D-X-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-X-anim{0%{transform:rotateX(1turn)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-rotate-3D-Y:hover{animation:sl-ei-rotate-3D-Y-anim .85s cubic-bezier(.25,.46,.45,.94) 1}@keyframes sl-ei-rotate-3D-Y-anim{0%{transform:rotateY(1turn)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-zoom-in:hover{transform:scale(1.07)}.sl-ei-icon-block-animation-zoom-out:hover{transform:scale(.93)}.sl-ei-icon-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-ei-icon-block-animation-move-up:hover{transform:translateY(-2px)}.sl-ei-icon-block-animation-move-down:hover{transform:translateY(2px)}.sl-ei-icon-block-animation-swing:hover{animation:sl-ei-swing-anim .85s linear 1;transform-origin:50% 100%}@keyframes sl-ei-swing-anim{25%{transform:rotate(-20deg)}50%{transform:rotate(0)}75%{transform:rotate(20deg)}}.sl-ei-icon-block-animation-swing1:hover{animation:sl-ei-swing1-anim .85s linear 1}@keyframes sl-ei-swing1-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}.sl-ei-icon-block-animation-swing-3D-X:hover{animation:sl-ei-swing-3D-X-anim .85s linear 1}@keyframes sl-ei-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-ei-icon-block-animation-swing-3D-Y:hover{animation:sl-ei-swing-3D-Y-anim .85s linear 1}@keyframes sl-ei-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-ei-icon-block-animation-bell:hover{animation:sl-ei-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-ei-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}.sl-ei-icon-block-animation-pulse:hover{animation:sl-ei-pulse-anim .75s linear 1}@keyframes sl-ei-pulse-anim{10%{transform:scale(1.2)}60%{transform:scale(1)}65%{transform:scale(1.2)}to{transform:scale(1)}}.sl-ei-icon-block-animation-bounce:hover{animation:sl-ei-bounce-anim 1s linear 1;transform-origin:50% 100%}@keyframes sl-ei-bounce-anim{0%{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0) scale(1)}40%{animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:translateY(-35%) scale(.9,1.1)}70%{transform:scale(1)}85%{transform:translate(0) scale(1.1,.9)}95%{transform:scale(1)}}.sl-ei-icon-block-animation-yoyo:hover{animation:sl-ei-yoyo-anim .75s ease-in-out 1}@keyframes sl-ei-yoyo-anim{25%{transform:translate(-2px,-2px)}75%{transform:translate(2px,2px)}}.sl-ei-icon-block-animation-wobble:hover{animation:sl-ei-wobble-anim .75s linear 1}@keyframes sl-ei-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}.sl-ei-icon-block-animation-expand:hover{animation:sl-ei-expand-anim .75s linear 1}@keyframes sl-ei-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}.sl-ei-icon-block-animation-tremble:hover{animation:sl-ei-tremble-anim .75s linear 1}@keyframes sl-ei-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}.sl-ei-icon-block-animation-surprise:hover{animation:sl-ei-surprise-anim .75s linear 1}@keyframes sl-ei-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}.sl-ei-icon-block-animation-dance:hover{animation:sl-ei-dance-anim .75s linear 1}@keyframes sl-ei-dance-anim{16%{transform:skew(-10deg,-10deg)}33%{transform:skew(8deg,8deg)}49%{transform:skew(-5deg,-5deg)}66%{transform:skew(4deg,4deg)}83%{transform:skew(-2deg,-2deg)}}.sl-ei-icon-block-animation-rubber:hover{animation:sl-ei-rubber-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-rubber-anim{30%{transform:scale(1.03,.97)}40%{transform:scale(.98,1.02)}60%{transform:scale(1.01,.98)}75%{transform:scale(.99,1.01)}90%{transform:scale(1.01,.99)}}.sl-ei-icon-block-animation-jelly:hover{animation:sl-ei-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-ei-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}.sl-ei-icon-block-animation-spring:hover{animation:sl-ei-spring-anim .85s ease-in-out 1;transform-origin:50% 100%}@keyframes sl-ei-spring-anim{20%{transform:scaleY(.8)}60%{transform:scaleY(1.2)}}.sl-ei-icon-block-animation-blue-glow,.sl-ei-icon-block-animation-blur,.sl-ei-icon-block-animation-brighten,.sl-ei-icon-block-animation-contrast,.sl-ei-icon-block-animation-darken,.sl-ei-icon-block-animation-grayscale,.sl-ei-icon-block-animation-hue-rotate,.sl-ei-icon-block-animation-invert,.sl-ei-icon-block-animation-move-down,.sl-ei-icon-block-animation-move-up,.sl-ei-icon-block-animation-opacity,.sl-ei-icon-block-animation-push,.sl-ei-icon-block-animation-red-glow,.sl-ei-icon-block-animation-sepia,.sl-ei-icon-block-animation-violet-glow,.sl-ei-icon-block-animation-yellow-glow,.sl-ei-icon-block-animation-zoom-in,.sl-ei-icon-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-ei-icon-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}.sl-ei-icon-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}.sl-ei-icon-block-animation-blue-glow:hover{filter:drop-shadow(0 0 5px blue)}.sl-ei-icon-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}.sl-ei-icon-block-animation-brighten:hover{filter:brightness(1.15)}.sl-ei-icon-block-animation-darken:hover{filter:brightness(.85)}.sl-ei-icon-block-animation-blur:hover{filter:blur(1px)}.sl-ei-icon-block-animation-grayscale:hover{filter:grayscale(80%)}.sl-ei-icon-block-animation-invert:hover{filter:invert(80%)}.sl-ei-icon-block-animation-contrast:hover{filter:contrast(200%)}.sl-ei-icon-block-animation-hue-rotate:hover{filter:hue-rotate(90deg)}.sl-ei-icon-block-animation-sepia:hover{filter:sepia(80%)}.sl-ei-icon-block-animation-opacity:hover{opacity:.7}.sl-ei-icon-block-animation-flash:hover{animation:sl-ei-flash-anim .75s cubic-bezier(.4,0,.2,1) 1}@keyframes sl-ei-flash-anim{25%,80%{opacity:0}45%,55%{opacity:1}}.sl-ei-social-head{font-weight:500;margin-top:10px} -
safelayout-elegant-icons/trunk/build/mce/block.json
r3339507 r3370210 3 3 "apiVersion": 3, 4 4 "name": "safelayout/classic-icons", 5 "version": "1. 3.0",5 "version": "1.4.0", 6 6 "title": "Safelayout Elegant Icons", 7 7 "description": "Beautiful SVG icons.", -
safelayout-elegant-icons/trunk/build/mce/index.asset.php
r3339507 r3370210 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => ' e9539dbb9b677bd352a0');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '06b842575278ac59def0'); -
safelayout-elegant-icons/trunk/build/mce/index.js
r3339507 r3370210 1 (()=>{var e={452:(e,a)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var t=arguments[a];t&&(e=s(e,l(t)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var t in e)o.call(e,t)&&e[t]&&(a=s(a,t));return a}function s(e,a){return a?e?e+" "+a:e+a:e}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(a,[]))||(e.exports=t)}()},470:(e,a,t)=>{"use strict";var o=t(795);a.H=o.createRoot,o.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},a={};function t(o){var n=a[o];if(void 0!==n)return n.exports;var l=a[o]={exports:{}};return e[o](l,l.exports,t),l.exports}t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},t.d=(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})},t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{"use strict";const e=window.wp.i18n,a=window.wp.blockEditor;var o=t(470),n=t(795);const l=window.wp.element,s=window.wp.components;var i=t(452),r=t.n(i);const c=window.wp.primitives,d=window.React,f=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),g=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})),h=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})),b=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),p=(0,d.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(c.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),u=(0,d.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(c.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,d.createElement)(c.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,d.createElement)(c.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),x=window.ReactJSXRuntime,y=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],k=e=>e&&-1!=e.indexOf("gradient"),w=(e,a)=>Math.round(e*10**a)/10**a;function _(e){const{grad:a,id:t}=e;function o(e,a,t){var o=a.slice(t).search(/,|\)|\d/);","==a[t+o]?e.push(0):")"==a[t+o]&&e.push(1)}let n=[],l=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],i=a.indexOf("(")+1,r=0,c=i,d=a.length;for(;c<d;){if(i=1,"#"===a[c])n.push(a.substr(c,i=a.slice(c).search(/,|\)|\s/))),o(l,a,c+i);else if("r"===a[c]||"h"===a[c])n.push(a.substr(c,i=a.indexOf(")",c)-c+1)),o(l,a,c+i);else if(-1!=s.indexOf(a[c])){let e=c+a.slice(c).search(/,|%|\)/),t=a.indexOf("deg",c);-1!=t&&(-1===e||t<e)?r=180-Number(a.substr(c,i=t-c)):l.push(a.substr(c,i=e-c)/100)}c+=i}r=-r*(Math.PI/180);const f=w(.5+.5*Math.sin(r),4),g=w(.5-.5*Math.cos(r),4),h=w(.5+.5*Math.sin(r+Math.PI),4),b=w(.5-.5*Math.cos(r+Math.PI),4);return"radial"===a.substr(0,6)?(0,x.jsx)(j,{id:t,colors:n,offsets:l,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(C,{id:t,colors:n,offsets:l,x1:f,y1:g,x2:h,y2:b})}function j(e){const{colors:a,offsets:t,id:o,cx:n,cy:l,r:s,fx:i,fy:r}=e;return(0,x.jsx)("radialGradient",{id:o,cx:n,cy:l,r:s,fx:i,fy:r,children:(0,x.jsx)(S,{colors:a,offsets:t})})}function C(e){const{colors:a,offsets:t,id:o,x1:n,y1:l,x2:s,y2:i}=e;return(0,x.jsx)("linearGradient",{id:o,x1:n,y1:l,x2:s,y2:i,children:(0,x.jsx)(S,{colors:a,offsets:t})})}function S(e){const{colors:a,offsets:t}=e;return(0,x.jsx)(x.Fragment,{children:a.map(((e,a)=>(0,x.jsx)("stop",{"stop-color":e,offset:t[a]},a)))})}function v(e){const{pos:a,objArray:t,id:o}=e,n=`fillGrad${a+o}`,l=`strokeGrad${a+o}`;let s;return(0,x.jsx)(x.Fragment,{children:t.map(((e,a)=>(0,x.jsxs)("defs",{children:[k(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(j,{id:n+a,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(C,{id:n+a,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),k(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(j,{id:l+a,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(C,{id:l+a,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},a)))})}function B(e){const{pos:a,objArray:t,id:o,rx:n}=e,l=`fillGrad${a+o}`,s=`strokeGrad${a+o}`;return(0,x.jsx)(x.Fragment,{children:t.map(((e,a)=>"rect"===e.shape?(0,d.createElement)("rect",{...e.others,rx:n,style:e?.style,fill:k(e.fill.type)?`url(#${l+a})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+a})`:e.stroke.type,strokeWidth:e.strokeWidth,key:a}):(0,d.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:k(e.fill.type)?`url(#${l+a})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+a})`:e.stroke.type,strokeWidth:e.strokeWidth,key:a})))})}function N(e,a,t){return{textAlign:e||null,marginTop:a?.top||null,marginRight:a?.right||null,marginBottom:a?.bottom||null,marginLeft:a?.left||null,paddingTop:t?.top||null,paddingRight:t?.right||null,paddingBottom:t?.bottom||null,paddingLeft:t?.left||null}}function I({attributes:e,paths:a,effectObj:t,isInEditor:o=!0,others:n}){const{blockId:l,rotate:i,flipHorizontal:r,flipVertical:c,hasBg:d,bgShape:f,bgShapeVal:g,rotateBg:h,size:b,color:p,strokeColor:m,strokeWidth:u,hasShadow:j,shadow:C,svgFilter:S,bgColor:N,bgStrokeColor:I,bgStrokeWidth:A,hasBgShadow:P,bgShadow:z,hasBaseShadow:L,baseShadowWidth: M,baseShadowHeight:T,baseShadowTop:V,padding:E,bgRadius:R,animation:F,slbbAnim:O,label:H,title:$,linkUrl:W,linkRel:G,linkTarget:D}=e,Z=w(.88*R,2),U=`path${l}`,X=`fillGrad${l}`,Y=`strokeGrad${l}`,J=`bgFillGrad${l}`,q=`bgStrokeGrad${l}`,K=`fillGradBase${l}`,Q=p.map(((e,a)=>k(e)?`url(#${X+a})`:"")),ee=m.map(((e,a)=>k(e)?`url(#${Y+a})`:"")),ae=k(N)?`url(#${J})`:"",te=k(I)?`url(#${q})`:"",oe=d?`calc(110% - ${Math.round(2.4*Number(E))}px)`:"100%",ne=(j?C:"")+("none"!=S?` url(#${S})`:""),le=P?z:null,se=0!=h?`rotate(${h}deg)`:null,ie=n?.oldAnim?F:O,re=ie&&"No Animation"!=ie?`sl-ei-icon-block-animation-${ie}`:null,ce=(0!=i?`rotate(${i}deg)`:"")+(r||c?` scale(${r?-1:1}, ${c?-1:1})`:""),de=""!=ce?(d||L?"translate(-50%, -50%) ":"")+ce:null,fe=(0,x.jsxs)(x.Fragment,{children:[(d||L)&&(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[d&&(0,x.jsxs)("defs",{children:[""!=ae&&(0,x.jsx)(_,{grad:N,id:J}),""!=te&&(0,x.jsx)(_,{grad:I,id:q}),t&&t.before.length>0&&(0,x.jsx)(v,{pos:"before",objArray:t.before,id:l}),t&&t.after.length>0&&(0,x.jsx)(v,{pos:"after",objArray:t.after,id:l})]}),L&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v,{pos:"Base",objArray:y,id:l}),(0,x.jsx)("ellipse",{cx:"48",cy:V,rx:M/2,ry:T/2,fill:`url(#${K+0})`})]}),d&&(0,x.jsxs)("g",{style:{transform:se},children:[t&&t.before.length>0&&(0,x.jsx)(B,{pos:"before",objArray:t.before,id:l,rx:Z}),"rect"===f?(0,x.jsx)(s.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:ae||N,stroke:te||I,strokeWidth:A,style:{filter:le}}):(0,x.jsx)("path",{d:g,fill:ae||N,stroke:te||I,strokeWidth:A,style:{filter:le}}),t&&t.after.length>0&&(0,x.jsx)(B,{pos:"after",objArray:t.after,id:l,rx:Z})]})]}),(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:oe,width:oe},children:[(0,x.jsxs)("defs",{children:[Q.map(((e,a)=>""!=e&&(0,x.jsx)(_,{grad:p[a],id:X+a},a))),ee.map(((e,a)=>""!=e&&(0,x.jsx)(_,{grad:m[a],id:Y+a},a)))]}),(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:a.map(((e,a)=>(0,x.jsx)(s.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||p[e.color||0],stroke:ee[e.strokeColor||0]||m[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},a)))}),!0!==n?.d1?(0,x.jsx)("use",{href:`#${U}`,style:{filter:ne||null}}):(0,x.jsx)("use",{xlinkHref:`#${U}`,style:{filter:ne||null}})]})]});return W&&!o?(0,x.jsx)("a",{style:{height:b,width:b},href:W,target:D||null,rel:G||null,"aria-label":H||null,title:$||null,className:re,children:fe}):(0,x.jsx)("div",{style:{height:b,width:b},"aria-label":H||null,title:$||null,className:re,children:fe})}function A({icon:e}){const a="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),t=e?.attributes?.color||["#5c5c5c"],o=e.paths,n="47px";return(0,x.jsx)("div",{style:{height:n,width:n},children:(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:a,children:o.map(((e,a)=>(0,x.jsx)(s.Path,{"vector-effect":"non-scaling-stroke",fill:t[e.color||0],d:e.d,style:e.style},a)))}),(0,x.jsx)("use",{href:`#${a}`})]})})}const P=({colorValue:e,label:a})=>(0,x.jsxs)(s.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(s.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,x.jsx)(s.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:a,children:a})]}),z=e=>({onToggle:a,isOpen:t})=>{const{colorValue:o,label:n,disabled:l}=e,i={onClick:a,className:r()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":t}),"aria-expanded":t};return(0,x.jsx)(s.Button,{...i,disabled:l,children:(0,x.jsx)(P,{colorValue:o,label:n})})};function L({settings:e,label:a,disabled:t,position:o}){var n;const l={colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue,label:a,disabled:t};return(0,x.jsx)(s.Dropdown,{popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:z(l),renderContent:()=>(0,x.jsx)(s.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,x.jsx)(R,{...e})})})})}const M={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},T={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},V=[M,T],E=(0,l.memo)((function({colors:e,onClick:a,img:t,tab:o}){return(0,x.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,t)=>(0,x.jsx)("span",{onClick:a,style:{background:e}},t)))})}),((e,a)=>e.tab===a.tab));function R({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,className:t,label:o,onlySolid:n,onColorChange:l,onColorArrayClick:i,onGradientChange:c,onGradientArrayClick:f,colorValue:g,gradientValue:h,clearable:b,showTitle:p=!1,enableAlpha:m,headingLevel:u}){(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const y={[M.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.ColorPalette,{value:g,onChange:e=>l(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,clearable:b,enableAlpha:m,colors:[],headingLevel:u}),(0,x.jsx)(E,{colors:O,onClick:i,tab:"COLOR"})]}),[T.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.GradientPicker,{__nextHasNoMargin:!0,value:k(h)?h:`linear-gradient(${h} 0%, ${h} 100%)`,onChange:e=>c(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,clearable:b,enableAlpha:m,gradients:[],headingLevel:u}),(0,x.jsx)(E,{colors:H,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,x.jsx)(s.BaseControl,{__nextHasNoMarginBottom:!0,className:r()("block-editor-color-gradient-control",t),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(s.__experimentalVStack,{spacing:1,children:[p&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(s.BaseControl.VisualLabel,{children:o})})}),(0,x.jsx)(s.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[M]:V,initialTabName:k(h)?T.value:M.value,children:e=>{return a=e.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:y[a]});var a}})]})})})}function F(e){const{attribute:a,label:t,onlySolid:o,change:n,click:l,disabled:s,position:i}=e;return(0,x.jsx)(L,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:a,gradientValue:a,onColorChange:n,onGradientChange:n,onColorArrayClick:l,onGradientArrayClick:l,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:t,disabled:s,position:i})}const O=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],H=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],$=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],W=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],G={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},D=e=>Z.find((({name:a})=>a===e))||null,Z=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1},before:[],after:[]},{name:"effect047",color:$,attributes:{...G,hasBg:!1,rotateBg:0,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:$,attributes:{...G,hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:88,padding:20},before:[],after:[]},{name:"effect002",color:$,attributes:{...G,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:$,attributes:{...G,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:$,attributes:{...G,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:$,attributes:{...G,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:$,attributes:{...G,bgShape:"path",bgShapeVal:W[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:$,attributes:{...G,bgShape:"path",bgShapeVal:W[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:W[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],U=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],X=window.wp.richText,Y={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},J=(c.SVG,c.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),q=(a,t)=>{const o=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return t<=1?"":" "+o[a]},K=e=>{let a=U.find((({name:a})=>a===e)),t="";return a&&(t=""!=a?.parent?`sl-ei-icon-block-animation-${a.parent}-parent`:""),t},Q=e=>{let a=null;return SLEIiconArray.some((t=>a=t.find((({name:a})=>a===e)))),a||null},ee=e=>{let a="";return SLEIiconArray.some((t=>a=t[0].libCode===e.name.substring(0,3)&&" ("+t[0].libName+")")),a||" (unknown)"},ae=e=>{let a=null;return SLEIiconArray.some((t=>a=t[0].libCode===e&&t[0]?.class)),a||""},te=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),oe=(e,a)=>{let t=te(e)[a];return a<3?parseFloat(t):t},ne=(e,a,t)=>{let o=te(e);return o[a]=t,"drop-shadow("+o.join("px ")+")"},le=(e,a,t,o,n,l)=>{let s={...J,color:l||["#5c5c5c"],...a?.attributes,size:t,blockId:"sl-ei-icon-block-"+o+a.name.replaceAll(" ","_")},i=n||s?.effect,r=i?D(i):null;r?.attributes&&(s={...s,...r?.attributes}),e.attributes=s,e.effectObj=r},se=(0,l.memo)((function({currentEffect:e,onIconClick:a}){fe("sl-ei-list-selected-effect");const t={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Z.map(((o,n)=>{const l=o.attributes.rotateBg,s=o.name;return le(t,Y,l?76:92,"effectList"+n,s,o.color),(0,x.jsx)("div",{style:{padding:l?"14px":null,display:n?null:"block",margin:n?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:a,title:n?"effect0"+n:"No Effect","data-effect-name":s,children:(0,x.jsx)(I,{attributes:t.attributes,effectObj:t.effectObj,paths:Y.paths})},n)}))})})}),((e,a)=>e.currentEffect===a.currentEffect)),ie=(0,l.memo)((function({currentAnim:e,onIconClick:a}){fe("sl-ei-list-selected-anim");const t={...Y,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:U.map(((n,l)=>(t.attributes.slbbAnim=n.name,le(o,t,54,"animList"+l,null),(0,x.jsx)("div",{id:n.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(n.name)+(n.name===e?" sl-ei-list-selected":""),onClick:a,title:n.name.replaceAll("-"," "),"data-anim-name":n.name,children:(0,x.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:t.paths})},l))))})})}),((e,a)=>e.currentAnim===a.currentAnim)),re=e=>(0,x.jsx)(s.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:ce(e),renderContent:()=>(0,x.jsx)(s.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,x.jsx)(de,{...e})})})})}),ce=e=>({onToggle:a,isOpen:t})=>{const{name:o,paths:n,color:l,label:i,disabled:c}=e,d={},f={onClick:a,className:r()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":t}),"aria-expanded":t};let g=Q(o);return null===g&&(g={name:o,paths:n,attributes:{color:l}}),le(d,g,64,"selected",null,["#3535ff"]),(0,x.jsx)(s.Button,{...f,disabled:c,style:{border:"1px solid #add8e6"},children:(0,x.jsxs)(s.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,x.jsx)(I,{attributes:d.attributes,effectObj:d.effectObj,paths:g.paths})}),(0,x.jsx)(s.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:i,children:i})]})})};function de(a){const{name:t,onIconClick:o}=a;let n,i=[];(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[r,c]=(0,l.useState)(""),[f,g]=(0,l.useState)((e=>{let a=null;return SLEIiconArray.some((t=>a=t.find((({name:a})=>a===e))&&t)),a?a[0].libName:SLEIiconArray[0][0].libName})(t));if(r)i.push(null),SLEIiconArray.map((e=>i=i.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(r.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((a,t)=>e=a[0].libName===f&&t+1)),i=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.SearchControl,{value:r,onChange:c,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,x.jsx)(s.SelectControl,{value:f,onChange:g,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const a=e[0].libName+" ("+(e.length-1)+")";return(0,x.jsx)("option",{value:e[0].libName,children:a})}))}),(0,x.jsx)(ge,{icons:i,name:t,onIconClick:o,selectedLibrary:f,searchVal:r,packsImageShow:n})]})}const fe=e=>{const a=document.getElementById(e);a&&(a.classList.remove("sl-ei-list-selected"),a.removeAttribute("id"))},ge=(0,l.memo)((function({icons:e,name:a,onIconClick:t,selectedLibrary:o,searchVal:n,packsImageShow:l}){return fe("sl-ei-list-selected-icon"),(0,x.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let l=e.name.substring(0,3);return(0,x.jsx)("div",{id:e.name===a?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===a?" sl-ei-list-selected":""),onClick:t,title:e.name.substring(4)+(n?ee(e):""),"data-icon-name":e.name,children:l<="400"?(0,x.jsx)("span",{className:ae(l),children:String.fromCharCode(59392+e.c)}):(0,x.jsx)(A,{icon:e})},o)}}))})}),((e,a)=>e.searchVal===a.searchVal&&e.selectedLibrary===a.selectedLibrary)),he={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:""},be="safelayout/text-icon",pe={name:be,title:"Icon (Safelayout)",keywords:[(0,e.__)("Icon","safelayout-elegant-icons"),(0,e.__)("Safelayout","safelayout-elegant-icons"),(0,e.__)("Elegant","safelayout-elegant-icons")],tagName:"span",className:"safelayout-text-icon",attributes:{className:"class",attrib:"dataicon"},contentEditable:!1,edit:function({value:t,onChange:o,isObjectActive:n,activeObjectAttributes:l,contentRef:i}){const r=(0,X.useAnchor)({editableContentElement:i.current,settings:pe});let{attrib:c}=l;return c&&(me=JSON.parse(atob(c))),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BlockControls,{children:(0,x.jsx)(s.ToolbarGroup,{children:(0,x.jsx)(s.ToolbarButton,{icon:(0,x.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("defs",{children:(0,x.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,x.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,x.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,x.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,x.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,x.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),title:(0,e.__)("Insert Icon (Safelayout)","safelayout-elegant-icons"),onClick:()=>{if(c)o((0,X.remove)(t,t.start,t.end));else{me={...he,blockId:xe()},c=btoa(JSON.stringify(me));let e=ke(me);o((0,X.insertObject)(t,{type:be,attributes:{className:`safelayout-text-icon sl-ei-fo-${me.blockId}`,attrib:c},innerHTML:`<style>.sl-ei-fo-${me.blockId} { ${ye(me,e)} }</style>`}))}},isActive:n})})}),n&&(0,x.jsx)(s.Popover,{placement:"top-start",variant:"toolbar",resize:!1,focusOnMount:!1,anchor:r,offset:20,children:(0,x.jsx)("div",{className:"sl-ei-icon-block-format-container",id:"sl-ei-icon-text-container-00",children:(0,x.jsx)(ue,{attributes:me,setAttributes:(e,a)=>{if(a)o((0,X.remove)(t,t.start,t.end));else{for(var n in e)me[n]=e[n];!function(e,a,t){setTimeout((()=>{e.blockId=xe();const o=btoa(JSON.stringify(e));let n=ke(e);const l=a.replacements.slice();l[a.start]={type:be,attributes:{className:`safelayout-text-icon sl-ei-fo-${e.blockId}`,attrib:o},innerHTML:`<style>.sl-ei-fo-${e.blockId} { ${ye(e,n)} }</style>`},t({...a,replacements:l})}),2)}(me,t,o)}}})})})]})}};let me;function ue(a){const{attributes:t,setAttributes:o}=a,{name:n,paths:l,hasBg:i,bgShape:r,top:c,size:f,color:g,strokeColor:h,strokeWidth:m,hasShadow:u,shadow:y,bgColor:k,bgStrokeColor:w,bgStrokeWidth:_,hasBaseShadow:j,baseShadowWidth:C,baseShadowHeight:S,baseShadowTop:v,padding:B,bgRadius:N,effect:I}=t;return(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-text-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(re,{name:n,paths:l,color:g,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+n.substring(4),onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-icon-name"),n=Q(t);fe("sl-ei-list-selected-icon"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-icon");let l=n?.attributes;l?.color||(l={...l,color:[g[0]]}),l?.strokeColor||(l={...l,strokeColor:[h[0]]}),l?.strokeWidth||(l={...l,strokeWidth:[m[0]]}),o({name:t,paths:n.paths,...l})}}),(0,x.jsx)(s.Panel,{children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(se,{currentEffect:I,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-effect-name"),n=D(t);fe("sl-ei-list-selected-effect"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-effect");let l=n?.attributes?.padding;if(l){let e=parseInt(f);e<32?l*=.15:e<50?l*=.25:e<74?l*=.5:e<82&&(l*=.7),o({effect:t,...n?.attributes,padding:Math.round(l)})}else o({effect:t,...n?.attributes})}})})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(s.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:c,onChange:e=>o({top:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(f),onChange:e=>o({size:e+"px"})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:B,disabled:!i,onChange:e=>o({padding:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:N,disabled:!i||"rect"!=r,onChange:e=>o({bgRadius:e})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[g.map(((a,t,n)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(t,n.length),click:e=>{let a=[...g];a[t]=e.target.style.background,o({color:a})},change:e=>{let a=[...g];e&&(a[t]=e),o({color:a})}},t))),h.map(((a,t,n)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(t,n.length),click:e=>{let a=[...h];a[t]=e.target.style.background,o({strokeColor:a})},change:e=>{let a=[...h];e&&(a[t]=e),o({strokeColor:a})}},t)))]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(s.ToggleControl,{checked:i,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>o({hasBg:e})}),(0,x.jsx)(F,{attribute:k,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>o({bgColor:e.target.style.background}),change:e=>e&&o({bgColor:e}),disabled:!i}),(0,x.jsx)(F,{attribute:w,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>o({bgStrokeColor:e.target.style.background}),change:e=>e&&o({bgStrokeColor:e}),disabled:!i})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:b,children:[m.map(((a,t,n)=>(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(t,n.length),min:0,max:200,value:a,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let a=[...m];a[t]=e,o({strokeWidth:a})}},t))),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:_,disabled:!i,onChange:e=>o({bgStrokeWidth:e})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:u,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>o({hasShadow:e})}),(0,x.jsx)(F,{attribute:oe(y,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>o({shadow:ne(y,3,e.target.style.background)}),change:e=>o({shadow:ne(y,3,e)}),disabled:!u}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,2),disabled:!u,onChange:e=>o({shadow:ne(y,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,0),disabled:!u,onChange:e=>o({shadow:ne(y,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,1),disabled:!u,onChange:e=>o({shadow:ne(y,1,e)})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:j,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>o({hasBaseShadow:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:v,disabled:!j,onChange:e=>o({baseShadowTop:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:C,disabled:!j,onChange:e=>o({baseShadowWidth:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:S,disabled:!j,onChange:e=>o({baseShadowHeight:e})})]})}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(s.Button,{variant:"secondary",onClick:()=>o(null,1),style:{marginBottom:"10px"},children:(0,e.__)("Remove this icon","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})}function xe(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function ye(e,a){const t=e.hasBg?`calc(110% - ${Math.round(2.4*Number(e.padding))}px)`:"100%";return`display: inline-block;background-repeat: no-repeat;background-position: center;position: relative;background-size: ${t} ${t}, 100% 100%;top:${e.top}px;width:${e.size};height:${e.size};background-image:${a}`}function ke(e){const a=D(e?.effect),t=function(e,a){return 0!=a.rotateBg&&e.length>1&&(e[0]=e[0].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 96 96","-14 -14 124 124"),e[1]=e[1].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 24 24","-3 -3 30 30")),a.hasBaseShadow&&(0!=a.rotateBg?e.length>1&&(e[0]=e[0].replaceAll("40% 40%","35% 32%").replaceAll("-14 -14 124 124",`-14 -14 124 ${124+Math.max(a.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("-3 -3 30 30",`-3 -3 30 ${30+Math.max((a.baseShadowTop-96+6)/4.5,0)}`)):e.length>1?(e[0]=e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(a.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("0 0 24 24",`0 0 24 ${24+Math.max((a.baseShadowTop-96+6)/3.5,0)}`)):e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(a.baseShadowTop-96+6,0)}`)),e}(function(e){const a=document.createElement("div"),t=(0,o.H)(a);return(0,n.flushSync)((()=>{t.render(e)})),a.firstElementChild.innerHTML.replaceAll("</svg>","</svg>>>.").split(">>.").slice(0,-1)}((0,x.jsx)(I,{attributes:{...e},paths:e.paths,effectObj:a})),e),l="data:image/svg+xml;base64,";let s="";return s=t.length>1?`url('${l}${btoa(t[1])}'), url('${l}${btoa(t[0])}');`:`url('${l}${btoa(t[0])}');`,s}const we=(0,x.jsx)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x.jsx)(c.Path,{d:"M15.1 4.8 12.1 2.3V4C7.7 4 4.1 7.6 4.1 12 4.1 15.7 6.6 18.9 10.1 19.7 10.4 19.8 10.7 19.8 11.1 19.9L11.3 18.4C10.9 18.4 10.6 18.3 10.2 18.2L10.1 18.4V18.2C7.5 17.4 5.6 14.9 5.6 12 5.6 8.4 8.5 5.5 12.1 5.5V7.3L15.1 4.8ZM20 11C19.8 9.6 19.3 8.3 18.4 7.2L17.2 8C17.9 8.9 18.3 10 18.5 11.1L20 11ZM18.5 12.8C18.4 13.3 18.3 13.9 18.1 14.4S17.6 15.4 17.3 15.9L18.5 16.8C18.9 16.3 19.3 15.7 19.5 15S20 13.7 20 13L18.5 12.8ZM12.9 18.4 13.1 19.9C14.5 19.7 15.8 19.2 16.9 18.3L16 17.2C15.1 17.9 14 18.3 12.9 18.4ZM14 9H10C9.4 9 9 9.4 9 10V14C9 14.6 9.4 15 10 15H14C14.6 15 15 14.6 15 14V10C15 9.4 14.6 9 14 9Z"})}),_e={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:"",classes:""};SLEImceIcons.icon=(e,a,t)=>{const l=(0,o.H)(e),{paths:s,top:i,effect:c,align:d,blockMargin:f,blockPadding:g,classes:h}=a,b=D(c),p=r()("safelayout-ei-icon-block",h),m={position:"relative",top:i,...N(d,f,g)},u=(0,x.jsx)(I,{attributes:a,paths:s,effectObj:b,isInEditor:!1});(0,n.flushSync)((()=>{l.render(t?.hasSpace?(0,x.jsx)("div",{className:p,style:m,children:u}):u)}))},SLEImceIcons.seMenuStyle=e=>function(e){return ye(e,ke(e))}(e),SLEImceIcons.menu=(e,a,t)=>{(0,o.H)(e).render((0,x.jsx)(je,{att:a,others:t}))};const je=e=>{let{att:a,others:t}=e;var o;return 0===Object.keys(a).length&&(a={..._e,...t?.hasSpace?{align:"",blockMargin:{},blockPadding:{}}:{},...t?.menuIcon?{iconPos:"before",iconGap:0,size:"36px",hasBg:!1,effect:"effect047",name:"001_admin home",paths:[{d:"M19.2 9.9l1.836 1.836-1.272 1.272L12 5.244l-7.764 7.764-1.272-1.272L12 2.7l4.8 4.8v-2.4h2.4v4.8zm-7.2-2.952 7.2 7.188V21.3H4.8v-7.164zM14.4 20.1v-6H9.6v6h4.8z"}],color:["linear-gradient(#d4af37 0%, #fede00 50%, #d4af37 100%)"]}:{}}),a?.animation&&(a.slbbAnim=a.animation,a.animation=void 0),a.blockId=(o=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o(),SLEImceIcons.att=a,(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(Ce,{attributes:a,others:t})})};function Ce(t){const{attributes:o,others:n}=t,{name:i,paths:r,hasBg:c,bgShape:d,rotate:y,flipHorizontal:k,flipVertical:w,rotateBg:_,top:j,size:C,color:S,strokeColor:v,strokeWidth:B,hasShadow:N,shadow:A,bgColor:P,bgStrokeColor:z,bgStrokeWidth:L,hasBgShadow:M,bgShadow:T,hasBaseShadow:V,baseShadowWidth:E,baseShadowHeight:R,baseShadowTop:O,padding:H,bgRadius:$,effect:W,slbbAnim:G,label:Z,title:U,linkUrl:X,linkRel:Y,linkTarget:J,align:K,blockMargin:ee,blockPadding:ae,classes:te,iconPos:le,iconGap:ce}=o,de="_blank"===J,ge="noreferrer noopener",[he,be]=(0,l.useState)(o),pe=D(o?.effect),me=n?.noCClass?null:"sl-ei-icon-block-mce-format-container",ue="safelayout-ei-icon-dialog-mce-panel",xe=n?.hasSpace?{}:{margin:"0 5px"},ye=e=>{for(var a in e)o[a]=e[a];be({...o}),SLEImceIcons.att=o,n?.callBack&&n.callBack()};return(0,x.jsxs)(x.Fragment,{children:[!n?.hidePreview&&(0,x.jsxs)("div",{className:"sl-ei-icon-block-mce-preview-container",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-mce-preview-title",children:"Preview"}),(0,x.jsx)("div",{className:"safelayout-ei-icon-block",style:{display:"inline-block",position:"relative",top:o.top+"px"},children:(0,x.jsx)(I,{attributes:o,paths:o.paths,effectObj:pe})})]}),(0,x.jsxs)("div",{className:me,children:[(0,x.jsx)(re,{name:i,paths:r,color:S,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+i.substring(4),onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-icon-name"),o=Q(t);fe("sl-ei-list-selected-icon"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-icon");let n=o?.attributes;n?.color||(n={...n,color:[S[0]]}),n?.strokeColor||(n={...n,strokeColor:[v[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[B[0]]}),ye({name:t,paths:o.paths,...n})},position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(se,{currentEffect:W,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-effect-name"),o=D(t);fe("sl-ei-list-selected-effect"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-effect");let n=o?.attributes?.padding;if(n){let e=parseInt(C);e<32?n*=.15:e<50?n*=.25:e<74?n*=.5:e<82&&(n*=.7),ye({effect:t,...o?.attributes,padding:Math.round(n)})}else ye({effect:t,...o?.attributes})}})})}),!n?.menuIcon&&(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsxs)(s.ToolbarGroup,{style:{border:"none"},children:[n?.hasSpace&&(0,x.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:K,onChange:e=>ye({align:e})}),(0,x.jsx)(s.ToolbarButton,{icon:f,label:(0,e.__)("Rotate","safelayout-elegant-icons"),onClick:()=>ye({rotate:(y+45)%360}),isPressed:0!=y,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:g,label:(0,e.__)("Flip horizontal","safelayout-elegant-icons"),onClick:()=>ye({flipHorizontal:!k}),isPressed:k,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:h,label:(0,e.__)("Flip vertical","safelayout-elegant-icons"),onClick:()=>ye({flipVertical:!w}),isPressed:w,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:we,label:(0,e.__)("Rotate background","safelayout-elegant-icons"),onClick:()=>ye({rotateBg:(_+45)%360}),isPressed:0!=_,style:xe})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[n?.menuIcon&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon position","safelayout-elegant-icons")}),(0,x.jsxs)(s.__experimentalToggleGroupControl,{value:le,isBlock:!0,onChange:e=>ye({iconPos:e}),size:"small",children:[(0,x.jsx)(s.__experimentalToggleGroupControlOption,{value:"before",label:(0,e.__)("Before","safelayout-elegant-icons")}),(0,x.jsx)(s.__experimentalToggleGroupControlOption,{value:"after",label:(0,e.__)("After","safelayout-elegant-icons")})]})]}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:j,onChange:e=>ye({top:e})}),n?.menuIcon&&(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Gap","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:ce,onChange:e=>ye({iconGap:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(C),onChange:e=>ye({size:e+"px"})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:H,disabled:!c,onChange:e=>ye({padding:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:$,disabled:!c||"rect"!=d,onChange:e=>ye({bgRadius:e})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[S.map(((a,t,o)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(t,o.length),click:e=>{let a=[...S];a[t]=e.target.style.background,ye({color:a})},change:e=>{let a=[...S];e&&(a[t]=e),ye({color:a})},position:{offset:n?.popoverOffset}},t))),v.map(((a,t,o)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(t,o.length),click:e=>{let a=[...v];a[t]=e.target.style.background,ye({strokeColor:a})},change:e=>{let a=[...v];e&&(a[t]=e),ye({strokeColor:a})},position:{offset:n?.popoverOffset}},t)))]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(s.ToggleControl,{checked:c,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>ye({hasBg:e})}),(0,x.jsx)(F,{attribute:P,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>ye({bgColor:e.target.style.background}),change:e=>e&&ye({bgColor:e}),disabled:!c,position:{offset:n?.popoverOffset}}),(0,x.jsx)(F,{attribute:z,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>ye({bgStrokeColor:e.target.style.background}),change:e=>e&&ye({bgStrokeColor:e}),disabled:!c,position:{offset:n?.popoverOffset}})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:b,children:[B.map(((a,t,o)=>(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(t,o.length),min:0,max:200,value:a,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let a=[...B];a[t]=e,ye({strokeWidth:a})}},t))),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L,disabled:!c,onChange:e=>ye({bgStrokeWidth:e})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:N,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasShadow:e})}),(0,x.jsx)(F,{attribute:oe(A,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>ye({shadow:ne(A,3,e.target.style.background)}),change:e=>ye({shadow:ne(A,3,e)}),disabled:!N,position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,2),disabled:!N,onChange:e=>ye({shadow:ne(A,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,0),disabled:!N,onChange:e=>ye({shadow:ne(A,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,1),disabled:!N,onChange:e=>ye({shadow:ne(A,1,e)})})]})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:M,label:(0,e.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasBgShadow:e}),disabled:!c}),(0,x.jsx)(F,{attribute:oe(T,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>ye({bgShadow:ne(T,3,e.target.style.background)}),change:e=>ye({bgShadow:ne(T,3,e)}),disabled:!M||!c,position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(T,2),disabled:!M||!c,onChange:e=>ye({bgShadow:ne(T,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(T,0),disabled:!M||!c,onChange:e=>ye({bgShadow:ne(T,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(T,1),disabled:!M||!c,onChange:e=>ye({bgShadow:ne(T,1,e)})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:V,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasBaseShadow:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:O,disabled:!V,onChange:e=>ye({baseShadowTop:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:E,disabled:!V,onChange:e=>ye({baseShadowWidth:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:R,disabled:!V,onChange:e=>ye({baseShadowHeight:e})})]})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(ie,{currentAnim:G,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-anim-name");fe("sl-ei-list-selected-anim"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-anim"),ye({slbbAnim:t})}})})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link",children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,x.jsx)(s.TextControl,{label:(0,e.__)("Tooltip","safelayout-elegant-icons"),value:U||"",onChange:e=>ye({title:e})}),(0,x.jsx)(s.TextControl,{label:(0,e.__)("Label","safelayout-elegant-icons"),value:Z||"",onChange:e=>ye({label:e}),help:(0,e.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,x.jsx)(s.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Link url","safelayout-elegant-icons")}),(0,x.jsx)(a.__experimentalLinkControl,{value:{url:X,opensInNewTab:de},onChange:({url:e="",opensInNewTab:a})=>{ye({linkUrl:e}),de!==a&&function(e){const a=e?"_blank":void 0;let t=Y;a&&!Y?t=ge:a||Y!==ge||(t=void 0),ye({linkTarget:a,linkRel:t})}(a)},onRemove:()=>{ye({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(s.TextControl,{label:(0,e.__)("Link rel","safelayout-elegant-icons"),value:Y||"",onChange:e=>ye({linkRel:e})})]})}),n?.hasSpace&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(s.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:ee,onChange:e=>ye({blockMargin:e})}),(0,x.jsx)(s.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:ae,onChange:e=>ye({blockPadding:e})})]})}),(0,x.jsx)(s.Panel,{className:"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link",children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:u,className:"sl-ei-icon-block-link-panel",children:(0,x.jsx)(s.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:te||"",onChange:e=>ye({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,x.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,x.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}})()})();1 (()=>{var e={452:(e,a)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var t=arguments[a];t&&(e=s(e,l(t)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var t in e)o.call(e,t)&&e[t]&&(a=s(a,t));return a}function s(e,a){return a?e?e+" "+a:e+a:e}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(a,[]))||(e.exports=t)}()},470:(e,a,t)=>{"use strict";var o=t(795);a.H=o.createRoot,o.hydrateRoot},795:e=>{"use strict";e.exports=window.ReactDOM}},a={};function t(o){var n=a[o];if(void 0!==n)return n.exports;var l=a[o]={exports:{}};return e[o](l,l.exports,t),l.exports}t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},t.d=(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})},t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{"use strict";const e=window.wp.i18n,a=window.wp.blockEditor;var o=t(470),n=t(795);const l=window.wp.element,s=window.wp.components;var i=t(452),r=t.n(i);const c=window.wp.primitives,d=window.React,f=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),g=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})),h=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})),b=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),p=(0,d.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(c.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),m=(0,d.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(c.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),u=(0,d.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(c.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,d.createElement)(c.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,d.createElement)(c.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),x=window.ReactJSXRuntime,y=[{fill:{type:"radialgradient",cx:.5,cy:.5,r:.68,fx:.5,fy:.5,offsets:[0,.45,.64,1],colors:["rgba(0,0,0,0.9)","rgba(0,0,0,0.2)","rgba(0,0,0,0)","rgba(0,0,0,0)"]},stroke:{type:"none"}}],k=e=>e&&-1!=e.indexOf("gradient"),w=(e,a)=>Math.round(e*10**a)/10**a;function _(e){const{grad:a,id:t}=e;function o(e,a,t){var o=a.slice(t).search(/,|\)|\d/);","==a[t+o]?e.push(0):")"==a[t+o]&&e.push(1)}let n=[],l=[],s=[".","-","+","1","2","3","4","5","6","7","8","9","0"],i=a.indexOf("(")+1,r=0,c=i,d=a.length;for(;c<d;){if(i=1,"#"===a[c])n.push(a.substr(c,i=a.slice(c).search(/,|\)|\s/))),o(l,a,c+i);else if("r"===a[c]||"h"===a[c])n.push(a.substr(c,i=a.indexOf(")",c)-c+1)),o(l,a,c+i);else if(-1!=s.indexOf(a[c])){let e=c+a.slice(c).search(/,|%|\)/),t=a.indexOf("deg",c);-1!=t&&(-1===e||t<e)?r=180-Number(a.substr(c,i=t-c)):l.push(a.substr(c,i=e-c)/100)}c+=i}r=-r*(Math.PI/180);const f=w(.5+.5*Math.sin(r),4),g=w(.5-.5*Math.cos(r),4),h=w(.5+.5*Math.sin(r+Math.PI),4),b=w(.5-.5*Math.cos(r+Math.PI),4);return"radial"===a.substr(0,6)?(0,x.jsx)(j,{id:t,colors:n,offsets:l,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(C,{id:t,colors:n,offsets:l,x1:f,y1:g,x2:h,y2:b})}function j(e){const{colors:a,offsets:t,id:o,cx:n,cy:l,r:s,fx:i,fy:r}=e;return(0,x.jsx)("radialGradient",{id:o,cx:n,cy:l,r:s,fx:i,fy:r,children:(0,x.jsx)(S,{colors:a,offsets:t})})}function C(e){const{colors:a,offsets:t,id:o,x1:n,y1:l,x2:s,y2:i}=e;return(0,x.jsx)("linearGradient",{id:o,x1:n,y1:l,x2:s,y2:i,children:(0,x.jsx)(S,{colors:a,offsets:t})})}function S(e){const{colors:a,offsets:t}=e;return(0,x.jsx)(x.Fragment,{children:a.map(((e,a)=>(0,x.jsx)("stop",{"stop-color":e,offset:t[a]},a)))})}function v(e){const{pos:a,objArray:t,id:o}=e,n=`fillGrad${a+o}`,l=`strokeGrad${a+o}`;let s;return(0,x.jsx)(x.Fragment,{children:t.map(((e,a)=>(0,x.jsxs)("defs",{children:[k(e.fill.type)&&(s=e.fill)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(j,{id:n+a,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(C,{id:n+a,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2})),k(e.stroke.type)&&(s=e.stroke)&&("radial"===s.type.substr(0,6)?(0,x.jsx)(j,{id:l+a,colors:s.colors,offsets:s.offsets,cx:s.cx,cy:s.cy,r:s.r,fx:s.fx,fy:s.fy}):(0,x.jsx)(C,{id:l+a,colors:s.colors,offsets:s.offsets,x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2}))]},a)))})}function B(e){const{pos:a,objArray:t,id:o,rx:n}=e,l=`fillGrad${a+o}`,s=`strokeGrad${a+o}`;return(0,x.jsx)(x.Fragment,{children:t.map(((e,a)=>"rect"===e.shape?(0,d.createElement)("rect",{...e.others,rx:n,style:e?.style,fill:k(e.fill.type)?`url(#${l+a})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+a})`:e.stroke.type,strokeWidth:e.strokeWidth,key:a}):(0,d.createElement)("path",{...e.others,d:e.d,style:e?.style,fill:k(e.fill.type)?`url(#${l+a})`:e.fill.type,stroke:k(e.stroke.type)?`url(#${s+a})`:e.stroke.type,strokeWidth:e.strokeWidth,key:a})))})}function N(e,a,t){return{textAlign:e||null,marginTop:a?.top||null,marginRight:a?.right||null,marginBottom:a?.bottom||null,marginLeft:a?.left||null,paddingTop:t?.top||null,paddingRight:t?.right||null,paddingBottom:t?.bottom||null,paddingLeft:t?.left||null}}function I({attributes:e,paths:a,effectObj:t,isInEditor:o=!0,others:n}){const{blockId:l,rotate:i,flipHorizontal:r,flipVertical:c,hasBg:d,bgShape:f,bgShapeVal:g,rotateBg:h,size:b,color:p,strokeColor:m,strokeWidth:u,hasShadow:j,shadow:C,svgFilter:S,bgColor:N,bgStrokeColor:I,bgStrokeWidth:A,hasBgShadow:P,bgShadow:z,hasBaseShadow:L,baseShadowWidth:E,baseShadowHeight:M,baseShadowTop:T,padding:V,bgRadius:R,animation:F,slbbAnim:O,label:$,title:H,linkUrl:W,linkRel:G,linkTarget:D}=e,Z=w(.88*R,2),U=`path${l}`,X=`fillGrad${l}`,Y=`strokeGrad${l}`,J=`bgFillGrad${l}`,q=`bgStrokeGrad${l}`,K=`fillGradBase${l}`,Q=p.map(((e,a)=>k(e)?`url(#${X+a})`:"")),ee=m.map(((e,a)=>k(e)?`url(#${Y+a})`:"")),ae=k(N)?`url(#${J})`:"",te=k(I)?`url(#${q})`:"",oe=d?`calc(110% - ${Math.round(2.4*Number(V))}px)`:"100%",ne=(j?C:"")+("none"!=S?` url(#${S})`:""),le=P?z:null,se=0!=h?`rotate(${h}deg)`:null,ie=n?.oldAnim?F:O,re=ie&&"No Animation"!=ie?`sl-ei-icon-block-animation-${ie}`:null,ce=(0!=i?`rotate(${i}deg)`:"")+(r||c?` scale(${r?-1:1}, ${c?-1:1})`:""),de=""!=ce?(d||L?"translate(-50%, -50%) ":"")+ce:null,fe=(0,x.jsxs)(x.Fragment,{children:[(d||L)&&(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:ce||null},children:[d&&(0,x.jsxs)("defs",{children:[""!=ae&&(0,x.jsx)(_,{grad:N,id:J}),""!=te&&(0,x.jsx)(_,{grad:I,id:q}),t&&t.before.length>0&&(0,x.jsx)(v,{pos:"before",objArray:t.before,id:l}),t&&t.after.length>0&&(0,x.jsx)(v,{pos:"after",objArray:t.after,id:l})]}),L&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v,{pos:"Base",objArray:y,id:l}),(0,x.jsx)("ellipse",{cx:"48",cy:T,rx:E/2,ry:M/2,fill:`url(#${K+0})`})]}),d&&(0,x.jsxs)("g",{style:{transform:se},children:[t&&t.before.length>0&&(0,x.jsx)(B,{pos:"before",objArray:t.before,id:l,rx:Z}),"rect"===f?(0,x.jsx)(s.Rect,{x:"4",y:"4",width:"88",height:"88",rx:Z,fill:ae||N,stroke:te||I,strokeWidth:A,style:{filter:le}}):(0,x.jsx)("path",{d:g,fill:ae||N,stroke:te||I,strokeWidth:A,style:{filter:le}}),t&&t.after.length>0&&(0,x.jsx)(B,{pos:"after",objArray:t.after,id:l,rx:Z})]})]}),(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{transform:de,height:oe,width:oe},children:[(0,x.jsxs)("defs",{children:[Q.map(((e,a)=>""!=e&&(0,x.jsx)(_,{grad:p[a],id:X+a},a))),ee.map(((e,a)=>""!=e&&(0,x.jsx)(_,{grad:m[a],id:Y+a},a)))]}),(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:U,children:a.map(((e,a)=>(0,x.jsx)(s.Path,{"vector-effect":"non-scaling-stroke",fill:Q[e.color||0]||p[e.color||0],stroke:ee[e.strokeColor||0]||m[e.strokeColor||0],strokeWidth:u[e.strokeWidth||0],d:e.d,style:e.style},a)))}),!0!==n?.d1?(0,x.jsx)("use",{href:`#${U}`,style:{filter:ne||null}}):(0,x.jsx)("use",{xlinkHref:`#${U}`,style:{filter:ne||null}})]})]});return W&&!o?(0,x.jsx)("a",{style:{height:b,width:b},href:W,target:D||null,rel:G||null,"aria-label":$||null,title:H||null,className:re,children:fe}):(0,x.jsx)("div",{style:{height:b,width:b},"aria-label":$||null,title:H||null,className:re,children:fe})}function A({icon:e}){const a="path-sl-ei-icon-block-list"+e.name.replaceAll(" ","_"),t=e?.attributes?.color||["#5c5c5c"],o=e.paths,n="47px";return(0,x.jsx)("div",{style:{height:n,width:n},children:(0,x.jsxs)(s.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:a,children:o.map(((e,a)=>(0,x.jsx)(s.Path,{"vector-effect":"non-scaling-stroke",fill:t[e.color||0],d:e.d,style:e.style},a)))}),(0,x.jsx)("use",{href:`#${a}`})]})})}const P=({colorValue:e,label:a})=>(0,x.jsxs)(s.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(s.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,x.jsx)(s.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:a,children:a})]}),z=e=>({onToggle:a,isOpen:t})=>{const{colorValue:o,label:n,disabled:l}=e,i={onClick:a,className:r()("block-editor-panel-color-gradient-settings__dropdown","sl-ei-icon-block-no-padding-left-right",{"is-open":t}),"aria-expanded":t};return(0,x.jsx)(s.Button,{...i,disabled:l,children:(0,x.jsx)(P,{colorValue:o,label:n})})};function L({settings:e,label:a,disabled:t,position:o,style:n}){var l;const i={colorValue:null!==(l=e.gradientValue)&&void 0!==l?l:e.colorValue,label:a,disabled:t};return(0,x.jsx)(s.Dropdown,{style:n,popoverProps:{placement:o?.pos||"left-start",offset:o?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:z(i),renderContent:()=>(0,x.jsx)(s.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",id:"sl-ei-color-picker-container-00",children:(0,x.jsx)(R,{...e})})})})}const E={name:"color",title:(0,e.__)("Solid","safelayout-elegant-icons"),value:"color"},M={name:"gradient",title:(0,e.__)("Gradient","safelayout-elegant-icons"),value:"gradient"},T=[E,M],V=(0,l.memo)((function({colors:e,onClick:a,img:t,tab:o}){return(0,x.jsx)("div",{className:"sl-ei-icon-block-color-gradient-container",children:e.map(((e,t)=>(0,x.jsx)("span",{onClick:a,style:{background:e}},t)))})}),((e,a)=>e.tab===a.tab));function R({__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,className:t,label:o,onlySolid:n,onColorChange:l,onColorArrayClick:i,onGradientChange:c,onGradientArrayClick:f,colorValue:g,gradientValue:h,clearable:b,showTitle:p=!1,enableAlpha:m,headingLevel:u}){(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-color-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const y={[E.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.ColorPalette,{value:g,onChange:e=>l(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,clearable:b,enableAlpha:m,colors:[],headingLevel:u}),(0,x.jsx)(V,{colors:O,onClick:i,tab:"COLOR"})]}),[M.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.GradientPicker,{__nextHasNoMargin:!0,value:k(h)?h:`linear-gradient(${h} 0%, ${h} 100%)`,onChange:e=>c(e),__experimentalIsRenderedInSidebar:e,__nextHasNoMarginBottom:a,clearable:b,enableAlpha:m,gradients:[],headingLevel:u}),(0,x.jsx)(V,{colors:$,onClick:f,img:!0,tab:"GRADIENT"})]})};return(0,x.jsx)(s.BaseControl,{__nextHasNoMarginBottom:!0,className:r()("block-editor-color-gradient-control",t),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(s.__experimentalVStack,{spacing:1,children:[p&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(s.BaseControl.VisualLabel,{children:o})})}),(0,x.jsx)(s.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[E]:T,initialTabName:k(h)?M.value:E.value,children:e=>{return a=e.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:y[a]});var a}})]})})})}function F(e){const{attribute:a,label:t,onlySolid:o,change:n,click:l,disabled:s,position:i,style:r}=e;return(0,x.jsx)(L,{settings:{onlySolid:o,enableAlpha:!0,clearable:!1,colorValue:a,gradientValue:a,onColorChange:n,onGradientChange:n,onColorArrayClick:l,onGradientArrayClick:l,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:t,disabled:s,position:i,style:r})}const O=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],$=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],H=["linear-gradient(#0076ff 0%, #47f4ff 45%, #47f4ff 55%, #0083ff 100%)"],W=["M76.334 81.801 69.755 78.532 70.697 85.818 64.711 81.56 64.502 88.903 59.255 83.761 57.9 90.98 53.523 85.081 51.054 92 47.654 85.488 44.134 91.936 41.794 84.973 37.308 90.79 36.086 83.547 30.746 88.591 30.672 81.245 24.608 85.392 25.685 78.125 19.047 81.272 21.247 74.264 14.199 76.334 17.468 69.755 10.182 70.697 14.44 64.711 7.097 64.502 12.239 59.255 5.02 57.9 10.919 53.523 4 51.054 10.512 47.654 4.064 44.134 11.027 41.794 5.21 37.308 12.453 36.086 7.409 30.746 14.755 30.672 10.608 24.608 17.875 25.685 14.728 19.047 21.736 21.247 19.666 14.199 26.245 17.468 25.303 10.182 31.289 14.44 31.498 7.097 36.745 12.239 38.1 5.02 42.477 10.919 44.946 4 48.346 10.512 51.866 4.064 54.206 11.027 58.692 5.21 59.914 12.453 65.254 7.409 65.328 14.755 71.392 10.608 70.315 17.875 76.953 14.728 74.753 21.736 81.801 19.666 78.532 26.245 85.818 25.303 81.56 31.289 88.903 31.498 83.761 36.745 90.98 38.1 85.081 42.477 92 44.946 85.488 48.346 91.936 51.866 84.973 54.206 90.79 58.692 83.547 59.914 88.591 65.254 81.245 65.328 85.392 71.392 78.125 70.315 81.272 76.953 74.264 74.753Z"],G={hasBg:!0,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!0,hasBgShadow:!0,hasBaseShadow:!1,padding:12,bgRadius:50,bgStrokeWidth:0,bgStrokeColor:"#000"},D=e=>Z.find((({name:a})=>a===e))||null,Z=[{name:"No Effect",color:["#0693e3"],attributes:{hasBg:!0,bgRadius:10,bgShape:"rect",bgShapeVal:"",rotateBg:0,hasShadow:!1,hasBgShadow:!1,hasBaseShadow:!1,padding:15},before:[],after:[]},{name:"effect047",color:H,attributes:{hasBaseShadow:!1,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,hasShadow:!1,hasBgShadow:!1},before:[],after:[]},{name:"effect001",color:H,attributes:{hasShadow:!0,bgStrokeWidth:0,bgStrokeColor:"#000",hasBg:!1,shadow:"drop-shadow(0px 2px 2px #000)",hasBgShadow:!1,hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:94},before:[],after:[]},{name:"effect002",color:H,attributes:{...G,shadow:"drop-shadow(1px 1px 1px #000)",bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#f0f0f0","#fff","#fff","#fff","#f0f0f0"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect003",color:H,attributes:{...G,hasShadow:!1,bgShadow:"drop-shadow(1px 1px 2px #000)",padding:17},before:[],after:[{shape:"rect",fill:{type:"lineargradient",x1:.5,y1:0,x2:.5,y2:1,offsets:[0,.3,.5,.7,1],colors:["#303030","#151515","#000","#151515","#303030"]},stroke:{type:"none"},strokeWidth:0,others:{x:"12",y:"12",width:"72",height:"72"}}]},{name:"effect004",color:H,attributes:{...G,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",padding:8,bgRadius:12},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:0,cy:.28,r:1.2,fx:0,fy:.28,offsets:[.25,.6,.61,.75,.9],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.55)","rgba(255,255,255,0)","rgba(255,255,255,0)","rgba(255,255,255,0.45)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"none"},stroke:{type:"radialgradient",cx:.5,cy:0,r:.63,fx:.5,fy:0,offsets:[.37,.8],colors:["#fbf7c8","rgba(255,255,255,0)"]},strokeWidth:2,style:{filter:"blur(1px)"},others:{x:"7.5",y:"7.5",width:"81",height:"81",class:"sl-ei-icon-block-stroke-scale"}}]},{name:"effect005",color:H,attributes:{...G,rotateBg:45,shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(3px 3px 2px #000)",hasBaseShadow:!0,baseShadowWidth:60,baseShadowHeight:10,baseShadowTop:112,padding:8,bgRadius:15},before:[],after:[{shape:"rect",fill:{type:"radialgradient",cx:.5,cy:.5,r:.6,fx:.5,fy:.5,offsets:[0,.45,.77,1],colors:["rgba(0,0,0,0)","rgba(0,0,0,0)","rgba(0,0,0,0.3)","rgba(0,0,0,0.6)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}},{shape:"rect",fill:{type:"lineargradient",x1:.82,y1:.82,x2:.18,y2:.18,offsets:[0,.5,1],colors:["rgba(255,0,0,0)","rgba(255,255,0,0.45)","rgba(255,0,0,0)"]},stroke:{type:"none"},strokeWidth:0,others:{x:"4",y:"4",width:"88",height:"88"}}]},{name:"effect006",color:H,attributes:{...G,bgShape:"path",bgShapeVal:W[0],shadow:"drop-shadow(0px 0px 1px #000)",bgShadow:"drop-shadow(0px 0px 1px #000)",padding:15},before:[],after:[]},{name:"effect007",color:H,attributes:{...G,bgShape:"path",bgShapeVal:W[0],shadow:"drop-shadow(0px 1px 1px #000)",bgShadow:"drop-shadow(0px 1px 1px #000)",hasBaseShadow:!0,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:97,padding:15,bgStrokeWidth:2,bgStrokeColor:"linear-gradient(45deg, #f00 0%, #ff0 25%, #05c1ff 50%, #ff0 75%, #f00 100%)"},before:[],after:[{shape:"path",d:W[0],fill:{type:"radialgradient",cx:.5,cy:.5,r:.63,fx:.5,fy:.5,offsets:[0,.45,.7,1],colors:["rgba(255,255,255,0)","rgba(255,255,255,0.2)","rgba(153,116,84,0.4)","rgba(99,67,46,0.9)"]},stroke:{type:"none"},strokeWidth:0,others:{}}]}],U=[{name:"No Animation",parent:""},{name:"blur",parent:""},{name:"brighten",parent:""},{name:"darken",parent:""},{name:"grayscale",parent:""},{name:"invert",parent:""},{name:"contrast",parent:""},{name:"hue-rotate",parent:""},{name:"sepia",parent:""},{name:"opacity",parent:""},{name:"flash",parent:""},{name:"yellow-glow",parent:""},{name:"red-glow",parent:""},{name:"blue-glow",parent:""},{name:"violet-glow",parent:""},{name:"rotate-2D",parent:""},{name:"rotate-3D-X",parent:"rotate-3D"},{name:"rotate-3D-Y",parent:"rotate-3D"},{name:"zoom-in",parent:""},{name:"zoom-out",parent:""},{name:"push",parent:"push"},{name:"move-up",parent:""},{name:"move-down",parent:""},{name:"swing-3D-X",parent:"swing-3D"},{name:"swing-3D-Y",parent:"swing-3D"},{name:"swing",parent:""},{name:"swing1",parent:""},{name:"bell",parent:""},{name:"tremble",parent:""},{name:"surprise",parent:""},{name:"rubber",parent:""},{name:"dance",parent:""},{name:"jelly",parent:""},{name:"pulse",parent:""},{name:"expand",parent:""},{name:"wobble",parent:""},{name:"yoyo",parent:""},{name:"bounce",parent:""},{name:"spring",parent:""}],X=window.wp.richText,Y={name:"998_art",paths:[{d:"M11.274 4.623c1.154.389-2.229 2.297-.114 3.577 1.189.72 3.783-2.537 5.086-3.269 1.109-.617 3.051-.743 4.034 1.406 1.246 2.72.16 9.794-4.331 12.64-4.537 2.857-10.251 1.406-12.229-3.04-2.297-5.177 3.566-12.674 7.554-11.314zm1.383 7.371c.834 1.874 5.371-.571 4.331-3.2-.674-1.703-5.12 1.429-4.331 3.2z"}]},J=(c.SVG,c.Path,{hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,slbbAnim:"No Animation"}),q=(a,t)=>{const o=[(0,e.__)("one","safelayout-elegant-icons"),(0,e.__)("two","safelayout-elegant-icons"),(0,e.__)("three","safelayout-elegant-icons"),(0,e.__)("four","safelayout-elegant-icons"),(0,e.__)("five","safelayout-elegant-icons")];return t<=1?"":" "+o[a]},K=e=>{let a=U.find((({name:a})=>a===e)),t="";return a&&(t=""!=a?.parent?`sl-ei-icon-block-animation-${a.parent}-parent`:""),t},Q=e=>{let a=null;return SLEIiconArray.some((t=>a=t.find((({name:a})=>a===e)))),a||null},ee=e=>{let a="";return SLEIiconArray.some((t=>a=t[0].libCode===e.name.substring(0,3)&&" ("+t[0].libName+")")),a||" (unknown)"},ae=e=>{let a=null;return SLEIiconArray.some((t=>a=t[0].libCode===e&&t[0]?.class)),a||""},te=e=>e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split("px "),oe=(e,a)=>{let t=te(e)[a];return a<3?parseFloat(t):t},ne=(e,a,t)=>{let o=te(e);return o[a]=t,"drop-shadow("+o.join("px ")+")"},le=(e,a,t,o,n,l)=>{let s={...J,color:l||["#5c5c5c"],...a?.attributes,size:t,blockId:"sl-ei-icon-block-"+o+a.name.replaceAll(" ","_")},i=n||s?.effect,r=i?D(i):null;r?.attributes&&(s={...s,...r?.attributes}),e.attributes=s,e.effectObj=r},se=(0,l.memo)((function({currentEffect:e,onIconClick:a}){fe("sl-ei-list-selected-effect");const t={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-effects-container",children:Z.map(((o,n)=>{const l=o.attributes.rotateBg,s=o.name;return le(t,Y,l?76:92,"effectList"+n,s,o.color),(0,x.jsx)("div",{style:{padding:l?"14px":null,display:n?null:"block",margin:n?null:"3px auto"},id:s===e?"sl-ei-list-selected-effect":null,className:"sl-ei-icon-block-effectlist"+(s===e?" sl-ei-list-selected":""),onClick:a,title:n?"effect0"+n:"No Effect","data-effect-name":s,children:(0,x.jsx)(I,{attributes:t.attributes,effectObj:t.effectObj,paths:Y.paths})},n)}))})})}),((e,a)=>e.currentEffect===a.currentEffect)),ie=(0,l.memo)((function({currentAnim:e,onIconClick:a}){fe("sl-ei-list-selected-anim");const t={...Y,attributes:{hasBg:!0,slbbAnim:"",padding:8,color:["linear-gradient(15deg, #8080fa 0%, #f882f5 19%, #fa8280 38%, #fafd82 64%, #80fa80 98%)"],strokeColor:["#00f"],strokeWidth:[1]}},o={};return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{className:"sl-ei-icon-block-anim-container",children:U.map(((n,l)=>(t.attributes.slbbAnim=n.name,le(o,t,54,"animList"+l,null),(0,x.jsx)("div",{id:n.name===e?"sl-ei-list-selected-anim":null,className:"sl-ei-icon-block-animlist "+K(n.name)+(n.name===e?" sl-ei-list-selected":""),onClick:a,title:n.name.replaceAll("-"," "),"data-anim-name":n.name,children:(0,x.jsx)(I,{attributes:o.attributes,effectObj:o.effectObj,paths:t.paths})},l))))})})}),((e,a)=>e.currentAnim===a.currentAnim)),re=e=>(0,x.jsx)(s.Dropdown,{popoverProps:{placement:e?.position?.pos||"left-start",offset:e?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown sl-ei-format-text-icon",style:{margin:"16px"},renderToggle:ce(e),renderContent:()=>(0,x.jsx)(s.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",id:"sl-ei-icon-picker-container-00",children:(0,x.jsx)(de,{...e})})})})}),ce=e=>({onToggle:a,isOpen:t})=>{const{name:o,paths:n,color:l,label:i,disabled:c}=e,d={},f={onClick:a,className:r()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":t}),"aria-expanded":t};let g=Q(o);return null===g&&(g={name:o,paths:n,attributes:{color:l}}),le(d,g,64,"selected",null,["#3535ff"]),(0,x.jsx)(s.Button,{...f,disabled:c,style:{border:"1px solid #add8e6"},children:(0,x.jsxs)(s.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-panel",children:(0,x.jsx)(I,{attributes:d.attributes,effectObj:d.effectObj,paths:g.paths})}),(0,x.jsx)(s.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:i,children:i})]})})};function de(a){const{name:t,onIconClick:o}=a;let n,i=[];(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-picker-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]);const[r,c]=(0,l.useState)(""),[f,g]=(0,l.useState)((e=>{let a=null;return SLEIiconArray.some((t=>a=t.find((({name:a})=>a===e))&&t)),a?a[0].libName:SLEIiconArray[0][0].libName})(t));if(r)i.push(null),SLEIiconArray.map((e=>i=i.concat(e.filter((({name:e})=>e?.substring(4)?.toLowerCase().includes(r.toLowerCase()))))));else{{let e=-1;SLEIiconArray.some(((a,t)=>e=a[0].libName===f&&t+1)),i=-1!=e?SLEIiconArray[e-1]:SLEIiconArray[0]}}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.SearchControl,{value:r,onChange:c,placeholder:(0,e.__)("Search icon","safelayout-elegant-icons")}),(0,x.jsx)(s.SelectControl,{value:f,onChange:g,__nextHasNoMarginBottom:!0,children:SLEIiconArray.map((e=>{const a=e[0].libName+" ("+(e.length-1)+")";return(0,x.jsx)("option",{value:e[0].libName,children:a})}))}),(0,x.jsx)(ge,{icons:i,name:t,onIconClick:o,selectedLibrary:f,searchVal:r,packsImageShow:n})]})}const fe=e=>{const a=document.getElementById(e);a&&(a.classList.remove("sl-ei-list-selected"),a.removeAttribute("id"))},ge=(0,l.memo)((function({icons:e,name:a,onIconClick:t,selectedLibrary:o,searchVal:n,packsImageShow:l}){return fe("sl-ei-list-selected-icon"),(0,x.jsx)("div",{className:"sl-ei-icon-block-icons-container",children:e?.map(((e,o)=>{if(o){let l=e.name.substring(0,3);return(0,x.jsx)("div",{id:e.name===a?"sl-ei-list-selected-icon":null,className:"sl-ei-icon-block-list"+(e.name===a?" sl-ei-list-selected":""),onClick:t,title:e.name.substring(4)+(n?ee(e):""),"data-icon-name":e.name,children:l<="400"?(0,x.jsx)("span",{className:ae(l),children:String.fromCharCode(59392+e.c)}):(0,x.jsx)(A,{icon:e})},o)}}))})}),((e,a)=>e.searchVal===a.searchVal&&e.selectedLibrary===a.selectedLibrary)),he={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:""},be="safelayout/text-icon",pe={name:be,title:"Icon (Safelayout)",keywords:[(0,e.__)("Icon","safelayout-elegant-icons"),(0,e.__)("Safelayout","safelayout-elegant-icons"),(0,e.__)("Elegant","safelayout-elegant-icons")],tagName:"span",className:"safelayout-text-icon",attributes:{className:"class",attrib:"dataicon"},contentEditable:!1,edit:function({value:t,onChange:o,isObjectActive:n,activeObjectAttributes:l,contentRef:i}){const r=(0,X.useAnchor)({editableContentElement:i.current,settings:pe});let{attrib:c}=l;return c&&(me=JSON.parse(atob(c))),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BlockControls,{children:(0,x.jsx)(s.ToolbarGroup,{children:(0,x.jsx)(s.ToolbarButton,{icon:(0,x.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("defs",{children:(0,x.jsxs)("linearGradient",{id:"sl-ei-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,x.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,x.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,x.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,x.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,x.jsx)("path",{fill:"url(#sl-ei-main-icon-grad101)",stroke:"#333333","stroke-width":"1",d:"M11.072 1.87c1.475.496-2.847 2.935-.146 4.571 1.519.92 4.834-3.242 6.498-4.176 1.416-.789 3.899-.949 5.155 1.796 1.592 3.476.204 12.515-5.534 16.151-5.798 3.651-13.099 1.796-15.626-3.884-2.935-6.615 4.556-16.195 9.652-14.457zm1.767 9.419c1.066 2.395 6.864-.73 5.534-4.089-.862-2.175-6.543 1.826-5.534 4.089z"})]}),title:(0,e.__)("Insert Icon (Safelayout)","safelayout-elegant-icons"),onClick:()=>{if(c)o((0,X.remove)(t,t.start,t.end));else{me={...he,blockId:xe()},c=btoa(JSON.stringify(me));let e=ke(me);o((0,X.insertObject)(t,{type:be,attributes:{className:`safelayout-text-icon sl-ei-fo-${me.blockId}`,attrib:c},innerHTML:`<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-text-css-${me.blockId}">.sl-ei-fo-${me.blockId} { ${ye(me,e)} }</style>`}))}},isActive:n})})}),n&&(0,x.jsx)(s.Popover,{placement:"top-start",variant:"toolbar",resize:!1,focusOnMount:!1,anchor:r,offset:20,children:(0,x.jsx)("div",{className:"sl-ei-icon-block-format-container",id:"sl-ei-icon-text-container-00",children:(0,x.jsx)(ue,{attributes:me,setAttributes:(e,a)=>{if(a)o((0,X.remove)(t,t.start,t.end));else{for(var n in e)me[n]=e[n];!function(e,a,t){setTimeout((()=>{e.blockId=xe();const o=btoa(JSON.stringify(e));let n=ke(e);const l=a.replacements.slice();l[a.start]={type:be,attributes:{className:`safelayout-text-icon sl-ei-fo-${e.blockId}`,attrib:o},innerHTML:`<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-text-css-${e.blockId}">.sl-ei-fo-${e.blockId} { ${ye(e,n)} }</style>`},t({...a,replacements:l})}),2)}(me,t,o)}}})})})]})}};let me;function ue(a){const{attributes:t,setAttributes:o}=a,{name:n,paths:l,hasBg:i,bgShape:r,top:c,size:f,color:g,strokeColor:h,strokeWidth:m,hasShadow:u,shadow:y,bgColor:k,bgStrokeColor:w,bgStrokeWidth:_,hasBaseShadow:j,baseShadowWidth:C,baseShadowHeight:S,baseShadowTop:v,padding:B,bgRadius:N,effect:I}=t;return(0,d.useLayoutEffect)((()=>{document.getElementById("sl-ei-icon-text-container-00").addEventListener("wheel",(e=>e.stopImmediatePropagation()))}),[]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(re,{name:n,paths:l,color:g,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+n.substring(4),onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-icon-name"),n=Q(t);fe("sl-ei-list-selected-icon"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-icon");let l=n?.attributes;l?.color||(l={...l,color:[g[0]]}),l?.strokeColor||(l={...l,strokeColor:[h[0]]}),l?.strokeWidth||(l={...l,strokeWidth:[m[0]]}),o({name:t,paths:n.paths,...l})}}),(0,x.jsx)(s.Panel,{children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(se,{currentEffect:I,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-effect-name"),n=D(t);fe("sl-ei-list-selected-effect"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-effect");let l=n?.attributes?.padding;if(l){let e=parseInt(f);e<32?l*=.15:e<50?l*=.25:e<74?l*=.5:e<82&&(l*=.7),o({effect:t,...n?.attributes,padding:Math.round(l)})}else o({effect:t,...n?.attributes})}})})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(s.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:c,onChange:e=>o({top:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(f),onChange:e=>o({size:e+"px"})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:B,disabled:!i,onChange:e=>o({padding:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:N,disabled:!i||"rect"!=r,onChange:e=>o({bgRadius:e})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[g.map(((a,t,n)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(t,n.length),click:e=>{let a=[...g];a[t]=e.target.style.background,o({color:a})},change:e=>{let a=[...g];e&&(a[t]=e),o({color:a})}},t))),h.map(((a,t,n)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(t,n.length),click:e=>{let a=[...h];a[t]=e.target.style.background,o({strokeColor:a})},change:e=>{let a=[...h];e&&(a[t]=e),o({strokeColor:a})}},t)))]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(s.ToggleControl,{checked:i,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>o({hasBg:e})}),(0,x.jsx)(F,{attribute:k,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>o({bgColor:e.target.style.background}),change:e=>e&&o({bgColor:e}),disabled:!i}),(0,x.jsx)(F,{attribute:w,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>o({bgStrokeColor:e.target.style.background}),change:e=>e&&o({bgStrokeColor:e}),disabled:!i})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:b,children:[m.map(((a,t,n)=>(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(t,n.length),min:0,max:200,value:a,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let a=[...m];a[t]=e,o({strokeWidth:a})}},t))),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:_,disabled:!i,onChange:e=>o({bgStrokeWidth:e})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:u,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>o({hasShadow:e})}),(0,x.jsx)(F,{attribute:oe(y,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>o({shadow:ne(y,3,e.target.style.background)}),change:e=>o({shadow:ne(y,3,e)}),disabled:!u}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,2),disabled:!u,onChange:e=>o({shadow:ne(y,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,0),disabled:!u,onChange:e=>o({shadow:ne(y,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(y,1),disabled:!u,onChange:e=>o({shadow:ne(y,1,e)})})]})}),(0,x.jsx)(s.Panel,{children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:j,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>o({hasBaseShadow:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:v,disabled:!j,onChange:e=>o({baseShadowTop:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:C,disabled:!j,onChange:e=>o({baseShadowWidth:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:S,disabled:!j,onChange:e=>o({baseShadowHeight:e})})]})}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(s.Button,{variant:"secondary",onClick:()=>o(null,1),style:{marginBottom:"10px"},children:(0,e.__)("Remove this icon","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})}function xe(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function ye(e,a){const t=e.hasBg?`calc(110% - ${Math.round(2.4*Number(e.padding))}px)`:"100%";return`display: inline-block;background-repeat: no-repeat;background-position: center;position: relative;background-size: ${t} ${t}, 100% 100%;top:${e.top}px;width:${e.size};height:${e.size};background-image:${a}`}function ke(e){const a=D(e?.effect),t=function(e,a){return 0!=a.rotateBg&&e.length>1&&(e[0]=e[0].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 96 96","-14 -14 124 124"),e[1]=e[1].replaceAll("transform","transform-origin: 40% 40%;transform").replaceAll("0 0 24 24","-3 -3 30 30")),a.hasBaseShadow&&(0!=a.rotateBg?e.length>1&&(e[0]=e[0].replaceAll("40% 40%","35% 32%").replaceAll("-14 -14 124 124",`-14 -14 124 ${124+Math.max(a.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("-3 -3 30 30",`-3 -3 30 ${30+Math.max((a.baseShadowTop-96+6)/4.5,0)}`)):e.length>1?(e[0]=e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(a.baseShadowTop-96+6,0)}`),e[1]=e[1].replaceAll("0 0 24 24",`0 0 24 ${24+Math.max((a.baseShadowTop-96+6)/3.5,0)}`)):e[0].replaceAll("0 0 96 96",`0 0 96 ${96+Math.max(a.baseShadowTop-96+6,0)}`)),e}(function(e){const a=document.createElement("div"),t=(0,o.H)(a);return(0,n.flushSync)((()=>{t.render(e)})),a.firstElementChild.innerHTML.replaceAll("</svg>","</svg>>>.").split(">>.").slice(0,-1)}((0,x.jsx)(I,{attributes:{...e},paths:e.paths,effectObj:a})),e),l="data:image/svg+xml;base64,";let s="";return s=t.length>1?`url('${l}${btoa(t[1])}'), url('${l}${btoa(t[0])}');`:`url('${l}${btoa(t[0])}');`,s}const we=(0,x.jsx)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x.jsx)(c.Path,{d:"M15.1 4.8 12.1 2.3V4C7.7 4 4.1 7.6 4.1 12 4.1 15.7 6.6 18.9 10.1 19.7 10.4 19.8 10.7 19.8 11.1 19.9L11.3 18.4C10.9 18.4 10.6 18.3 10.2 18.2L10.1 18.4V18.2C7.5 17.4 5.6 14.9 5.6 12 5.6 8.4 8.5 5.5 12.1 5.5V7.3L15.1 4.8ZM20 11C19.8 9.6 19.3 8.3 18.4 7.2L17.2 8C17.9 8.9 18.3 10 18.5 11.1L20 11ZM18.5 12.8C18.4 13.3 18.3 13.9 18.1 14.4S17.6 15.4 17.3 15.9L18.5 16.8C18.9 16.3 19.3 15.7 19.5 15S20 13.7 20 13L18.5 12.8ZM12.9 18.4 13.1 19.9C14.5 19.7 15.8 19.2 16.9 18.3L16 17.2C15.1 17.9 14 18.3 12.9 18.4ZM14 9H10C9.4 9 9 9.4 9 10V14C9 14.6 9.4 15 10 15H14C14.6 15 15 14.6 15 14V10C15 9.4 14.6 9 14 9Z"})}),_e={rotate:0,flipHorizontal:!1,flipVertical:!1,rotateBg:0,top:0,name:"001_admin customizer",paths:[{d:"M20.465 5.76s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92 .98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM3.535 19.84c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29 .63.67 .8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}],hasBg:!0,bgShape:"rect",bgShapeVal:"",size:"48px",color:["linear-gradient(45deg, #FF59BF 0%, #FF99D9 24%, #A6FF66 75%, #8CFF4C 100%)"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",svgFilter:"none",bgColor:"linear-gradient(0deg,#0130FF 0%,#3CB4FF 100%)",bgStrokeColor:"#000",bgStrokeWidth:0,hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,padding:3,bgRadius:10,effect:"No Effect",slbbAnim:"No Animation",label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",blockId:"",classes:""};SLEImceIcons.icon=(e,a,t)=>{const l=(0,o.H)(e),{paths:s,top:i,effect:c,align:d,blockMargin:f,blockPadding:g,classes:h}=a,b=D(c),p=r()("safelayout-ei-icon-block",h),m={position:"relative",top:i,...N(d,f,g)},u=(0,x.jsx)(I,{attributes:a,paths:s,effectObj:b,isInEditor:!1});(0,n.flushSync)((()=>{l.render(t?.hasSpace?(0,x.jsx)("div",{className:p,style:m,children:u}):u)}))},SLEImceIcons.seMenuStyle=e=>function(e){return ye(e,ke(e))}(e),SLEImceIcons.menu=(e,a,t)=>{(0,o.H)(e).render((0,x.jsx)(je,{att:a,others:t}))};const je=e=>{let{att:a,others:t}=e;var o;return 0===Object.keys(a).length&&(a={..._e,...t?.hasSpace?{align:"",blockMargin:{},blockPadding:{}}:{},...t?.menuIcon?{iconPos:"before",iconGap:0,size:"36px",hasBg:!1,effect:"effect047",name:"001_admin home",paths:[{d:"M19.2 9.9l1.836 1.836-1.272 1.272L12 5.244l-7.764 7.764-1.272-1.272L12 2.7l4.8 4.8v-2.4h2.4v4.8zm-7.2-2.952 7.2 7.188V21.3H4.8v-7.164zM14.4 20.1v-6H9.6v6h4.8z"}],color:["linear-gradient(#d4af37 0%, #fede00 50%, #d4af37 100%)"]}:{}}),a?.animation&&(a.slbbAnim=a.animation,a.animation=void 0),a.blockId=(o=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o(),SLEImceIcons.att=a,(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(Ce,{attributes:a,others:t})})};function Ce(t){const{attributes:o,others:n}=t,{name:i,paths:r,hasBg:c,bgShape:d,rotate:y,flipHorizontal:k,flipVertical:w,rotateBg:_,top:j,size:C,color:S,strokeColor:v,strokeWidth:B,hasShadow:N,shadow:A,bgColor:P,bgStrokeColor:z,bgStrokeWidth:L,hasBgShadow:E,bgShadow:M,hasBaseShadow:T,baseShadowWidth:V,baseShadowHeight:R,baseShadowTop:O,padding:$,bgRadius:H,effect:W,slbbAnim:G,label:Z,title:U,linkUrl:X,linkRel:Y,linkTarget:J,align:K,blockMargin:ee,blockPadding:ae,classes:te,iconPos:le,iconGap:ce}=o,de="_blank"===J,ge="noreferrer noopener",[he,be]=(0,l.useState)(o),pe=D(o?.effect),me=n?.noCClass?null:"sl-ei-icon-block-mce-format-container",ue="safelayout-ei-icon-dialog-mce-panel",xe=n?.hasSpace?{}:{margin:"0 5px"},ye=e=>{for(var a in e)o[a]=e[a];be({...o}),SLEImceIcons.att=o,n?.callBack&&n.callBack()};return(0,x.jsxs)(x.Fragment,{children:[!n?.hidePreview&&(0,x.jsxs)("div",{className:"sl-ei-icon-block-mce-preview-container",children:[(0,x.jsx)("div",{className:"sl-ei-icon-block-mce-preview-title",children:"Preview"}),(0,x.jsx)("div",{className:"safelayout-ei-icon-block",style:{display:"inline-block",position:"relative",top:o.top+"px"},children:(0,x.jsx)(I,{attributes:o,paths:o.paths,effectObj:pe})})]}),(0,x.jsxs)("div",{className:me,children:[(0,x.jsx)(re,{name:i,paths:r,color:S,label:(0,e.__)("Icon","safelayout-elegant-icons")+": "+i.substring(4),onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-icon-name"),o=Q(t);fe("sl-ei-list-selected-icon"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-icon");let n=o?.attributes;n?.color||(n={...n,color:[S[0]]}),n?.strokeColor||(n={...n,strokeColor:[v[0]]}),n?.strokeWidth||(n={...n,strokeWidth:[B[0]]}),ye({name:t,paths:o.paths,...n})},position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Icon effect","safelayout-elegant-icons"),icon:"admin-customizer",children:(0,x.jsx)(se,{currentEffect:W,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-effect-name"),o=D(t);fe("sl-ei-list-selected-effect"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-effect");let n=o?.attributes?.padding;if(n){const e=parseInt(SLEImceIcons.att.size);e<32?n*=.15:e<50?n*=.25:e<74?n*=.5:e<82&&(n*=.7),ye({effect:t,...o?.attributes,padding:Math.round(n)})}else ye({effect:t,...o?.attributes})}})})}),!n?.menuIcon&&(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsxs)(s.ToolbarGroup,{style:{border:"none"},children:[n?.hasSpace&&(0,x.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:K,onChange:e=>ye({align:e})}),(0,x.jsx)(s.ToolbarButton,{icon:f,label:(0,e.__)("Rotate","safelayout-elegant-icons"),onClick:()=>ye({rotate:(y+45)%360}),isPressed:0!=y,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:g,label:(0,e.__)("Flip horizontal","safelayout-elegant-icons"),onClick:()=>ye({flipHorizontal:!k}),isPressed:k,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:h,label:(0,e.__)("Flip vertical","safelayout-elegant-icons"),onClick:()=>ye({flipVertical:!w}),isPressed:w,style:xe}),(0,x.jsx)(s.ToolbarButton,{icon:we,label:(0,e.__)("Rotate background","safelayout-elegant-icons"),onClick:()=>ye({rotateBg:(_+45)%360}),isPressed:0!=_,disabled:!c,style:xe})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Position & Size","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-expand",children:[n?.menuIcon&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Icon position","safelayout-elegant-icons")}),(0,x.jsxs)(s.__experimentalToggleGroupControl,{value:le,isBlock:!0,onChange:e=>ye({iconPos:e}),size:"small",children:[(0,x.jsx)(s.__experimentalToggleGroupControlOption,{value:"before",label:(0,e.__)("Before","safelayout-elegant-icons")}),(0,x.jsx)(s.__experimentalToggleGroupControlOption,{value:"after",label:(0,e.__)("After","safelayout-elegant-icons")})]})]}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("top","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:j,onChange:e=>ye({top:e})}),n?.menuIcon&&(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Gap","safelayout-elegant-icons"),min:-250,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:ce,onChange:e=>ye({iconGap:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Size","safelayout-elegant-icons"),min:0,max:800,className:"sl-ei-icon-block-no-margin-bottom",value:parseInt(C),onChange:e=>ye({size:e+"px"})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background padding","safelayout-elegant-icons"),min:0,max:250,className:"sl-ei-icon-block-no-margin-bottom",value:$,disabled:!c,onChange:e=>ye({padding:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background radius","safelayout-elegant-icons"),min:0,max:50,className:"sl-ei-icon-block-no-margin-bottom",value:H,disabled:!c||"rect"!=d,onChange:e=>ye({bgRadius:e})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[S.map(((a,t,o)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Fill Color","safelayout-elegant-icons")+q(t,o.length),click:e=>{let a=[...S];a[t]=e.target.style.background,ye({color:a})},change:e=>{let a=[...S];e&&(a[t]=e),ye({color:a})},position:{offset:n?.popoverOffset}},t))),v.map(((a,t,o)=>(0,x.jsx)(F,{attribute:a,label:(0,e.__)("Icon Stroke Color","safelayout-elegant-icons")+q(t,o.length),click:e=>{let a=[...v];a[t]=e.target.style.background,ye({strokeColor:a})},change:e=>{let a=[...v];e&&(a[t]=e),ye({strokeColor:a})},position:{offset:n?.popoverOffset}},t)))]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background color","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-appearance",className:"sl-ei-icon-block-color-panel-icon",children:[(0,x.jsx)(s.ToggleControl,{checked:c,help:(0,e.__)("Add a background shape to the icon.","safelayout-elegant-icons"),label:(0,e.__)("Background shape","safelayout-elegant-icons"),onChange:e=>ye({hasBg:e})}),(0,x.jsx)(F,{attribute:P,label:(0,e.__)("Background color","safelayout-elegant-icons"),click:e=>ye({bgColor:e.target.style.background}),change:e=>e&&ye({bgColor:e}),disabled:!c,position:{offset:n?.popoverOffset}}),(0,x.jsx)(F,{attribute:z,label:(0,e.__)("Background Stroke Color","safelayout-elegant-icons"),click:e=>ye({bgStrokeColor:e.target.style.background}),change:e=>e&&ye({bgStrokeColor:e}),disabled:!c,position:{offset:n?.popoverOffset}})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Stroke width","safelayout-elegant-icons"),initialOpen:!1,icon:b,children:[B.map(((a,t,o)=>(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Icon Stroke Width","safelayout-elegant-icons")+q(t,o.length),min:0,max:200,value:a,className:"sl-ei-icon-block-no-margin-bottom",onChange:e=>{let a=[...B];a[t]=e,ye({strokeWidth:a})}},t))),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("background stroke width","safelayout-elegant-icons"),min:0,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:L,disabled:!c,onChange:e=>ye({bgStrokeWidth:e})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Icon shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:N,label:(0,e.__)("Icon shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasShadow:e})}),(0,x.jsx)(F,{attribute:oe(A,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>ye({shadow:ne(A,3,e.target.style.background)}),change:e=>ye({shadow:ne(A,3,e)}),disabled:!N,position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,2),disabled:!N,onChange:e=>ye({shadow:ne(A,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,0),disabled:!N,onChange:e=>ye({shadow:ne(A,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(A,1),disabled:!N,onChange:e=>ye({shadow:ne(A,1,e)})})]})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Background shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:E,label:(0,e.__)("Background shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasBgShadow:e}),disabled:!c}),(0,x.jsx)(F,{attribute:oe(M,3),label:(0,e.__)("color","safelayout-elegant-icons"),onlySolid:!0,click:e=>ye({bgShadow:ne(M,3,e.target.style.background)}),change:e=>ye({bgShadow:ne(M,3,e)}),disabled:!E||!c,position:{offset:n?.popoverOffset}}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("blur","safelayout-elegant-icons"),min:0,max:30,step:.1,className:"sl-ei-icon-block-no-margin-bottom",value:oe(M,2),disabled:!E||!c,onChange:e=>ye({bgShadow:ne(M,2,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("X offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(M,0),disabled:!E||!c,onChange:e=>ye({bgShadow:ne(M,0,e)})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Y offset","safelayout-elegant-icons"),min:-200,max:200,className:"sl-ei-icon-block-no-margin-bottom",value:oe(M,1),disabled:!E||!c,onChange:e=>ye({bgShadow:ne(M,1,e)})})]})}),(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Base shadow","safelayout-elegant-icons"),initialOpen:!1,icon:p,children:[(0,x.jsx)(s.ToggleControl,{checked:T,label:(0,e.__)("Base shadow","safelayout-elegant-icons"),className:"sl-ei-icon-block-low-margin-bottom",onChange:e=>ye({hasBaseShadow:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("Top","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:O,disabled:!T,onChange:e=>ye({baseShadowTop:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("width","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:V,disabled:!T,onChange:e=>ye({baseShadowWidth:e})}),(0,x.jsx)(s.RangeControl,{label:(0,e.__)("height","safelayout-elegant-icons"),min:0,max:150,className:"sl-ei-icon-block-no-margin-bottom",value:R,disabled:!T,onChange:e=>ye({baseShadowHeight:e})})]})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Hover animation","safelayout-elegant-icons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(ie,{currentAnim:G,onIconClick:e=>{const a=e.currentTarget,t=a.getAttribute("data-anim-name");fe("sl-ei-list-selected-anim"),a.classList.add("sl-ei-list-selected"),a.setAttribute("id","sl-ei-list-selected-anim"),ye({slbbAnim:t})}})})}),!n?.menuIcon&&(0,x.jsx)(s.Panel,{className:"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link",children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Link and Title","safelayout-elegant-icons"),initialOpen:!1,icon:"admin-links",className:"sl-ei-icon-block-link-panel",children:[(0,x.jsx)(s.TextControl,{label:(0,e.__)("Tooltip","safelayout-elegant-icons"),value:U||"",onChange:e=>ye({title:e})}),(0,x.jsx)(s.TextControl,{label:(0,e.__)("Label","safelayout-elegant-icons"),value:Z||"",onChange:e=>ye({label:e}),help:(0,e.__)("It is for screen readers.","safelayout-elegant-icons")}),(0,x.jsx)(s.BaseControl.VisualLabel,{className:"sl-ei-icon-block-no-margin-bottom",children:(0,e.__)("Link url","safelayout-elegant-icons")}),(0,x.jsx)(a.__experimentalLinkControl,{value:{url:X,opensInNewTab:de},onChange:({url:e="",opensInNewTab:a})=>{ye({linkUrl:e}),de!==a&&function(e){const a=e?"_blank":void 0;let t=Y;a&&!Y?t=ge:a||Y!==ge||(t=void 0),ye({linkTarget:a,linkRel:t})}(a)},onRemove:()=>{ye({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(s.TextControl,{label:(0,e.__)("Link rel","safelayout-elegant-icons"),value:Y||"",onChange:e=>ye({linkRel:e})})]})}),n?.hasSpace&&(0,x.jsx)(s.Panel,{className:ue,children:(0,x.jsxs)(s.PanelBody,{title:(0,e.__)("Block spacing","safelayout-elegant-icons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(s.__experimentalBoxControl,{label:(0,e.__)("Margin","safelayout-elegant-icons"),values:ee,onChange:e=>ye({blockMargin:e})}),(0,x.jsx)(s.__experimentalBoxControl,{label:(0,e.__)("Padding","safelayout-elegant-icons"),values:ae,onChange:e=>ye({blockPadding:e})})]})}),(0,x.jsx)(s.Panel,{className:"safelayout-ei-icon-dialog-mce-panel safelayout-ei-icon-dialog-mce-panel-link",children:(0,x.jsx)(s.PanelBody,{title:(0,e.__)("Advanced","safelayout-elegant-icons"),initialOpen:!1,icon:u,className:"sl-ei-icon-block-link-panel",children:(0,x.jsx)(s.TextControl,{label:(0,e.__)("Additional CSS class(es)","safelayout-elegant-icons"),value:te||"",onChange:e=>ye({classes:e}),help:(0,e.__)("Separate multiple classes with spaces.","safelayout-elegant-icons")})})}),(0,x.jsx)("div",{className:"sl-ei-icon-block-upgrade-pro",children:(0,x.jsx)("a",{href:(0,e.__)("https://safelayout.com/safelayout-elegant-icons-pro","safelayout-elegant-icons"),target:"_blank",className:"button",title:(0,e.__)("Upgrade to pro version and get full features.","safelayout-elegant-icons"),children:(0,e.__)("Upgrade to Pro","safelayout-elegant-icons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}})()})(); -
safelayout-elegant-icons/trunk/elementor/templates/template-data.js
r3293886 r3370210 1 (()=>{for(var a=[{id:1359,title:"Features 01",type:"section",url:"elementor/templates/html/template001.html",isPro:0,thumbnail:"elementor/templates/image/template001.webp",json:"elementor/templates/json/template001.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1360,title:"Features 02",type:"section",url:"elementor/templates/html/template002.html",isPro:1,thumbnail:"elementor/templates/image/template002.webp",json:"elementor/templates/json/template002.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"pro"},{id:1361,title:"Features 03",type:"section",url:"elementor/templates/html/template003.html",isPro:0,thumbnail:"elementor/templates/image/template003.webp",json:"elementor/templates/json/template003.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1362,title:"Features 04",type:"section",url:"elementor/templates/html/template004.html",isPro:0,thumbnail:"elementor/templates/image/template004.webp",json:"elementor/templates/json/template004.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1363,title:"Features 05",type:"section",url:"elementor/templates/html/template005.html",isPro:1,thumbnail:"elementor/templates/image/template005.webp",json:"elementor/templates/json/template005.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"pro"},{id:1364,title:"Features 06",type:"section",url:"elementor/templates/html/template006.html",isPro:0,thumbnail:"elementor/templates/image/template006.webp",json:"elementor/templates/json/template006.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1365,title:"Simple icon box 01",type:"section",url:"elementor/templates/html/template007.html",isPro:0,thumbnail:"elementor/templates/image/template007.webp",json:"elementor/templates/json/template007.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1366,title:"Simple icon box 02",type:"section",url:"elementor/templates/html/template008.html",isPro:1,thumbnail:"elementor/templates/image/template008.webp",json:"elementor/templates/json/template008.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1367,title:"Simple icon box 03",type:"section",url:"elementor/templates/html/template009.html",isPro:0,thumbnail:"elementor/templates/image/template009.webp",json:"elementor/templates/json/template009.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1368,title:"Simple icon box 04",type:"section",url:"elementor/templates/html/template010.html",isPro:1,thumbnail:"elementor/templates/image/template010.webp",json:"elementor/templates/json/template010.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1369,title:"Icon box with number 01",type:"section",url:"elementor/templates/html/template011.html",isPro:1,thumbnail:"elementor/templates/image/template011.webp",json:"elementor/templates/json/template011.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","number box","block","section","widgets"],tmpType:"pro"},{id:1370,title:"Icon box with number 02",type:"section",url:"elementor/templates/html/template012.html",isPro:1,thumbnail:"elementor/templates/image/template012.webp",json:"elementor/templates/json/template012.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","number box","block","section","widgets"],tmpType:"pro"},{id:1371,title:"Icon box with button 01",type:"section",url:"elementor/templates/html/template013.html",isPro:0,thumbnail:"elementor/templates/image/template013.webp",json:"elementor/templates/json/template013.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1372,title:"Icon box with button 02",type:"section",url:"elementor/templates/html/template014.html",isPro:0,thumbnail:"elementor/templates/image/template014.webp",json:"elementor/templates/json/template014.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1373,title:"Icon box with button 03",type:"section",url:"elementor/templates/html/template015.html",isPro:1,thumbnail:"elementor/templates/image/template015.webp",json:"elementor/templates/json/template015.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1374,title:"Icon box with button 04",type:"section",url:"elementor/templates/html/template016.html",isPro:1,thumbnail:"elementor/templates/image/template016.webp",json:"elementor/templates/json/template016.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1375,title:"Icon box with button 05",type:"section",url:"elementor/templates/html/template017.html",isPro:0,thumbnail:"elementor/templates/image/template017.webp",json:"elementor/templates/json/template017.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1376,title:"Icon box with button 06",type:"section",url:"elementor/templates/html/template018.html",isPro:1,thumbnail:"elementor/templates/image/template018.webp",json:"elementor/templates/json/template018.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"} ],b=0;b<a.length;b++)a[b].url=SLEIBaseUrl+a[b].url,a[b].thumbnail=SLEIBaseUrl+a[b].thumbnail,a[b].json=SLEIBaseUrl+a[b].json;"undefined"!=typeof SLEIElementorTmpl&&SLEIElementorTmpl?SLEIElementorTmpl.templates.push(...a):SLEIElementorTmpl={templates:[...a]}})();1 (()=>{for(var a=[{id:1359,title:"Features 01",type:"section",url:"elementor/templates/html/template001.html",isPro:0,thumbnail:"elementor/templates/image/template001.webp",json:"elementor/templates/json/template001.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1360,title:"Features 02",type:"section",url:"elementor/templates/html/template002.html",isPro:1,thumbnail:"elementor/templates/image/template002.webp",json:"elementor/templates/json/template002.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"pro"},{id:1361,title:"Features 03",type:"section",url:"elementor/templates/html/template003.html",isPro:0,thumbnail:"elementor/templates/image/template003.webp",json:"elementor/templates/json/template003.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1362,title:"Features 04",type:"section",url:"elementor/templates/html/template004.html",isPro:0,thumbnail:"elementor/templates/image/template004.webp",json:"elementor/templates/json/template004.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1363,title:"Features 05",type:"section",url:"elementor/templates/html/template005.html",isPro:1,thumbnail:"elementor/templates/image/template005.webp",json:"elementor/templates/json/template005.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"pro"},{id:1364,title:"Features 06",type:"section",url:"elementor/templates/html/template006.html",isPro:0,thumbnail:"elementor/templates/image/template006.webp",json:"elementor/templates/json/template006.json",shareId:"Features",tags:["Features","icon","icons","block","section","widgets"],tmpType:"free"},{id:1365,title:"Simple icon box 01",type:"section",url:"elementor/templates/html/template007.html",isPro:0,thumbnail:"elementor/templates/image/template007.webp",json:"elementor/templates/json/template007.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1366,title:"Simple icon box 02",type:"section",url:"elementor/templates/html/template008.html",isPro:1,thumbnail:"elementor/templates/image/template008.webp",json:"elementor/templates/json/template008.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1367,title:"Simple icon box 03",type:"section",url:"elementor/templates/html/template009.html",isPro:0,thumbnail:"elementor/templates/image/template009.webp",json:"elementor/templates/json/template009.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1368,title:"Simple icon box 04",type:"section",url:"elementor/templates/html/template010.html",isPro:1,thumbnail:"elementor/templates/image/template010.webp",json:"elementor/templates/json/template010.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1369,title:"Icon box with number 01",type:"section",url:"elementor/templates/html/template011.html",isPro:1,thumbnail:"elementor/templates/image/template011.webp",json:"elementor/templates/json/template011.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","number box","block","section","widgets"],tmpType:"pro"},{id:1370,title:"Icon box with number 02",type:"section",url:"elementor/templates/html/template012.html",isPro:1,thumbnail:"elementor/templates/image/template012.webp",json:"elementor/templates/json/template012.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","number box","block","section","widgets"],tmpType:"pro"},{id:1371,title:"Icon box with button 01",type:"section",url:"elementor/templates/html/template013.html",isPro:0,thumbnail:"elementor/templates/image/template013.webp",json:"elementor/templates/json/template013.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1372,title:"Icon box with button 02",type:"section",url:"elementor/templates/html/template014.html",isPro:0,thumbnail:"elementor/templates/image/template014.webp",json:"elementor/templates/json/template014.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1373,title:"Icon box with button 03",type:"section",url:"elementor/templates/html/template015.html",isPro:1,thumbnail:"elementor/templates/image/template015.webp",json:"elementor/templates/json/template015.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1374,title:"Icon box with button 04",type:"section",url:"elementor/templates/html/template016.html",isPro:1,thumbnail:"elementor/templates/image/template016.webp",json:"elementor/templates/json/template016.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1375,title:"Icon box with button 05",type:"section",url:"elementor/templates/html/template017.html",isPro:0,thumbnail:"elementor/templates/image/template017.webp",json:"elementor/templates/json/template017.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"free"},{id:1376,title:"Icon box with button 06",type:"section",url:"elementor/templates/html/template018.html",isPro:1,thumbnail:"elementor/templates/image/template018.webp",json:"elementor/templates/json/template018.json",shareId:"Icon box",tags:["icon","icons","icon box","service box","block","section","widgets"],tmpType:"pro"},{id:1377,title:"Social Icons 01",type:"section",url:"elementor/templates/html/template019.html",isPro:0,thumbnail:"elementor/templates/image/template019.webp",json:"elementor/templates/json/template019.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"free"},{id:1378,title:"Social Icons 02",type:"section",url:"elementor/templates/html/template020.html",isPro:1,thumbnail:"elementor/templates/image/template020.webp",json:"elementor/templates/json/template020.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1379,title:"Social Icons 03",type:"section",url:"elementor/templates/html/template021.html",isPro:1,thumbnail:"elementor/templates/image/template021.webp",json:"elementor/templates/json/template021.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1380,title:"Social Icons 04",type:"section",url:"elementor/templates/html/template022.html",isPro:1,thumbnail:"elementor/templates/image/template022.webp",json:"elementor/templates/json/template022.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1381,title:"Social Icons 05",type:"section",url:"elementor/templates/html/template023.html",isPro:0,thumbnail:"elementor/templates/image/template023.webp",json:"elementor/templates/json/template023.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"free"},{id:1382,title:"Social Icons 06",type:"section",url:"elementor/templates/html/template024.html",isPro:1,thumbnail:"elementor/templates/image/template024.webp",json:"elementor/templates/json/template024.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1383,title:"Social Icons 07",type:"section",url:"elementor/templates/html/template025.html",isPro:0,thumbnail:"elementor/templates/image/template025.webp",json:"elementor/templates/json/template025.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"free"},{id:1384,title:"Social Icons 08",type:"section",url:"elementor/templates/html/template026.html",isPro:1,thumbnail:"elementor/templates/image/template026.webp",json:"elementor/templates/json/template026.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1385,title:"Social Icons 09",type:"section",url:"elementor/templates/html/template027.html",isPro:1,thumbnail:"elementor/templates/image/template027.webp",json:"elementor/templates/json/template027.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1386,title:"Social Icons 10",type:"section",url:"elementor/templates/html/template028.html",isPro:1,thumbnail:"elementor/templates/image/template028.webp",json:"elementor/templates/json/template028.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1387,title:"Social Icons 11",type:"section",url:"elementor/templates/html/template029.html",isPro:1,thumbnail:"elementor/templates/image/template029.webp",json:"elementor/templates/json/template029.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1388,title:"Social Icons 12",type:"section",url:"elementor/templates/html/template030.html",isPro:0,thumbnail:"elementor/templates/image/template030.webp",json:"elementor/templates/json/template030.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"free"},{id:1389,title:"Social Icons 13",type:"section",url:"elementor/templates/html/template031.html",isPro:1,thumbnail:"elementor/templates/image/template031.webp",json:"elementor/templates/json/template031.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"},{id:1390,title:"Social Icons 14",type:"section",url:"elementor/templates/html/template032.html",isPro:0,thumbnail:"elementor/templates/image/template032.webp",json:"elementor/templates/json/template032.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"free"},{id:1391,title:"Social Icons 15",type:"section",url:"elementor/templates/html/template033.html",isPro:1,thumbnail:"elementor/templates/image/template033.webp",json:"elementor/templates/json/template033.json",shareId:"Social icons",tags:["icon","icons","Social Icons","Social","block","section","widgets"],tmpType:"pro"}],b=0;b<a.length;b++)a[b].url=SLEIBaseUrl+a[b].url,a[b].thumbnail=SLEIBaseUrl+a[b].thumbnail,a[b].json=SLEIBaseUrl+a[b].json;"undefined"!=typeof SLEIElementorTmpl&&SLEIElementorTmpl?SLEIElementorTmpl.templates.push(...a):SLEIElementorTmpl={templates:[...a]}})(); -
safelayout-elegant-icons/trunk/elementor/templates/template.css
r3293886 r3370210 1 .sl-ei-templateLibrary-preview{overflow:hidden;margin:auto;width:100%;height:100%}.sl-ei-templateLibrary-preview>iframe{width:100%;height:100%}.tmpl-sl-ei-template-library-logo-area{display:inline-block;-webkit-border-radius:50%;border-radius:50%;line-height:1;text-align:center;width:30px;height:30px;line-height:36px;margin-right:10px}#elementor-template-library-header-preview-insert-wrapper .sl-ei-template-library-template-insert.elementor-button{background:#39b54a;color:#fff}#sl-ei-template-library-list{margin:10px -15px 0;display:-webkit-box;display:-ms-flexbox;display:flex;align-items:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}#sl-ei-template-library-filter-text{border:none;border-bottom:1px solid #d5dadf;-webkit-border-radius:0;border-radius:0;font-size:11px;padding:8px 15px 8px 0;-webkit-transition:border .5s;-o-transition:border .5s;transition:border .5s}.sl-ei-template-library-template{width:calc(33% - 30px);margin:15px;padding:8px;padding-bottom:0;background-color:#fff;-webkit-box-shadow:0 1px 20px 0 rgba(0,0,0,.07);box-shadow:0 1px 20px 0 rgba(0,0,0,.07);-webkit-border-radius:3px;border-radius:3px}.sl-ei-template-library-thumbnail{ width:100%}#sl-ei-template-library-list .elementor-template-library-template-body{align-content:center;position:relative;height:200px;overflow:hidden}#sl-ei-template-library-list .elementor-template-library-template-screenshot{height:100%;-webkit-background-size:cover;background-size:cover;background-position-x:50%;-webkit-box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07);box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07)}.sl-ei-template-library-preview{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;cursor:pointer}.sl-ei-template-library-template:not(:hover) .sl-ei-template-library-preview{opacity:0}.sl-ei-template-library-preview i{font-size:20px;color:#d5dadf;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.sl-ei-template-library-footer .elementor-button{color:#3489fe;background:transparent;padding:0}.sl-ei-template-library-footer .elementor-button:hover{color:#d43a6b}.sl-ei-template-library-footer .elementor-button i{margin-right:5px}.sl-ei-template-library-footer{padding:10px 20px;position:relative;overflow:hidden}.sl-ei-template-library-template-title{font-size:13px;font-weight:500;color:#555}.sl-ei-template-library-template-type{font-size:12px;font-weight:400;color:#333;text-transform:capitalize}.sl-ei-template-library-template-action-btn{position:absolute;display:flex;justify-content:space-between;align-items:center;gap:10px;top:100%;left:50%;width:100%;height:100%;transform:translateX(-50%);background:#fff;transition:all .3s ease}.sl-ei-template-library-template:hover .sl-ei-template-library-template-action-btn{top:0}.tmpl-sl-ei-template-library-logo-area{display:inline-block;-webkit-border-radius:50%;border-radius:50%;line-height:1;text-align:center;width:30px;height:30px;line-height:40px;margin-right:10px}span.sl-ei-template-library-pro-badge{position:absolute;right:5px;background:#ff6067;padding:1px 12px;color:#fff;border-radius:3px;top:5px}.sl-ei-templateLibrary-preview{overflow:hidden;margin:auto;width:100%;height:100%;-webkit-transition:width .2s,height .2s;transition:width .2s,height .2s}#elementor-template-library-filter-category-wrapper .select2-container{width:200px!important;text-align:left}1 .sl-ei-templateLibrary-preview{overflow:hidden;margin:auto;width:100%;height:100%}.sl-ei-templateLibrary-preview>iframe{width:100%;height:100%}.tmpl-sl-ei-template-library-logo-area{display:inline-block;-webkit-border-radius:50%;border-radius:50%;line-height:1;text-align:center;width:30px;height:30px;line-height:36px;margin-right:10px}#elementor-template-library-header-preview-insert-wrapper .sl-ei-template-library-template-insert.elementor-button{background:#39b54a;color:#fff}#sl-ei-template-library-list{margin:10px -15px 0;display:-webkit-box;display:-ms-flexbox;display:flex;align-items:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}#sl-ei-template-library-filter-text{border:none;border-bottom:1px solid #d5dadf;-webkit-border-radius:0;border-radius:0;font-size:11px;padding:8px 15px 8px 0;-webkit-transition:border .5s;-o-transition:border .5s;transition:border .5s}.sl-ei-template-library-template{width:calc(33% - 30px);margin:15px;padding:8px;padding-bottom:0;background-color:#fff;-webkit-box-shadow:0 1px 20px 0 rgba(0,0,0,.07);box-shadow:0 1px 20px 0 rgba(0,0,0,.07);-webkit-border-radius:3px;border-radius:3px}.sl-ei-template-library-thumbnail{max-width:fit-content;width:100%}#sl-ei-template-library-list .elementor-template-library-template-body{align-content:center;position:relative;height:200px;overflow:hidden}#sl-ei-template-library-list .elementor-template-library-template-screenshot{height:100%;-webkit-background-size:cover;background-size:cover;background-position-x:50%;-webkit-box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07);box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07)}.sl-ei-template-library-preview{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;cursor:pointer}.sl-ei-template-library-template:not(:hover) .sl-ei-template-library-preview{opacity:0}.sl-ei-template-library-preview i{font-size:20px;color:#d5dadf;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.sl-ei-template-library-footer .elementor-button{color:#3489fe;background:transparent;padding:0}.sl-ei-template-library-footer .elementor-button:hover{color:#d43a6b}.sl-ei-template-library-footer .elementor-button i{margin-right:5px}.sl-ei-template-library-footer{padding:10px 20px;position:relative;overflow:hidden}.sl-ei-template-library-template-title{font-size:13px;font-weight:500;color:#555}.sl-ei-template-library-template-type{font-size:12px;font-weight:400;color:#333;text-transform:capitalize}.sl-ei-template-library-template-action-btn{position:absolute;display:flex;justify-content:space-between;align-items:center;gap:10px;top:100%;left:50%;width:100%;height:100%;transform:translateX(-50%);background:#fff;transition:all .3s ease}.sl-ei-template-library-template:hover .sl-ei-template-library-template-action-btn{top:0}.tmpl-sl-ei-template-library-logo-area{display:inline-block;-webkit-border-radius:50%;border-radius:50%;line-height:1;text-align:center;width:30px;height:30px;line-height:40px;margin-right:10px}span.sl-ei-template-library-pro-badge{position:absolute;right:5px;background:#ff6067;padding:1px 12px;color:#fff;border-radius:3px;top:5px}.sl-ei-templateLibrary-preview{overflow:hidden;margin:auto;width:100%;height:100%;-webkit-transition:width .2s,height .2s;transition:width .2s,height .2s}#elementor-template-library-filter-category-wrapper .select2-container{width:200px!important;text-align:left} -
safelayout-elegant-icons/trunk/languages/safelayout-elegant-icons.pot
r3339507 r3370210 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Safelayout Elegant Icons 1. 3.0\n"6 "POT-Creation-Date: 2025-0 2-24 20:29+0330\n"7 "PO-Revision-Date: 2025-0 2-24 20:30+0330\n"5 "Project-Id-Version: Safelayout Elegant Icons 1.4.0\n" 6 "POT-Creation-Date: 2025-09-27 22:47+0330\n" 7 "PO-Revision-Date: 2025-09-27 22:48+0330\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: assets/js/plugin.js:1 20 #: elementor/class-safelayout-icons-elementor-widget.php:48 21 #: safelayout-elegant-icons.php:440 src/icon/index.js:15 22 #: src/mce/mce-plugin-source.js:57 23 msgid "Icon (Safelayout)" 24 msgstr "" 25 26 #: assets/patterns/pattern001.php:3 27 msgid "Features 01" 28 msgstr "" 29 30 #: assets/patterns/pattern002.php:3 31 msgid "Features 02" 32 msgstr "" 33 34 #: assets/patterns/pattern003.php:3 35 msgid "Features 03" 36 msgstr "" 37 38 #: assets/patterns/pattern004.php:3 39 msgid "Features 04" 40 msgstr "" 41 42 #: assets/patterns/pattern005.php:3 43 msgid "Simple icon box 01" 44 msgstr "" 45 46 #: assets/patterns/pattern006.php:3 47 msgid "Simple icon box 02" 48 msgstr "" 49 50 #: assets/patterns/pattern007.php:3 51 msgid "Icon box with button 01" 52 msgstr "" 53 54 #: assets/patterns/pattern008.php:3 55 msgid "Icon box with button 02" 56 msgstr "" 57 58 #: assets/patterns/pattern009.php:3 59 msgid "Icon box with button 03" 60 msgstr "" 61 62 #: assets/patterns/pattern010.php:3 63 msgid "Dark text box with horizontal ribbon" 64 msgstr "" 65 66 #: assets/patterns/pattern011.php:3 67 msgid "Light text box with horizontal ribbon" 68 msgstr "" 69 70 #: assets/patterns/pattern012.php:3 71 msgid "Dark text box with vertical ribbon" 72 msgstr "" 73 74 #: assets/patterns/pattern013.php:3 75 msgid "Light text box with vertical ribbon" 76 msgstr "" 77 78 #: assets/patterns/pattern014.php:3 79 msgid "Dark text box" 80 msgstr "" 81 82 #: assets/patterns/pattern015.php:3 83 msgid "Light text box" 84 msgstr "" 85 86 #: assets/patterns/pattern016.php:3 87 msgid "Social Icons 01" 88 msgstr "" 89 90 #: assets/patterns/pattern017.php:3 91 msgid "Social Icons 02" 92 msgstr "" 93 94 #: assets/patterns/pattern018.php:3 95 msgid "Social Icons 03" 96 msgstr "" 97 98 #: assets/patterns/pattern019.php:3 99 msgid "Social Icons 04" 100 msgstr "" 101 102 #: assets/patterns/pattern020.php:3 103 msgid "Social Icons 05" 104 msgstr "" 105 19 106 #: elementor/class-safelayout-iconbox-elementor-widget.php:12 20 107 msgid "icon box (Safelayout)" … … 33 120 #: elementor/class-safelayout-iconbox-elementor-widget.php:35 34 121 #: elementor/class-safelayout-icons-elementor-widget.php:35 35 #: src/icon-box/index.js:21 src/icon/index.js:20 src/text-icon/index.js:88 122 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:36 123 #: elementor/class-safelayout-socialshare-elementor-widget.php:36 124 #: safelayout-elegant-icons.php:875 src/icon-box/index.js:21 125 #: src/icon/index.js:20 src/social-profiles/index.js:18 126 #: src/social-share/index.js:18 src/text-icon/index.js:90 36 127 msgid "Safelayout" 37 128 msgstr "" … … 39 130 #: elementor/class-safelayout-iconbox-elementor-widget.php:36 40 131 #: elementor/class-safelayout-icons-elementor-widget.php:36 41 #: src/icon-box/index.js:22 src/icon/index.js:21 src/text-icon/index.js:89 132 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:37 133 #: elementor/class-safelayout-socialshare-elementor-widget.php:37 134 #: src/icon-box/index.js:22 src/icon/index.js:21 135 #: src/social-profiles/index.js:19 src/social-share/index.js:19 136 #: src/text-icon/index.js:91 42 137 msgid "Elegant" 43 138 msgstr "" … … 50 145 #: elementor/class-safelayout-iconbox-elementor-widget.php:61 51 146 #: elementor/class-safelayout-icons-elementor-widget.php:33 147 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:35 148 #: elementor/class-safelayout-socialshare-elementor-widget.php:35 52 149 #: src/box-button/controls.js:767 src/box-button/controls.js:783 53 #: src/icon/controls.js:260 src/icon/index.js:18 src/mce/index.js:258 54 #: src/text-icon/index.js:87 src/text-icon/index.js:205 150 #: src/icon/controls.js:268 src/icon/index.js:18 src/mce/index.js:275 151 #: src/social-profiles/controls.js:991 src/social-profiles/index.js:17 152 #: src/social-share/index.js:17 src/text-icon/index.js:89 55 153 msgid "Icon" 56 154 msgstr "" 57 155 58 156 #: elementor/class-safelayout-iconbox-elementor-widget.php:77 59 #: src/icon-box/controls.js:4 11157 #: src/icon-box/controls.js:444 60 158 msgid "Title" 61 159 msgstr "" 62 160 63 161 #: elementor/class-safelayout-iconbox-elementor-widget.php:90 64 #: src/icon-box/controls.js:4 25162 #: src/icon-box/controls.js:458 65 163 msgid "Description" 66 164 msgstr "" … … 71 169 72 170 #: elementor/class-safelayout-iconbox-elementor-widget.php:116 73 #: src/box-ribbon/controls.js:240 src/icon-box/controls.js:4 4474 #: src/icon-box/controls.js: 570 src/icon-box/controls.js:577171 #: src/box-ribbon/controls.js:240 src/icon-box/controls.js:477 172 #: src/icon-box/controls.js:659 src/icon-box/controls.js:666 75 173 msgid "Ribbon" 76 174 msgstr "" … … 85 183 msgstr "" 86 184 87 #: elementor/class-safelayout-icons-elementor-widget.php:48 88 #: src/icon/index.js:15 src/mce/mce-plugin-source.js:57 89 msgid "Icon (Safelayout)" 90 msgstr "" 91 92 #: safelayout-elegant-icons.php:332 185 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:12 186 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:49 187 #: src/social-profiles/index.js:12 188 msgid "Social Profiles (Safelayout)" 189 msgstr "" 190 191 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:33 192 #: elementor/class-safelayout-socialshare-elementor-widget.php:33 193 #: src/social-profiles/index.js:15 src/social-share/index.js:15 194 msgid "social" 195 msgstr "" 196 197 #: elementor/class-safelayout-socialprofiles-elementor-widget.php:34 198 #: src/social-profiles/index.js:16 199 msgid "profiles" 200 msgstr "" 201 202 #: elementor/class-safelayout-socialshare-elementor-widget.php:12 203 #: elementor/class-safelayout-socialshare-elementor-widget.php:53 204 #: src/social-share/index.js:12 205 msgid "Social Share (Safelayout)" 206 msgstr "" 207 208 #: elementor/class-safelayout-socialshare-elementor-widget.php:34 209 #: src/social-share/index.js:16 210 msgid "share" 211 msgstr "" 212 213 #: elementor/templates/template.php:9 src/elementor/template/template.php:9 214 msgid "Sync Library" 215 msgstr "" 216 217 #: elementor/templates/template.php:30 src/elementor/template/template.php:30 218 msgid "Loading" 219 msgstr "" 220 221 #: elementor/templates/template.php:41 src/elementor/template/template.php:41 222 msgid "Insert" 223 msgstr "" 224 225 #: elementor/templates/template.php:48 src/elementor/template/template.php:48 226 msgid "Go Pro" 227 msgstr "" 228 229 #: elementor/templates/template.php:60 src/elementor/template/template.php:60 230 msgid "Back to Library" 231 msgstr "" 232 233 #: elementor/templates/template.php:69 src/elementor/template/template.php:69 234 msgid "All Categories" 235 msgstr "" 236 237 #: elementor/templates/template.php:78 src/elementor/template/template.php:78 238 msgid "Search Templates:" 239 msgstr "" 240 241 #: elementor/templates/template.php:103 src/elementor/template/template.php:103 242 msgid "Pro" 243 msgstr "" 244 245 #: elementor/templates/template.php:117 src/elementor/template/template.php:117 246 #: src/social-profiles/controls.js:224 247 msgid "Preview" 248 msgstr "" 249 250 #: elementor/templates/template.php:132 src/elementor/template/template.php:132 251 msgid "Want to learn more about the Safelayout library?" 252 msgstr "" 253 254 #: elementor/templates/template.php:133 src/elementor/template/template.php:133 255 msgid "Click here" 256 msgstr "" 257 258 #: safelayout-elegant-icons.php:421 259 msgid "Edit Icon (Safelayout)" 260 msgstr "" 261 262 #: safelayout-elegant-icons.php:425 safelayout-elegant-icons.php:1463 263 msgid "OK" 264 msgstr "" 265 266 #: safelayout-elegant-icons.php:426 safelayout-elegant-icons.php:1464 267 msgid "Cancel" 268 msgstr "" 269 270 #: safelayout-elegant-icons.php:443 271 msgid "Remove Icon" 272 msgstr "" 273 274 #: safelayout-elegant-icons.php:851 93 275 msgid "Settings" 94 276 msgstr "" 95 277 96 #: safelayout-elegant-icons.php:365 278 #: safelayout-elegant-icons.php:876 279 msgid "Icons and Icon Boxes" 280 msgstr "" 281 282 #: safelayout-elegant-icons.php:877 283 msgid "Social Icons" 284 msgstr "" 285 286 #: safelayout-elegant-icons.php:878 287 msgid "Text Boxes" 288 msgstr "" 289 290 #: safelayout-elegant-icons.php:994 97 291 msgid "Blocks By Safelayout" 98 292 msgstr "" 99 293 100 #: safelayout-elegant-icons.php: 439294 #: safelayout-elegant-icons.php:1068 101 295 #, php-format 102 296 msgid "" … … 105 299 msgstr "" 106 300 107 #: safelayout-elegant-icons.php: 443 safelayout-elegant-icons.php:482301 #: safelayout-elegant-icons.php:1072 safelayout-elegant-icons.php:1112 108 302 msgid "Safelayout Elegant Icons" 109 303 msgstr "" 110 304 111 #: safelayout-elegant-icons.php: 444305 #: safelayout-elegant-icons.php:1073 112 306 msgid "give it a 5-star rating on WordPress.org" 113 307 msgstr "" 114 308 115 #: safelayout-elegant-icons.php: 445 safelayout-elegant-icons.php:485309 #: safelayout-elegant-icons.php:1074 safelayout-elegant-icons.php:1115 116 310 msgid "We really appreciate your support!" 117 311 msgstr "" 118 312 119 #: safelayout-elegant-icons.php: 451313 #: safelayout-elegant-icons.php:1080 120 314 msgid "Yes, I will help ★★★★★" 121 315 msgstr "" 122 316 123 #: safelayout-elegant-icons.php: 453 safelayout-elegant-icons.php:494317 #: safelayout-elegant-icons.php:1082 124 318 msgid "Remind me later" 125 319 msgstr "" 126 320 127 #: safelayout-elegant-icons.php: 454321 #: safelayout-elegant-icons.php:1083 128 322 msgid "I already did" 129 323 msgstr "" 130 324 131 #: safelayout-elegant-icons.php: 478325 #: safelayout-elegant-icons.php:1108 132 326 #, php-format 133 327 msgid "" … … 136 330 msgstr "" 137 331 138 #: safelayout-elegant-icons.php: 483332 #: safelayout-elegant-icons.php:1113 139 333 msgid "upgrading to the PRO version" 140 334 msgstr "" 141 335 142 #: safelayout-elegant-icons.php: 484336 #: safelayout-elegant-icons.php:1114 143 337 msgid "support the developer" 144 338 msgstr "" 145 339 146 #: safelayout-elegant-icons.php:491 src/box-button/controls.js:1108 147 #: src/box-ribbon/controls.js:555 src/icon/controls.js:692 src/mce/index.js:760 340 #: safelayout-elegant-icons.php:1121 src/box-button/controls.js:1109 341 #: src/box-ribbon/controls.js:555 src/icon/controls.js:700 src/mce/index.js:808 342 #: src/social-profiles/controls.js:714 148 343 msgid "Upgrade to Pro" 149 344 msgstr "" 150 345 151 #: safelayout-elegant-icons.php:581 346 #: safelayout-elegant-icons.php:1124 347 msgid "No Thanks" 348 msgstr "" 349 350 #: safelayout-elegant-icons.php:1211 152 351 msgid "Quick Feedback" 153 352 msgstr "" 154 353 155 #: safelayout-elegant-icons.php: 584354 #: safelayout-elegant-icons.php:1214 156 355 msgid "If you have a moment, please share why you are deactivating" 157 356 msgstr "" 158 357 159 #: safelayout-elegant-icons.php: 589358 #: safelayout-elegant-icons.php:1219 160 359 msgid "It's a temporary deactivation" 161 360 msgstr "" 162 361 163 #: safelayout-elegant-icons.php: 593362 #: safelayout-elegant-icons.php:1223 164 363 msgid "The plugin broke my site" 165 364 msgstr "" 166 365 167 #: safelayout-elegant-icons.php: 594366 #: safelayout-elegant-icons.php:1224 168 367 msgid "Please explain the problem." 169 368 msgstr "" 170 369 171 #: safelayout-elegant-icons.php: 598370 #: safelayout-elegant-icons.php:1228 172 371 msgid "I found a better plugin" 173 372 msgstr "" 174 373 175 #: safelayout-elegant-icons.php: 599374 #: safelayout-elegant-icons.php:1229 176 375 msgid "What's the plugin name?" 177 376 msgstr "" 178 377 179 #: safelayout-elegant-icons.php: 603378 #: safelayout-elegant-icons.php:1233 180 379 msgid "Other" 181 380 msgstr "" 182 381 183 #: safelayout-elegant-icons.php: 604382 #: safelayout-elegant-icons.php:1234 184 383 msgid "Please share the reason." 185 384 msgstr "" 186 385 187 #: safelayout-elegant-icons.php: 608386 #: safelayout-elegant-icons.php:1238 188 387 msgid "Submit & Deactivate" 189 388 msgstr "" 190 389 191 #: safelayout-elegant-icons.php: 609390 #: safelayout-elegant-icons.php:1239 192 391 msgid "Skip & Deactivate" 193 392 msgstr "" 194 393 195 #: safelayout-elegant-icons.php: 612394 #: safelayout-elegant-icons.php:1242 196 395 msgid "Wait ..." 197 396 msgstr "" 198 397 199 #: safelayout-elegant-icons.php: 613398 #: safelayout-elegant-icons.php:1243 200 399 msgid "Redirecting ..." 201 400 msgstr "" 202 401 203 #: safelayout-elegant-icons.php: 662 safelayout-elegant-icons.php:676402 #: safelayout-elegant-icons.php:1300 safelayout-elegant-icons.php:1319 204 403 msgid "Safelayout Elegant Icons Options" 205 404 msgstr "" 206 405 207 #: safelayout-elegant-icons.php: 663406 #: safelayout-elegant-icons.php:1301 208 407 msgid "Safelayout Icons" 209 408 msgstr "" 210 409 211 #: safelayout-elegant-icons.php:684 410 #: safelayout-elegant-icons.php:1323 411 msgid "General" 412 msgstr "" 413 414 #: safelayout-elegant-icons.php:1324 415 msgid "Social Share" 416 msgstr "" 417 418 #: safelayout-elegant-icons.php:1333 212 419 msgid "Safelayout Elegant Icons Installed Packs" 213 420 msgstr "" 214 421 215 #: safelayout-elegant-icons.php: 687422 #: safelayout-elegant-icons.php:1336 216 423 msgid "No." 217 424 msgstr "" 218 425 219 #: safelayout-elegant-icons.php: 688426 #: safelayout-elegant-icons.php:1337 220 427 msgid "Pack Name" 221 428 msgstr "" 222 429 223 #: safelayout-elegant-icons.php: 689430 #: safelayout-elegant-icons.php:1338 224 431 msgid "Pack Status" 225 432 msgstr "" 226 433 227 #: safelayout-elegant-icons.php: 700434 #: safelayout-elegant-icons.php:1349 228 435 msgid "Active" 229 436 msgstr "" 230 437 231 #: safelayout-elegant-icons.php: 707438 #: safelayout-elegant-icons.php:1356 safelayout-elegant-icons.php:1451 232 439 msgid "Save Changes" 440 msgstr "" 441 442 #: safelayout-elegant-icons.php:1360 443 msgid "Safelayout Social Share Options" 444 msgstr "" 445 446 #: safelayout-elegant-icons.php:1366 447 msgid "Enable Social" 448 msgstr "" 449 450 #: safelayout-elegant-icons.php:1369 451 msgid "Enable Social Share Icons." 452 msgstr "" 453 454 #: safelayout-elegant-icons.php:1373 455 msgid "Social share title" 456 msgstr "" 457 458 #: safelayout-elegant-icons.php:1375 safelayout-elegant-icons.php:1401 459 msgid "Share:" 460 msgstr "" 461 462 #: safelayout-elegant-icons.php:1379 463 msgid "Social share icons" 464 msgstr "" 465 466 #: safelayout-elegant-icons.php:1382 467 msgid "Edit social icons" 468 msgstr "" 469 470 #: safelayout-elegant-icons.php:1388 471 msgid "Hide on mobile" 472 msgstr "" 473 474 #: safelayout-elegant-icons.php:1391 475 msgid "Hide Social Share Icons on mobile." 476 msgstr "" 477 478 #: safelayout-elegant-icons.php:1395 479 msgid "Mobile Social share" 480 msgstr "" 481 482 #: safelayout-elegant-icons.php:1398 483 msgid "Special Social Share Icons for mobile." 484 msgstr "" 485 486 #: safelayout-elegant-icons.php:1400 487 msgid "Social share title for mobile: " 488 msgstr "" 489 490 #: safelayout-elegant-icons.php:1403 491 msgid "Edit mobile social icons" 492 msgstr "" 493 494 #: safelayout-elegant-icons.php:1410 495 msgid "Display on" 496 msgstr "" 497 498 #: safelayout-elegant-icons.php:1413 499 #, php-format 500 msgid "Display at the %1$s of posts." 501 msgstr "" 502 503 #: safelayout-elegant-icons.php:1415 504 #, php-format 505 msgid "Display at the %1$s of pages." 506 msgstr "" 507 508 #: safelayout-elegant-icons.php:1417 509 #, php-format 510 msgid "Display at the %1$s of posts on the front page." 511 msgstr "" 512 513 #: safelayout-elegant-icons.php:1419 514 #, php-format 515 msgid "Display at the %1$s of posts on search pages." 516 msgstr "" 517 518 #: safelayout-elegant-icons.php:1421 519 #, php-format 520 msgid "Display at the %1$s of posts on archive pages." 521 msgstr "" 522 523 #: safelayout-elegant-icons.php:1423 524 msgid "Display on Woocommerce product pages after product" 525 msgstr "" 526 527 #: safelayout-elegant-icons.php:1427 528 msgid "Exclude page/post" 529 msgstr "" 530 531 #: safelayout-elegant-icons.php:1430 532 msgid "Exclude specific posts/pages ( Select from the list )." 533 msgstr "" 534 535 #: safelayout-elegant-icons.php:1453 536 msgid "Restore Defaults" 537 msgstr "" 538 539 #: safelayout-elegant-icons.php:1459 540 msgid "Edit Social Share (Safelayout)" 541 msgstr "" 542 543 #: safelayout-elegant-icons.php:1479 544 msgid "[Page]" 545 msgstr "" 546 547 #: safelayout-elegant-icons.php:1486 548 msgid "[Post]" 233 549 msgstr "" 234 550 … … 239 555 #: src/box-button/controls.js:297 src/box-button/controls.js:545 240 556 #: src/box-button/controls.js:587 src/box-ribbon/controls.js:212 241 #: src/box-ribbon/controls.js:254 557 #: src/box-ribbon/controls.js:254 src/social-profiles/controls.js:296 242 558 msgid "Bold" 243 559 msgstr "" … … 245 561 #: src/box-button/controls.js:303 src/box-button/controls.js:551 246 562 #: src/box-button/controls.js:593 src/box-ribbon/controls.js:218 247 #: src/box-ribbon/controls.js:260 563 #: src/box-ribbon/controls.js:260 src/social-profiles/controls.js:302 248 564 msgid "Italic" 249 565 msgstr "" … … 251 567 #: src/box-button/controls.js:309 src/box-button/controls.js:557 252 568 #: src/box-button/controls.js:599 src/box-ribbon/controls.js:224 253 #: src/box-ribbon/controls.js:266 569 #: src/box-ribbon/controls.js:266 src/social-profiles/controls.js:290 254 570 msgid "Uppercase" 255 571 msgstr "" 256 572 257 573 #: src/box-button/controls.js:319 src/box-button/controls.js:676 258 #: src/icon/controls.js:323 src/icon/controls.js:328 src/mce/index.js:372 259 #: src/text-icon/index.js:281 574 #: src/icon-box/controls.js:557 src/icon/controls.js:331 575 #: src/icon/controls.js:336 src/mce/index.js:420 576 #: src/social-profiles/controls.js:437 src/social-profiles/controls.js:442 260 577 msgid "Size" 261 578 msgstr "" 262 579 263 580 #: src/box-button/controls.js:347 src/box-button/controls.js:735 264 #: src/box-ribbon/controls.js:334 src/icon-box/effects.js:11 3265 #: src/icon-box/effects.js:11 8581 #: src/box-ribbon/controls.js:334 src/icon-box/effects.js:112 582 #: src/icon-box/effects.js:117 src/social-profiles/controls.js:468 266 583 msgid "Color" 267 584 msgstr "" … … 269 586 #: src/box-button/controls.js:354 src/box-button/controls.js:360 270 587 #: src/box-button/controls.js:743 src/box-button/controls.js:749 271 #: src/box-ribbon/controls.js:341 src/icon-box/controls.js: 524272 #: src/icon-box/controls.js: 532 src/icon-box/controls.js:538273 #: src/icon/controls.js: 399 src/icon/controls.js:412 src/mce/index.js:448274 #: src/mce/index.js: 461 src/text-icon/index.js:355 src/text-icon/index.js:368588 #: src/box-ribbon/controls.js:341 src/icon-box/controls.js:605 589 #: src/icon-box/controls.js:613 src/icon-box/controls.js:619 590 #: src/icon/controls.js:407 src/icon/controls.js:420 src/mce/index.js:496 591 #: src/mce/index.js:509 src/social-profiles/controls.js:494 275 592 msgid "Background color" 276 593 msgstr "" … … 281 598 msgstr "" 282 599 283 #: src/box-button/controls.js:385 src/box-button/controls.js:90 4284 #: src/box-ribbon/controls.js:358 src/icon-box/controls.js: 592600 #: src/box-button/controls.js:385 src/box-button/controls.js:905 601 #: src/box-ribbon/controls.js:358 src/icon-box/controls.js:692 285 602 msgid "Border" 286 603 msgstr "" 287 604 288 605 #: src/box-button/controls.js:403 src/box-button/controls.js:729 289 #: src/box-button/controls.js:922 src/icon-box/controls.js:610 606 #: src/box-button/controls.js:923 src/icon-box/controls.js:579 607 #: src/icon-box/controls.js:599 src/icon-box/controls.js:710 608 #: src/social-profiles/controls.js:487 src/social-profiles/controls.js:504 290 609 msgid "Reset" 291 610 msgstr "" 292 611 293 #: src/box-button/controls.js:406 src/box-button/controls.js:92 5294 #: src/icon-box/controls.js: 613612 #: src/box-button/controls.js:406 src/box-button/controls.js:926 613 #: src/icon-box/controls.js:713 295 614 msgid "Border radius" 296 615 msgstr "" 297 616 298 #: src/box-button/controls.js:414 src/box-button/controls.js:1070 299 #: src/box-ribbon/controls.js:515 src/icon/controls.js:623 src/mce/index.js:722 617 #: src/box-button/controls.js:414 src/box-button/controls.js:1071 618 #: src/box-ribbon/controls.js:515 src/icon/controls.js:631 src/mce/index.js:770 619 #: src/social-profiles/controls.js:676 300 620 msgid "Block spacing" 301 621 msgstr "" 302 622 303 #: src/box-button/controls.js:419 src/box-button/controls.js:1075 304 #: src/box-ribbon/controls.js:520 src/icon/controls.js:628 src/mce/index.js:727 623 #: src/box-button/controls.js:419 src/box-button/controls.js:1076 624 #: src/box-ribbon/controls.js:520 src/icon/controls.js:636 src/mce/index.js:775 625 #: src/social-profiles/controls.js:681 305 626 msgid "Margin" 306 627 msgstr "" 307 628 308 #: src/box-button/controls.js:424 src/box-button/controls.js:1080 309 #: src/box-ribbon/controls.js:526 src/icon/controls.js:633 src/mce/index.js:732 629 #: src/box-button/controls.js:424 src/box-button/controls.js:1081 630 #: src/box-ribbon/controls.js:526 src/icon/controls.js:641 src/mce/index.js:780 631 #: src/social-profiles/controls.js:686 310 632 msgid "Padding" 311 633 msgstr "" 312 634 313 #: src/box-button/controls.js:432 src/box-button/controls.js:1088 314 #: src/box-ribbon/controls.js:535 src/mce/index.js:740 635 #: src/box-button/controls.js:432 src/box-button/controls.js:1089 636 #: src/box-ribbon/controls.js:535 src/mce/index.js:788 637 #: src/social-profiles/controls.js:694 315 638 msgid "Advanced" 316 639 msgstr "" 317 640 318 #: src/box-button/controls.js:438 src/box-button/controls.js:1094 319 #: src/box-ribbon/controls.js:541 src/mce/index.js:746 641 #: src/box-button/controls.js:438 src/box-button/controls.js:1095 642 #: src/box-ribbon/controls.js:541 src/mce/index.js:794 643 #: src/social-profiles/controls.js:700 320 644 msgid "Additional CSS class(es)" 321 645 msgstr "" 322 646 323 #: src/box-button/controls.js:441 src/box-button/controls.js:1097 324 #: src/box-ribbon/controls.js:544 src/mce/index.js:749 647 #: src/box-button/controls.js:441 src/box-button/controls.js:1098 648 #: src/box-ribbon/controls.js:544 src/mce/index.js:797 649 #: src/social-profiles/controls.js:703 325 650 msgid "Separate multiple classes with spaces." 326 651 msgstr "" … … 330 655 msgstr "" 331 656 332 #: src/box-button/controls.js:573 src/box-button/edit.js:10 4657 #: src/box-button/controls.js:573 src/box-button/edit.js:107 333 658 msgid "Read More" 334 659 msgstr "" … … 338 663 msgstr "" 339 664 340 #: src/box-button/controls.js:630 src/icon/controls.js:64 1 src/mce/index.js:676665 #: src/box-button/controls.js:630 src/icon/controls.js:649 src/mce/index.js:724 341 666 msgid "Link and Title" 342 667 msgstr "" 343 668 344 #: src/box-button/controls.js:636 src/icon/controls.js:6 47 src/mce/index.js:682669 #: src/box-button/controls.js:636 src/icon/controls.js:655 src/mce/index.js:730 345 670 msgid "Tooltip" 346 671 msgstr "" 347 672 348 #: src/box-button/controls.js:641 src/icon/controls.js:6 52 src/mce/index.js:687673 #: src/box-button/controls.js:641 src/icon/controls.js:660 src/mce/index.js:735 349 674 msgid "Label" 350 675 msgstr "" 351 676 352 #: src/box-button/controls.js:644 src/icon/controls.js:6 55 src/mce/index.js:690677 #: src/box-button/controls.js:644 src/icon/controls.js:663 src/mce/index.js:738 353 678 msgid "It is for screen readers." 354 679 msgstr "" 355 680 356 #: src/box-button/controls.js:649 src/icon/controls.js:660 src/mce/index.js:695 681 #: src/box-button/controls.js:649 src/icon/controls.js:668 src/mce/index.js:743 682 #: src/social-profiles/controls.js:1025 357 683 msgid "Link url" 358 684 msgstr "" 359 685 360 #: src/box-button/controls.js:668 src/icon/controls.js:679 src/mce/index.js:714 686 #: src/box-button/controls.js:668 src/icon/controls.js:687 src/mce/index.js:762 687 #: src/social-profiles/controls.js:1035 361 688 msgid "Link rel" 362 689 msgstr "" … … 382 709 msgstr "" 383 710 384 #: src/box-button/controls.js:812 src/icon-box/controls.js:3 07385 #: src/icon-box/controls.js:3 60711 #: src/box-button/controls.js:812 src/icon-box/controls.js:340 712 #: src/icon-box/controls.js:393 src/mce/index.js:385 386 713 msgid "Icon position" 387 714 msgstr "" 388 715 389 #: src/box-button/controls.js:82 2 src/icon-box/controls.js:317390 #: src/icon-box/controls.js: 370716 #: src/box-button/controls.js:823 src/icon-box/controls.js:350 717 #: src/icon-box/controls.js:403 391 718 msgid "Left" 392 719 msgstr "" 393 720 394 #: src/box-button/controls.js:82 7 src/icon-box/controls.js:325395 #: src/icon-box/controls.js: 378721 #: src/box-button/controls.js:828 src/icon-box/controls.js:358 722 #: src/icon-box/controls.js:411 396 723 msgid "Right" 397 724 msgstr "" 398 725 399 #: src/box-button/controls.js:833 src/icon/controls.js:361 src/mce/index.js:408 400 #: src/text-icon/index.js:317 726 #: src/box-button/controls.js:834 src/icon/controls.js:369 src/mce/index.js:456 401 727 msgid "Icon Fill Color" 402 728 msgstr "" 403 729 404 #: src/box-button/controls.js:853 src/icon/controls.js:379 src/mce/index.js:427 405 #: src/text-icon/index.js:335 730 #: src/box-button/controls.js:854 src/icon/controls.js:387 src/mce/index.js:475 406 731 msgid "Icon Stroke Color" 407 732 msgstr "" 408 733 409 #: src/box-button/controls.js:872 src/icon/controls.js:433 src/mce/index.js:484 410 #: src/text-icon/index.js:389 734 #: src/box-button/controls.js:873 src/icon/controls.js:441 src/mce/index.js:532 411 735 msgid "Icon Stroke Width" 412 736 msgstr "" 413 737 414 #: src/box-button/controls.js:89 0738 #: src/box-button/controls.js:891 415 739 msgid "Icon gap" 416 740 msgstr "" 417 741 418 #: src/box-button/controls.js:93 3 src/box-button/controls.js:939742 #: src/box-button/controls.js:934 src/box-button/controls.js:940 419 743 msgid "Box shadow" 420 744 msgstr "" 421 745 422 #: src/box-button/controls.js:94 5 src/box-button/controls.js:995746 #: src/box-button/controls.js:946 src/box-button/controls.js:996 423 747 #: src/box-ribbon/controls.js:427 src/box-ribbon/controls.js:477 424 #: src/icon/controls.js:472 src/icon/controls.js:523 src/mce/index.js:523 425 #: src/mce/index.js:575 src/text-icon/index.js:428 748 #: src/icon/controls.js:480 src/icon/controls.js:531 src/mce/index.js:571 749 #: src/mce/index.js:623 src/social-profiles/controls.js:523 750 #: src/social-profiles/controls.js:575 426 751 msgid "color" 427 752 msgstr "" 428 753 429 #: src/box-button/controls.js:95 3 src/box-button/controls.js:1003754 #: src/box-button/controls.js:954 src/box-button/controls.js:1004 430 755 #: src/box-ribbon/controls.js:435 src/box-ribbon/controls.js:485 431 #: src/icon/controls.js:479 src/icon/controls.js:530 src/mce/index.js:531 432 #: src/mce/index.js:583 src/text-icon/index.js:435 756 #: src/icon/controls.js:487 src/icon/controls.js:538 src/mce/index.js:579 757 #: src/mce/index.js:631 src/social-profiles/controls.js:531 758 #: src/social-profiles/controls.js:583 433 759 msgid "blur" 434 760 msgstr "" 435 761 436 #: src/box-button/controls.js:96 2 src/box-button/controls.js:1012762 #: src/box-button/controls.js:963 src/box-button/controls.js:1013 437 763 #: src/box-ribbon/controls.js:444 src/box-ribbon/controls.js:494 438 #: src/icon/controls.js:489 src/icon/controls.js:540 src/mce/index.js:541 439 #: src/mce/index.js:593 src/text-icon/index.js:445 764 #: src/icon/controls.js:497 src/icon/controls.js:548 src/mce/index.js:589 765 #: src/mce/index.js:641 src/social-profiles/controls.js:541 766 #: src/social-profiles/controls.js:593 440 767 msgid "X offset" 441 768 msgstr "" 442 769 443 #: src/box-button/controls.js:97 1 src/box-button/controls.js:1021770 #: src/box-button/controls.js:972 src/box-button/controls.js:1022 444 771 #: src/box-ribbon/controls.js:453 src/box-ribbon/controls.js:503 445 #: src/icon/controls.js:498 src/icon/controls.js:549 src/mce/index.js:550 446 #: src/mce/index.js:602 src/text-icon/index.js:454 772 #: src/icon/controls.js:506 src/icon/controls.js:557 src/mce/index.js:598 773 #: src/mce/index.js:650 src/social-profiles/controls.js:550 774 #: src/social-profiles/controls.js:602 447 775 msgid "Y offset" 448 776 msgstr "" 449 777 450 #: src/box-button/controls.js:98 3 src/box-button/controls.js:989778 #: src/box-button/controls.js:984 src/box-button/controls.js:990 451 779 #: src/box-ribbon/controls.js:465 src/box-ribbon/controls.js:471 452 780 msgid "Text shadow" 453 781 msgstr "" 454 782 455 #: src/box-button/controls.js:103 3 src/icon/controls.js:602456 #: src/mce/index.js: 655783 #: src/box-button/controls.js:1034 src/icon/controls.js:610 784 #: src/mce/index.js:703 src/social-profiles/controls.js:655 457 785 msgid "Hover animation" 458 786 msgstr "" 459 787 460 #: src/box-button/controls.js:1103 src/box-ribbon/controls.js:550 461 #: src/icon/controls.js:687 src/mce/index.js:755 462 msgid "https://safelayout.com" 463 msgstr "" 464 465 #: src/box-button/controls.js:1106 src/box-ribbon/controls.js:553 466 #: src/icon/controls.js:690 src/mce/index.js:758 788 #: src/box-button/controls.js:1104 src/box-ribbon/controls.js:550 789 #: src/icon/controls.js:695 src/mce/index.js:803 790 #: src/social-profiles/controls.js:709 791 msgid "https://safelayout.com/safelayout-elegant-icons-pro" 792 msgstr "" 793 794 #: src/box-button/controls.js:1107 src/box-ribbon/controls.js:553 795 #: src/icon/controls.js:698 src/mce/index.js:806 796 #: src/social-profiles/controls.js:712 467 797 msgid "Upgrade to pro version and get full features." 468 798 msgstr "" 469 799 470 #: src/box-button/effects.js:12 5 src/icon-box/effects.js:419800 #: src/box-button/effects.js:127 src/icon-box/effects.js:418 471 801 msgid "Animation Background color" 472 802 msgstr "" 473 803 474 #: src/box-button/effects.js:13 2 src/icon-box/effects.js:438804 #: src/box-button/effects.js:134 src/icon-box/effects.js:437 475 805 msgid "Animation Text color" 476 806 msgstr "" 477 807 478 #: src/box-button/effects.js:1 39 src/icon-box/effects.js:432808 #: src/box-button/effects.js:141 src/icon-box/effects.js:431 479 809 msgid "Animation Border color" 480 810 msgstr "" 481 811 482 #: src/box-button/effects.js:14 6812 #: src/box-button/effects.js:148 483 813 msgid "Animation Text and Border color" 484 814 msgstr "" 485 815 486 #: src/box-button/effects.js:15 3 src/box-button/effects.js:160487 #: src/icon-box/effects.js:45 9 src/icon-box/effects.js:466488 #: src/icon-box/effects.js:47 3 src/icon-box/effects.js:480816 #: src/box-button/effects.js:155 src/box-button/effects.js:162 817 #: src/icon-box/effects.js:458 src/icon-box/effects.js:465 818 #: src/icon-box/effects.js:472 src/icon-box/effects.js:479 489 819 msgid "Animation Stretch color" 490 820 msgstr "" 491 821 492 #: src/box-button/effects.js:16 7 src/box-button/effects.js:174493 #: src/box-button/effects.js:18 1 src/box-button/effects.js:188494 #: src/icon-box/effects.js:48 7 src/icon-box/effects.js:494495 #: src/icon-box/effects.js:50 1 src/icon-box/effects.js:508822 #: src/box-button/effects.js:169 src/box-button/effects.js:176 823 #: src/box-button/effects.js:183 src/box-button/effects.js:190 824 #: src/icon-box/effects.js:486 src/icon-box/effects.js:493 825 #: src/icon-box/effects.js:500 src/icon-box/effects.js:507 496 826 msgid "Animation Slide color" 497 827 msgstr "" … … 533 863 msgstr "" 534 864 535 #: src/box-ribbon/controls.js:382 src/icon-box/controls.js: 621865 #: src/box-ribbon/controls.js:382 src/icon-box/controls.js:721 536 866 msgid "Background pattern" 537 867 msgstr "" 538 868 539 #: src/box-ribbon/controls.js:387 src/icon-box/controls.js: 626869 #: src/box-ribbon/controls.js:387 src/icon-box/controls.js:726 540 870 msgid "Pattern opacity" 541 871 msgstr "" 542 872 543 873 #: src/box-ribbon/controls.js:415 src/box-ribbon/controls.js:421 544 #: src/icon/controls.js:510 src/icon/controls.js:516 src/mce/index.js:562 545 #: src/mce/index.js:568 874 #: src/icon/controls.js:518 src/icon/controls.js:524 src/mce/index.js:610 875 #: src/mce/index.js:616 src/social-profiles/controls.js:562 876 #: src/social-profiles/controls.js:568 546 877 msgid "Background shadow" 547 878 msgstr "" … … 563 894 msgstr "" 564 895 565 #: src/icon-box/controls.js:321 src/icon-box/controls.js:342 566 #: src/icon-box/controls.js:374 src/icon-box/controls.js:395 567 #: src/icon/controls.js:572 src/mce/index.js:625 src/text-icon/index.js:477 896 #: src/icon-box/controls.js:354 src/icon-box/controls.js:375 897 #: src/icon-box/controls.js:407 src/icon-box/controls.js:428 898 #: src/icon/controls.js:580 src/mce/index.js:673 899 #: src/social-profiles/controls.js:625 568 900 msgid "Top" 569 901 msgstr "" 570 902 571 #: src/icon-box/controls.js:3 31 src/icon-box/controls.js:384903 #: src/icon-box/controls.js:364 src/icon-box/controls.js:417 572 904 msgid "Icon vertical align" 573 905 msgstr "" 574 906 575 #: src/icon-box/controls.js:3 46 src/icon-box/controls.js:399907 #: src/icon-box/controls.js:379 src/icon-box/controls.js:432 576 908 msgid "Center" 577 909 msgstr "" 578 910 579 #: src/icon-box/controls.js:3 50 src/icon-box/controls.js:403911 #: src/icon-box/controls.js:383 src/icon-box/controls.js:436 580 912 msgid "Bottom" 581 913 msgstr "" 582 914 583 #: src/icon-box/controls.js:4 16915 #: src/icon-box/controls.js:449 584 916 msgid "This is the heading" 585 917 msgstr "" 586 918 587 #: src/icon-box/controls.js:4 30src/icon-box/edit.js:47919 #: src/icon-box/controls.js:463 src/icon-box/edit.js:47 588 920 #: src/icon-box/index.js:52 589 921 msgid "Lorem ipsum dolor sit amet, consectetur adipiscing elit." 590 922 msgstr "" 591 923 592 #: src/icon-box/controls.js:4 37 src/icon-box/controls.js:554924 #: src/icon-box/controls.js:470 src/icon-box/controls.js:635 593 925 msgid "Add a Read More button to the icon box." 594 926 msgstr "" 595 927 596 #: src/icon-box/controls.js:4 38 src/icon-box/controls.js:548597 #: src/icon-box/controls.js: 555928 #: src/icon-box/controls.js:471 src/icon-box/controls.js:629 929 #: src/icon-box/controls.js:636 598 930 msgid "Read More button" 599 931 msgstr "" 600 932 601 #: src/icon-box/controls.js:4 43 src/icon-box/controls.js:576933 #: src/icon-box/controls.js:476 src/icon-box/controls.js:665 602 934 msgid "Add a Ribbon to the icon box." 603 935 msgstr "" 604 936 605 #: src/icon-box/controls.js:4 50937 #: src/icon-box/controls.js:483 606 938 msgid "Box effect" 607 939 msgstr "" 608 940 609 #: src/icon-box/controls.js: 481941 #: src/icon-box/controls.js:514 610 942 msgid "Effect property" 611 943 msgstr "" 612 944 613 #: src/icon-box/controls.js:531 945 #: src/icon-box/controls.js:565 946 msgid "Minimum Width" 947 msgstr "" 948 949 #: src/icon-box/controls.js:585 950 msgid "Minimum Height" 951 msgstr "" 952 953 #: src/icon-box/controls.js:612 614 954 msgid "Add a background color to the icon box." 615 955 msgstr "" … … 619 959 msgstr "" 620 960 621 #: src/icon-box/effects.js:11 4 src/icon-box/effects.js:119961 #: src/icon-box/effects.js:113 src/icon-box/effects.js:118 622 962 msgid "Inner shadow" 623 963 msgstr "" 624 964 965 #: src/icon-box/effects.js:329 966 msgid "Fill color" 967 msgstr "" 968 625 969 #: src/icon-box/effects.js:330 626 msgid "Fill color"627 msgstr ""628 629 #: src/icon-box/effects.js:331630 970 msgid "Dots color" 631 971 msgstr "" 632 972 633 #: src/icon-box/effects.js:42 6973 #: src/icon-box/effects.js:425 634 974 msgid "Animation Effect color" 635 975 msgstr "" 636 976 637 #: src/icon-box/effects.js:44 5 src/icon-box/effects.js:452977 #: src/icon-box/effects.js:444 src/icon-box/effects.js:451 638 978 msgid "Animation Split color" 639 979 msgstr "" … … 643 983 msgstr "" 644 984 645 #: src/icon/color-picker.js:8 5985 #: src/icon/color-picker.js:87 646 986 msgid "Solid" 647 987 msgstr "" 648 988 649 #: src/icon/color-picker.js:9 0989 #: src/icon/color-picker.js:92 650 990 msgid "Gradient" 651 991 msgstr "" 652 992 653 #: src/icon/controls.js:19 3 src/mce/index.js:329993 #: src/icon/controls.js:195 src/mce/index.js:346 654 994 msgid "Rotate" 655 995 msgstr "" 656 996 657 #: src/icon/controls.js: 199 src/mce/index.js:336997 #: src/icon/controls.js:201 src/mce/index.js:353 658 998 msgid "Flip horizontal" 659 999 msgstr "" 660 1000 661 #: src/icon/controls.js:20 5 src/mce/index.js:3431001 #: src/icon/controls.js:207 src/mce/index.js:360 662 1002 msgid "Flip vertical" 663 1003 msgstr "" 664 1004 665 #: src/icon/controls.js:21 3 src/mce/index.js:3501005 #: src/icon/controls.js:215 src/mce/index.js:367 666 1006 msgid "Rotate background" 667 1007 msgstr "" 668 1008 669 #: src/icon/controls.js:221 670 msgid "Add this icon to custom list" 671 msgstr "" 672 673 #: src/icon/controls.js:236 674 msgid "Icon name" 675 msgstr "" 676 677 #: src/icon/controls.js:245 678 msgid "Add to custom" 679 msgstr "" 680 681 #: src/icon/controls.js:286 src/mce/index.js:285 src/text-icon/index.js:231 1009 #: src/icon/controls.js:294 src/mce/index.js:302 1010 #: src/social-profiles/controls.js:402 682 1011 msgid "Icon effect" 683 1012 msgstr "" 684 1013 685 #: src/icon/controls.js:333 src/mce/index.js:380 src/text-icon/index.js:289 1014 #: src/icon/controls.js:341 src/mce/index.js:428 1015 #: src/social-profiles/controls.js:447 686 1016 msgid "background padding" 687 1017 msgstr "" 688 1018 689 #: src/icon/controls.js:342 src/mce/index.js:389 src/text-icon/index.js:298 1019 #: src/icon/controls.js:350 src/mce/index.js:437 1020 #: src/social-profiles/controls.js:456 690 1021 msgid "background radius" 691 1022 msgstr "" 692 1023 693 #: src/icon/controls.js:3 54 src/mce/index.js:401 src/text-icon/index.js:3101024 #: src/icon/controls.js:362 src/mce/index.js:449 694 1025 msgid "Icon color" 695 1026 msgstr "" 696 1027 697 #: src/icon/controls.js:4 06 src/mce/index.js:455 src/text-icon/index.js:3621028 #: src/icon/controls.js:414 src/mce/index.js:503 698 1029 msgid "Add a background shape to the icon." 699 1030 msgstr "" 700 1031 701 #: src/icon/controls.js:4 07 src/mce/index.js:456 src/text-icon/index.js:3631032 #: src/icon/controls.js:415 src/mce/index.js:504 702 1033 msgid "Background shape" 703 1034 msgstr "" 704 1035 705 #: src/icon/controls.js:4 19 src/mce/index.js:469 src/text-icon/index.js:3751036 #: src/icon/controls.js:427 src/mce/index.js:517 706 1037 msgid "Background Stroke Color" 707 1038 msgstr "" 708 1039 709 #: src/icon/controls.js:4 28 src/mce/index.js:479 src/text-icon/index.js:3841040 #: src/icon/controls.js:436 src/mce/index.js:527 710 1041 msgid "Stroke width" 711 1042 msgstr "" 712 1043 713 #: src/icon/controls.js:4 48 src/mce/index.js:499 src/text-icon/index.js:4041044 #: src/icon/controls.js:456 src/mce/index.js:547 714 1045 msgid "background stroke width" 715 1046 msgstr "" 716 1047 717 #: src/icon/controls.js:460 src/icon/controls.js:466 src/mce/index.js:511 718 #: src/mce/index.js:517 src/text-icon/index.js:416 src/text-icon/index.js:422 1048 #: src/icon/controls.js:468 src/icon/controls.js:474 src/mce/index.js:559 1049 #: src/mce/index.js:565 src/social-profiles/controls.js:511 1050 #: src/social-profiles/controls.js:517 719 1051 msgid "Icon shadow" 720 1052 msgstr "" 721 1053 722 #: src/icon/controls.js:561 src/icon/controls.js:567 src/mce/index.js:614 723 #: src/mce/index.js:620 src/text-icon/index.js:466 src/text-icon/index.js:472 1054 #: src/icon/controls.js:569 src/icon/controls.js:575 src/mce/index.js:662 1055 #: src/mce/index.js:668 src/social-profiles/controls.js:614 1056 #: src/social-profiles/controls.js:620 724 1057 msgid "Base shadow" 725 1058 msgstr "" 726 1059 727 #: src/icon/controls.js:581 src/mce/index.js:634 src/text-icon/index.js:486 1060 #: src/icon/controls.js:589 src/mce/index.js:682 1061 #: src/social-profiles/controls.js:634 728 1062 msgid "width" 729 1063 msgstr "" 730 1064 731 #: src/icon/controls.js:590 src/mce/index.js:643 src/text-icon/index.js:495 1065 #: src/icon/controls.js:598 src/mce/index.js:691 1066 #: src/social-profiles/controls.js:643 732 1067 msgid "height" 733 1068 msgstr "" 734 1069 735 #: src/icon/controls.js:77 11070 #: src/icon/controls.js:779 736 1071 msgid "one" 737 1072 msgstr "" 738 1073 739 #: src/icon/controls.js:7 721074 #: src/icon/controls.js:780 740 1075 msgid "two" 741 1076 msgstr "" 742 1077 743 #: src/icon/controls.js:7 731078 #: src/icon/controls.js:781 744 1079 msgid "three" 745 1080 msgstr "" 746 1081 747 #: src/icon/controls.js:7 741082 #: src/icon/controls.js:782 748 1083 msgid "four" 749 1084 msgstr "" 750 1085 751 #: src/icon/controls.js:7 751086 #: src/icon/controls.js:783 752 1087 msgid "five" 753 1088 msgstr "" … … 757 1092 msgstr "" 758 1093 759 #: src/mce/index.js:3 59 src/text-icon/index.js:2681094 #: src/mce/index.js:377 760 1095 msgid "Position & Size" 761 1096 msgstr "" 762 1097 763 #: src/mce/index.js:364 src/text-icon/index.js:273 1098 #: src/mce/index.js:395 1099 msgid "Before" 1100 msgstr "" 1101 1102 #: src/mce/index.js:399 1103 msgid "After" 1104 msgstr "" 1105 1106 #: src/mce/index.js:404 764 1107 msgid "top" 765 1108 msgstr "" 766 1109 767 #: src/text-icon/index.js:126 1110 #: src/mce/index.js:412 src/social-profiles/controls.js:390 1111 msgid "Gap" 1112 msgstr "" 1113 1114 #: src/social-profiles/controls.js:239 1115 msgid "" 1116 "More options for classic themes are available in Dashboard → Settings → " 1117 "Safelayout Icons." 1118 msgstr "" 1119 1120 #: src/social-profiles/controls.js:271 1121 msgid "Show text" 1122 msgstr "" 1123 1124 #: src/social-profiles/controls.js:279 1125 msgid "Font" 1126 msgstr "" 1127 1128 #: src/social-profiles/controls.js:311 1129 msgid "Float" 1130 msgstr "" 1131 1132 #: src/social-profiles/controls.js:313 1133 msgid "Affects front" 1134 msgstr "" 1135 1136 #: src/social-profiles/controls.js:320 1137 msgid "Float pos" 1138 msgstr "" 1139 1140 #: src/social-profiles/controls.js:332 1141 msgid "Open links in new tab" 1142 msgstr "" 1143 1144 #: src/social-profiles/controls.js:338 1145 msgid "Open links in a popup window" 1146 msgstr "" 1147 1148 #: src/social-profiles/controls.js:349 1149 msgid "Justify items left" 1150 msgstr "" 1151 1152 #: src/social-profiles/controls.js:354 1153 msgid "Justify items center" 1154 msgstr "" 1155 1156 #: src/social-profiles/controls.js:359 1157 msgid "Justify items right" 1158 msgstr "" 1159 1160 #: src/social-profiles/controls.js:364 1161 msgid "Space between items" 1162 msgstr "" 1163 1164 #: src/social-profiles/controls.js:374 1165 msgid "Horizontal" 1166 msgstr "" 1167 1168 #: src/social-profiles/controls.js:379 1169 msgid "Vertical" 1170 msgstr "" 1171 1172 #: src/social-profiles/controls.js:385 1173 msgid "Allow to wrap to multiple lines" 1174 msgstr "" 1175 1176 #: src/social-profiles/controls.js:477 1177 msgid "Icon Color" 1178 msgstr "" 1179 1180 #: src/social-profiles/controls.js:792 1181 msgid "Delete" 1182 msgstr "" 1183 1184 #: src/social-profiles/controls.js:803 1185 msgid "Move" 1186 msgstr "" 1187 1188 #: src/social-profiles/controls.js:860 1189 msgid "Add New icon" 1190 msgstr "" 1191 1192 #: src/social-profiles/controls.js:887 1193 msgid "Search" 1194 msgstr "" 1195 1196 #: src/social-profiles/controls.js:973 1197 msgid "Edit" 1198 msgstr "" 1199 1200 #: src/social-profiles/controls.js:1014 1201 msgid "Text" 1202 msgstr "" 1203 1204 #: src/social-profiles/controls.js:1022 1205 msgid "The text is visible when \"Show text\" is enabled." 1206 msgstr "" 1207 1208 #: src/social-profiles/index.js:13 1209 msgid "Add icon links to your social media profiles." 1210 msgstr "" 1211 1212 #: src/social-share/index.js:13 1213 msgid "Share your posts and pages on any social sharing service." 1214 msgstr "" 1215 1216 #: src/text-icon/index.js:128 768 1217 msgid "Insert Icon (Safelayout)" 769 1218 msgstr "" -
safelayout-elegant-icons/trunk/package.json
r3339507 r3370210 1 1 { 2 2 "name": "safelayout-elegant-icons", 3 "version": "1. 3.0",3 "version": "1.4.0", 4 4 "description": "Beautiful SVG icons.", 5 5 "author": "safelayout", -
safelayout-elegant-icons/trunk/readme.txt
r3339507 r3370210 4 4 Requires at least: 6.5 5 5 Tested up to: 6.8 6 Stable tag: 1. 3.06 Stable tag: 1.4.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Beautiful SVG icons, available in Block editor, Classic editor, Elementor and WordPress menu. And beautiful "icon box" block.11 Beautiful SVG icons, available in Block editor, Classic editor, Elementor and WordPress menu. Beautiful "icon box" and "Social Share Icons" block. 12 12 13 13 == Description == 14 14 15 15 Safelayout Elegant Icons, adds an **easy-to-use** and **powerful** icon block to the WordPress **classic editor**, **block editor**, **Elementor** and **WordPress menu**. 16 With the help of Safelayout Elegant Icons, you can add **high quality SVG icons** to your WordPress website .16 With the help of Safelayout Elegant Icons, you can add **high quality SVG icons** to your WordPress website, and it helps you add beautiful social media icons to your website. 17 17 18 18 [youtube https://www.youtube.com/watch?v=8PlkfvJWT74] … … 32 32 * No icon fonts, just inline SVG. 33 33 * High quality SVG icons. 34 * Include icon box block. 35 * Include box ribbon block. 36 * Include box button block. 34 * Include "Social Share Icons" block. 35 * Include "Icon Box" block. 36 * Include "Box Ribbon" block. 37 * Include "Box Button" block. 37 38 * Include multi color icon packs. 38 39 * Many beautiful icon effects. … … 96 97 == Changelog == 97 98 99 = 1.4.0 = 100 * Added "Social Share Icons" block. 101 * Added "Social Profiles Icons" block. 102 98 103 = 1.3.0 = 99 104 * Fixed animation issue. -
safelayout-elegant-icons/trunk/safelayout-elegant-icons.php
r3339507 r3370210 6 6 Requires at least: 6.5 7 7 Requires PHP: 7.0 8 Version: 1. 3.08 Version: 1.4.0 9 9 Author: Safelayout 10 10 Text Domain: safelayout-elegant-icons … … 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html 14 14 15 Elementor tested up to: 3.3 0.416 Elementor Pro tested up to: 3.3 0.115 Elementor tested up to: 3.32.2 16 Elementor Pro tested up to: 3.32.1 17 17 */ 18 18 … … 22 22 23 23 // Define the constant used in this plugin 24 define( 'SAFELAYOUT_ICONS_VERSION', '1. 3.0');24 define( 'SAFELAYOUT_ICONS_VERSION', '1.4.0'); 25 25 define( 'SAFELAYOUT_ICONS_PATH', plugin_dir_path( __FILE__ ) ); 26 26 define( 'SAFELAYOUT_ICONS_URL', plugin_dir_url( __FILE__ ) ); … … 32 32 protected $elementor_iconbox_styles_key = null; 33 33 protected $icons_list_key = false; 34 protected $social_enqueue_key = false; 34 35 35 36 public function __construct() { … … 43 44 add_action( 'init', array( $this, 'register_block' ) ); 44 45 add_action( 'init', array( $this, 'register_patterns' ), 8 ); 46 add_action( 'init', array( $this, 'shortcodes_init' ) ); 47 add_filter( 'render_block_safelayout/safelayout-social-share', array( $this, 'render_share_block' ), 10, 3 ); 48 add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ) ); 45 49 add_action( 'enqueue_block_editor_assets', array( $this, 'load_packs' ), 1 ); 46 50 add_action( 'enqueue_block_editor_assets', array( $this, 'set_translations' ), PHP_INT_MAX ); … … 56 60 add_action( 'elementor/editor/before_enqueue_scripts', array( $this, 'elementor_enqueue' ) ); 57 61 add_action( 'wp_enqueue_scripts', array( $this, 'register_elementor_front' ) ); 62 add_action( 'wp_enqueue_scripts', array( $this, 'deregister_elementor_script' ), PHP_INT_MAX ); 58 63 add_action( 'elementor/preview/enqueue_styles', array( $this, 'elementor_preview_enqueue' ) ); 59 64 add_filter( 'elementor/document/save/data', array( $this, 'elementor_iconbox_style' ), 10, 2 ); … … 67 72 add_filter( 'wp_nav_menu_args', array( $this, 'add_menu_item_filter' ) ); 68 73 add_filter( 'wp_nav_menu', array( $this, 'remove_menu_item_filter' ) ); 74 75 add_filter( 'litespeed_optimize_css_excludes', array( $this, 'litespeed_css_excludes' ) ); 76 add_filter( 'litespeed_optimize_js_excludes', array( $this, 'litespeed_js_excludes' ) ); 77 add_filter( 'litespeed_optm_js_defer_exc', array( $this, 'litespeed_js_excludes' ) ); 78 add_filter( 'litespeed_optm_gm_js_exc', array( $this, 'litespeed_js_excludes' ) ); 79 add_filter( 'sgo_js_minify_exclude', array( $this, 'sgo_javascript_exclude' ) ); 80 add_filter( 'sgo_js_async_exclude', array( $this, 'sgo_javascript_exclude' ) ); 81 add_filter( 'sgo_javascript_combine_exclude', array( $this, 'sgo_javascript_exclude' ) ); 82 add_filter( 'sgo_css_combine_exclude', array( $this, 'sgo_css_exclude' ) ); 83 add_filter( 'sgo_css_minify_exclude', array( $this, 'sgo_css_exclude' ) ); 84 add_filter( 'wp-optimize-minify-default-exclusions', array( $this, 'wp_optimize_javascript_exclude' ) ); 85 add_filter( 'autoptimize_filter_js_exclude', array( $this, 'autoptimize_javascript_exclude' ) ); 86 add_filter( 'autoptimize_filter_css_exclude', array( $this, 'autoptimize_css_exclude' ) ); 87 add_filter( 'get_rocket_option_remove_unused_css_safelist', array( $this, 'rocket_remove_unused_css_safelist' ) ); 88 add_filter( 'get_rocket_option_exclude_js', array( $this, 'rocket_exclude_js' ) ); 89 add_filter( 'get_rocket_option_delay_js_exclusions', array( $this, 'rocket_exclude_js' ) ); 90 add_filter( 'get_rocket_option_exclude_defer_js', array( $this, 'rocket_exclude_js' ) ); 69 91 70 92 if ( is_admin() ) { … … 79 101 add_filter( 'register_block_type_args', array( $this, 'add_icon_blocks_to_core_blocks' ), 10, 2 ); 80 102 } 103 } 104 105 // exclude css WP Rocket 106 public function rocket_remove_unused_css_safelist( $excluded ) { 107 $list = [ 108 'safelayout-menu-css-(.*)', 109 'safelayout-icon-text-css-(.*)', 110 'safelayout-icon-box-block-(.*)-css', 111 'safelayout-icon-box-block-effect-(.*)', 112 'safelayout-elegant-icons/build/icon/style-index.css', 113 'safelayout-elegant-icons/build/icon-box/style-index.css', 114 ]; 115 foreach( $list as $li ) { 116 if( ! in_array( $li, $excluded ) ) { 117 array_push( $excluded, $li ); 118 } 119 } 120 return $excluded; 121 } 122 123 // exclude js WP Rocket 124 public function rocket_exclude_js( $excluded ) { 125 $list = [ 'safelayout-share-script.js', ]; 126 foreach( $list as $li ) { 127 if( ! in_array( $li, $excluded ) ) { 128 array_push( $excluded, $li ); 129 } 130 } 131 return $excluded; 132 } 133 134 // exclude js autoptimize 135 public function autoptimize_javascript_exclude( $excluded ) { 136 if( is_string( $excluded ) ) { 137 $excluded .= ', safelayout-share-script.js'; 138 } 139 return $excluded; 140 } 141 142 // exclude js autoptimize 143 public function autoptimize_css_exclude( $excluded ) { 144 if( is_string( $excluded ) ) { 145 $excluded .= ', safelayout-elegant-icons/build/icon/style-index.css'; 146 $excluded .= ', safelayout-elegant-icons/build/icon-box/style-index.css'; 147 } 148 return $excluded; 149 } 150 151 // exclude js wp optimize 152 public function wp_optimize_javascript_exclude( $excluded ) { 153 $excluded[] = 'safelayout-share-script.js'; 154 $excluded[] = 'safelayout-elegant-icons/build/icon/style-index.css'; 155 $excluded[] = 'safelayout-elegant-icons/build/icon-box/style-index.css'; 156 return $excluded; 157 } 158 159 // exclude css, LiteSpeed Cache 160 public function litespeed_css_excludes( $excludes ) { 161 $excludes[] = 'safelayout-elegant-icons/build/icon/style-index.css'; 162 $excludes[] = 'safelayout-elegant-icons/build/icon-box/style-index.css'; 163 return $excludes; 164 } 165 166 // exclude js, LiteSpeed Cache 167 public function litespeed_js_excludes( $excludes ) { 168 $excludes[] = 'safelayout-share-script.js'; 169 return $excludes; 170 } 171 172 // exclude js, Siteground SG Optimize 173 public function sgo_javascript_exclude( $excluded ) { 174 $excluded[] = 'safelayout-safelayout-social-share-view-script'; 175 return $excluded; 176 } 177 178 // exclude css, Siteground SG Optimize 179 public function sgo_css_exclude( $excluded ) { 180 $excluded[] = 'safelayout-safelayout-social-profiles-style'; 181 $excluded[] = 'safelayout-safelayout-social-share-style'; 182 $excluded[] = 'safelayout-safelayout-icon-box-style'; 183 $excluded[] = 'safelayout-safelayout-icon-style'; 184 return $excluded; 185 } 186 187 // set social share hooks 188 public function pre_get_posts( $query ) { 189 if ( $query->is_main_query() ) { 190 $options = $this->get_social_share_options(); 191 if ( '' != $options['enable_social'] && ! ( wp_is_mobile() && $options['hide_on_mobile'] ) ) { 192 add_action( 'the_content', array( $this, 'add_social' ) ); 193 add_action( 'the_excerpt', array( $this, 'add_social' ) ); 194 add_action( 'woocommerce_share', array( $this, 'woocommerce_share' ) ); 195 add_action( 'woocommerce_after_single_product', array( $this, 'woocommerce_after_single_product' ) ); 196 } 197 } 198 } 199 200 // show social share after product summary 201 public function woocommerce_share() { 202 $this->show_social_woocommerce( 'summary' ); 203 } 204 205 // show social share after product content 206 public function woocommerce_after_single_product() { 207 $this->show_social_woocommerce( 'content' ); 208 } 209 210 // echo social share for woocommerce product 211 public function show_social_woocommerce( $arg ) { 212 $options = $this->get_social_share_options(); 213 if ( $options['display_on_woo'] && $options['display_on_woo_place'] == $arg ) { 214 echo do_shortcode( $this->get_social_share_code() ); 215 if ( ! $this->social_enqueue_key ) { 216 $this->social_enqueue_key = true; 217 $this->enqueue_social_style(); 218 } 219 } 220 } 221 222 // get social share options 223 public function get_social_share_options() { 224 $default = array( 225 'version' => SAFELAYOUT_ICONS_VERSION, 226 'enable_social' => '', 227 's_title' => '', 228 's_attributes' => htmlspecialchars_decode( '%7B%22blockId%22%3A%2255410f6a-76f5-354d-b8cd-8cdedb735330%22%2C%22slbbShowText%22%3Afalse%2C%22slbbFont%22%3A%22Default%22%2C%22slbbBold%22%3Afalse%2C%22slbbItalic%22%3Afalse%2C%22slbbUpercase%22%3Afalse%2C%22slbbNewTab%22%3Atrue%2C%22slbbFloat%22%3Afalse%2C%22slbbFloatPos%22%3A%22center%20left%22%2C%22slbbJust%22%3A%22left%22%2C%22slbbOrient%22%3A%22row%22%2C%22slbbWrap%22%3Atrue%2C%22rotateBg%22%3A0%2C%22hasBg%22%3Atrue%2C%22bgShape%22%3A%22rect%22%2C%22bgShapeVal%22%3A%22%22%2C%22size%22%3A%2240px%22%2C%22slbbGap%22%3A20%2C%22hasShadow%22%3Afalse%2C%22shadow%22%3A%22drop-shadow(2px%202px%201px%20%23000)%22%2C%22svgFilter%22%3A%22none%22%2C%22bgStrokeColor%22%3A%22%23000%22%2C%22bgStrokeWidth%22%3A0%2C%22hasBgShadow%22%3Afalse%2C%22bgShadow%22%3A%22drop-shadow(0px%203px%202px%20%23000)%22%2C%22hasBaseShadow%22%3Afalse%2C%22baseShadowWidth%22%3A70%2C%22baseShadowHeight%22%3A12%2C%22baseShadowTop%22%3A96%2C%22padding%22%3A8%2C%22bgRadius%22%3A10%2C%22effect%22%3A%22No%20Effect%22%2C%22slbbAnim%22%3A%22No%20Animation%22%2C%22blockMargin%22%3A%7B%22top%22%3A%2210px%22%2C%22bottom%22%3A%2210px%22%7D%2C%22blockPadding%22%3A%7B%7D%2C%22classes%22%3A%22%22%2C%22slbbPopup%22%3Atrue%2C%22slbbIcons%22%3A%5B%7B%22socialName%22%3A%22Facebook%22%2C%22iconName%22%3A%22705_facebook%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M12%202C6.5%202%202%206.5%202%2012c0%205%203.7%209.1%208.4%209.9v-7H7.9V12h2.5V9.8c0-2.5%201.5-3.9%203.8-3.9%201.1%200%202.2.2%202.2.2v2.5h-1.3c-1.2%200-1.6.8-1.6%201.6V12h2.8l-.4%202.9h-2.3v7C18.3%2021.1%2022%2017%2022%2012c0-5.5-4.5-10-10-10z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%230866ff%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fwww.facebook.com%2Fsharer%2Fsharer.php%3Fu%3D%5Bslei_social_url%5D%26title%3D%5Bslei_social_title%5D%22%2C%22linkRel%22%3A%22%22%7D%2C%7B%22socialName%22%3A%22X%22%2C%22iconName%22%3A%22705_x%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M16.613%204.75h2.46l-5.374%206.143L20.021%2019.25h-4.951l-3.876-5.069-4.436%205.069h-2.462l5.749-6.569L3.979%204.75h5.076l3.505%204.634L16.612%204.75Zm-.863%2013.028h1.363L8.314%206.145H6.851l8.899%2011.632Z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%23000%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fx.com%2Fintent%2Ftweet%3Ftext%3D%5Bslei_social_title%5D%20%5Bslei_social_url%5D%22%2C%22linkRel%22%3A%22%22%7D%2C%7B%22socialName%22%3A%22LinkedIn%22%2C%22iconName%22%3A%22705_linkedin%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M19.379%203.375H4.621C3.933%203.375%203.375%203.933%203.375%204.621v14.758C3.375%2020.067%203.933%2020.625%204.621%2020.625h14.758c.688%200%201.246-.558%201.246-1.246V4.621C20.625%203.933%2020.067%203.375%2019.379%203.375zM8.492%2018.074H5.931v-8.232h2.561V18.074zM7.212%208.717c-.821%200-1.484-.665-1.484-1.483%200-.819.662-1.484%201.484-1.484.818%200%201.483.665%201.483%201.484C8.695%208.053%208.031%208.717%207.212%208.717zM18.075%2018.074h-2.558v-4.003c0-.955-.016-2.183-1.329-2.183-1.331%200-1.534%201.041-1.534%202.114v4.072h-2.556v-8.232h2.452v1.125h.035c.341-.647%201.176-1.329%202.421-1.329%202.59%200%203.07%201.705%203.07%203.921V18.074z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%230d66c2%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fwww.linkedin.com%2FshareArticle%3Fmini%3Dtrue%26url%3D%5Bslei_social_url%5D%26title%3D%5Bslei_social_title%5D%22%2C%22linkRel%22%3A%22%22%7D%5D%2C%22key%22%3A10%7D' ), 229 's_code' => addslashes( '<div class="safelayout-ei-icon-block safelayout-ei-social-share-block share-in-popup" style="margin-top: 10px; margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: left; gap: 20px;"><a href="https://www.facebook.com/sharer/sharer.php?u=[slei_social_url]&title=[slei_social_title]" target="_blank" aria-label="Facebook" title="Facebook" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="8.8" fill="#0866ff" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="path55410f6a-76f5-354d-b8cd-8cdedb7353300"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"></path></symbol><use href="#path55410f6a-76f5-354d-b8cd-8cdedb7353300"></use></svg></a><a href="https://x.com/intent/tweet?text=[slei_social_title] [slei_social_url]" target="_blank" aria-label="X" title="X" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="8.8" fill="#000" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="path55410f6a-76f5-354d-b8cd-8cdedb7353301"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M16.613 4.75h2.46l-5.374 6.143L20.021 19.25h-4.951l-3.876-5.069-4.436 5.069h-2.462l5.749-6.569L3.979 4.75h5.076l3.505 4.634L16.612 4.75Zm-.863 13.028h1.363L8.314 6.145H6.851l8.899 11.632Z"></path></symbol><use href="#path55410f6a-76f5-354d-b8cd-8cdedb7353301"></use></svg></a><a href="https://www.linkedin.com/shareArticle?mini=true&url=[slei_social_url]&title=[slei_social_title]" target="_blank" aria-label="LinkedIn" title="LinkedIn" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="8.8" fill="#0d66c2" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="path55410f6a-76f5-354d-b8cd-8cdedb7353302"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M19.379 3.375H4.621C3.933 3.375 3.375 3.933 3.375 4.621v14.758C3.375 20.067 3.933 20.625 4.621 20.625h14.758c.688 0 1.246-.558 1.246-1.246V4.621C20.625 3.933 20.067 3.375 19.379 3.375zM8.492 18.074H5.931v-8.232h2.561V18.074zM7.212 8.717c-.821 0-1.484-.665-1.484-1.483 0-.819.662-1.484 1.484-1.484.818 0 1.483.665 1.483 1.484C8.695 8.053 8.031 8.717 7.212 8.717zM18.075 18.074h-2.558v-4.003c0-.955-.016-2.183-1.329-2.183-1.331 0-1.534 1.041-1.534 2.114v4.072h-2.556v-8.232h2.452v1.125h.035c.341-.647 1.176-1.329 2.421-1.329 2.59 0 3.07 1.705 3.07 3.921V18.074z"></path></symbol><use href="#path55410f6a-76f5-354d-b8cd-8cdedb7353302"></use></svg></a></div>' ), 230 'hide_on_mobile' => false, 231 'special_on_mobile' => false, 232 's_title_mobile' => '', 233 's_attributes_mobile' => htmlspecialchars_decode( '%7B%22blockId%22%3A%22a3305dde-15da-d0dc-f79c-4b70d03c058d%22%2C%22slbbShowText%22%3Afalse%2C%22slbbFont%22%3A%22Default%22%2C%22slbbBold%22%3Afalse%2C%22slbbItalic%22%3Afalse%2C%22slbbUpercase%22%3Afalse%2C%22slbbNewTab%22%3Atrue%2C%22slbbFloat%22%3Afalse%2C%22slbbFloatPos%22%3A%22center%20left%22%2C%22slbbJust%22%3A%22left%22%2C%22slbbOrient%22%3A%22row%22%2C%22slbbWrap%22%3Atrue%2C%22rotateBg%22%3A0%2C%22hasBg%22%3Atrue%2C%22bgShape%22%3A%22rect%22%2C%22bgShapeVal%22%3A%22%22%2C%22size%22%3A%2240px%22%2C%22slbbGap%22%3A20%2C%22hasShadow%22%3Afalse%2C%22shadow%22%3A%22drop-shadow(2px%202px%201px%20%23000)%22%2C%22svgFilter%22%3A%22none%22%2C%22bgStrokeColor%22%3A%22%23000%22%2C%22bgStrokeWidth%22%3A0%2C%22hasBgShadow%22%3Afalse%2C%22bgShadow%22%3A%22drop-shadow(0px%203px%202px%20%23000)%22%2C%22hasBaseShadow%22%3Afalse%2C%22baseShadowWidth%22%3A70%2C%22baseShadowHeight%22%3A12%2C%22baseShadowTop%22%3A96%2C%22padding%22%3A8%2C%22bgRadius%22%3A50%2C%22effect%22%3A%22No%20Effect%22%2C%22slbbAnim%22%3A%22No%20Animation%22%2C%22blockMargin%22%3A%7B%22top%22%3A%2210px%22%2C%22bottom%22%3A%2210px%22%7D%2C%22blockPadding%22%3A%7B%7D%2C%22classes%22%3A%22%22%2C%22slbbPopup%22%3Atrue%2C%22slbbIcons%22%3A%5B%7B%22socialName%22%3A%22Facebook%22%2C%22iconName%22%3A%22705_facebook%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M12%202C6.5%202%202%206.5%202%2012c0%205%203.7%209.1%208.4%209.9v-7H7.9V12h2.5V9.8c0-2.5%201.5-3.9%203.8-3.9%201.1%200%202.2.2%202.2.2v2.5h-1.3c-1.2%200-1.6.8-1.6%201.6V12h2.8l-.4%202.9h-2.3v7C18.3%2021.1%2022%2017%2022%2012c0-5.5-4.5-10-10-10z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%230866ff%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fwww.facebook.com%2Fsharer%2Fsharer.php%3Fu%3D%5Bslei_social_url%5D%26title%3D%5Bslei_social_title%5D%22%2C%22linkRel%22%3A%22%22%7D%2C%7B%22socialName%22%3A%22X%22%2C%22iconName%22%3A%22705_x%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M16.613%204.75h2.46l-5.374%206.143L20.021%2019.25h-4.951l-3.876-5.069-4.436%205.069h-2.462l5.749-6.569L3.979%204.75h5.076l3.505%204.634L16.612%204.75Zm-.863%2013.028h1.363L8.314%206.145H6.851l8.899%2011.632Z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%23000%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fx.com%2Fintent%2Ftweet%3Ftext%3D%5Bslei_social_title%5D%20%5Bslei_social_url%5D%22%2C%22linkRel%22%3A%22%22%7D%2C%7B%22socialName%22%3A%22LinkedIn%22%2C%22iconName%22%3A%22705_linkedin%22%2C%22paths%22%3A%5B%7B%22d%22%3A%22M19.379%203.375H4.621C3.933%203.375%203.375%203.933%203.375%204.621v14.758C3.375%2020.067%203.933%2020.625%204.621%2020.625h14.758c.688%200%201.246-.558%201.246-1.246V4.621C20.625%203.933%2020.067%203.375%2019.379%203.375zM8.492%2018.074H5.931v-8.232h2.561V18.074zM7.212%208.717c-.821%200-1.484-.665-1.484-1.483%200-.819.662-1.484%201.484-1.484.818%200%201.483.665%201.483%201.484C8.695%208.053%208.031%208.717%207.212%208.717zM18.075%2018.074h-2.558v-4.003c0-.955-.016-2.183-1.329-2.183-1.331%200-1.534%201.041-1.534%202.114v4.072h-2.556v-8.232h2.452v1.125h.035c.341-.647%201.176-1.329%202.421-1.329%202.59%200%203.07%201.705%203.07%203.921V18.074z%22%7D%5D%2C%22color%22%3A%22%23fff%22%2C%22bgColor%22%3A%22%230d66c2%22%2C%22linkUrl%22%3A%22https%3A%2F%2Fwww.linkedin.com%2FshareArticle%3Fmini%3Dtrue%26url%3D%5Bslei_social_url%5D%26title%3D%5Bslei_social_title%5D%22%2C%22linkRel%22%3A%22%22%7D%5D%2C%22key%22%3A29%7D' ), 234 's_code_mobile' => addslashes( '<div class="safelayout-ei-icon-block safelayout-ei-social-share-block share-in-popup" style="margin-top: 10px; margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: left; gap: 20px;"><a href="https://www.facebook.com/sharer/sharer.php?u=[slei_social_url]&title=[slei_social_title]" target="_blank" aria-label="Facebook" title="Facebook" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="44" fill="#0866ff" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="patha3305dde-15da-d0dc-f79c-4b70d03c058d0"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"></path></symbol><use href="#patha3305dde-15da-d0dc-f79c-4b70d03c058d0"></use></svg></a><a href="https://x.com/intent/tweet?text=[slei_social_title] [slei_social_url]" target="_blank" aria-label="X" title="X" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="44" fill="#000" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="patha3305dde-15da-d0dc-f79c-4b70d03c058d1"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M16.613 4.75h2.46l-5.374 6.143L20.021 19.25h-4.951l-3.876-5.069-4.436 5.069h-2.462l5.749-6.569L3.979 4.75h5.076l3.505 4.634L16.612 4.75Zm-.863 13.028h1.363L8.314 6.145H6.851l8.899 11.632Z"></path></symbol><use href="#patha3305dde-15da-d0dc-f79c-4b70d03c058d1"></use></svg></a><a href="https://www.linkedin.com/shareArticle?mini=true&url=[slei_social_url]&title=[slei_social_title]" target="_blank" aria-label="LinkedIn" title="LinkedIn" style="height: 40px; width: 40px;"><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><defs></defs><g><rect x="4" y="4" width="88" height="88" rx="44" fill="#0d66c2" stroke="#000" stroke-width="0"></rect></g></svg><svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" style="height: calc(110% - 19px); width: calc(110% - 19px);"><defs></defs><symbol viewBox="0 0 24 24" id="patha3305dde-15da-d0dc-f79c-4b70d03c058d2"><path vector-effect="non-scaling-stroke" fill="#fff" stroke="#000" stroke-width="0" d="M19.379 3.375H4.621C3.933 3.375 3.375 3.933 3.375 4.621v14.758C3.375 20.067 3.933 20.625 4.621 20.625h14.758c.688 0 1.246-.558 1.246-1.246V4.621C20.625 3.933 20.067 3.375 19.379 3.375zM8.492 18.074H5.931v-8.232h2.561V18.074zM7.212 8.717c-.821 0-1.484-.665-1.484-1.483 0-.819.662-1.484 1.484-1.484.818 0 1.483.665 1.483 1.484C8.695 8.053 8.031 8.717 7.212 8.717zM18.075 18.074h-2.558v-4.003c0-.955-.016-2.183-1.329-2.183-1.331 0-1.534 1.041-1.534 2.114v4.072h-2.556v-8.232h2.452v1.125h.035c.341-.647 1.176-1.329 2.421-1.329 2.59 0 3.07 1.705 3.07 3.921V18.074z"></path></symbol><use href="#patha3305dde-15da-d0dc-f79c-4b70d03c058d2"></use></svg></a></div>' ), 235 'exclude_IDs' => '', 236 'exclude_IDs_value' => '', 237 'display_on_post' => true, 238 'display_on_post_place' => 'bottom', 239 'display_on_page' => true, 240 'display_on_page_place' => 'bottom', 241 'display_on_front' => true, 242 'display_on_front_place' => 'bottom', 243 'display_on_search' => true, 244 'display_on_search_place' => 'bottom', 245 'display_on_archive' => true, 246 'display_on_archive_place' => 'bottom', 247 'display_on_woo' => true, 248 'display_on_woo_place' => 'summary', 249 ); 250 $options = wp_parse_args( 251 get_option( 'safelayout_icons_social_options', array() ), 252 $default 253 ); 254 return $options; 255 } 256 257 // add social share to posts and pages 258 public function add_social( $content ) { 259 global $wp_current_filter; 260 261 // Don't add to get_the_excerpt because it's too early and strips tags (adding to the_excerpt is allowed). 262 if ( in_array( 'get_the_excerpt', (array) $wp_current_filter ) ) { 263 return $content; 264 } 265 $options = $this->get_social_share_options(); 266 $show = false; 267 $place = ''; 268 if ( $options['display_on_post'] && is_singular('post') ) { 269 $show = true; 270 $place = $options['display_on_post_place']; 271 } 272 if ( $options['display_on_page'] && is_singular('page') ) { 273 $show = true; 274 $place = $options['display_on_page_place']; 275 } 276 if ( $options['display_on_front'] && is_home() ) { 277 $show = true; 278 $place = $options['display_on_front_place']; 279 } 280 if ( $options['display_on_search'] && is_search() ) { 281 $show = true; 282 $place = $options['display_on_search_place']; 283 } 284 if ( $options['display_on_archive'] && is_archive() ) { 285 $show = true; 286 $place = $options['display_on_archive_place']; 287 } 288 289 //exclude 290 if ( $options['exclude_IDs'] && $show ) { 291 $id = get_the_ID(); 292 if ( $id != 0 ) { 293 $show = ! $this->check_specific_posts( $options['exclude_IDs_value'], $id ); 294 } 295 } 296 297 if ( $show && ( $place == 'top' || $place == 'both' ) ) { 298 $content = do_shortcode( $this->get_social_share_code() ) . $content; 299 } 300 if ( $show && ( $place == 'bottom' || $place == 'both' ) ) { 301 $content = $content . do_shortcode( $this->get_social_share_code() ); 302 } 303 if ( ! $this->social_enqueue_key && $show ) { 304 $this->social_enqueue_key = true; 305 $this->enqueue_social_style(); 306 } 307 return $content; 308 } 309 310 // Add social share block js file for frontend 311 public function enqueue_social_style() { 312 $this->enqueue_icon_style(); 313 wp_enqueue_script( 314 'safelayout-safelayout-social-share-view-script', 315 SAFELAYOUT_ICONS_URL . 'build/social-share/safelayout-share-script.js', 316 array(), 317 SAFELAYOUT_ICONS_VERSION, 318 array( 319 'in_footer' => true, 320 ) 321 ); 322 } 323 324 // Return true if id is in specific_posts options 325 public function check_specific_posts( $ids, $id ) { 326 $ids = explode( ',', $ids ); 327 $ids = array_map('trim', $ids); 328 return in_array( $id, $ids ); 329 } 330 331 // get social share HTML code 332 public function get_social_share_code() { 333 $options = $this->get_social_share_options(); 334 $allowed_html = Safelayout_elegant_icons::allowed_html( array(), 'post' ); 335 $mobile = wp_is_mobile() && $options['special_on_mobile']; 336 $code = $mobile ? stripslashes( $options['s_code_mobile'] ) : stripslashes( $options['s_code'] ); 337 $title = $mobile ? $options['s_title_mobile'] : $options['s_title']; 338 if ( $title != '' ) { 339 $float = ''; 340 $temp1; 341 $result = preg_match( '/position\s*:\s*fixed[^"]*/i', $code, $temp1 ); 342 if ( $result ) { 343 $float = 'style="' . $temp1[0] . '" '; 344 $code = preg_replace( '/position\s*:\s*fixed[^"]*/i', '', $code, 1 ); 345 } 346 $code = '<div ' . $float . 'class="safelayout-elegant-icons-social"><div class="sl-ei-social-head">' . $title . '</div>' . $code . '</div>'; 347 } 348 349 return wp_kses( $code, $allowed_html ); 350 } 351 352 // social share shortcodes 353 public function shortcodes_init() { 354 add_shortcode( 'slei_social_title', array( $this, 'social_shortcode_title' ) ); 355 add_shortcode( 'slei_social_url', array( $this, 'social_shortcode_url' ) ); 356 } 357 358 // social share shortcodes slei_social_title 359 public function social_shortcode_title( $atts ) { 360 return esc_attr( $this->get_title() ); 361 } 362 363 // social share shortcodes slei_social_url 364 public function social_shortcode_url( $atts ) { 365 return esc_url( $this->get_url() ); 366 } 367 368 // get the URL 369 public function get_url() { 370 if ( in_the_loop() ) { 371 return get_the_permalink(); 372 } else { 373 global $wp; 374 return add_query_arg( $wp->query_vars, home_url( $wp->request ) ); 375 } 376 } 377 378 // get the title 379 public function get_title() { 380 if ( in_the_loop() ) { 381 return get_the_title(); 382 } else { 383 return wp_get_document_title(); 384 } 385 } 386 387 // render social share block 388 public function render_share_block( $block_content, $block, $instance ) { 389 return do_shortcode( $block_content ); 81 390 } 82 391 … … 129 438 ?> 130 439 <div class="sl-ei-menu-field-container" id="sl-ei-menu-<?php echo esc_html( $item_id ) ?>"> 131 <span class="sl-ei-menu-field-container-title"> Icon (Safelayout)</span>440 <span class="sl-ei-menu-field-container-title"><?php esc_html_e( 'Icon (Safelayout)', 'safelayout-elegant-icons' ); ?></span> 132 441 <div class="sl-ei-menu-icon-container"><?php echo wp_kses( $menu_icon, $allowed_html ); ?></div> 133 442 <a class="button sl-ei-menu-insert"><?php $msg = $menu_icon ? 'Edit Icon' : 'Insert Icon';esc_html_e( $msg, 'safelayout-elegant-icons' ); ?></a> … … 209 518 $this->elementor_iconbox_styles_key[] = $effect[0]; 210 519 $index = substr( $effect[0], -3 ); 211 $tag = '<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-box-block-effect ' . $index .520 $tag = '<style type="text/css" data-no-optimize="1" data-no-minify="1" id="safelayout-icon-box-block-effect-' . $index . 212 521 '-css">' . $this->elementor_iconbox_styles[(int)$index] . '</style>'; 213 522 $elements[$i]['settings']['iconbox'] = preg_replace( '/<\/div>attsafelayoutatt/', $tag . '</div>attsafelayoutatt', $box, 1 ); … … 244 553 SAFELAYOUT_ICONS_VERSION, 245 554 ); 555 wp_register_script( 556 'safelayout-safelayout-social-share-view-script', 557 SAFELAYOUT_ICONS_URL . 'build/social-share/safelayout-share-script.js', 558 array(), 559 SAFELAYOUT_ICONS_VERSION, 560 array( 561 'in_footer' => true, 562 ) 563 ); 564 } 565 566 // deregister script.js from elementor editor 567 public function deregister_elementor_script() { 568 if ( array_key_exists( 'elementor-preview', $_GET ) ) { 569 wp_deregister_script( 'safelayout-safelayout-social-share-view-script' ); 570 } 246 571 } 247 572 … … 252 577 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-iconbox-elementor-widget.php'; 253 578 $widgets_manager->register( new \Safelayout_iconbox_elementor_widget() ); 579 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-socialprofiles-elementor-widget.php'; 580 $widgets_manager->register( new \Safelayout_socialprofiles_elementor_widget() ); 581 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-socialshare-elementor-widget.php'; 582 $widgets_manager->register( new \Safelayout_socialshare_elementor_widget() ); 254 583 } 255 584 … … 268 597 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-boxtext-elementor-control.php'; 269 598 $controls_manager->register( new \Safelayout_boxtext_elementor_control() ); 599 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-socialprofiles-elementor-control.php'; 600 $controls_manager->register( new \Safelayout_socialprofiles_elementor_control() ); 601 require_once SAFELAYOUT_ICONS_PATH . 'elementor/class-safelayout-socialshare-elementor-control.php'; 602 $controls_manager->register( new \Safelayout_socialshare_elementor_control() ); 270 603 } 271 604 … … 277 610 $this->load_ribbon_assets(); 278 611 $this->load_boxbutton_assets(); 612 $this->load_social_assets(); 279 613 } 280 614 … … 379 713 'safelayout-safelayout-box-button-editor-script', 380 714 SAFELAYOUT_ICONS_URL . 'build/box-button/index.js', 715 $asset['dependencies'], 716 $asset['version'], 717 array( 718 'in_footer' => true, 719 ) 720 ); 721 foreach ( $asset['dependencies'] as $dep ) { 722 wp_enqueue_style( $dep ); 723 } 724 } 725 726 // Add js & css file for social 727 public function load_social_assets() { 728 $asset = include SAFELAYOUT_ICONS_PATH . 'build/social-profiles/index.asset.php'; 729 wp_enqueue_script( 730 'safelayout-safelayout-social-profiles-editor-script', 731 SAFELAYOUT_ICONS_URL . 'build/social-profiles/index.js', 381 732 $asset['dependencies'], 382 733 $asset['version'], … … 461 812 $n1 = 'data-safelayout-mce-icon'; 462 813 if ( mb_strpos( (string) $wp_post->post_content, $n0 ) !== false || mb_strpos( (string) $wp_post->post_content, $n1 ) !== false ) { 463 wp_enqueue_style( 464 'safelayout-safelayout-icon-style', 465 SAFELAYOUT_ICONS_URL . 'build/icon/style-index.css', 466 array(), 467 SAFELAYOUT_ICONS_VERSION, 468 ); 469 } 470 } 814 $this->enqueue_icon_style(); 815 } 816 } 817 } 818 819 // Add icon block css file for frontend 820 public function enqueue_icon_style() { 821 wp_enqueue_style( 822 'safelayout-safelayout-icon-style', 823 SAFELAYOUT_ICONS_URL . 'build/icon/style-index.css', 824 array(), 825 SAFELAYOUT_ICONS_VERSION, 826 ); 471 827 } 472 828 … … 510 866 register_block_type( __DIR__ . '/build/box-ribbon' ); 511 867 register_block_type( __DIR__ . '/build/container' ); 868 register_block_type( __DIR__ . '/build/social-profiles' ); 869 register_block_type( __DIR__ . '/build/social-share' ); 512 870 } 513 871 … … 517 875 'safelayout' => array( 'label' => __( 'Safelayout', 'safelayout-elegant-icons' ) ), 518 876 'icons-icon-boxes' => array( 'label' => __( 'Icons and Icon Boxes', 'safelayout-elegant-icons' ) ), 877 'social-icons' => array( 'label' => __( 'Social Icons', 'safelayout-elegant-icons' ) ), 519 878 'text-boxes' => array( 'label' => __( 'Text Boxes', 'safelayout-elegant-icons' ) ), 520 879 ); … … 586 945 'slug' => 'light-text-box', 587 946 'file' => 'pattern015', 947 ), 948 array( 949 'slug' => 'social-icons-01', 950 'file' => 'pattern016', 951 ), 952 array( 953 'slug' => 'social-icons-02', 954 'file' => 'pattern017', 955 ), 956 array( 957 'slug' => 'social-icons-03', 958 'file' => 'pattern018', 959 ), 960 array( 961 'slug' => 'social-icons-04', 962 'file' => 'pattern019', 963 ), 964 array( 965 'slug' => 'social-icons-05', 966 'file' => 'pattern020', 588 967 ), 589 968 ); … … 649 1028 $rate = $this->get_rate_data(); 650 1029 $upgrade = $this->get_upgrade_data(); 651 if ( $upgrade < strtotime( '- 9day' ) ) {1030 if ( $upgrade < strtotime( '-12 day' ) ) { 652 1031 add_action( 'admin_notices', array( $this, 'show_upgrade_message' ), 0 ); 653 1032 add_action( 'wp_ajax_slei_icons_upgrade', array( $this, 'icons_upgrade_ajax_handler' ) ); 654 1033 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_for_rate_reminder' ) ); 655 } else if ( $ rate['later'] != 0 && $rate['later'] < strtotime( '-3day' ) ) {1034 } else if ( $upgrade < strtotime( '-1 day' ) && $rate['later'] != 0 && $rate['later'] < strtotime( '-4 day' ) ) { 656 1035 add_action( 'admin_notices', array( $this, 'show_rate_reminder' ), 0 ); 657 1036 add_action( 'wp_ajax_slei_icons_rate_reminder', array( $this, 'icons_rate_reminder_ajax_handler' ) ); … … 888 1267 } 889 1268 1269 wp_enqueue_script( 1270 'safelayout-pack-social-icons-script', 1271 SAFELAYOUT_ICONS_URL . 'packs/social-icons.js', 1272 array(), 1273 SAFELAYOUT_ICONS_VERSION, 1274 false 1275 ); 1276 890 1277 if ( ! $this->icons_list_key ) { 891 1278 $this->icons_list_key = true; … … 922 1309 public function admin_menu_page() { 923 1310 $packs = $this->get_packs(); 924 1311 $s_options = $this->get_social_share_options(); 1312 $allowed_html = Safelayout_elegant_icons::allowed_html( array(), 'post' ); 1313 1314 $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'general'; 1315 $general_class = 'nav-tab' . ( $active_tab == 'general' ? ' nav-tab-active' : '' ); 1316 $social_class = 'nav-tab' . ( $active_tab == 'social' ? ' nav-tab-active' : '' ); 925 1317 ?> 926 1318 <div class="wrap"> 927 1319 <h2><?php esc_html_e( 'Safelayout Elegant Icons Options', 'safelayout-elegant-icons' ); ?></h2> 928 1320 <?php settings_errors( 'safelayout-elegant-icons' ); ?> 1321 1322 <h2 class="nav-tab-wrapper"> 1323 <a href="?page=safelayout-elegant-icons&tab=general" class="<?php echo $general_class; ?>"><?php esc_html_e( 'General', 'safelayout-elegant-icons' ); ?></a> 1324 <a href="?page=safelayout-elegant-icons&tab=social" class="<?php echo $social_class; ?>"><?php esc_html_e( 'Social Share', 'safelayout-elegant-icons' ); ?></a> 1325 </h2> 929 1326 <div id="sl-ei-packs-settings"> 930 1327 <form method="post" action="options.php"> 931 <?php settings_fields( 'safelayout_icons_packs_group' ); ?> 932 <input type="hidden" name="safelayout-elegant-icons-validate-key" value="true"> 933 <div> 934 <table class="sl-ei-packs-table"> 935 <caption><?php esc_html_e( 'Safelayout Elegant Icons Installed Packs', 'safelayout-elegant-icons' ); ?></caption> 936 <thead> 937 <tr> 938 <th><?php esc_html_e( 'No.', 'safelayout-elegant-icons' ); ?></th> 939 <th><?php esc_html_e( 'Pack Name', 'safelayout-elegant-icons' ); ?></th> 940 <th><?php esc_html_e( 'Pack Status', 'safelayout-elegant-icons' ); ?></th> 941 </tr> 942 </thead> 943 <tbody> 944 <?php 945 foreach ( $packs['icons'] as $index => $pack ) { 946 echo '<tr><td>' . esc_html( $index + 1 ) . '</td><td>' . esc_html( $pack['name'] ) . 947 '</td><td><input type="checkbox" name="safelayout_icons_packs[safelayout-' . 948 esc_html( $pack['file_name'] ) . ']" value="yes" ' . 949 checked( esc_attr( $pack['active'] ), 'yes', false ) . ' id="safelayout-' . 950 esc_html( $pack['file_name'] ) . '"><label for="safelayout-' . esc_html( $pack['file_name'] ) . 951 '">' . esc_html__( 'Active', 'safelayout-elegant-icons' ) . '</label></td></tr>'; 952 } 953 ?> 954 </tbody> 955 </table> 1328 <?php if( $active_tab == "general" ): ?> 1329 <?php settings_fields( 'safelayout_icons_packs_group_1' ); ?> 1330 <input type="hidden" name="safelayout-elegant-icons-validate-key" value="true"> 1331 <div> 1332 <table class="sl-ei-packs-table"> 1333 <caption><?php esc_html_e( 'Safelayout Elegant Icons Installed Packs', 'safelayout-elegant-icons' ); ?></caption> 1334 <thead> 1335 <tr> 1336 <th><?php esc_html_e( 'No.', 'safelayout-elegant-icons' ); ?></th> 1337 <th><?php esc_html_e( 'Pack Name', 'safelayout-elegant-icons' ); ?></th> 1338 <th><?php esc_html_e( 'Pack Status', 'safelayout-elegant-icons' ); ?></th> 1339 </tr> 1340 </thead> 1341 <tbody> 1342 <?php 1343 foreach ( $packs['icons'] as $index => $pack ) { 1344 echo '<tr><td>' . esc_html( $index + 1 ) . '</td><td>' . esc_html( $pack['name'] ) . 1345 '</td><td><input type="checkbox" name="safelayout_icons_packs[safelayout-' . 1346 esc_html( $pack['file_name'] ) . ']" value="yes" ' . 1347 checked( esc_attr( $pack['active'] ), 'yes', false ) . ' id="safelayout-' . 1348 esc_html( $pack['file_name'] ) . '"><label for="safelayout-' . esc_html( $pack['file_name'] ) . 1349 '">' . esc_html__( 'Active', 'safelayout-elegant-icons' ) . '</label></td></tr>'; 1350 } 1351 ?> 1352 </tbody> 1353 </table> 1354 </div> 1355 <div style="height: 50px;"> 1356 <?php submit_button( esc_html__( 'Save Changes', 'safelayout-elegant-icons' ), 'primary', 'submit', false ); ?> 1357 </div> 1358 <?php elseif( $active_tab == "social" ): ?> 1359 <?php settings_fields( 'safelayout_icons_packs_group_2' ); ?> 1360 <h3><?php esc_html_e( 'Safelayout Social Share Options', 'safelayout-elegant-icons' ); ?></h3> 1361 <input type="hidden" name="safelayout_icons_social_options[validate-key]" value="true"> 1362 <div> 1363 <table class="form-table" role="presentation"> 1364 <tbody> 1365 <tr> 1366 <th scope="row"><?php esc_html_e( 'Enable Social', 'safelayout-elegant-icons' ); ?></th> 1367 <td> 1368 <input type="checkbox" name="safelayout_icons_social_options[enable_social]" id="enable_social" value="enable"<?php if ( 'enable' == $s_options['enable_social'] ) echo ' checked="checked"'; ?> > 1369 <label for="enable_social"><strong><?php esc_html_e( 'Enable Social Share Icons.', 'safelayout-elegant-icons' ); ?></strong></label> 1370 </td> 1371 </tr> 1372 <tr> 1373 <th scope="row"><?php esc_html_e( 'Social share title', 'safelayout-elegant-icons' ); ?></th> 1374 <td> 1375 <input type="text" style="width: 500px" name="safelayout_icons_social_options[s_title]" id="s_title" value="<?php echo esc_attr( $s_options['s_title'] ); ?>" placeholder="<?php esc_html_e( 'Share:', 'safelayout-elegant-icons' ); ?>" > 1376 </td> 1377 </tr> 1378 <tr> 1379 <th scope="row"><?php esc_html_e( 'Social share icons', 'safelayout-elegant-icons' ); ?></th> 1380 <td> 1381 <div class="sl-ei-social-icon-container"><?php echo wp_kses( stripslashes( str_replace( '<a', '<div', str_replace( '</a', '</div', $s_options['s_code'] ) ) ), $allowed_html ); ?></div> 1382 <br><button class="button" id="sl-ei-social-edit" disabled><?php esc_html_e( 'Edit social icons', 'safelayout-elegant-icons' ); ?></button> 1383 <input class="sl-ei-social-attributes" type="hidden" name="safelayout_icons_social_options[s_attributes]" value="<?php echo htmlspecialchars( wp_kses( $s_options['s_attributes'], $allowed_html ) ); ?>"> 1384 <input class="sl-ei-social-code" type="hidden" name="safelayout_icons_social_options[s_code]" value="<?php echo htmlspecialchars( wp_kses( stripslashes( $s_options['s_code'] ), $allowed_html ) ); ?>"> 1385 </td> 1386 </tr> 1387 <tr> 1388 <th scope="row"><?php esc_html_e( 'Hide on mobile', 'safelayout-elegant-icons' ); ?></th> 1389 <td> 1390 <input type="checkbox" name="safelayout_icons_social_options[hide_on_mobile]" id="hide_on_mobile" value="enable"<?php if ( $s_options['hide_on_mobile'] ) echo ' checked="checked"'; ?> > 1391 <label for="hide_on_mobile"><?php esc_html_e( 'Hide Social Share Icons on mobile.', 'safelayout-elegant-icons' ); ?></label><br><br> 1392 </td> 1393 </tr> 1394 <tr> 1395 <th scope="row"><?php esc_html_e( 'Mobile Social share', 'safelayout-elegant-icons' ); ?></th> 1396 <td> 1397 <input type="checkbox" name="safelayout_icons_social_options[special_on_mobile]" id="special_on_mobile" value="enable"<?php if ( $s_options['special_on_mobile'] ) echo ' checked="checked"'; ?> > 1398 <label for="special_on_mobile"><?php esc_html_e( 'Special Social Share Icons for mobile.', 'safelayout-elegant-icons' ); ?></label><br><br> 1399 <div id="sl-ei-social-icon-box" style="display: none;"> 1400 <label for="s_title_mobile"><?php esc_html_e( 'Social share title for mobile: ', 'safelayout-elegant-icons' ); ?></label> 1401 <input type="text" style="width: 500px" name="safelayout_icons_social_options[s_title_mobile]" id="s_title_mobile" value="<?php echo esc_attr( $s_options['s_title_mobile'] ); ?>" placeholder="<?php esc_html_e( 'Share:', 'safelayout-elegant-icons' ); ?>" ><br><br> 1402 <div class="sl-ei-social-icon-container"><?php echo wp_kses( stripslashes( str_replace( '<a', '<div', str_replace( '</a', '</div', $s_options['s_code_mobile'] ) ) ), $allowed_html ); ?></div> 1403 <br><button class="button" id="sl-ei-social-edit-mobile" disabled><?php esc_html_e( 'Edit mobile social icons', 'safelayout-elegant-icons' ); ?></button> 1404 <input class="sl-ei-social-attributes" type="hidden" name="safelayout_icons_social_options[s_attributes_mobile]" value="<?php echo htmlspecialchars( wp_kses( $s_options['s_attributes_mobile'], $allowed_html ) ); ?>"> 1405 <input class="sl-ei-social-code" type="hidden" name="safelayout_icons_social_options[s_code_mobile]" value="<?php echo htmlspecialchars( wp_kses( stripslashes( $s_options['s_code_mobile'] ), $allowed_html ) ); ?>"> 1406 <div> 1407 </td> 1408 </tr> 1409 <tr> 1410 <th scope="row"><?php esc_html_e( 'Display on', 'safelayout-elegant-icons' ); ?></th> 1411 <td> 1412 <input type="checkbox" name="safelayout_icons_social_options[display_on_post]" id="display_on_post" value="enable"<?php if ( $s_options['display_on_post'] ) echo ' checked="checked"'; ?> > 1413 <label for="display_on_post"><?php printf( esc_html__( 'Display at the %1$s of posts.', 'safelayout-elegant-icons' ), $this->print_social_placement( 'display_on_post_place', $s_options['display_on_post_place'] ) ); ?></label><br><br> 1414 <input type="checkbox" name="safelayout_icons_social_options[display_on_page]" id="display_on_page" value="enable"<?php if ( $s_options['display_on_page'] ) echo ' checked="checked"'; ?> > 1415 <label for="display_on_page"><?php printf( esc_html__( 'Display at the %1$s of pages.', 'safelayout-elegant-icons' ), $this->print_social_placement( 'display_on_page_place', $s_options['display_on_page_place'] ) ); ?></label><br><br> 1416 <input type="checkbox" name="safelayout_icons_social_options[display_on_front]" id="display_on_front" value="enable"<?php if ( $s_options['display_on_front'] ) echo ' checked="checked"'; ?> > 1417 <label for="display_on_front"><?php printf( esc_html__( 'Display at the %1$s of posts on the front page.', 'safelayout-elegant-icons' ), $this->print_social_placement( 'display_on_front_place', $s_options['display_on_front_place'] ) ); ?></label><br><br> 1418 <input type="checkbox" name="safelayout_icons_social_options[display_on_search]" id="display_on_search" value="enable"<?php if ( $s_options['display_on_search'] ) echo ' checked="checked"'; ?> > 1419 <label for="display_on_search"><?php printf( esc_html__( 'Display at the %1$s of posts on search pages.', 'safelayout-elegant-icons' ), $this->print_social_placement( 'display_on_search_place', $s_options['display_on_search_place'] ) ); ?></label><br><br> 1420 <input type="checkbox" name="safelayout_icons_social_options[display_on_archive]" id="display_on_archive" value="enable"<?php if ( $s_options['display_on_archive'] ) echo ' checked="checked"'; ?> > 1421 <label for="display_on_archive"><?php printf( esc_html__( 'Display at the %1$s of posts on archive pages.', 'safelayout-elegant-icons' ), $this->print_social_placement( 'display_on_archive_place', $s_options['display_on_archive_place'] ) ); ?></label><br><br> 1422 <input type="checkbox" name="safelayout_icons_social_options[display_on_woo]" id="display_on_woo" value="enable"<?php if ( $s_options['display_on_woo'] ) echo ' checked="checked"'; ?> > 1423 <label for="display_on_woo"><?php echo esc_html__( 'Display on Woocommerce product pages after product', 'safelayout-elegant-icons' ) . $this->print_social_placement_woo( 'display_on_woo_place', $s_options['display_on_woo_place'] ); ?></label><br><br> 1424 </td> 1425 </tr> 1426 <tr> 1427 <th scope="row"><?php esc_html_e( 'Exclude page/post', 'safelayout-elegant-icons' ); ?></th> 1428 <td> 1429 <input type="checkbox" name="safelayout_icons_social_options[exclude_IDs]" id="exclude_IDs" value="enable"<?php if ( $s_options['exclude_IDs'] ) echo ' checked="checked"'; ?> > 1430 <label for="exclude_IDs"><?php esc_html_e( 'Exclude specific posts/pages ( Select from the list ).', 'safelayout-elegant-icons' ); ?></label><br> 1431 <input type="hidden" id="exclude_IDs_value" name="safelayout_icons_social_options[exclude_IDs_value]" value="<?php echo esc_attr( $s_options['exclude_IDs_value'] ); ?>" > 1432 <div class="sl-ei-exclude-social-select" id="exclude_IDs_select"> 1433 <?php 1434 $pages = $this->get_page_list(); 1435 $count = 0; 1436 foreach ( $pages as $page ) { 1437 $key = $this->check_list( esc_attr( $s_options['exclude_IDs_value'] ), esc_html( $page[0] ) ); 1438 echo '<input class="sl-ei-exclude-list-id" type="checkbox" id="specific_exclude_id_list_' . esc_html( $count ) . 1439 '" value="' . esc_html( $page[0] ) . '" ' . checked( esc_attr( $key ), true, false ) . 1440 ' /><label' . ( $key ? ' class="sl-ei-list-selected"' : '' ) . ' for="specific_exclude_id_list_' . 1441 esc_html( $count++ ) . '" title="' . esc_html( $page[1] ) . '">' . esc_html( $page[1] ) . '</label><br />'; 1442 } 1443 ?> 1444 </div> 1445 </td> 1446 </tr> 1447 </tbody> 1448 </table> 1449 </div> 1450 <div style="height: 50px;margin-top:40px"> 1451 <?php submit_button( esc_html__( 'Save Changes', 'safelayout-elegant-icons' ), 'primary', 'submit_btn', false ); ?> 1452 <span style="margin: 15px;"></span> 1453 <?php submit_button( esc_html__( 'Restore Defaults', 'safelayout-elegant-icons' ), 'delete', 'delete_btn', false ); ?> 1454 </div> 1455 <?php endif; ?> 1456 </form> 1457 <div id="sl-ei-social-modal"> 1458 <div class="sl-ei-social-window"> 1459 <div class="sl-ei-social-header"><?php esc_html_e( 'Edit Social Share (Safelayout)', 'safelayout-elegant-icons' ); ?></div> 1460 <div id="sl-ei-social-body" social-helper-id="not set yet"> 1461 </div> 1462 <div class="sl-ei-social-footer"> 1463 <a id="sl-ei-social-submit" class="button"><?php esc_html_e( 'OK', 'safelayout-elegant-icons' ); ?></a> 1464 <a id="sl-ei-social-cancel" class="button"><?php esc_html_e( 'Cancel', 'safelayout-elegant-icons' ); ?></a> 1465 </div> 956 1466 </div> 957 <div style="height: 50px;"> 958 <?php submit_button( esc_html__( 'Save Changes', 'safelayout-elegant-icons' ), 'primary', 'submit', false ); ?> 959 </div> 960 </form> 1467 </div> 961 1468 </div> 962 1469 </div> … … 964 1471 } 965 1472 1473 // Return list of all posts and pages 1474 public function get_page_list() { 1475 $arr = []; 1476 $pages = get_pages( array( 'number' => 200 ) ); 1477 if ( is_array( $pages ) ) { 1478 foreach ($pages as $page) { 1479 $arr[] = [$page->ID , __( '[Page]', 'safelayout-elegant-icons' ) . ' ' . $page->post_title ]; 1480 } 1481 } 1482 1483 $posts = get_posts( array( 'numberposts' => 100 ) ); 1484 if ( is_array($posts) && !empty($posts) && gettype($posts[0]) === 'object') { 1485 foreach ($posts as $post) { 1486 $arr[] = [$post->ID , __( '[Post]', 'safelayout-elegant-icons' ) . ' ' . $post->post_title ]; 1487 } 1488 } 1489 1490 return $arr; 1491 } 1492 1493 // Return true if val is in list 1494 public function check_list( $list, $val ) { 1495 if ( trim($list) === '' ) { 1496 return false; 1497 } 1498 $arr = explode( ',', $list ); 1499 $arr = array_map('trim', $arr); 1500 return in_array( $val, $arr ); 1501 } 1502 1503 // print social placement html code 1504 public function print_social_placement( $id, $val ) { 1505 return '<select id="' . esc_html( $id ) . '" name="safelayout_icons_social_options[' . esc_html( $id ) . ']">' . 1506 '<option value="bottom"' . ( 'bottom' == $val ? ' selected="selected"' : '' ) . ' >bottom</option>' . 1507 '<option value="top"' . ( 'top' == $val ? ' selected="selected"' : '' ) . ' >top</option>' . 1508 '<option value="both"' . ( 'both' == $val ? ' selected="selected"' : '' ) . ' >top and bottom</option></select>'; 1509 } 1510 1511 // print social placement html code for Woocommerce 1512 public function print_social_placement_woo( $id, $val ) { 1513 return ' <select id="' . esc_html( $id ) . '" name="safelayout_icons_social_options[' . esc_html( $id ) . ']">' . 1514 '<option value="summary"' . ( 'summary' == $val ? ' selected="selected"' : '' ) . ' >summary</option>' . 1515 '<option value="content"' . ( 'content' == $val ? ' selected="selected"' : '' ) . ' >content</option></select>'; 1516 } 1517 966 1518 // Add settings fields 967 1519 public function add_settings_fields() { 968 1520 register_setting( 969 'safelayout_icons_packs_group ',1521 'safelayout_icons_packs_group_1', 970 1522 'safelayout_icons_packs', 971 1523 array( $this, 'option_sanitize' ) 972 1524 ); 973 } 974 975 // Add css file for settings page 1525 register_setting( 1526 'safelayout_icons_packs_group_2', 1527 'safelayout_icons_social_options', 1528 array( $this, 'option_sanitize_social' ) 1529 ); 1530 } 1531 1532 // Add js & css file for settings page 976 1533 public function enqueue_scripts( $hook ) { 977 1534 if ( ! $hook || $hook != $this->options_page_hook ) { … … 984 1541 SAFELAYOUT_ICONS_VERSION 985 1542 ); 1543 wp_enqueue_script( 1544 'safelayout-elegant-icons-script-admin', 1545 SAFELAYOUT_ICONS_URL . 'assets/js/safelayout-elegant-icons-admin.min.js', 1546 array( 'jquery' ), 1547 SAFELAYOUT_ICONS_VERSION, 1548 true 1549 ); 1550 $this->load_packs(); 1551 $this->load_mce_assets(); 1552 $this->load_social_assets(); 1553 } 1554 1555 // Sanitize options 1556 public function option_sanitize_social( $input ) { 1557 $allowed_html = Safelayout_elegant_icons::allowed_html( array(), 'post' ); 1558 $options = $this->get_social_share_options(); 1559 1560 //purge cache 1561 $this->purge_cache(); 1562 1563 $sanitary_values = array(); 1564 1565 $sanitary_values['version'] = SAFELAYOUT_ICONS_VERSION; 1566 // Restore Defaults 1567 if ( isset( $_POST["delete_btn"] ) ) { 1568 return $sanitary_values; 1569 } 1570 1571 if ( isset( $input['enable_social'] ) ) { 1572 $sanitary_values['enable_social'] = sanitize_text_field( $input['enable_social'] ); 1573 } else { 1574 $options['enable_social'] = ''; 1575 return $options; 1576 1577 } 1578 1579 if ( isset( $input['s_title'] ) ) { 1580 $sanitary_values['s_title'] = wp_kses( $input['s_title'], $allowed_html ); 1581 } 1582 1583 if ( isset( $input['s_attributes'] ) ) { 1584 $sanitary_values['s_attributes'] = wp_kses( htmlspecialchars_decode( $input['s_attributes'] ), $allowed_html ); 1585 } 1586 1587 if ( isset( $input['s_code'] ) ) { 1588 $sanitary_values['s_code'] = addslashes( wp_kses( htmlspecialchars_decode( $input['s_code'] ), $allowed_html ) ); 1589 } 1590 1591 if ( isset( $input['hide_on_mobile'] ) ) { 1592 $sanitary_values['hide_on_mobile'] = true; 1593 } else { 1594 $sanitary_values['hide_on_mobile'] = false; 1595 } 1596 1597 if ( isset( $input['special_on_mobile'] ) ) { 1598 $sanitary_values['special_on_mobile'] = true; 1599 } else { 1600 $sanitary_values['special_on_mobile'] = false; 1601 } 1602 1603 if ( isset( $input['s_title_mobile'] ) ) { 1604 $sanitary_values['s_title_mobile'] = wp_kses( $input['s_title_mobile'], $allowed_html ); 1605 } 1606 1607 if ( isset( $input['s_attributes_mobile'] ) ) { 1608 $sanitary_values['s_attributes_mobile'] = wp_kses( htmlspecialchars_decode( $input['s_attributes_mobile'] ), $allowed_html ); 1609 } 1610 1611 if ( isset( $input['s_code_mobile'] ) ) { 1612 $sanitary_values['s_code_mobile'] = addslashes( wp_kses( htmlspecialchars_decode( $input['s_code_mobile'] ), $allowed_html ) ); 1613 } 1614 1615 if ( isset( $input['exclude_IDs'] ) ) { 1616 $sanitary_values['exclude_IDs'] = true; 1617 } else { 1618 $sanitary_values['exclude_IDs'] = false; 1619 } 1620 1621 if ( isset( $input['exclude_IDs_value'] ) ) { 1622 $sanitary_values['exclude_IDs_value'] = sanitize_text_field( $input['exclude_IDs_value'] ); 1623 } 1624 1625 if ( isset( $input['display_on_post'] ) ) { 1626 $sanitary_values['display_on_post'] = true; 1627 } else { 1628 $sanitary_values['display_on_post'] = false; 1629 } 1630 1631 if ( isset( $input['display_on_post_place'] ) ) { 1632 $sanitary_values['display_on_post_place'] = sanitize_text_field( $input['display_on_post_place'] ); 1633 } 1634 1635 if ( isset( $input['display_on_page'] ) ) { 1636 $sanitary_values['display_on_page'] = true; 1637 } else { 1638 $sanitary_values['display_on_page'] = false; 1639 } 1640 1641 if ( isset( $input['display_on_page_place'] ) ) { 1642 $sanitary_values['display_on_page_place'] = sanitize_text_field( $input['display_on_page_place'] ); 1643 } 1644 1645 if ( isset( $input['display_on_front'] ) ) { 1646 $sanitary_values['display_on_front'] = true; 1647 } else { 1648 $sanitary_values['display_on_front'] = false; 1649 } 1650 1651 if ( isset( $input['display_on_front_place'] ) ) { 1652 $sanitary_values['display_on_front_place'] = sanitize_text_field( $input['display_on_front_place'] ); 1653 } 1654 1655 if ( isset( $input['display_on_search'] ) ) { 1656 $sanitary_values['display_on_search'] = true; 1657 } else { 1658 $sanitary_values['display_on_search'] = false; 1659 } 1660 1661 if ( isset( $input['display_on_search_place'] ) ) { 1662 $sanitary_values['display_on_search_place'] = sanitize_text_field( $input['display_on_search_place'] ); 1663 } 1664 1665 if ( isset( $input['display_on_archive'] ) ) { 1666 $sanitary_values['display_on_archive'] = true; 1667 } else { 1668 $sanitary_values['display_on_archive'] = false; 1669 } 1670 1671 if ( isset( $input['display_on_archive_place'] ) ) { 1672 $sanitary_values['display_on_archive_place'] = sanitize_text_field( $input['display_on_archive_place'] ); 1673 } 1674 1675 if ( isset( $input['display_on_woo'] ) ) { 1676 $sanitary_values['display_on_woo'] = true; 1677 } else { 1678 $sanitary_values['display_on_woo'] = false; 1679 } 1680 1681 if ( isset( $input['display_on_woo_place'] ) ) { 1682 $sanitary_values['display_on_woo_place'] = sanitize_text_field( $input['display_on_woo_place'] ); 1683 } 1684 1685 return $sanitary_values; 986 1686 } 987 1687 … … 1047 1747 /* index 007 */ '.sl-ei-container-block-effect007{border-radius:inherit;box-shadow:var(--sl-ei-box-effect-shadow);display:inherit;flex-direction:inherit;overflow:hidden;padding:15px 15px 10px;position:relative;text-align:center;width:inherit;z-index:1}.sl-ei-container-block-effect007:after,.sl-ei-container-block-effect007:before{background:var(--sl-ei-box-effect-color);border-radius:0 100px 100px 0;bottom:30px;content:"";left:0;position:absolute;top:100px;width:13px}.sl-ei-container-block-effect007:after{border-radius:100px 0 0 100px;left:auto;right:0}.sl-ei-container-block-effect007 .sl-ei-container-block-effect007-icon{aspect-ratio:1/1;background:var(--sl-ei-box-effect-color);border-radius:50%;box-shadow:6px 0 10px rgba(0,0,0,.3),0 0 0 12px #fff,0 0 10px 8px #000;display:inline-flex;height:-moz-fit-content;height:fit-content;margin:10px;padding:15px;position:relative}', 1048 1748 ); 1749 } 1750 1751 //purge cache 1752 public static function purge_cache() { 1753 if ( function_exists( 'w3tc_pgcache_flush' ) ) { // W3 Total Cache 1754 w3tc_pgcache_flush(); 1755 } else if ( function_exists( 'wp_cache_clean_cache' ) ) { // WP Super Cache 1756 global $file_prefix, $supercachedir; 1757 if ( empty( $supercachedir ) && function_exists( 'get_supercache_dir' ) ) { 1758 $supercachedir = get_supercache_dir(); 1759 } 1760 wp_cache_clean_cache( $file_prefix ); 1761 } else if ( class_exists( 'WpeCommon' ) ) { // WPEngine Cache 1762 //be extra careful, just in case 3rd party changes things on us 1763 if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) { 1764 WpeCommon::purge_memcached(); 1765 } 1766 if ( method_exists( 'WpeCommon', 'clear_maxcdn_cache' ) ) { 1767 WpeCommon::clear_maxcdn_cache(); 1768 } 1769 if ( method_exists( 'WpeCommon', 'purge_varnish_cache' ) ) { 1770 WpeCommon::purge_varnish_cache(); 1771 } 1772 } else if ( method_exists( 'WpFastestCache', 'deleteCache' ) && !empty( $wp_fastest_cache ) ) { // WP Fastest Cache 1773 $wp_fastest_cache->deleteCache( true ); 1774 } else if ( class_exists( '\Kinsta\Cache' ) && !empty( $kinsta_cache ) ) { // Kinsta Cache 1775 $kinsta_cache->kinsta_cache_purge->purge_complete_caches(); 1776 } else if ( class_exists( '\WPaaS\Cache' ) ) { // GoDaddy Cache 1777 ccfm_godaddy_purge(); 1778 } else if ( class_exists( 'WP_Optimize' ) && defined( 'WPO_PLUGIN_MAIN_PATH' ) ) { // WP Optimize Cache 1779 if ( !class_exists('WP_Optimize_Cache_Commands') ) { 1780 include_once(WPO_PLUGIN_MAIN_PATH . 'cache/class-cache-commands.php'); 1781 } 1782 1783 if ( class_exists( 'WP_Optimize_Cache_Commands' ) ) { 1784 $wpoptimize_cache_commands = new WP_Optimize_Cache_Commands(); 1785 $wpoptimize_cache_commands->purge_page_cache(); 1786 } 1787 } else if ( class_exists( 'Breeze_Admin' ) ) { // Breeze Cache 1788 do_action('breeze_clear_all_cache'); 1789 } else if ( defined( 'LSCWP_V' ) ) { // LiteSpeed Cache 1790 do_action( 'litespeed_purge_all' ); 1791 } else if ( function_exists( 'sg_cachepress_purge_cache' ) ) { // SiteGround SuperCacher 1792 sg_cachepress_purge_cache(); 1793 } else if ( class_exists( 'autoptimizeCache' ) ) { // Autoptimize 1794 autoptimizeCache::clearall(); 1795 } else if ( class_exists( 'Cache_Enabler' ) ) { // Cache Enabler 1796 Cache_Enabler::clear_total_cache(); 1797 } else if ( function_exists( 'rocket_clean_domain' ) ) { // WP Rocket 1798 rocket_clean_domain(); 1799 if ( function_exists( 'rocket_clean_minify' ) ) { 1800 rocket_clean_minify(); 1801 } 1802 } 1049 1803 } 1050 1804 … … 1145 1899 $tags['defs'] = array( 1146 1900 'id' => true, 1147 'key' => true,1148 1901 ); 1149 1902 … … 1169 1922 'offset' => true, 1170 1923 'stop-opacity' => true, 1171 'key' => true,1172 1924 ); 1173 1925 … … 1207 1959 'stroke' => true, 1208 1960 'stroke-width' => true, 1209 'key' => true,1210 1961 ); 1211 1962 … … 1220 1971 'stroke-width' => true, 1221 1972 'vector-effect' => true, 1222 'key' => true,1223 1973 ); 1224 1974 … … 1254 2004 $styles[] = 'display'; 1255 2005 $styles[] = 'text-shadow'; 1256 $styles[] = 'box-shadow';1257 2006 $styles[] = 'user-select'; 1258 $styles[] = 'color';1259 $styles[] = 'background';1260 $styles[] = 'border-color';1261 $styles[] = 'border-width';1262 $styles[] = 'border-style';1263 $styles[] = '--sl-ei-box-background-color';1264 $styles[] = '--sl-ei-box-back-shadow-color';1265 $styles[] = '--sl-ei-box-pattern-opacity';1266 $styles[] = '--sl-ei-box-anim-color';1267 $styles[] = '--sl-ei-box-vertical-align';1268 $styles[] = '--sl-ei-box-effect-color';1269 $styles[] = '--sl-ei-box-effect-color1';1270 $styles[] = '--sl-ei-box-effect-shadow';1271 $styles[] = '--sl-ei-box-effect-shadow1';1272 2007 return $styles; 1273 2008 } … … 1283 2018 } 1284 2019 1285 // Add allowed css for filter and transform2020 // Add allowed css for css value contains \ ( & } = or comments 1286 2021 public function attr_allow_css( $allow_css, $css_test_string ) { 1287 2022 if ( strpos( $css_test_string, 'filter' ) === false && 1288 strpos( $css_test_string, 'display' ) === false &&1289 2023 strpos( $css_test_string, 'text-shadow' ) === false && 1290 2024 strpos( $css_test_string, 'box-shadow' ) === false && … … 1292 2026 strpos( $css_test_string, 'color' ) === false && 1293 2027 strpos( $css_test_string, 'border' ) === false && 1294 strpos( $css_test_string, 'user-select' ) === false &&1295 2028 strpos( $css_test_string, '--sl' ) === false && 1296 2029 strpos( $css_test_string, 'transform' ) === false ) {
Note: See TracChangeset
for help on using the changeset viewer.