Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Gutenberg Blocks and Template Library by Otter |
Version | 1.5.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.5 to 1.5.6
- CHANGELOG.md +10 -0
- build/build.css +1 -1
- build/build.js +1 -1
- otter-blocks.php +2 -2
- readme.md +62 -10
- readme.txt +62 -10
- vendor/autoload.php +1 -1
- vendor/codeinwp/gutenberg-animation/CHANGELOG.md +5 -0
- vendor/codeinwp/gutenberg-animation/assets/css/style.css +95 -7
- vendor/codeinwp/gutenberg-animation/build/animate.js +1 -1
- vendor/codeinwp/gutenberg-animation/build/build.js +1 -1
- vendor/codeinwp/gutenberg-animation/class-gutenberg-animation.php +2 -0
- vendor/codeinwp/gutenberg-animation/load.php +1 -1
- vendor/codeinwp/gutenberg-blocks/CHANGELOG.md +9 -0
- vendor/codeinwp/gutenberg-blocks/build/blocks.js +1 -1
CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
2 |
|
3 |
- Dropped support for WordPress 5.4
|
1 |
+
##### [Version 1.5.6](https://github.com/Codeinwp/otter-blocks/compare/v1.5.5...v1.5.6) (2020-08-03)
|
2 |
+
|
3 |
+
- Button Group Improvements
|
4 |
+
- Fixed Caption field missing from Slider Block
|
5 |
+
- Image management in Slider & Gallery Block
|
6 |
+
- Fix issue with CSS inline loading twice
|
7 |
+
- Fix Posts Block offset bug
|
8 |
+
- Remove default font size from Posts Block
|
9 |
+
- Improve Animation Picker
|
10 |
+
|
11 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
12 |
|
13 |
- Dropped support for WordPress 5.4
|
build/build.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
*{box-sizing:inherit}.settings_page_otter{background:#f6f6f6;font-size:14px;position:relative;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}#wpcontent{padding-left:0}.auto-fold #wpcontent{padding-left:0}#otter .otter-header{padding:20px 10px;background-color:#ffffff;box-shadow:0 1px 0 rgba(213,213,213,0.5),0 1px 2px #eee}#otter .otter-header.onboarding .otter-container .otter-logo{justify-content:center}#otter .otter-header .otter-container{margin:0 auto;max-width:100%;max-width:750px}#otter .otter-header .otter-container .otter-logo{display:flex;align-items:center}#otter .otter-header .otter-container .otter-logo img{max-width:200px}#otter .otter-header .otter-container .otter-logo .version{background-color:#e5e5e5;border-radius:3px;font-size:0.8em;font-weight:400;margin-left:10px;padding:2px 7px}#otter .otter-main{margin-left:auto;margin-right:auto;max-width:750px}#otter .otter-main .components-panel__body{margin:25px 0;background:#fff;border:1px solid #e2e4e7}#otter .otter-main .components-panel__body .components-panel__body-toggle{border-bottom:1px solid #d6e2ed}#otter .otter-main .components-panel__body .components-panel__row{padding:10px;margin:0}#otter .otter-main .components-panel__body .components-panel__row:first-of-type{padding-top:20px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control .components-base-control__field{display:flex;align-items:center;margin-bottom:10px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field{width:100%}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field{display:block}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .components-base-control__label{font-weight:600;margin-bottom:10px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input{border:1px solid #b7c9d9;border-radius:3px;font-size:14px;padding:9px 15px;width:100%;box-shadow:none;height:40px;margin:0 0 10px 0;color:#444}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input:disabled{background:#f6f6f6;border-color:#eeeeee;color:#bbbbbb}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input:focus{border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-group{display:flex;align-items:center;margin:2px 0 15px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-group .is-primary{padding:2px 20px;font-size:14px;margin-right:10px}#otter .otter-main .components-panel__body .otter-info{padding:0 10px 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU4AAAFeCAYAAADqhfbyAAAgAElEQVR4nO2deXgU553nf31Iat1CCCEDAnFjxGmDYkNshK84kzAm9kwSJtkJfjwzfibJZMhsZtYzu/sY7x+7efZ5ZofM7G6eZCcTPBMPdg4HjHEcB3PZHBY2IIw4xCUhJITQ1TpbUqt7n1+pClr9VldXdVV1v2/V7/M8/QBvNVJVH9/63S8QBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBOF6CIIgCIIgCMJ+PLy+xtFolFkjnE1HQ10JAKwCAOVPpEp+gLy+0uSLcDjm72cAoFd+4N+hvLrmEPM/iIzh8fApUSScRNrpaKirjRHEWosE0UqCspA2yQ8U06by6pom+rSkFxJOg5BwOgNZJGtlC7KKM4E0iiKoh5Q/y6tresW6BLEg4TQICad4dDTUVcWIZK3gIqmXZllID8lCSlaphZBwGoSEk3/kmKRiUW4GgDluf00AoF4W0d0ULzUPCadBSDj5RLYqN8uPDW5/PZKArv3uGCElt94gJJwGIeHkh46GOnS9t5JVaZo9ALCzvLpmt+DXkTZIOA1CwplZZMtyG4mlLSiW6I7y6pozDrw+yyDhNAgJZ/qRY5Zb5YcbEjs8gMmlHbIlSq58HCScBiHhTB9yyRCK5Tfccs0colih2ykzfw8SToOQcNpLjHW5jVxx7thTXl2z2e0vAnAsnH5mhXA0cuxyuxy7LKZ3m0uojIlzyOJ0CbI7jtblM25/LTiHrM0YyOIkMoIsmNup5lIIgnL4hOAcEk6HQoIpJNsosy4G5Ko7DBJMYTlcXl1T6/YXIR5y1QlbIcEUGkMuutzJVRvzwBKmHcwTCdsgi1NwYrLkVIMpLq9iAXzM2SvDnBViBzwnakzA4SJbndaJRHWcBiHh1Eauw8Qs+cuaTyTcxityK6cjYqUknAYh4UxMR0PdVrlNj+owCTWwjXOzE6xPEk6DkHCyyLGtHRTHJHTySnl1zXaRXywSToOQcN6D3HLCBPWy9Slk/zsJp0FIOCeQs+U7qZ+cMEFQThwJNweUhNMgbhdO2cpEN+svmYMEkRo/KK+u2SbSa0d1nIRuyMokbKKEXlhr8DrhIpxER0MdJn8OkmgSFhOU4+SEBZDFyQlyxnynRoEzd/R0dsLls2dhaGAQbre2Sac3NDgIodCIoVMtnVoq/ZkTCMCMOZWQV1gIy9auZZ5HmGIr9cFbB8U4OYD3ukxFIK9fugx9wSCEw+MwbFAcU8Hn9UJ2dhYUFhVAWXk5zJo/jwQ1NZTp8lUq//sQzyVLlBwyiBuEU04A7eCtXfLcyZNw5dx5uHP7NgwNhWA8EmGek0lyAzmSmM6qqoKV6x6GKWVlXJ2fgLxaXl3D5Tg7Ek6DOF04eXLNmxsb4cKp09DS1AwDg8PCvfZZfj+UT58GDz++EWYvWsQcJ3SB9Z61vLnzJJwGcbJw8uCaBzs74eq5s3DhdD3c7g4CCPxy45cr1++BbJ8HsrKzYUZVFcxevBgWrlzFPJfQhDvxJOE0iFOFU86aZ6Q2MzQ8BFfr6+HiqU8g2N1zdz0a9cDIeARC4xGhBDRWMNVAEa1avAgWPfAATK+kIgWdcCWeJJwGcZpwyvHM3ZnoM7/d0gznjp+AtqYmGBsdZY4riCKgyQRTjeLSKbDkgQeh+qGHVY4ScXAjniScBnGScGYqnnm5/gxcPHkS7rS3M8e0QAEdCo/D2Dhn74EHIODzQsCf+scWrdCFK1bAqg0bIJCbxxwn7sKFeJJwGsQpwimL5qF0xjMbThyHT0+cgKGBAeaYEUbHozA0xkdGPcvngTy/Dzweaz4XJKC6yLh4knAaxAnCKSeBfsocsIkbjZfg5P7fTYpfmqF/JALjGX4ffOiWZ3nBb1OPGwloUjIqniScBhFdONMpmpghP7L714Zdci1C4SiEwpm1NgN+c265EVBAH3j0UYqBqpMx8SThNIjIwtnRULczHUXtmCU/c/gwnP/4Y+aYGbDevW903O7TTwhamXnZXjCQ+7GMaRUVUPO5pygLz1JfXl2T9vouEk6DiCqc6RJNdMuPvfOO6TimGgOjEQhH2NcfP8QoZn6vRzqu9hyzWB3LTJWla9bAQ09/PqPnwCFp7zAi4TSIiMKZLtE88e5vLLcyY1E8dAwrejVii8PhKIxY5c57APL8XkMlRnaDJUyf3bSJrM/JpHWmJwmnQUQSznT1nGMsc//PX7cs+WMFlmTePQCF2b6MuObJoNinKs+XV9fsVDtgNSScBhFFOGXRPGR3jSa65od379YsYM8EWPMZHA2nXDCP8cz8LK+mZcsDC5cvg0ee+RLfJ5leVqdjF00SToOIIJzpEk2sy/xo/35mnQcSxUP1gKJZkJ35eKZeMHH05Ne+RmVLE+Couiq7M+28CidNgDeH7aKJ8UxeRROtTUwUTZQNTTz03opFE00Ey732/fRfpGoGQmroOOTWl4EszhRJRyLo/Z+/IY18Ewns0uzHUiaNtw+tiCLBRDOWvIIC2Pjcs5Q0msDWZBG56gbhWThJNLXRTBhxnAgyAiaNntryVRLPCb5k19bD5Ko7BBLN5GBJUU6CHkksORJdNBFM0r2363Vy2yfY2dFQp7Yth2NR/3QTqsizNG0VTYxpiiyaCjj2DeOfsWBxO091mmZB8aSYp0SxPP3LNZBw6kTuPbd1ADFmz+0sbE83BdleyM/2SUmjwhyfVHbkNLCmFsWTgA0dDXXcbvpmNSScOkjHwA4cNsxr9twMqJU4qMNBhiYDiieGVwh4WR6j6HhoX/UkyB+EHdrPMge6ehgvs5qCwgIoK5sCxVOKIa8gD6ZMnQI5OTl3f0t7WzuMjY5Bb08Quu50Q0+3uNtu5+YGoHRqCZSVl0nXiteODwW8VuTO7U7o6+2H7q4eCIfDzM9JFQyvoMdAHUaSy+548aSsugZywPuM3UOI9/7z/7NsJNyU0hKYXTULZs6ZOUkk9TAyMgKtza1wo+mmECLq9/thVuV9MHv+HJhaVsocT0ZLUwvcunkLbrd3WiKilGm/yytW7dVO5UgGybRwpqsr6NShA3Dmw6PMulFQMJcsWwQVMyosOS+00C6ea+RSQFEwq+bPhkVLFxq+OaiBN4zG85eh6eoN0wKKg0Ge++a3mXUXMre8uqbJ7GWTcBqEA+HEurRnmAMWgnFNdNHN9J+ji7pq7QrLBDMetMoa6i/A8HCIOZYJquZWwtJVSy0RzHhQQOtP1kPrTXPWP/W1Sxwur66pZVYNQsJpkEwKp5wdfJk5YCEY19z9ox+Zmqdpp4jEYpWgmMHuG0QseLM48/GnpqzPzzzxBMU7LZiiRMJpkEwJZ0dD3WYA+DVzwEKsGA+38oFlMG/RPGbdTq41XoP6U+fS+juR8unTYM26B2y/QcQy0D8Ax4/USX+mComn+UEgJJwGyYRwpmNHSrPj4TC+t3bdA2mxvNTo6uyGY4dOWJqR1mLmrAqo+WyNxjPsAy3tI/uPmhJPctvNJYpIOA2SbuG0OxmErvnJ934Llz81Z7E9/GhNxkRTIV3iuXTZYli8bDGznk6sEE9MGK194kmYvSiz15JBUk4UkXAaJAPCaUsPOrrlZ49+AE2XGk0PIc6Ee54Iu8WTp2u1QjxBnue5ZO1aWLjSFTXisaS8VxEJp0HSKZx2dAahS15/5Ihl9ZkLFs+D5auXMeuZxC7xzKR7nggrr9Wle7lvLK+uMTy/k4TTIOkSTjuK3K3eTA1rNGufepRZ5wGs98QkilXwKJoKVifHXDbXM6XyJBorxy+7rRRNLGi3UjQxGbTm4QeYdV7AeOtSi+KQ2CK5cq2t/QamwNABZvitAkvRXDSaDoeAmK7r5AVXC6dcr2nZNxXjmVZ0AcWyaMn8ST3XPIIJHLOCgjcITHyls+QoFbAsCs/VKjDufXTvXq6v2UIcMz3JtcIplx5ZWuT+8YH3mTUzoGBmOqusFxQULFJPlVVrlnN/g0BQ2KtXLGHWzYADQvCm6wIcY3W62eK0fPDqnbY2Zs0My1cvtfoUbQMFBTt7UgGt1cqqSmGuFV12MzcJNa6eO6uy6kgcYXW6UjitdtEVzLRPxoMJoUzXaxoFzxfbQI0gxXDX8RvDTUSqN4lE9HTcSXDEcWxwwjYbrhNOO1x0O8BJRyKCvfNGYoDoovMe11QDbxJWhhaG+vqYNQcjvNXpRouT+71RRLQ2FSSXfc1yZl0NvE6RXPR45i+0znDKKypi1hzMN0S3Ol0lnHa56ApY2GwF8xfNtesU0wKKIXb+aIGi+fCGz2g8g3+sjHVOKbeuzEkQUuok4gXXCKd8h7Nt43xkRpX5myh+EUW2whRQVJ78wmNSQXusuGAiCEUVC/pFdNHjmTl7BrOWCvOXWRszFQBbv4t246Y9h3bavQXGmsceN721r1VfRB7AGCCvXUBWMXdBFVy5dM3UT7tvzhwoLitj1h1OMbY6m53XmSlcIZxy7dgG5oDF4Id/6Zo1pjqH8ItoB0OhUWhq74brrZ1QUpgPs8qLYU6F8X16RAGv90LzbWjvDErXu2j2NJhWYn2dKN4cMOyQ6hYjGN7Z+Ad/wKy7hK2i7sfuFoszbW/OQ09/HsZGQimNj4vfmdEKUEDeOX4eTl9ip3oV5gXg9x9dBUurxExEqYHX++aherjQ1Drp6DvHAGZMmwJfXL/c8hsGbo6XinAqveouGvQRj1SaZMXeROnG8TFOOSGU1ikKOLj2iS9/WRojZoTZc2Zaeh4oIj/69RFV0UT6h0Lw2rsn4OjZ68wxEVGuN140Fdru9MDOfcegub2bOWaGmQbfN7Qy0TPZ/OKLtCOmoEkiRwunPJw4I0FoHFq76U/+FB7ZtIk5loiyCmszq2hpdgaTF+W/c6zecjHJBD/ddzzp9Y6OhSXxRJG1Ckxy6fUUcKjxf/ib/yR5Ji62NGMh4eSQHXYnhJIxOjyc5BkTYOY5lb3BE3G+qT2hpanG/rqLKqvi8MmlFsmi1AOKJ7rzVlIxo1zXT8vOFr+SwGLmyE0pQuFY4ZTLjyyf6G6U/l59sa/SqSXMmhkOfnLJ0P++1tZhqRWmcKd3QBLx2IcdXLhu7OeiO4/nZhUzKvVVQwxa2JbrIISzOp2cHOKirQsTRXooK7euHAXFSa/1FQtm3VNNFKGrf6XlDtzq6oPg4JCu34/JqcL8XKiqmAoVZcVw/5zpkBdIrYkAf6dRfnviAnz96bUp/b540FvAVtNkE+KtnGfgIDaLVtfpSOGUy48ybm0ivXf0jQsrv0+fq6cHPdZmdpYfZk0rhYqpRTB3ZhlUVZQaFi10j9HSu9p6W3J/jYLJKXzEiixmvpfMroAVC2caKh/61nMbJPG+2RGEW11BaGnvTBrvnLA677esTKmwqEBXdh0HF1N8cxKSu15eXXOGOcIpTrU4hRoigPFNq8qQElmbilBW3TcVFlROS7kkB93bw6evQMO1mymJZTLw3PFx4JMLMG9GOTy8Yp5uKxivKfa6lFrO621dcKWlXRLpeCy1OqeV6hLOjpYWN+94mYitIlmdjhPOdBW766W3O3m2urCokFlLlVhrE13hBZUVsHRuhelaTRRMFJlEpT52gHFXfKAVuvHBxYavAS3oBxdXSg/lGs5eboWLN+7dXPB6zjdVWlLLOm16mekuIhcjlLvuRIuTK2tTz5bARSXWCCfWY/YPDsPqxVWw9v7ZlhR6o9V28JNGOPbpFeZYukCRw3pTswXs6JI/vnax9MDrOt3YCmcu34DjZ69ZIpxTpk5h1tTo13EzdSFzRCqGd5Rw8mZt6qVkijUVU+tXzJUeVoFu/1tHzqi6uMmYNrUUAjnZEBoZhTtd1ggFCuiPdx+BdcsXwBfWa09fSgZao1a/XljPqSdBpLfSwoVslksIucdpFidXZQ24t7oe8gryM32qDL88eEZ3HWhRQT4sXjgPFi2YC3PnVMKMiokKgcarN+Bf/u3nzPPNgtZv4412ePFLj6achbcLvQkiQpVaEs40w0vdZipYWfhuBfuOntMlmsvvXwSP166HRfNnM8fOnL0IO19/E0ZHx5hjVoAZc2yv/O6WJzh4xe6RlxeAniQGds8d12yTYZRnRDlRJ1mcQo7jt3rTL7NgAkUrnpmdnQUPr1kFn3+qFooK1Etq9h86Dm++/R6zbjUonhjXtdLdNktuvvprEkt4ZIRZIybAcFt5dc0h3l8ORwin3JPOnbXZdi15hjXAmXDWNSS2NNHC/NpXnkkomMhPX3sTTp7+lFm3i7qGq1wJp1XxaheD7joJZ5oQdpo0unY80dTepXo2GMf88xe2MOsKfQND8Nobe+DTC+YGORtFzxCTdJKVnZX0t1HbpSZC7LvuFOEUdv8SPa4dDxRr1JqiaP79P/3Esuy5yOjZd4raLjURYuCH8MKJ4/fTPW9TL4Mcbfnqz52cuY9ExiGis48eud3ZJQlkvJvOo2h6s7LAH8gHX04u+AOTzzccGoLxkWEIhwYhMmZ94oq3RJ+AFIvQfukEi5Nba3Owl219jCc7K7lrlwooHjlFpZCVXwy+7NyEPyEcGoCxgSCMDgYlIcE+cbWWTcyOo0C++PyWSeVGr/18T0ZFs6x4olUVrzc7vxiyi0o1r9cfuNfaitc+3NUO4eFB5nlERkGrk4TTLuQSJOEK3mMpLrU4meD1Qv60mZBdqM/yQSHBR27ZTBgfHYYHRr3w4dnLqn3oKJD/8x9/DIvnTyRj0h3PVGPlknmQP71S9/XGgtddOHOBJKCDd1oNWeBmwRpf6ldPCPfuuujzOIXeYtRqsgtLoGRudUoigqClNm/pcvji5x5jjimg5YmCyYNoTiudAs/94ZdSvl4FFNDiysXS62cFvJWYCQgJp81wnRQaSmFGZKqg1ZU/fQ54PObf0idqH4a1q5cz6zyBLZ3/8Tt/YvFrOEd6Hc3CW4mZgHDvRQornB0NdZszvS1GMoYG0xM7S9VV1eL5rz0r1W3yiCSaf/ECk6iyAnwdc8vu4/K63QTv22mIbHFyX4IUjjBLloNfcqtFUwHrNjess2ZWpVXYKZoKgZJyy9z2RFw4LczM3kxRxfPJCSmccqcQ932t4UiUWbOSrIIi6UtuJ1959vfg2S8+ldbXLRGVMypsF02FvPJKKVNvF700CCQZXFucombVNzMrbsPrlTLh6QBjnrMrZ0qTjvoGMlO6g5YvirhV7HnnAIRCIVi9cpnqkBKMFeeWVsDg7RbmWDLGVCoSYhm3937qFLi2OEk4beLcyZOyxemx5RfkTpkGPj/bpXL0o9NQ90k9hEIj8Ld/9SJzPFVQXP7ue9+En/zrz+HytWb7X0AZbPX86rNfhFUrljDHzPDbAx9I//vwsZNSIuy5Z55mLFkMgQx3txsulB/o1+4MipJw6oGE00pEcdOH+vuZNTWC3UGomGF8+nhOnIuOHTx2ixoKy3e/uVUaGff6m2/bbn2ilak1hckMKMjK+eNQkqYbraphgJziMhjuvGXp7x63OYTjECg5ZDHCuOl6YpyjKbT9YeIituxIaXuMFc2F8+zrQkXr7/vbvwefe+wRacyc1WA2/79871uSa25XPBOt2FiwuB9fQ3wtY8nKS9yjnyoRyZ2n0XJJ4LpiRkRXXaj4ZiQihSMTEk5h0G/8l/n//PjfJrU9opi98MdfZv6fEbCdEutQy8vL7rZYxvPM7z0GGx99COo+rof9h46askDxnLEj6ZkvPJnw9ymgxQuygKcK/l8U6NhCfnwN0WpHq1pBq31Tjfa2dpXVyaDF2d9HbZ7JkEuSuCw/EEo4RXHTYwlHo5CtEecMBvW59LH4cu/1W2OSoyXuy4qDhs1YavEzNTGrjgkiNfD34DF8oKAdP3kaLl29rnvyO1rGy5cuhpo1K5Oec/xAEbOlSSjS8R1QaLXjdcSKMg5I0dvPPqbjutETsS9f7yjsrQkzgWgWpxCz+mJJlkENDRvvj1aSQigkBz88wRx/ZF0Ns6aXtvZOZhAxWpOJhDMWFBtFcNBiPV1/Tkq+xIOW3oplS2B59WJDonfwyIlJljX+/TfvHUo5246WLQp3fFwYX9NUrdneniCzFgtl1A3BbYJIw4nkEmHc9LbmiTKWcJJvyvBwCEZS3EoBhSTessNax2SurhYdHZ3M0VRccMzCJxK0h9euhvWfWW3YUsTyoXja2juYNSPUPLiSeTYKKd5AUqGvV9uDSPZ5ICZBwmkRwgjniPwlH49GIRpN7KojHbdS+/Kfqm9g1uZVmeu1RksrPuFTmULW3w5mzWRbIdHNNwNavWqcv3j57moknHxvfIX+Pm3hHKOMuiMQxlWXA8VCbugyFolAti+xeKJ7V5mC4KnNwVy8YB6zFg+6+OjiXmtqkYQ2vuTnmy98/e6cTXRlzSaarAKt1Jutt+D02fPST1y9YikTQlDqWAM5OQl34IwFrzu2NEmhq/veTFK9dZxYvzmcJPQSlos4o5E09OOKD7cWp0gxTuHimwpoZWgJZ3tbByxfzSwnJBqNQP2n6mPd8nRsxYFZeCWhhH+igMYWy6PYvPK3f8H8Px5A9z9RCABF87VfvHX335ik+pvv/FnS0AVuCxIvnEoIYGxQO2YZSzLPYQy1UjY4k3UXERLkqluA0MKpBVoqRuKc4aHE7mAyCwtjd/FZ+Ph/iwpamrFg/PeDY3UpXQ12XiGjA/p7yjtV4sOTzmf8npU5Tu1DQiOScApVhjSJqGxtaNDa3Jr4YBxaX+b4Au54zCSO3AZa9qOD+veNup0koUTxTecghHDiJvXMomDEWhtq3Gq9rbKqDn6Z8UutxrVrN1RWJxM/Z9PqocUo3lgLqRSqx9N8s006hiVLVrLxsw9N+mmY5Eq1NKukuAhGejsmOhh00NLUAuFwYvc71k0nxEeUGKcQW4ZqMTYehajfAx6P+ren4/YdyWUvKCxgjjFEIlA5Vb0VEEUpWQ0iztncf+i4lACZWjqFSbDoAUXvRkur9DMwRgoGXH5lwEYsmKDBWGPF9GmQlxuQklzz5s02VLKE173tz5+X6kdBrmdNZmGjyKudd0lxIQz33GHWE3HrpnY/e7IbJ6EKt997UYRTOItzbIwtYUmWXb9+pQmWr17GrKvhG+2HwoJ86I9LahyvOyW1QibDqFgqBe0okmpCYxZMzuBD+dlK4Tx2B1WUl8HC+VW6uoswxpsszhsLtouqUVWWr9vaxPh0683ErwmWo5GbnhLcVtGQcNpEfx87WmwkrJ1db73Rpls48Uu9cNZ0OHXx2qRlFB9sw9QjnsnALPXZcxcNtVBaDZZE4QNbI998+z2ppnTpkoVSj7zZASBobWJXVDy4ZfOSWfqn6jeev8ysxYI3THLTnQX3wilvASxk/WY8yewXrAG81ngN5i1KXouJrFkyixFOkFsG71+8wJDlpaDUeGKtZKaGFmuBFik+0N3HWC12IaXaHvnaG3tUr3H+TGNT9fGGpwXeMAlnIYLFKXx8U8IDUJCdPBfXeOGKbuGcU1EKM6ZNgbY7PZPW0Tr8vz/5GWz96rO6RQXLlPbs+x0z9IJnlG2K0Qr9/BMbDAnoD3+yK+G1fu6h+5m1ROCNTqvoHfedotIj50HCmSZyfV7Q8NLvYtTq/PLjD8KO1/cz6yieP/7XNySrTGtUm+KOJxKRZGRn+aGspBCmlxZDbrYfKsqKITdnomVzWkmB9FDjTu+A9EB6+oaht38Q2rv6oG9wCDqDbJhDC7RA8VpRQB9dXyN1GCUCbxBvvPk2M9hD4f6qmQnPWQ280WkxQkkhRyKCcApfiuT3eiDHr38LDSNWJ37Jf2/dSnjnmHqSI9Yqi+1jx84YzMAbjV2WFRdAZUUZzJ0xFWZPn2JIZOLPW+v/nm9qh1t3gtB0qwtu3umGUR2dNiig2Dm09zfvw+KF82DRgrmQnzsxT3NweDjpDaIwLwDP1rJDPxLx6elzmtYmhjbHNIZ6BDs7obhM/YZG8I0Iwsn13iNJ8QDk+Y2Vy+KX8dK5S7B4mfoAinjWr5gL19s64UJT4iJ6JTaYCiiWKxZUwoqFxqwxMyytqpAeCp9caoEL19vhauvtpCKKcUscjRc/Hk8LtJy3PFUDeQF2Hyc1MJPelKQOdTiJtRns7iLhFBSuhVMeXGzfHhBpIODz3p0Aj8aHEu7ygvZk+MaLV6FqYRXk5OQwx9T4+tNrYd/RXDj2qbbrqBcUkup5s2DD6gVpE0stHlxcKT2Qo2evw5nLN5jYbqrgtW79wjopZqyX+pP1mgXvVILkbHi3OIWPb4bCEQipfL88Hg8U5yRWTvxSfnzsFKzfqL/e8gvrl0kxxrc/rNfl2qqBIrJmSRVsfHCRbusr3aCFjQ905w9+csmUgKI1/ezGBwyJJm6PoVW3CUpsM4lujqY4h9VFqAeiOYB34RTbTdcgGo3C6Lh2XSd2E2Ern5GRc2iV3T9nOhz8pBE+vtikW0D1CGZzezfseq8O+odCKQmOEX558AycvtR01/L9g43sPVRx51FA3zpyRjovvSjXizcbI6CLfubkWc3/gdZmaHycWY+n+452bzsBh3h9CRJ/azMMCktHQ912AHiZ13NMBO6p/ru33pGuQYtkVifi9/vhqU2P63bZ48HY4PW2LrjdHWQsMyxlwmw4JnoUN1iLV37y9iQhRvH56689lVBoU+Vn755k4rWYAEMrUws9cdB5M8phSdV9sHrRzJTOu+7DuqTWZigclTyNZNxXMQ22fPtbSZ7lWr5bXl2zA78jPMK7xSlkRv3gvt8mFU3QaXWiy3788EdQ+9SjzDE9xMYGzYBWXbwY4b9/9Osj8Ki0LAsAABuNSURBVOKXHrVMPPcdPceIJoLlSsmIvdbYcickP5Bt2jrGMrFkoqnX2kRutd+B0x9+CKs/+1nmmIvBAaiby6truLU2QdB91bnmjR/+CMY0kgbxjGqUqyj0dPfC6Y9OM+vpJFGCCGsuUTzRjTcLWpqJklsBg/u34/kqrjw+zIpmV2c3NCSY9hSL0fbKI+8dgJ5OctljqOVdNEEA4dzArHAMuuitrdpTclKl6XqLZPFkChSi1YvVQ84onjv3HYP3T15ijukBRfcfdu1XtTRBrq98eLm2m24nGNc8duiEZhY9VcYjEdj377sydm2c8Xx5dQ2X+6jHI9r2wFyDLroRsnweyM/Sf++qP3UO8gryoCJDm6dhgkYtVgqy237gkwtw8sJ1eGTVYl0xRIxJnrnUAtfaEm85YbS+0mpQNI/sP6pbNDHs4vX4YGBsXLfl2dHRBXUHDkDNY+YHswjMD8qra3aKcvqJg2sZ5va5jzC+eZDX84sHXXQj1mZellcztpkITBatq30IppbZk81OxlBoVHLN9bRFKsknbMWMBVsr9XQDpVJfaSWKaOKcVKNgBKZ/VL94+rxe+OPvfBOmuLMgvr68uoYtm5ATqDxCwmkB6KK/t2ef7h+Uqmgq8CCebx6qT+haW0GmRRM5evC4VBKWKhjuHByL6B7yUV4+Fb7+HT43ybMRTAatKq+uaVL7FbwKJ88xTtU7EI8YcdHNiibImXaMuWHCIhOg24ydSo89eL8kcFaDliqWOWVSNLHsyIxogtwZVpDtA5/OLz+67JhldxnbE4kmz/AsnCXMCocYyaJbIZoKmRZP5PG1i+Gbz9VKtZFWIA3Z2PggfOu5DRmNaf5u34GkZUd6wa1SjIjnh/uFiU5ZwWGs1RTxxKkcyQTNjY3QpnNwhpWiqaCIZ4u8508mwGz7C7+/Dv5s86PSSLZULFDsQsIC95f++GlLak5TxUxMUwsj4jkWHodf/fNPmHWHsk3Uy+I5q869q/7Oz3+lq9DdDtFUkHraT5yGsdEx3aPo7ADd6jlPT7jWmC1v7wxCU3uXNLYuNpGEVmVhfi4U5+fB3BllsGj2tIQ1oukExfL4kTrLRVNBEc++0fGkn5nm5hbppjxn0SLmmIN4RZTSIzV4Tg4d4rmO89Bbe+FU3SfMejx2imY8VXMrYbXGEF9CHQx32FWnGY/ebHt+XgBe/LuXmHWHgAkhLRcdE8NnyqtrtlHLpYPATo/6j5N38mCdZrpEE+Qi+aGhEKxZ90DKve1uA5sKsD42XeDHoTDbl1Q8B4dCcPTdd2H9008zxxxAsY4ZFL3MCkdQjDMF3vvFr6SODy1w6ruR4narwEzwwXcPZzRpJAqYOU+naCr4dA63/vhYnZvbMbl240k4DYKxp2SF7pgEyM/yMevpAifIo+uZyRZNnsE4ppWZ81RATySQRDzx5ow3aZfCdYmS9juXWbiMb2JCSBMPSJYmJgMyCcbr0JrCIu4RGph7F7yZHPztEduSQEYI+D2SZ6JFa9st6WbtQkg4nQImhIZD2iJUkOXT3BIj3Siue3uK+w05Bbx54E0EbybpSALpBT0TzQRIFODdX77JLDsdGivnIJIlhND1SuJ9ZQR03bHUBkfTudH6xJsG3jzMdgLZAZYmRbWyRHKiCIeAuAj1LVs5goRTJ9ghpJUQQpcrYGAL4EyAWXc3WZ94k8CbBd40tLbxzSRDYX3zOz86cpRZczDct2CScOoAM5taHUKeDCeDjOAW6xO7qd7b+750s+CVkXAUwjp3wsSOon0/e41ZdyjcF8ZTHacOcNCsVrcHD8kgo6Cg3Gy5BavWLDe0GRzvYNLn4+OnpKn5PIPOS7J91+NpvHQF1nV2umH0HE2AFx3MaOLUmkTwGtfUg9Kueeg9PrLMZvn09DkpY867aCKjkSj4PR6pSQI/Q7GPRODN2yXlSWRxis6Bt95OeAVYr8l7XFMPKDRY14gtm0tXLRWu6wjd8ob6C9zGMdWY+Nyof3Y84IXhBLtkYsiovaUFKiqd4yXE0VxeXcP9nS/x7U08glafMWYye3r7mHWFvGxnGezovmNc8NK51PYOSjfYHYXWMlrNIolmMnI06jvR6vzNG79g1h0E9246cG5x7pFN9t4Y071JbehpR0MdTlLSrhVKgU+OfZTwP+X6vZDGNvS0ge77+XOX4PrVZli1dkXG9jfSAsMK5+vPZ7Tzx26wJbMvwb5FeDN38PQkIYST26++VjImno6GOhTWlcwBE6C1+eGBI6o/AK2BAodZm4mYUloCS5Yt4kJAsQqg8fxlaLp6g6sidrvArHsil31KSRE8/72/YtYdwOrYcXOazQEZRPgYZ0dD3TarRROSWZsZGN6RKTD+ieVLM2dVwNKVS6GgMDOzMzF80HjxqisEUwFd9rGIR7VkCa3Oy5+ehYXLVzDHBCZI2wOngY6GOtzoe7vVvwmtzUStlQGHuujJQLcYH+kWUOwtb7xwxVExTCNoueyH973rNOHczaxwiugW5055tp+lJLI2PQ7JopshVkBXrl1pWwbe7YKpgHMPAj4vhFRc9r6BIWg4eRKq165ljgmKEPFNEFk4ZRfd8glKWtZmJuZr8gqK5+32TqiaPxsWLV1omYCSYLLgzXpk3KMa9z/+/kESzgwgpHDKWXTLXXTQsDaxUFmjNtmVYLzxyqVrUrLGrIBi//ynp887ohDfDvCmPYBT4+NwkNVZr1YxwyvCCWdHQ12JXS56QmtTmtjtA9VAE2FKQFEwL55rFKLbJ5PgTRtv3mPj7GfwxMHDThBOYaxNENTi3GlHFh00rE2MMYnWi54JjAgoCaZxcn1eGIuwiaJg34AT6jqFSQyBaHWcHQ11KJrfYA5YQKK6TUwIFeeQj54Kfr+fEVASTHOEwlHVRJHgdZ1YhlTCrFIdpzlk93yHXaIJGtYmJYRSJ9YCnVV5HwSD/SSYJkmUKMK6ToF72IWyNkGEXnU5EXTITtFEN0cttokdQpQQMg8KKPbBk2haQ26CkriDe95i1gSBhNNKOhrqtss96LbENBUSTUByU4cQIQ64Q6aaC9t+u1PE7YTRTSfhtJhau38BWptqE5Awg+nGDiGCfzDOqZYDwLUDu/cw65wjnGiCADHOJru3CT7x/kFmDeQMJqGfaNQD4zFf5kg0Ciot1nfBe5IvZnQaGlB0o0oO5oXUkkMKN2+0MmucQ8JpA7YXxKrtJYT96Dxt8csLWEKIYjgeubdXThjFUkMgU0GZRYl/KgKLQ6PdXhKGN6eBMe0hJ7ih4Pu/+hU8/txzzDEOEdJNBwGEE5NCLzOrFvHu62+wLo8HIEeyNt39JcU9cVAUxyJR6e/jKq6hXdwV5TiTFeN6aJVOJO3cl7gbTDDsI57GC43wOLPKJUKKJrjd4rx88TKz5tZid7RmxiIRSSilHWvTKJR6wXMKRycLKgpoFoqow2PS+J6ojZdTAytEBBk5t4NZEQSu79ly76rlW2Ig506ehLH42Y53rU13gJYkDsvtH4lAcCQMQ2MRqaWPR9FMBIoJDvvtHxmH4EgEhsNRUOlKFBq8qQ2OqcQ1ZetbLcN+fP8BZo0zmkWZvamGCAXwZ+xIEJ08/AGz5gZrU7EsR8f17+ktCij4eCMYCU+49Vi2k+P1OCJeXZTtS/jZxBtgX9wAkK7uIISGhyCQm8c8nxOEtTZBkM3aLG/+x1q33mD/5EWHW5v45UKrJTg6YVk6TTTjmRDRiCQoA6MTNwpRQcFMJJogz+zMiotT4PUf2rOXeS5H7BT2DRHI4rSUj/a/z7ijTrU2lfIVpwulFmG5CmA47JG6brK8znuvpQEg45OtzmuNV5jnccKrImwBrIUIJpblwskkhRxobaJgoqWFMxzdLJqx4M1ySLa6sYjcSahZnaHRMSlJxCFCW5sggnDKCaJm5kCKYKdQfFIox0HWZoQEMznRCStcLd8iMmpNGx8dPMysZRgcWCzU7E012FeaTyyzOj9497fMWk6Czf9FApM+aEX1kWDqYqKMSYATNQBanf64z3JXZw9vpyl0UkhBlI+OZXeo+A8SujeiZ13DclZVqxWPiMEzsXukEwnEXRd2Eh19911erhRLkIR300GgCfCWCCfWbuIHKRY190YkEg221UtpbjYsKsqXtwbRT9PAMDT3D0ntl3aQ6nmd7x2A20Mh0CpF9YEHRvG8Y1427IxS/g9OxRK1mN4vW52xXkfjufOw/umnmedmAEeIJoginFgo29FQh3HOOcxBA5w5fmLSk/0C1/hJfcuj46ZaIVeWFcHvV05l1vWwvrwQekbD8KOLrTA2bq2la8V5/fDCzYSijq/ZuEZyqH90HPKzfMK68li/GiucTOldZgg6xU0HgVx1sMLqjHfT490aUcCSRMwMmxHN3CxfyuKkMCXbDw+WWbtnHlqaVpzXstJCZl03UYBBKfQhZqw4fl6nVNP5VsZrOneIXoIUi2uEM95Nxw+WiLqJhdxoEZmdQTItV30TNaM8OUN1q5iUKciyxgl6ZLp5QccQiGqrowAE4mIN1xvZuQxpxjHWJggmnKYmqcS76Ym2H+AZFE2sQ6RdipODVqcVYO++iOKZjbH7mI94ht114Qve4xFGOOUXPuWitEluugek7hGRuCuaRNoRUTyxLjnLO9ldx51cM8T2zL0S9iCas5qS1RnvpotW8I5JcxLNzCKieMbH8BvPNTDPSQM/kJtYHIUrhPPKufOT/i1SwTsmggbGxpl1Iv2geI4IlDBShj4rZGCX0aATrU0QqI5TAu9cHQ119UZ3vbzV2nb37yKVIGHJ0ZCBRBBmyleWFlmesEnGf109N8kzMoOe87o+OAJH2nvhRt8Qc0wNnP3p8/qESSzGliaNhcelluM5ixYxz7MJR2XSYxGxHsdwEW3snunZAlU2h8YjukuOsIzne8tmp100RWdufg58Y/502FRVrvtK0APAm5oISJ/3mFM9V3cyXWftqLrNeEQUTkPu+qT6NY84whmWprPri6nhZmZ/NG86s07oZ9WUfKjID+h7fhRgKCxO+CR28ld72y3muE1sd6q1CSIKpxxo1p1dv9l0Ly4t0ui4YQOJCKzJtKr8xs0sLSnQffVj4xN7M4lAbEy/r38wHWeMPemOtTZBUIsTjLjr/X0Dd/8uSlIIS4+MdAVl0x7wloDtmkYQZagKxvR9cicRliVhlYnNbM3sFduPqN+43Xo3cVPim/jBESUpNOywIbtOJRwRyOqMafhovtTIHLeQw06Yt5kMIYVTjp0kjXXGFvzmCNIphOWmGIeVavAcvN2tUxixeMCJXcQ2fHS037bzVzne2gSBLU7Qk7G7fulef64onUJ4mtgOigkfaq3kn4ntlPm/w0mdRHJidGDAtjjnK04sdldDWOGU92SuZw7E0Bec8OYn9p4WR4Um9tGmondRGIuIYXUqsXCs58Stgy2m2cnlR/GInlXQfKOGhkLSnzmCjUGSRJOsTWEYSzD3kzek+aKycXw2buiNBWx1cvlRPEILpzyGP2GSSOpP94BQA2mxCom3PYPwnLpGoo7b3MwqRNqxRBn80XLtOnPMBHvckBCKxQl1LKpWp5IYyhKsL503Fx1zH12jERiJRKU/STxZ4vfo5xnFXR/st2zMXNAtCaFYnCKcjNXZ3XFH+lOkGsdhzmZtoh50j0VBMYDxz96xqOZ+Pm5FFKtTcdcHB4eZYyniKhddQXjhlN80piA+2NMrnJvOmyD1h6NM/A7/3U91pkKDXtjwyIgVl4AuuqkB46LilJYTxl3v7uoWyk0HeRMxXkAXfSCBQOL6KCX9hUXywqJgNrPuShddwRHCKdeOvRq/Tq2IqZPMqkwkqgT/KO66ycz6Zje66ApOUpZJA1Ox1dLvEcvi9HByvmhtDo1rC2MoEgVBmmYIFUx6Yz9wWxY9HscIp2x1vqL8W7Sid5AndvNASGc5lN7nuQHB7tGScKZYkoRNJ46c6m4Ep/myUoYdp1yLFt8Ejr58IzrjlyGKc95FoPnYEtiCHB4LM+tJCLo1ix6Po4RTfkN3dHd0CCmcvIQWxnQmqfQ+z+n4RDM35d71kmL980dltsmtzq7HcdmT8uqa7VNKp9wWbPdfCT8nZkuS8OZdnOapN/aHmDU9iPhZQ0aHDGXVX5U79VwPOFE4kVtNTf+bWRQASTdplJxwuKB6A+Oa25hVF+PI/RYunDr1IbMoCLk+r1Rkjt5frAs4MTSXXGPuEKzJIgWCbi89UsOpG9VUMSuCgAOXc1TMzv4REk0eETGWbpDNbpmxaQSn3iuFFU41QmFjexAR6SPX2W76d91er5kIaq3hHEzUiLIpmNvAieqiJoZ08KrTd6o0g1PfdsfcJYdGSTR5xcHWZn15dY1r+9D1QBYnxwyTi84tuJmeQ61NzKDXMqvEJEg4OYYqk/gEqx0CguyaahDKoOuEhJNj8MspYlcKT3j8AWvPxgOQl+2Mr01eUVHsP1E0aymDrg+nCqdj3vyCbB+JZ4p4AsUA+VPBk5Vn2c/M83uF60tPRP5k4dxM7ZT6caRwvrRrr2OEE3uKSTyNI1maOXIvdm4JgNd8yXJelheynaKak3meyo6M4WRXndmHSFQU8fQ7v9jaIrwTYqng8YAn9t9G8UxY/k4TzRnz5oEsmtSDbhAnC6ej3I4J8fRKtYOENp6cfACvb/Jz/Dkpuexo6RdKNy3mkPD0d3e/TKKZGiScgpGf5ZVcRkq5J8ILkFOofixQxCxpgTepiTCJxpMEZuMLf/nfnHll9uNk4XRsdhBdxqIsct3VkKzNRPFgr09flt0zEc/Em5RouwgYoF6YM+UQpw75AKdanApYfI2u++g47v1D3UV3yc5nlpjjYfW5m72jYcnKzPP7nCyYCpRBN4FjLc6Xdu11RZYQrc/B8Bj89HIbnOkZZI67Cl8WG9uMJyvAfOx7R8fhF80d8FFHt9OtzFgoi24CJ1ucyGEA2MCsOpCBcBg+aO+Cy32D8OR9U6EkO4mAOBC9xe4efzZEZavzg44gnOlyTAGGEUg4TeD0zqHdzIrDaR8Kwb9dbZUEwXX4c/RdsS8L2ofH4LVr7W4VzWYn1TpnAqdbnK69q6IgtA+PwKZZZRBw/tYOE/iymSU1jrR3wpn22ypHXANZmyZx9DfqpV17MQDezBxwCWh9vnqlTbKuXEGibLpMKByGX1+84HbRBDd6YlbjBlPE1R+S0UgE9ty47fzEUZKWShTNXzY0QEuv6wf/BF/atZeE0yRuEE7XT7FG8cTEkaPF05M4GaaIZvewoe1wnQp1ClmA44VTDoIfZg64EBTPi33DrrpwEk0G1xsSVuCWeZz0YZE5fKvLPTFPAPjNlcskmvc4TNl0a3CFcMoxHdcmiWJBt/39W13MuhP5qLWVYpqT2c6sECnhpgnw9KGR6R4ZdXydZ+/ICJxua2XWXcxht3TTpQPXCOdLu/bupMEG9zjf0w+hcef2uB+70Qyj4+PMuoshw8FC3Lbn0DZmxaWgy17fM+DIi8eE0JUud4QjdPIqWZvW4irhlD88rzIHXMqVPmcmTS52djJrLiZIBoP1uHGXy21O2lbDDBjrdCJt/X2OvK4U2f7Srr2UIbMY1wmn/CHazBxwKU0D6rMpRWZg1Jk3hBTY89KuvVSKZwOu3Fdddtl/wBwgCOeA5Xdb6f20B1cKJ0yI5zbqKCIcCoaiNpOLbh+uFU6ZzW4vUQr4Evd4E8KyTZ4MRtiEq4UzJt7pymRRttcLFblZzLrolOYa3wbYQTwv1ywTNuJ2i1MZAlLrRvGsLHCmwCwrL2fWXAKJZppwvXDCvYHHtW7rZ19a7EzhrCgogIJsfdPgHQSJZhoh4ZSRxXOVW2KeFXkBqCrQt7mZiKybPcex16YCiWaaIeGMQY55ouW5hznoIDC2iTthOpklZWVQWVLi6GuUw0urSTTTj/YmLRkkGs3s3tbf37IJhyK8zBxwAE/OnAZLinITXkjbsP7hHzNyObn3+nLAU1A2acnhQ4zr5ZIjR8/X9CTZRypTkHBq8P0tm2rlrQYc4/c9UjEVVk3JZ9ZjcYpwgjxe7vWz9U6blPQDuQ7Z8fAqnOSqayB3GK1yymAQPaLpNEpycmDz/Ush2xn1qpi83OgW0eQZsjh1Irr1aUQ0nWRxKqDl+fbFiyK77a/gFjBu6wYiV90gvAmnghz7xDt+MXOQQzAR9LmZZYYy6E4UTpBjnrgHkWDbaeyRO4FcuVcQCadBeBVOmBDPElk8uRZQLDnaNKsMAj5j4uZU4VTAvYg+arnBrHPGYXkknKsHEJNwGoRn4VSQBXSrLKDcuPBoZa6aWgSfKStijunB6cKJ3Gpvgg86eqB9iLuxeq/Kgkm7UZJwGkcE4Yzl+1s2bZVFdANzMI0snVII66cVG7YyY3GDcEaDExu5nekZhNOdQRgIh5nnpJFmOX6+kwRzMiScBhFNOBW+v2VTlTw4BEV0JfMEG0ALc0FxPjxYWgQl2eazx24STgUU0Iae/nROxcfiddy2ere8fTWhAgmnQUQVzlhiRHSzHZZoQSDw8bIZ02YvD/imBaIRy95LNwqnwq2IZ/xMz2B3U1ePJzw+rv8H6qNZFstDJJb6IOE0iBOEMx65pKlWrg2tMmiRooWC/fSYLDgT/8Xr+9n/+h+egYE/9HZ3zYNw2NT76jbhjBYUDEdKp56N5gT+oXjLd95Q1r+/ZdMq+f2qTeH9QpFsUt4v+T0jN9wgJJwGcaJwqiEnmFapHLqL0cyqIqKevuAcTyjkZ56QBDcI57h/pD2an38impv398Vf+faHzBMSIHsRVepHJZpIIK2DhNMgbhFOuwnu+seveEZCX/X0BWu9vb26pl44UzjHw5EsX2s0J+vtwhf++tvMYYJLSDgNQsJpD8F/37HNMxza7BnsX+kdGChWc+uFF0787HijIxG/t52EUmxIOA1CwpkeJIt0bPRJz8jIgzA8VIVi2tY/qvtzkWnhjAYC4WggMAC5BZc84GuNZmXtKtz63V8yTySEhITTICScmeP2v//T+kjnnS2RkdFHIRIpCg8Nz/R4PJ6RkTGm1iktwun3RyIFBX3g9fZHc/OvQZb/StTvP1f8R9toz3CHQ8JpEBJOfrn94//+SiQUmgo+f25+IHv+vRONlnsGB+4zdOI+fygayL0U8zPaorm5dfg37+DggcI//c9nmf9DuAZehZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgXA9BEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEHYDAP8foCS4yIPsF/8AAAAASUVORK5CYII=);background-size:100px;background-repeat:no-repeat;background-position:bottom right}#otter .otter-main .components-panel__body .otter-info h2{font-weight:300;margin-bottom:10px}#otter .otter-main .components-panel__body .otter-info p{margin:0 0 1.5em 0}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group{display:flex}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary{padding:2px 20px;font-size:14px}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default:first-child,#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary:first-child{margin-right:15px}#otter .otter-footer{text-align:center;color:#72777c;font-style:italic;border-top:1px #e1e1e1 solid;border-bottom:1px #e1e1e1 solid;padding:20px;margin:2rem 0 1.5rem}#otter .otter-footer .otter-container{margin:0 auto}#otter .components-placeholder{background:#f6f6f6;margin-top:25vh;margin-bottom:25vh}#otter .components-placeholder .components-placeholder__fieldset{justify-content:center}.otter-onboarding-modal{max-width:350px}.otter-onboarding-modal .components-modal__header{text-align:center}.otter-onboarding-modal .components-modal__header h1{width:100%}.otter-onboarding-modal .otter-onboarding-modal-content{text-align:center;margin:10px 0 15px}.otter-onboarding-modal .otter-onboarding-modal-action{text-align:center;margin:10px 0}.otter-onboarding-modal .otter-onboarding-modal-action .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-button-control{display:flex;flex:1;justify-content:space-between;align-items:center}.otter-button-control .components-base-control_labels .components-base-control__label{font-weight:600;margin-bottom:10px}.otter-button-control .otter-button-control-group .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-modal-actions{display:flex;justify-content:flex-end;margin-top:10px}.otter-modal-actions .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-modal-actions .components-button:last-child{margin:0}.components-modal__screen-overlay{background-color:rgba(0,0,0,0.5)}.react-joyride__tooltip{font-size:13px !important}.react-joyride__tooltip>div{text-align:left !important}.react-joyride__tooltip div:nth-of-type(2){margin-top:5px !important}.react-joyride__tooltip button{text-decoration:underline}.react-joyride__beacon span:first-child{background-color:#00739c !important}.react-joyride__beacon span:last-child{background-color:rgba(26,129,165,0.4) !important;border:2px solid #00739c !important}.react-joyride__tooltip button[data-action="primary"]{background:#0085ba !important;border-color:#006a95 #00648c #00648c !important;box-shadow:inset 0 -1px 0 #00648c !important;color:#fff !important;text-decoration:none !important;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82 !important;padding:2px 20px !important;height:auto !important;line-height:28px !important;font-size:14px !important}.react-joyride__tooltip button[data-action="back"]{color:#23282d !important;font-size:14px !important}.react-notification-root .notification-container-bottom-left{bottom:40px}.react-notification-root .notification-container-mobile-bottom{bottom:60px}@media (min-width: 782px){.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:-32px}}@media (max-width: 782px){#otter .otter-header .otter-container .otter-logo{justify-content:center}#otter .otter-info{background-image:none !important}.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:-44px}}@media (max-width: 600px){.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:0}}.branch-5-2 #otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-field-button-group .is-primary,.branch-5-3 #otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-field-button-group .is-primary{height:auto}.branch-5-2 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,.branch-5-2 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary,.branch-5-3 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,.branch-5-3 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary{height:auto}.branch-5-2 .otter-onboarding-modal .otter-onboarding-modal-action .components-button,.branch-5-3 .otter-onboarding-modal .otter-onboarding-modal-action .components-button{height:auto}
|
2 |
|
3 |
.notification-container-bottom-center,.notification-container-bottom-left,.notification-container-bottom-right,.notification-container-center,.notification-container-top-center,.notification-container-top-left,.notification-container-top-right{width:325px;position:absolute;pointer-events:all}.notification-container-bottom-center,.notification-container-center,.notification-container-top-center{display:flex;justify-content:center;align-items:center;flex-direction:column;left:calc(50% - 162.5px)}.notification-container-center{top:20px;height:100%;pointer-events:none}.notification-container-center .center-inner{width:325px;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:all}.notification-container-top-center{top:20px}.notification-container-bottom-center{bottom:20px}.notification-container-top-left{left:20px;top:20px}.notification-container-top-right{right:20px;top:20px}.notification-container-bottom-left{left:20px;bottom:20px}.notification-container-bottom-right{bottom:20px;right:20px}.notification-container-mobile-bottom,.notification-container-mobile-top{pointer-events:all;position:absolute}.notification-container-mobile-top{right:20px;left:20px;top:20px}.notification-container-mobile-bottom{right:20px;left:20px;bottom:20px;margin-bottom:-15px}.notification-default{border-left:8px solid #0562c7}.notification-default,.notification-default .timer{background-color:#007bff}.notification-default .timer-filler{background-color:#fff}.notification-default .notification-close{background-color:#007bff}.notification-success{border-left:8px solid #1f8838}.notification-success,.notification-success .timer{background-color:#28a745}.notification-success .timer-filler{background-color:#fff}.notification-success .notification-close{background-color:#28a745}.notification-danger{border-left:8px solid #bd1120}.notification-danger,.notification-danger .timer{background-color:#dc3545}.notification-danger .timer-filler{background-color:#fff}.notification-danger .notification-close{background-color:#dc3545}.notification-info{border-left:8px solid #138b9e}.notification-info,.notification-info .timer{background-color:#17a2b8}.notification-info .timer-filler{background-color:#fff}.notification-info .notification-close{background-color:#17a2b8}.notification-warning{border-left:8px solid #ce9c09}.notification-warning,.notification-warning .timer{background-color:#eab000}.notification-warning .timer-filler{background-color:#fff}.notification-warning .notification-close{background-color:#eab000}.notification-awesome{border-left:8px solid #4c3fb1}.notification-awesome,.notification-awesome .timer{background-color:#685dc3}.notification-awesome .timer-filler{background-color:#fff}.notification-awesome .notification-close{background-color:#685dc3}@-webkit-keyframes timer{0%{width:100%}to{width:0}}@keyframes timer{0%{width:100%}to{width:0}}.react-notification-root{position:fixed;z-index:9000;pointer-events:none;width:100%;height:100%}.notification-item{display:flex;position:relative;border-radius:3px;margin-bottom:15px;box-shadow:1px 3px 4px rgba(0,0,0,0.2);cursor:pointer}.notification-item .timer{width:100%;margin-top:10px}.notification-item .timer,.notification-item .timer .timer-filler{height:3px;border-radius:5px}.notification-item .notification-title{color:#fff;font-weight:700;font-size:14px;margin-top:5px;margin-bottom:5px}.notification-item .notification-message{color:#fff;max-width:calc(100% - 15px);font-size:14px;line-height:150%;word-wrap:break-word;margin-bottom:0;margin-top:0}.notification-item .notification-content{padding:8px 15px;display:inline-block;width:100%}.notification-item .notification-close{width:18px;height:18px;border-radius:50%;display:inline-block;position:absolute;right:10px;top:10px}.notification-item .notification-close:after{content:"\D7";position:absolute;transform:translate(-50%, -50%);color:#fff;font-size:12px;left:50%;top:50%}.notification-container-mobile-bottom .notification-item,.notification-container-mobile-bottom .notification-parent,.notification-container-mobile-top .notification-item,.notification-container-mobile-top .notification-parent{max-width:100%;width:100%}.notification-container-bottom-right .notification-parent,.notification-container-top-right .notification-parent{margin-left:auto}.notification-container-bottom-left .notification-parent,.notification-container-top-left .notification-parent{margin-right:auto}.notification-container-mobile-bottom .notification-parent,.notification-container-mobile-top .notification-parent{margin-left:auto;margin-right:auto}
|
4 |
|
1 |
+
*{box-sizing:inherit}.settings_page_otter{background:#f6f6f6;font-size:14px;position:relative;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}#wpcontent{padding-left:0}.auto-fold #wpcontent{padding-left:0}#otter .otter-header{padding:20px 10px;background-color:#ffffff;box-shadow:0 1px 0 rgba(213,213,213,0.5),0 1px 2px #eee}#otter .otter-header.onboarding .otter-container .otter-logo{justify-content:center}#otter .otter-header .otter-container{margin:0 auto;max-width:100%;max-width:750px}#otter .otter-header .otter-container .otter-logo{display:flex;align-items:center}#otter .otter-header .otter-container .otter-logo img{max-width:200px}#otter .otter-header .otter-container .otter-logo .version{background-color:#e5e5e5;border-radius:3px;font-size:0.8em;font-weight:400;margin-left:10px;padding:2px 7px}#otter .otter-main{margin-left:auto;margin-right:auto;max-width:750px}#otter .otter-main .components-panel__body{margin:25px 0;background:#fff;border:1px solid #e2e4e7}#otter .otter-main .components-panel__body .components-panel__body-toggle{border-bottom:1px solid #d6e2ed}#otter .otter-main .components-panel__body .components-panel__body-toggle:hover{border-bottom:1px solid #d6e2ed !important}#otter .otter-main .components-panel__body .components-panel__row{padding:10px;margin:0}#otter .otter-main .components-panel__body .components-panel__row:first-of-type{padding-top:20px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control .components-base-control__field{display:flex;align-items:center;margin-bottom:10px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field{width:100%}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field{display:block}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .components-base-control__label{font-weight:600;margin-bottom:10px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input{border:1px solid #b7c9d9;border-radius:3px;font-size:14px;padding:9px 15px;width:100%;box-shadow:none;height:40px;margin:0 0 10px 0;color:#444}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input:disabled{background:#f6f6f6;border-color:#eeeeee;color:#bbbbbb}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field input:focus{border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-group{display:flex;align-items:center;margin:2px 0 15px}#otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-group .is-primary{padding:2px 20px;font-size:14px;margin-right:10px}#otter .otter-main .components-panel__body .otter-info{padding:0 10px 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU4AAAFeCAYAAADqhfbyAAAgAElEQVR4nO2deXgU553nf31Iat1CCCEDAnFjxGmDYkNshK84kzAm9kwSJtkJfjwzfibJZMhsZtYzu/sY7x+7efZ5ZofM7G6eZCcTPBMPdg4HjHEcB3PZHBY2IIw4xCUhJITQ1TpbUqt7n1+pClr9VldXdVV1v2/V7/M8/QBvNVJVH9/63S8QBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBOF6CIIgCIIgCMJ+PLy+xtFolFkjnE1HQ10JAKwCAOVPpEp+gLy+0uSLcDjm72cAoFd+4N+hvLrmEPM/iIzh8fApUSScRNrpaKirjRHEWosE0UqCspA2yQ8U06by6pom+rSkFxJOg5BwOgNZJGtlC7KKM4E0iiKoh5Q/y6tresW6BLEg4TQICad4dDTUVcWIZK3gIqmXZllID8lCSlaphZBwGoSEk3/kmKRiUW4GgDluf00AoF4W0d0ULzUPCadBSDj5RLYqN8uPDW5/PZKArv3uGCElt94gJJwGIeHkh46GOnS9t5JVaZo9ALCzvLpmt+DXkTZIOA1CwplZZMtyG4mlLSiW6I7y6pozDrw+yyDhNAgJZ/qRY5Zb5YcbEjs8gMmlHbIlSq58HCScBiHhTB9yyRCK5Tfccs0colih2ykzfw8SToOQcNpLjHW5jVxx7thTXl2z2e0vAnAsnH5mhXA0cuxyuxy7LKZ3m0uojIlzyOJ0CbI7jtblM25/LTiHrM0YyOIkMoIsmNup5lIIgnL4hOAcEk6HQoIpJNsosy4G5Ko7DBJMYTlcXl1T6/YXIR5y1QlbIcEUGkMuutzJVRvzwBKmHcwTCdsgi1NwYrLkVIMpLq9iAXzM2SvDnBViBzwnakzA4SJbndaJRHWcBiHh1Eauw8Qs+cuaTyTcxityK6cjYqUknAYh4UxMR0PdVrlNj+owCTWwjXOzE6xPEk6DkHCyyLGtHRTHJHTySnl1zXaRXywSToOQcN6D3HLCBPWy9Slk/zsJp0FIOCeQs+U7qZ+cMEFQThwJNweUhNMgbhdO2cpEN+svmYMEkRo/KK+u2SbSa0d1nIRuyMokbKKEXlhr8DrhIpxER0MdJn8OkmgSFhOU4+SEBZDFyQlyxnynRoEzd/R0dsLls2dhaGAQbre2Sac3NDgIodCIoVMtnVoq/ZkTCMCMOZWQV1gIy9auZZ5HmGIr9cFbB8U4OYD3ukxFIK9fugx9wSCEw+MwbFAcU8Hn9UJ2dhYUFhVAWXk5zJo/jwQ1NZTp8lUq//sQzyVLlBwyiBuEU04A7eCtXfLcyZNw5dx5uHP7NgwNhWA8EmGek0lyAzmSmM6qqoKV6x6GKWVlXJ2fgLxaXl3D5Tg7Ek6DOF04eXLNmxsb4cKp09DS1AwDg8PCvfZZfj+UT58GDz++EWYvWsQcJ3SB9Z61vLnzJJwGcbJw8uCaBzs74eq5s3DhdD3c7g4CCPxy45cr1++BbJ8HsrKzYUZVFcxevBgWrlzFPJfQhDvxJOE0iFOFU86aZ6Q2MzQ8BFfr6+HiqU8g2N1zdz0a9cDIeARC4xGhBDRWMNVAEa1avAgWPfAATK+kIgWdcCWeJJwGcZpwyvHM3ZnoM7/d0gznjp+AtqYmGBsdZY4riCKgyQRTjeLSKbDkgQeh+qGHVY4ScXAjniScBnGScGYqnnm5/gxcPHkS7rS3M8e0QAEdCo/D2Dhn74EHIODzQsCf+scWrdCFK1bAqg0bIJCbxxwn7sKFeJJwGsQpwimL5qF0xjMbThyHT0+cgKGBAeaYEUbHozA0xkdGPcvngTy/Dzweaz4XJKC6yLh4knAaxAnCKSeBfsocsIkbjZfg5P7fTYpfmqF/JALjGX4ffOiWZ3nBb1OPGwloUjIqniScBhFdONMpmpghP7L714Zdci1C4SiEwpm1NgN+c265EVBAH3j0UYqBqpMx8SThNIjIwtnRULczHUXtmCU/c/gwnP/4Y+aYGbDevW903O7TTwhamXnZXjCQ+7GMaRUVUPO5pygLz1JfXl2T9vouEk6DiCqc6RJNdMuPvfOO6TimGgOjEQhH2NcfP8QoZn6vRzqu9hyzWB3LTJWla9bAQ09/PqPnwCFp7zAi4TSIiMKZLtE88e5vLLcyY1E8dAwrejVii8PhKIxY5c57APL8XkMlRnaDJUyf3bSJrM/JpHWmJwmnQUQSznT1nGMsc//PX7cs+WMFlmTePQCF2b6MuObJoNinKs+XV9fsVDtgNSScBhFFOGXRPGR3jSa65od379YsYM8EWPMZHA2nXDCP8cz8LK+mZcsDC5cvg0ee+RLfJ5leVqdjF00SToOIIJzpEk2sy/xo/35mnQcSxUP1gKJZkJ35eKZeMHH05Ne+RmVLE+Couiq7M+28CidNgDeH7aKJ8UxeRROtTUwUTZQNTTz03opFE00Ey732/fRfpGoGQmroOOTWl4EszhRJRyLo/Z+/IY18Ewns0uzHUiaNtw+tiCLBRDOWvIIC2Pjcs5Q0msDWZBG56gbhWThJNLXRTBhxnAgyAiaNntryVRLPCb5k19bD5Ko7BBLN5GBJUU6CHkksORJdNBFM0r2363Vy2yfY2dFQp7Yth2NR/3QTqsizNG0VTYxpiiyaCjj2DeOfsWBxO091mmZB8aSYp0SxPP3LNZBw6kTuPbd1ADFmz+0sbE83BdleyM/2SUmjwhyfVHbkNLCmFsWTgA0dDXXcbvpmNSScOkjHwA4cNsxr9twMqJU4qMNBhiYDiieGVwh4WR6j6HhoX/UkyB+EHdrPMge6ehgvs5qCwgIoK5sCxVOKIa8gD6ZMnQI5OTl3f0t7WzuMjY5Bb08Quu50Q0+3uNtu5+YGoHRqCZSVl0nXiteODwW8VuTO7U7o6+2H7q4eCIfDzM9JFQyvoMdAHUaSy+548aSsugZywPuM3UOI9/7z/7NsJNyU0hKYXTULZs6ZOUkk9TAyMgKtza1wo+mmECLq9/thVuV9MHv+HJhaVsocT0ZLUwvcunkLbrd3WiKilGm/yytW7dVO5UgGybRwpqsr6NShA3Dmw6PMulFQMJcsWwQVMyosOS+00C6ea+RSQFEwq+bPhkVLFxq+OaiBN4zG85eh6eoN0wKKg0Ge++a3mXUXMre8uqbJ7GWTcBqEA+HEurRnmAMWgnFNdNHN9J+ji7pq7QrLBDMetMoa6i/A8HCIOZYJquZWwtJVSy0RzHhQQOtP1kPrTXPWP/W1Sxwur66pZVYNQsJpkEwKp5wdfJk5YCEY19z9ox+Zmqdpp4jEYpWgmMHuG0QseLM48/GnpqzPzzzxBMU7LZiiRMJpkEwJZ0dD3WYA+DVzwEKsGA+38oFlMG/RPGbdTq41XoP6U+fS+juR8unTYM26B2y/QcQy0D8Ax4/USX+mComn+UEgJJwGyYRwpmNHSrPj4TC+t3bdA2mxvNTo6uyGY4dOWJqR1mLmrAqo+WyNxjPsAy3tI/uPmhJPctvNJYpIOA2SbuG0OxmErvnJ934Llz81Z7E9/GhNxkRTIV3iuXTZYli8bDGznk6sEE9MGK194kmYvSiz15JBUk4UkXAaJAPCaUsPOrrlZ49+AE2XGk0PIc6Ee54Iu8WTp2u1QjxBnue5ZO1aWLjSFTXisaS8VxEJp0HSKZx2dAahS15/5Ihl9ZkLFs+D5auXMeuZxC7xzKR7nggrr9Wle7lvLK+uMTy/k4TTIOkSTjuK3K3eTA1rNGufepRZ5wGs98QkilXwKJoKVifHXDbXM6XyJBorxy+7rRRNLGi3UjQxGbTm4QeYdV7AeOtSi+KQ2CK5cq2t/QamwNABZvitAkvRXDSaDoeAmK7r5AVXC6dcr2nZNxXjmVZ0AcWyaMn8ST3XPIIJHLOCgjcITHyls+QoFbAsCs/VKjDufXTvXq6v2UIcMz3JtcIplx5ZWuT+8YH3mTUzoGBmOqusFxQULFJPlVVrlnN/g0BQ2KtXLGHWzYADQvCm6wIcY3W62eK0fPDqnbY2Zs0My1cvtfoUbQMFBTt7UgGt1cqqSmGuFV12MzcJNa6eO6uy6kgcYXW6UjitdtEVzLRPxoMJoUzXaxoFzxfbQI0gxXDX8RvDTUSqN4lE9HTcSXDEcWxwwjYbrhNOO1x0O8BJRyKCvfNGYoDoovMe11QDbxJWhhaG+vqYNQcjvNXpRouT+71RRLQ2FSSXfc1yZl0NvE6RXPR45i+0znDKKypi1hzMN0S3Ol0lnHa56ApY2GwF8xfNtesU0wKKIXb+aIGi+fCGz2g8g3+sjHVOKbeuzEkQUuok4gXXCKd8h7Nt43xkRpX5myh+EUW2whRQVJ78wmNSQXusuGAiCEUVC/pFdNHjmTl7BrOWCvOXWRszFQBbv4t246Y9h3bavQXGmsceN721r1VfRB7AGCCvXUBWMXdBFVy5dM3UT7tvzhwoLitj1h1OMbY6m53XmSlcIZxy7dgG5oDF4Id/6Zo1pjqH8ItoB0OhUWhq74brrZ1QUpgPs8qLYU6F8X16RAGv90LzbWjvDErXu2j2NJhWYn2dKN4cMOyQ6hYjGN7Z+Ad/wKy7hK2i7sfuFoszbW/OQ09/HsZGQimNj4vfmdEKUEDeOX4eTl9ip3oV5gXg9x9dBUurxExEqYHX++aherjQ1Drp6DvHAGZMmwJfXL/c8hsGbo6XinAqveouGvQRj1SaZMXeROnG8TFOOSGU1ikKOLj2iS9/WRojZoTZc2Zaeh4oIj/69RFV0UT6h0Lw2rsn4OjZ68wxEVGuN140Fdru9MDOfcegub2bOWaGmQbfN7Qy0TPZ/OKLtCOmoEkiRwunPJw4I0FoHFq76U/+FB7ZtIk5loiyCmszq2hpdgaTF+W/c6zecjHJBD/ddzzp9Y6OhSXxRJG1Ckxy6fUUcKjxf/ib/yR5Ji62NGMh4eSQHXYnhJIxOjyc5BkTYOY5lb3BE3G+qT2hpanG/rqLKqvi8MmlFsmi1AOKJ7rzVlIxo1zXT8vOFr+SwGLmyE0pQuFY4ZTLjyyf6G6U/l59sa/SqSXMmhkOfnLJ0P++1tZhqRWmcKd3QBLx2IcdXLhu7OeiO4/nZhUzKvVVQwxa2JbrIISzOp2cHOKirQsTRXooK7euHAXFSa/1FQtm3VNNFKGrf6XlDtzq6oPg4JCu34/JqcL8XKiqmAoVZcVw/5zpkBdIrYkAf6dRfnviAnz96bUp/b540FvAVtNkE+KtnGfgIDaLVtfpSOGUy48ybm0ivXf0jQsrv0+fq6cHPdZmdpYfZk0rhYqpRTB3ZhlUVZQaFi10j9HSu9p6W3J/jYLJKXzEiixmvpfMroAVC2caKh/61nMbJPG+2RGEW11BaGnvTBrvnLA677esTKmwqEBXdh0HF1N8cxKSu15eXXOGOcIpTrU4hRoigPFNq8qQElmbilBW3TcVFlROS7kkB93bw6evQMO1mymJZTLw3PFx4JMLMG9GOTy8Yp5uKxivKfa6lFrO621dcKWlXRLpeCy1OqeV6hLOjpYWN+94mYitIlmdjhPOdBW766W3O3m2urCokFlLlVhrE13hBZUVsHRuhelaTRRMFJlEpT52gHFXfKAVuvHBxYavAS3oBxdXSg/lGs5eboWLN+7dXPB6zjdVWlLLOm16mekuIhcjlLvuRIuTK2tTz5bARSXWCCfWY/YPDsPqxVWw9v7ZlhR6o9V28JNGOPbpFeZYukCRw3pTswXs6JI/vnax9MDrOt3YCmcu34DjZ69ZIpxTpk5h1tTo13EzdSFzRCqGd5Rw8mZt6qVkijUVU+tXzJUeVoFu/1tHzqi6uMmYNrUUAjnZEBoZhTtd1ggFCuiPdx+BdcsXwBfWa09fSgZao1a/XljPqSdBpLfSwoVslksIucdpFidXZQ24t7oe8gryM32qDL88eEZ3HWhRQT4sXjgPFi2YC3PnVMKMiokKgcarN+Bf/u3nzPPNgtZv4412ePFLj6achbcLvQkiQpVaEs40w0vdZipYWfhuBfuOntMlmsvvXwSP166HRfNnM8fOnL0IO19/E0ZHx5hjVoAZc2yv/O6WJzh4xe6RlxeAniQGds8d12yTYZRnRDlRJ1mcQo7jt3rTL7NgAkUrnpmdnQUPr1kFn3+qFooK1Etq9h86Dm++/R6zbjUonhjXtdLdNktuvvprEkt4ZIRZIybAcFt5dc0h3l8ORwin3JPOnbXZdi15hjXAmXDWNSS2NNHC/NpXnkkomMhPX3sTTp7+lFm3i7qGq1wJp1XxaheD7joJZ5oQdpo0unY80dTepXo2GMf88xe2MOsKfQND8Nobe+DTC+YGORtFzxCTdJKVnZX0t1HbpSZC7LvuFOEUdv8SPa4dDxRr1JqiaP79P/3Esuy5yOjZd4raLjURYuCH8MKJ4/fTPW9TL4Mcbfnqz52cuY9ExiGis48eud3ZJQlkvJvOo2h6s7LAH8gHX04u+AOTzzccGoLxkWEIhwYhMmZ94oq3RJ+AFIvQfukEi5Nba3Owl219jCc7K7lrlwooHjlFpZCVXwy+7NyEPyEcGoCxgSCMDgYlIcE+cbWWTcyOo0C++PyWSeVGr/18T0ZFs6x4olUVrzc7vxiyi0o1r9cfuNfaitc+3NUO4eFB5nlERkGrk4TTLuQSJOEK3mMpLrU4meD1Qv60mZBdqM/yQSHBR27ZTBgfHYYHRr3w4dnLqn3oKJD/8x9/DIvnTyRj0h3PVGPlknmQP71S9/XGgtddOHOBJKCDd1oNWeBmwRpf6ldPCPfuuujzOIXeYtRqsgtLoGRudUoigqClNm/pcvji5x5jjimg5YmCyYNoTiudAs/94ZdSvl4FFNDiysXS62cFvJWYCQgJp81wnRQaSmFGZKqg1ZU/fQ54PObf0idqH4a1q5cz6zyBLZ3/8Tt/YvFrOEd6Hc3CW4mZgHDvRQornB0NdZszvS1GMoYG0xM7S9VV1eL5rz0r1W3yiCSaf/ECk6iyAnwdc8vu4/K63QTv22mIbHFyX4IUjjBLloNfcqtFUwHrNjess2ZWpVXYKZoKgZJyy9z2RFw4LczM3kxRxfPJCSmccqcQ932t4UiUWbOSrIIi6UtuJ1959vfg2S8+ldbXLRGVMypsF02FvPJKKVNvF700CCQZXFucombVNzMrbsPrlTLh6QBjnrMrZ0qTjvoGMlO6g5YvirhV7HnnAIRCIVi9cpnqkBKMFeeWVsDg7RbmWDLGVCoSYhm3937qFLi2OEk4beLcyZOyxemx5RfkTpkGPj/bpXL0o9NQ90k9hEIj8Ld/9SJzPFVQXP7ue9+En/zrz+HytWb7X0AZbPX86rNfhFUrljDHzPDbAx9I//vwsZNSIuy5Z55mLFkMgQx3txsulB/o1+4MipJw6oGE00pEcdOH+vuZNTWC3UGomGF8+nhOnIuOHTx2ixoKy3e/uVUaGff6m2/bbn2ilak1hckMKMjK+eNQkqYbraphgJziMhjuvGXp7x63OYTjECg5ZDHCuOl6YpyjKbT9YeIituxIaXuMFc2F8+zrQkXr7/vbvwefe+wRacyc1WA2/79871uSa25XPBOt2FiwuB9fQ3wtY8nKS9yjnyoRyZ2n0XJJ4LpiRkRXXaj4ZiQihSMTEk5h0G/8l/n//PjfJrU9opi98MdfZv6fEbCdEutQy8vL7rZYxvPM7z0GGx99COo+rof9h46askDxnLEj6ZkvPJnw9ymgxQuygKcK/l8U6NhCfnwN0WpHq1pBq31Tjfa2dpXVyaDF2d9HbZ7JkEuSuCw/EEo4RXHTYwlHo5CtEecMBvW59LH4cu/1W2OSoyXuy4qDhs1YavEzNTGrjgkiNfD34DF8oKAdP3kaLl29rnvyO1rGy5cuhpo1K5Oec/xAEbOlSSjS8R1QaLXjdcSKMg5I0dvPPqbjutETsS9f7yjsrQkzgWgWpxCz+mJJlkENDRvvj1aSQigkBz88wRx/ZF0Ns6aXtvZOZhAxWpOJhDMWFBtFcNBiPV1/Tkq+xIOW3oplS2B59WJDonfwyIlJljX+/TfvHUo5246WLQp3fFwYX9NUrdneniCzFgtl1A3BbYJIw4nkEmHc9LbmiTKWcJJvyvBwCEZS3EoBhSTessNax2SurhYdHZ3M0VRccMzCJxK0h9euhvWfWW3YUsTyoXja2juYNSPUPLiSeTYKKd5AUqGvV9uDSPZ5ICZBwmkRwgjniPwlH49GIRpN7KojHbdS+/Kfqm9g1uZVmeu1RksrPuFTmULW3w5mzWRbIdHNNwNavWqcv3j57moknHxvfIX+Pm3hHKOMuiMQxlWXA8VCbugyFolAti+xeKJ7V5mC4KnNwVy8YB6zFg+6+OjiXmtqkYQ2vuTnmy98/e6cTXRlzSaarAKt1Jutt+D02fPST1y9YikTQlDqWAM5OQl34IwFrzu2NEmhq/veTFK9dZxYvzmcJPQSlos4o5E09OOKD7cWp0gxTuHimwpoZWgJZ3tbByxfzSwnJBqNQP2n6mPd8nRsxYFZeCWhhH+igMYWy6PYvPK3f8H8Px5A9z9RCABF87VfvHX335ik+pvv/FnS0AVuCxIvnEoIYGxQO2YZSzLPYQy1UjY4k3UXERLkqluA0MKpBVoqRuKc4aHE7mAyCwtjd/FZ+Ph/iwpamrFg/PeDY3UpXQ12XiGjA/p7yjtV4sOTzmf8npU5Tu1DQiOScApVhjSJqGxtaNDa3Jr4YBxaX+b4Au54zCSO3AZa9qOD+veNup0koUTxTecghHDiJvXMomDEWhtq3Gq9rbKqDn6Z8UutxrVrN1RWJxM/Z9PqocUo3lgLqRSqx9N8s006hiVLVrLxsw9N+mmY5Eq1NKukuAhGejsmOhh00NLUAuFwYvc71k0nxEeUGKcQW4ZqMTYehajfAx6P+ren4/YdyWUvKCxgjjFEIlA5Vb0VEEUpWQ0iztncf+i4lACZWjqFSbDoAUXvRkur9DMwRgoGXH5lwEYsmKDBWGPF9GmQlxuQklzz5s02VLKE173tz5+X6kdBrmdNZmGjyKudd0lxIQz33GHWE3HrpnY/e7IbJ6EKt997UYRTOItzbIwtYUmWXb9+pQmWr17GrKvhG+2HwoJ86I9LahyvOyW1QibDqFgqBe0okmpCYxZMzuBD+dlK4Tx2B1WUl8HC+VW6uoswxpsszhsLtouqUVWWr9vaxPh0683ErwmWo5GbnhLcVtGQcNpEfx87WmwkrJ1db73Rpls48Uu9cNZ0OHXx2qRlFB9sw9QjnsnALPXZcxcNtVBaDZZE4QNbI998+z2ppnTpkoVSj7zZASBobWJXVDy4ZfOSWfqn6jeev8ysxYI3THLTnQX3wilvASxk/WY8yewXrAG81ngN5i1KXouJrFkyixFOkFsG71+8wJDlpaDUeGKtZKaGFmuBFik+0N3HWC12IaXaHvnaG3tUr3H+TGNT9fGGpwXeMAlnIYLFKXx8U8IDUJCdPBfXeOGKbuGcU1EKM6ZNgbY7PZPW0Tr8vz/5GWz96rO6RQXLlPbs+x0z9IJnlG2K0Qr9/BMbDAnoD3+yK+G1fu6h+5m1ROCNTqvoHfedotIj50HCmSZyfV7Q8NLvYtTq/PLjD8KO1/cz6yieP/7XNySrTGtUm+KOJxKRZGRn+aGspBCmlxZDbrYfKsqKITdnomVzWkmB9FDjTu+A9EB6+oaht38Q2rv6oG9wCDqDbJhDC7RA8VpRQB9dXyN1GCUCbxBvvPk2M9hD4f6qmQnPWQ280WkxQkkhRyKCcApfiuT3eiDHr38LDSNWJ37Jf2/dSnjnmHqSI9Yqi+1jx84YzMAbjV2WFRdAZUUZzJ0xFWZPn2JIZOLPW+v/nm9qh1t3gtB0qwtu3umGUR2dNiig2Dm09zfvw+KF82DRgrmQnzsxT3NweDjpDaIwLwDP1rJDPxLx6elzmtYmhjbHNIZ6BDs7obhM/YZG8I0Iwsn13iNJ8QDk+Y2Vy+KX8dK5S7B4mfoAinjWr5gL19s64UJT4iJ6JTaYCiiWKxZUwoqFxqwxMyytqpAeCp9caoEL19vhauvtpCKKcUscjRc/Hk8LtJy3PFUDeQF2Hyc1MJPelKQOdTiJtRns7iLhFBSuhVMeXGzfHhBpIODz3p0Aj8aHEu7ygvZk+MaLV6FqYRXk5OQwx9T4+tNrYd/RXDj2qbbrqBcUkup5s2DD6gVpE0stHlxcKT2Qo2evw5nLN5jYbqrgtW79wjopZqyX+pP1mgXvVILkbHi3OIWPb4bCEQipfL88Hg8U5yRWTvxSfnzsFKzfqL/e8gvrl0kxxrc/rNfl2qqBIrJmSRVsfHCRbusr3aCFjQ905w9+csmUgKI1/ezGBwyJJm6PoVW3CUpsM4lujqY4h9VFqAeiOYB34RTbTdcgGo3C6Lh2XSd2E2Ern5GRc2iV3T9nOhz8pBE+vtikW0D1CGZzezfseq8O+odCKQmOEX558AycvtR01/L9g43sPVRx51FA3zpyRjovvSjXizcbI6CLfubkWc3/gdZmaHycWY+n+452bzsBh3h9CRJ/azMMCktHQ912AHiZ13NMBO6p/ru33pGuQYtkVifi9/vhqU2P63bZ48HY4PW2LrjdHWQsMyxlwmw4JnoUN1iLV37y9iQhRvH56689lVBoU+Vn755k4rWYAEMrUws9cdB5M8phSdV9sHrRzJTOu+7DuqTWZigclTyNZNxXMQ22fPtbSZ7lWr5bXl2zA78jPMK7xSlkRv3gvt8mFU3QaXWiy3788EdQ+9SjzDE9xMYGzYBWXbwY4b9/9Osj8Ki0LAsAABuNSURBVOKXHrVMPPcdPceIJoLlSsmIvdbYcickP5Bt2jrGMrFkoqnX2kRutd+B0x9+CKs/+1nmmIvBAaiby6truLU2QdB91bnmjR/+CMY0kgbxjGqUqyj0dPfC6Y9OM+vpJFGCCGsuUTzRjTcLWpqJklsBg/u34/kqrjw+zIpmV2c3NCSY9hSL0fbKI+8dgJ5OctljqOVdNEEA4dzArHAMuuitrdpTclKl6XqLZPFkChSi1YvVQ84onjv3HYP3T15ijukBRfcfdu1XtTRBrq98eLm2m24nGNc8duiEZhY9VcYjEdj377sydm2c8Xx5dQ2X+6jHI9r2wFyDLroRsnweyM/Sf++qP3UO8gryoCJDm6dhgkYtVgqy237gkwtw8sJ1eGTVYl0xRIxJnrnUAtfaEm85YbS+0mpQNI/sP6pbNDHs4vX4YGBsXLfl2dHRBXUHDkDNY+YHswjMD8qra3aKcvqJg2sZ5va5jzC+eZDX84sHXXQj1mZellcztpkITBatq30IppbZk81OxlBoVHLN9bRFKsknbMWMBVsr9XQDpVJfaSWKaOKcVKNgBKZ/VL94+rxe+OPvfBOmuLMgvr68uoYtm5ATqDxCwmkB6KK/t2ef7h+Uqmgq8CCebx6qT+haW0GmRRM5evC4VBKWKhjuHByL6B7yUV4+Fb7+HT43ybMRTAatKq+uaVL7FbwKJ88xTtU7EI8YcdHNiibImXaMuWHCIhOg24ydSo89eL8kcFaDliqWOWVSNLHsyIxogtwZVpDtA5/OLz+67JhldxnbE4kmz/AsnCXMCocYyaJbIZoKmRZP5PG1i+Gbz9VKtZFWIA3Z2PggfOu5DRmNaf5u34GkZUd6wa1SjIjnh/uFiU5ZwWGs1RTxxKkcyQTNjY3QpnNwhpWiqaCIZ4u8508mwGz7C7+/Dv5s86PSSLZULFDsQsIC95f++GlLak5TxUxMUwsj4jkWHodf/fNPmHWHsk3Uy+I5q869q/7Oz3+lq9DdDtFUkHraT5yGsdEx3aPo7ADd6jlPT7jWmC1v7wxCU3uXNLYuNpGEVmVhfi4U5+fB3BllsGj2tIQ1oukExfL4kTrLRVNBEc++0fGkn5nm5hbppjxn0SLmmIN4RZTSIzV4Tg4d4rmO89Bbe+FU3SfMejx2imY8VXMrYbXGEF9CHQx32FWnGY/ebHt+XgBe/LuXmHWHgAkhLRcdE8NnyqtrtlHLpYPATo/6j5N38mCdZrpEE+Qi+aGhEKxZ90DKve1uA5sKsD42XeDHoTDbl1Q8B4dCcPTdd2H9008zxxxAsY4ZFL3MCkdQjDMF3vvFr6SODy1w6ruR4narwEzwwXcPZzRpJAqYOU+naCr4dA63/vhYnZvbMbl240k4DYKxp2SF7pgEyM/yMevpAifIo+uZyRZNnsE4ppWZ81RATySQRDzx5ow3aZfCdYmS9juXWbiMb2JCSBMPSJYmJgMyCcbr0JrCIu4RGph7F7yZHPztEduSQEYI+D2SZ6JFa9st6WbtQkg4nQImhIZD2iJUkOXT3BIj3Siue3uK+w05Bbx54E0EbybpSALpBT0TzQRIFODdX77JLDsdGivnIJIlhND1SuJ9ZQR03bHUBkfTudH6xJsG3jzMdgLZAZYmRbWyRHKiCIeAuAj1LVs5goRTJ9ghpJUQQpcrYGAL4EyAWXc3WZ94k8CbBd40tLbxzSRDYX3zOz86cpRZczDct2CScOoAM5taHUKeDCeDjOAW6xO7qd7b+750s+CVkXAUwjp3wsSOon0/e41ZdyjcF8ZTHacOcNCsVrcHD8kgo6Cg3Gy5BavWLDe0GRzvYNLn4+OnpKn5PIPOS7J91+NpvHQF1nV2umH0HE2AFx3MaOLUmkTwGtfUg9Kueeg9PrLMZvn09DkpY867aCKjkSj4PR6pSQI/Q7GPRODN2yXlSWRxis6Bt95OeAVYr8l7XFMPKDRY14gtm0tXLRWu6wjd8ob6C9zGMdWY+Nyof3Y84IXhBLtkYsiovaUFKiqd4yXE0VxeXcP9nS/x7U08glafMWYye3r7mHWFvGxnGezovmNc8NK51PYOSjfYHYXWMlrNIolmMnI06jvR6vzNG79g1h0E9246cG5x7pFN9t4Y071JbehpR0MdTlLSrhVKgU+OfZTwP+X6vZDGNvS0ge77+XOX4PrVZli1dkXG9jfSAsMK5+vPZ7Tzx26wJbMvwb5FeDN38PQkIYST26++VjImno6GOhTWlcwBE6C1+eGBI6o/AK2BAodZm4mYUloCS5Yt4kJAsQqg8fxlaLp6g6sidrvArHsil31KSRE8/72/YtYdwOrYcXOazQEZRPgYZ0dD3TarRROSWZsZGN6RKTD+ieVLM2dVwNKVS6GgMDOzMzF80HjxqisEUwFd9rGIR7VkCa3Oy5+ehYXLVzDHBCZI2wOngY6GOtzoe7vVvwmtzUStlQGHuujJQLcYH+kWUOwtb7xwxVExTCNoueyH973rNOHczaxwiugW5055tp+lJLI2PQ7JopshVkBXrl1pWwbe7YKpgHMPAj4vhFRc9r6BIWg4eRKq165ljgmKEPFNEFk4ZRfd8glKWtZmJuZr8gqK5+32TqiaPxsWLV1omYCSYLLgzXpk3KMa9z/+/kESzgwgpHDKWXTLXXTQsDaxUFmjNtmVYLzxyqVrUrLGrIBi//ynp887ohDfDvCmPYBT4+NwkNVZr1YxwyvCCWdHQ12JXS56QmtTmtjtA9VAE2FKQFEwL55rFKLbJ5PgTRtv3mPj7GfwxMHDThBOYaxNENTi3GlHFh00rE2MMYnWi54JjAgoCaZxcn1eGIuwiaJg34AT6jqFSQyBaHWcHQ11KJrfYA5YQKK6TUwIFeeQj54Kfr+fEVASTHOEwlHVRJHgdZ1YhlTCrFIdpzlk93yHXaIJGtYmJYRSJ9YCnVV5HwSD/SSYJkmUKMK6ToF72IWyNkGEXnU5EXTITtFEN0cttokdQpQQMg8KKPbBk2haQ26CkriDe95i1gSBhNNKOhrqtss96LbENBUSTUByU4cQIQ64Q6aaC9t+u1PE7YTRTSfhtJhau38BWptqE5Awg+nGDiGCfzDOqZYDwLUDu/cw65wjnGiCADHOJru3CT7x/kFmDeQMJqGfaNQD4zFf5kg0Ciot1nfBe5IvZnQaGlB0o0oO5oXUkkMKN2+0MmucQ8JpA7YXxKrtJYT96Dxt8csLWEKIYjgeubdXThjFUkMgU0GZRYl/KgKLQ6PdXhKGN6eBMe0hJ7ih4Pu/+hU8/txzzDEOEdJNBwGEE5NCLzOrFvHu62+wLo8HIEeyNt39JcU9cVAUxyJR6e/jKq6hXdwV5TiTFeN6aJVOJO3cl7gbTDDsI57GC43wOLPKJUKKJrjd4rx88TKz5tZid7RmxiIRSSilHWvTKJR6wXMKRycLKgpoFoqow2PS+J6ojZdTAytEBBk5t4NZEQSu79ly76rlW2Ig506ehLH42Y53rU13gJYkDsvtH4lAcCQMQ2MRqaWPR9FMBIoJDvvtHxmH4EgEhsNRUOlKFBq8qQ2OqcQ1ZetbLcN+fP8BZo0zmkWZvamGCAXwZ+xIEJ08/AGz5gZrU7EsR8f17+ktCij4eCMYCU+49Vi2k+P1OCJeXZTtS/jZxBtgX9wAkK7uIISGhyCQm8c8nxOEtTZBkM3aLG/+x1q33mD/5EWHW5v45UKrJTg6YVk6TTTjmRDRiCQoA6MTNwpRQcFMJJogz+zMiotT4PUf2rOXeS5H7BT2DRHI4rSUj/a/z7ijTrU2lfIVpwulFmG5CmA47JG6brK8znuvpQEg45OtzmuNV5jnccKrImwBrIUIJpblwskkhRxobaJgoqWFMxzdLJqx4M1ySLa6sYjcSahZnaHRMSlJxCFCW5sggnDKCaJm5kCKYKdQfFIox0HWZoQEMznRCStcLd8iMmpNGx8dPMysZRgcWCzU7E012FeaTyyzOj9497fMWk6Czf9FApM+aEX1kWDqYqKMSYATNQBanf64z3JXZw9vpyl0UkhBlI+OZXeo+A8SujeiZ13DclZVqxWPiMEzsXukEwnEXRd2Eh19911erhRLkIR300GgCfCWCCfWbuIHKRY190YkEg221UtpbjYsKsqXtwbRT9PAMDT3D0ntl3aQ6nmd7x2A20Mh0CpF9YEHRvG8Y1427IxS/g9OxRK1mN4vW52xXkfjufOw/umnmedmAEeIJoginFgo29FQh3HOOcxBA5w5fmLSk/0C1/hJfcuj46ZaIVeWFcHvV05l1vWwvrwQekbD8KOLrTA2bq2la8V5/fDCzYSijq/ZuEZyqH90HPKzfMK68li/GiucTOldZgg6xU0HgVx1sMLqjHfT490aUcCSRMwMmxHN3CxfyuKkMCXbDw+WWbtnHlqaVpzXstJCZl03UYBBKfQhZqw4fl6nVNP5VsZrOneIXoIUi2uEM95Nxw+WiLqJhdxoEZmdQTItV30TNaM8OUN1q5iUKciyxgl6ZLp5QccQiGqrowAE4mIN1xvZuQxpxjHWJggmnKYmqcS76Ym2H+AZFE2sQ6RdipODVqcVYO++iOKZjbH7mI94ht114Qve4xFGOOUXPuWitEluugek7hGRuCuaRNoRUTyxLjnLO9ldx51cM8T2zL0S9iCas5qS1RnvpotW8I5JcxLNzCKieMbH8BvPNTDPSQM/kJtYHIUrhPPKufOT/i1SwTsmggbGxpl1Iv2geI4IlDBShj4rZGCX0aATrU0QqI5TAu9cHQ119UZ3vbzV2nb37yKVIGHJ0ZCBRBBmyleWFlmesEnGf109N8kzMoOe87o+OAJH2nvhRt8Qc0wNnP3p8/qESSzGliaNhcelluM5ixYxz7MJR2XSYxGxHsdwEW3snunZAlU2h8YjukuOsIzne8tmp100RWdufg58Y/502FRVrvtK0APAm5oISJ/3mFM9V3cyXWftqLrNeEQUTkPu+qT6NY84whmWprPri6nhZmZ/NG86s07oZ9WUfKjID+h7fhRgKCxO+CR28ld72y3muE1sd6q1CSIKpxxo1p1dv9l0Ly4t0ui4YQOJCKzJtKr8xs0sLSnQffVj4xN7M4lAbEy/r38wHWeMPemOtTZBUIsTjLjr/X0Dd/8uSlIIS4+MdAVl0x7wloDtmkYQZagKxvR9cicRliVhlYnNbM3sFduPqN+43Xo3cVPim/jBESUpNOywIbtOJRwRyOqMafhovtTIHLeQw06Yt5kMIYVTjp0kjXXGFvzmCNIphOWmGIeVavAcvN2tUxixeMCJXcQ2fHS037bzVzne2gSBLU7Qk7G7fulef64onUJ4mtgOigkfaq3kn4ntlPm/w0mdRHJidGDAtjjnK04sdldDWOGU92SuZw7E0Bec8OYn9p4WR4Um9tGmondRGIuIYXUqsXCs58Stgy2m2cnlR/GInlXQfKOGhkLSnzmCjUGSRJOsTWEYSzD3kzek+aKycXw2buiNBWx1cvlRPEILpzyGP2GSSOpP94BQA2mxCom3PYPwnLpGoo7b3MwqRNqxRBn80XLtOnPMBHvckBCKxQl1LKpWp5IYyhKsL503Fx1zH12jERiJRKU/STxZ4vfo5xnFXR/st2zMXNAtCaFYnCKcjNXZ3XFH+lOkGsdhzmZtoh50j0VBMYDxz96xqOZ+Pm5FFKtTcdcHB4eZYyniKhddQXjhlN80piA+2NMrnJvOmyD1h6NM/A7/3U91pkKDXtjwyIgVl4AuuqkB46LilJYTxl3v7uoWyk0HeRMxXkAXfSCBQOL6KCX9hUXywqJgNrPuShddwRHCKdeOvRq/Tq2IqZPMqkwkqgT/KO66ycz6Zje66ApOUpZJA1Ox1dLvEcvi9HByvmhtDo1rC2MoEgVBmmYIFUx6Yz9wWxY9HscIp2x1vqL8W7Sid5AndvNASGc5lN7nuQHB7tGScKZYkoRNJ46c6m4Ep/myUoYdp1yLFt8Ejr58IzrjlyGKc95FoPnYEtiCHB4LM+tJCLo1ix6Po4RTfkN3dHd0CCmcvIQWxnQmqfQ+z+n4RDM35d71kmL980dltsmtzq7HcdmT8uqa7VNKp9wWbPdfCT8nZkuS8OZdnOapN/aHmDU9iPhZQ0aHDGXVX5U79VwPOFE4kVtNTf+bWRQASTdplJxwuKB6A+Oa25hVF+PI/RYunDr1IbMoCLk+r1Rkjt5frAs4MTSXXGPuEKzJIgWCbi89UsOpG9VUMSuCgAOXc1TMzv4REk0eETGWbpDNbpmxaQSn3iuFFU41QmFjexAR6SPX2W76d91er5kIaq3hHEzUiLIpmNvAieqiJoZ08KrTd6o0g1PfdsfcJYdGSTR5xcHWZn15dY1r+9D1QBYnxwyTi84tuJmeQ61NzKDXMqvEJEg4OYYqk/gEqx0CguyaahDKoOuEhJNj8MspYlcKT3j8AWvPxgOQl+2Mr01eUVHsP1E0aymDrg+nCqdj3vyCbB+JZ4p4AsUA+VPBk5Vn2c/M83uF60tPRP5k4dxM7ZT6caRwvrRrr2OEE3uKSTyNI1maOXIvdm4JgNd8yXJelheynaKak3meyo6M4WRXndmHSFQU8fQ7v9jaIrwTYqng8YAn9t9G8UxY/k4TzRnz5oEsmtSDbhAnC6ej3I4J8fRKtYOENp6cfACvb/Jz/Dkpuexo6RdKNy3mkPD0d3e/TKKZGiScgpGf5ZVcRkq5J8ILkFOofixQxCxpgTepiTCJxpMEZuMLf/nfnHll9uNk4XRsdhBdxqIsct3VkKzNRPFgr09flt0zEc/Em5RouwgYoF6YM+UQpw75AKdanApYfI2u++g47v1D3UV3yc5nlpjjYfW5m72jYcnKzPP7nCyYCpRBN4FjLc6Xdu11RZYQrc/B8Bj89HIbnOkZZI67Cl8WG9uMJyvAfOx7R8fhF80d8FFHt9OtzFgoi24CJ1ucyGEA2MCsOpCBcBg+aO+Cy32D8OR9U6EkO4mAOBC9xe4efzZEZavzg44gnOlyTAGGEUg4TeD0zqHdzIrDaR8Kwb9dbZUEwXX4c/RdsS8L2ofH4LVr7W4VzWYn1TpnAqdbnK69q6IgtA+PwKZZZRBw/tYOE/iymSU1jrR3wpn22ypHXANZmyZx9DfqpV17MQDezBxwCWh9vnqlTbKuXEGibLpMKByGX1+84HbRBDd6YlbjBlPE1R+S0UgE9ty47fzEUZKWShTNXzY0QEuv6wf/BF/atZeE0yRuEE7XT7FG8cTEkaPF05M4GaaIZvewoe1wnQp1ClmA44VTDoIfZg64EBTPi33DrrpwEk0G1xsSVuCWeZz0YZE5fKvLPTFPAPjNlcskmvc4TNl0a3CFcMoxHdcmiWJBt/39W13MuhP5qLWVYpqT2c6sECnhpgnw9KGR6R4ZdXydZ+/ICJxua2XWXcxht3TTpQPXCOdLu/bupMEG9zjf0w+hcef2uB+70Qyj4+PMuoshw8FC3Lbn0DZmxaWgy17fM+DIi8eE0JUud4QjdPIqWZvW4irhlD88rzIHXMqVPmcmTS52djJrLiZIBoP1uHGXy21O2lbDDBjrdCJt/X2OvK4U2f7Srr2UIbMY1wmn/CHazBxwKU0D6rMpRWZg1Jk3hBTY89KuvVSKZwOu3Fdddtl/wBwgCOeA5Xdb6f20B1cKJ0yI5zbqKCIcCoaiNpOLbh+uFU6ZzW4vUQr4Evd4E8KyTZ4MRtiEq4UzJt7pymRRttcLFblZzLrolOYa3wbYQTwv1ywTNuJ2i1MZAlLrRvGsLHCmwCwrL2fWXAKJZppwvXDCvYHHtW7rZ19a7EzhrCgogIJsfdPgHQSJZhoh4ZSRxXOVW2KeFXkBqCrQt7mZiKybPcex16YCiWaaIeGMQY55ouW5hznoIDC2iTthOpklZWVQWVLi6GuUw0urSTTTj/YmLRkkGs3s3tbf37IJhyK8zBxwAE/OnAZLinITXkjbsP7hHzNyObn3+nLAU1A2acnhQ4zr5ZIjR8/X9CTZRypTkHBq8P0tm2rlrQYc4/c9UjEVVk3JZ9ZjcYpwgjxe7vWz9U6blPQDuQ7Z8fAqnOSqayB3GK1yymAQPaLpNEpycmDz/Ush2xn1qpi83OgW0eQZsjh1Irr1aUQ0nWRxKqDl+fbFiyK77a/gFjBu6wYiV90gvAmnghz7xDt+MXOQQzAR9LmZZYYy6E4UTpBjnrgHkWDbaeyRO4FcuVcQCadBeBVOmBDPElk8uRZQLDnaNKsMAj5j4uZU4VTAvYg+arnBrHPGYXkknKsHEJNwGoRn4VSQBXSrLKDcuPBoZa6aWgSfKStijunB6cKJ3Gpvgg86eqB9iLuxeq/Kgkm7UZJwGkcE4Yzl+1s2bZVFdANzMI0snVII66cVG7YyY3GDcEaDExu5nekZhNOdQRgIh5nnpJFmOX6+kwRzMiScBhFNOBW+v2VTlTw4BEV0JfMEG0ALc0FxPjxYWgQl2eazx24STgUU0Iae/nROxcfiddy2ere8fTWhAgmnQUQVzlhiRHSzHZZoQSDw8bIZ02YvD/imBaIRy95LNwqnwq2IZ/xMz2B3U1ePJzw+rv8H6qNZFstDJJb6IOE0iBOEMx65pKlWrg2tMmiRooWC/fSYLDgT/8Xr+9n/+h+egYE/9HZ3zYNw2NT76jbhjBYUDEdKp56N5gT+oXjLd95Q1r+/ZdMq+f2qTeH9QpFsUt4v+T0jN9wgJJwGcaJwqiEnmFapHLqL0cyqIqKevuAcTyjkZ56QBDcI57h/pD2an38impv398Vf+faHzBMSIHsRVepHJZpIIK2DhNMgbhFOuwnu+seveEZCX/X0BWu9vb26pl44UzjHw5EsX2s0J+vtwhf++tvMYYJLSDgNQsJpD8F/37HNMxza7BnsX+kdGChWc+uFF0787HijIxG/t52EUmxIOA1CwpkeJIt0bPRJz8jIgzA8VIVi2tY/qvtzkWnhjAYC4WggMAC5BZc84GuNZmXtKtz63V8yTySEhITTICScmeP2v//T+kjnnS2RkdFHIRIpCg8Nz/R4PJ6RkTGm1iktwun3RyIFBX3g9fZHc/OvQZb/StTvP1f8R9toz3CHQ8JpEBJOfrn94//+SiQUmgo+f25+IHv+vRONlnsGB+4zdOI+fygayL0U8zPaorm5dfg37+DggcI//c9nmf9DuAZehZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgXA9BEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEHYDAP8foCS4yIPsF/8AAAAASUVORK5CYII=);background-size:100px;background-repeat:no-repeat;background-position:bottom right}#otter .otter-main .components-panel__body .otter-info h2{font-weight:300;margin-bottom:10px}#otter .otter-main .components-panel__body .otter-info p{margin:0 0 1.5em 0}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group{display:flex}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary{padding:2px 20px;font-size:14px}#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default:not(:last-child),#otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary:not(:last-child){margin-right:15px}#otter .otter-footer{text-align:center;color:#72777c;font-style:italic;border-top:1px #e1e1e1 solid;border-bottom:1px #e1e1e1 solid;padding:20px;margin:2rem 0 1.5rem}#otter .otter-footer .otter-container{margin:0 auto}#otter .components-placeholder{background:#f6f6f6;margin-top:25vh;margin-bottom:25vh}#otter .components-placeholder .components-placeholder__fieldset{justify-content:center}.otter-onboarding-modal{max-width:350px}.otter-onboarding-modal .components-modal__header{text-align:center}.otter-onboarding-modal .components-modal__header h1{width:100%}.otter-onboarding-modal .otter-onboarding-modal-content{text-align:center;margin:10px 0 15px}.otter-onboarding-modal .otter-onboarding-modal-action{text-align:center;margin:10px 0}.otter-onboarding-modal .otter-onboarding-modal-action .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-button-control{display:flex;flex:1;justify-content:space-between;align-items:center}.otter-button-control .components-base-control_labels .components-base-control__label{font-weight:600;margin-bottom:10px}.otter-button-control .otter-button-control-group .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-modal-actions{display:flex;justify-content:flex-end;margin-top:10px}.otter-modal-actions .components-button{padding:2px 20px;font-size:14px;margin-right:10px}.otter-modal-actions .components-button:last-child{margin:0}.components-modal__screen-overlay{background-color:rgba(0,0,0,0.5)}.react-joyride__tooltip{font-size:13px !important}.react-joyride__tooltip>div{text-align:left !important}.react-joyride__tooltip div:nth-of-type(2){margin-top:5px !important}.react-joyride__tooltip button{text-decoration:underline}.react-joyride__beacon span:first-child{background-color:#00739c !important}.react-joyride__beacon span:last-child{background-color:rgba(26,129,165,0.4) !important;border:2px solid #00739c !important}.react-joyride__tooltip button[data-action="primary"]{background:#0085ba !important;border-color:#006a95 #00648c #00648c !important;box-shadow:inset 0 -1px 0 #00648c !important;color:#fff !important;text-decoration:none !important;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82 !important;padding:2px 20px !important;height:auto !important;line-height:28px !important;font-size:14px !important}.react-joyride__tooltip button[data-action="back"]{color:#23282d !important;font-size:14px !important}.react-notification-root .notification-container-bottom-left{bottom:40px}.react-notification-root .notification-container-mobile-bottom{bottom:60px}@media (min-width: 782px){.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:-32px}}@media (max-width: 782px){#otter .otter-header .otter-container .otter-logo{justify-content:center}#otter .otter-info{background-image:none !important}.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:-44px}}@media (max-width: 600px){.react-joyride__spotlight,.__floater,.__floater__open,.react-joyride__beacon{margin-top:0}}.branch-5-2 #otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-field-button-group .is-primary,.branch-5-3 #otter .otter-main .components-panel__body .components-panel__row .components-base-control.otter-button-field .components-base-control__field .otter-button-field-button-group .is-primary{height:auto}.branch-5-2 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,.branch-5-2 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary,.branch-5-3 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-default,.branch-5-3 #otter .otter-main .components-panel__body .otter-info .otter-info-button-group .is-secondary{height:auto}.branch-5-2 .otter-onboarding-modal .otter-onboarding-modal-action .components-button,.branch-5-3 .otter-onboarding-modal .otter-onboarding-modal-action .components-button{height:auto}
|
2 |
|
3 |
.notification-container-bottom-center,.notification-container-bottom-left,.notification-container-bottom-right,.notification-container-center,.notification-container-top-center,.notification-container-top-left,.notification-container-top-right{width:325px;position:absolute;pointer-events:all}.notification-container-bottom-center,.notification-container-center,.notification-container-top-center{display:flex;justify-content:center;align-items:center;flex-direction:column;left:calc(50% - 162.5px)}.notification-container-center{top:20px;height:100%;pointer-events:none}.notification-container-center .center-inner{width:325px;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:all}.notification-container-top-center{top:20px}.notification-container-bottom-center{bottom:20px}.notification-container-top-left{left:20px;top:20px}.notification-container-top-right{right:20px;top:20px}.notification-container-bottom-left{left:20px;bottom:20px}.notification-container-bottom-right{bottom:20px;right:20px}.notification-container-mobile-bottom,.notification-container-mobile-top{pointer-events:all;position:absolute}.notification-container-mobile-top{right:20px;left:20px;top:20px}.notification-container-mobile-bottom{right:20px;left:20px;bottom:20px;margin-bottom:-15px}.notification-default{border-left:8px solid #0562c7}.notification-default,.notification-default .timer{background-color:#007bff}.notification-default .timer-filler{background-color:#fff}.notification-default .notification-close{background-color:#007bff}.notification-success{border-left:8px solid #1f8838}.notification-success,.notification-success .timer{background-color:#28a745}.notification-success .timer-filler{background-color:#fff}.notification-success .notification-close{background-color:#28a745}.notification-danger{border-left:8px solid #bd1120}.notification-danger,.notification-danger .timer{background-color:#dc3545}.notification-danger .timer-filler{background-color:#fff}.notification-danger .notification-close{background-color:#dc3545}.notification-info{border-left:8px solid #138b9e}.notification-info,.notification-info .timer{background-color:#17a2b8}.notification-info .timer-filler{background-color:#fff}.notification-info .notification-close{background-color:#17a2b8}.notification-warning{border-left:8px solid #ce9c09}.notification-warning,.notification-warning .timer{background-color:#eab000}.notification-warning .timer-filler{background-color:#fff}.notification-warning .notification-close{background-color:#eab000}.notification-awesome{border-left:8px solid #4c3fb1}.notification-awesome,.notification-awesome .timer{background-color:#685dc3}.notification-awesome .timer-filler{background-color:#fff}.notification-awesome .notification-close{background-color:#685dc3}@-webkit-keyframes timer{0%{width:100%}to{width:0}}@keyframes timer{0%{width:100%}to{width:0}}.react-notification-root{position:fixed;z-index:9000;pointer-events:none;width:100%;height:100%}.notification-item{display:flex;position:relative;border-radius:3px;margin-bottom:15px;box-shadow:1px 3px 4px rgba(0,0,0,0.2);cursor:pointer}.notification-item .timer{width:100%;margin-top:10px}.notification-item .timer,.notification-item .timer .timer-filler{height:3px;border-radius:5px}.notification-item .notification-title{color:#fff;font-weight:700;font-size:14px;margin-top:5px;margin-bottom:5px}.notification-item .notification-message{color:#fff;max-width:calc(100% - 15px);font-size:14px;line-height:150%;word-wrap:break-word;margin-bottom:0;margin-top:0}.notification-item .notification-content{padding:8px 15px;display:inline-block;width:100%}.notification-item .notification-close{width:18px;height:18px;border-radius:50%;display:inline-block;position:absolute;right:10px;top:10px}.notification-item .notification-close:after{content:"\D7";position:absolute;transform:translate(-50%, -50%);color:#fff;font-size:12px;left:50%;top:50%}.notification-container-mobile-bottom .notification-item,.notification-container-mobile-bottom .notification-parent,.notification-container-mobile-top .notification-item,.notification-container-mobile-top .notification-parent{max-width:100%;width:100%}.notification-container-bottom-right .notification-parent,.notification-container-top-right .notification-parent{margin-left:auto}.notification-container-bottom-left .notification-parent,.notification-container-top-left .notification-parent{margin-right:auto}.notification-container-mobile-bottom .notification-parent,.notification-container-mobile-top .notification-parent{margin-left:auto;margin-right:auto}
|
4 |
|
build/build.js
CHANGED
@@ -48,4 +48,4 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
|
|
48 |
*
|
49 |
* This source code is licensed under the MIT license found in the
|
50 |
* LICENSE file in the root directory of this source tree.
|
51 |
-
*/Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function X(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(_(n=L(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(_(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(_(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(_(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(_(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,r=t.height,i=t.width,s=M(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),L(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(_(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(_(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(_(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(_(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=J(i.locale.back),s=J(i.locale.close),l=J(i.locale.last),c=J(i.locale.next),u=J(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=L(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(_(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(_(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(_(n),"setTooltipRef",(function(e){n.tooltip=e})),P(_(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(_(n=L(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(_(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(_(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(_(n),"syncState",(function(e){n.setState(e)})),P(_(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(_(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(X(t)!==X(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=X(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var M=v<h?A.NEXT:A.PREV;o===A.STOP&&(M=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:M,index:h,lifecycle:G.INIT})}var _=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var L=we(m[t.index],this.props);this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:L,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},_,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},_,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},_,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Me=Re;function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=_e(Ge(!0),2),t=e[0],n=e[1],o=_e(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissable:!1,isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isDefault:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(Me,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Xe=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Je=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Je,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){_.current=new wp.api.models.Settings,!1===t&&_.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_menu_icons)),E(Boolean(e.themeisle_blocks_settings_default_block)),k(e.themeisle_google_map_block_api_key),C(e.otter_blocks_logger_flag),n(!0)}))})),Boolean(otterObj.stylesExist)||M(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!1),2),v=y[0],b=y[1],g=et(bt(!0),2),w=g[0],E=g[1],O=et(bt(""),2),S=O[0],k=O[1],x=et(bt("no"),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=et(bt(!1),2),R=I[0],M=I[1],_=vt(null),L=(vt(null),function(e,t,n){a(!0),F(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(A(t,n[e]),setTimeout((function(){F(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){F(nt("An unknown error occurred."),"danger"),a(!1)}),800),_.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){F(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),A=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"menuIcons":b(t);break;case"isDefaultSection":E(t);break;case"googleMapsAPI":k(t);break;case"isLoggingData":C(t)}},D=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,F(t.data.message,t.success?"success":"danger"),M(!0),a(!1),j(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),F=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return L("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return L("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})),Boolean(otterObj.navExists)&&wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Menu Icons Module"),help:"Menu Icons module allows to add icons to navigation menu items in Block Editor.",checked:v,onChange:function(){return L("themeisle_blocks_settings_menu_icons","menuIcons",!v)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:w,onChange:function(){return L("themeisle_blocks_settings_default_block","isDefaultSection",!w)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:S,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return k(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return L("themeisle_google_map_block_api_key","googleMapsAPI",S)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===P,onChange:function(){return L("otter_blocks_logger_flag","isLoggingData","yes"===P?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:R,action:function(){return j(!0)}})))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isDefault:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),T&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return j(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return j(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:D},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Xe,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
|
48 |
*
|
49 |
* This source code is licensed under the MIT license found in the
|
50 |
* LICENSE file in the root directory of this source tree.
|
51 |
+
*/Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function X(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(_(n=L(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(_(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(_(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(_(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(_(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,r=t.height,i=t.width,s=M(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),L(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(_(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(_(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(_(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(_(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=J(i.locale.back),s=J(i.locale.close),l=J(i.locale.last),c=J(i.locale.next),u=J(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=L(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(_(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(_(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(_(n),"setTooltipRef",(function(e){n.tooltip=e})),P(_(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(_(n=L(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(_(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(_(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(_(n),"syncState",(function(e){n.setState(e)})),P(_(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(_(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(X(t)!==X(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=X(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var M=v<h?A.NEXT:A.PREV;o===A.STOP&&(M=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:M,index:h,lifecycle:G.INIT})}var _=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var L=we(m[t.index],this.props);this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:L,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},_,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},_,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},_,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Me=Re;function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=_e(Ge(!0),2),t=e[0],n=e[1],o=_e(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isSecondary:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(Me,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Xe=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Je=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Je,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){_.current=new wp.api.models.Settings,!1===t&&_.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_menu_icons)),E(Boolean(e.themeisle_blocks_settings_default_block)),k(e.themeisle_google_map_block_api_key),C(e.otter_blocks_logger_flag),n(!0)}))})),Boolean(otterObj.stylesExist)||M(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!1),2),v=y[0],b=y[1],g=et(bt(!0),2),w=g[0],E=g[1],O=et(bt(""),2),S=O[0],k=O[1],x=et(bt("no"),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=et(bt(!1),2),R=I[0],M=I[1],_=vt(null),L=(vt(null),function(e,t,n){a(!0),F(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(A(t,n[e]),setTimeout((function(){F(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){F(nt("An unknown error occurred."),"danger"),a(!1)}),800),_.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){F(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),A=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"menuIcons":b(t);break;case"isDefaultSection":E(t);break;case"googleMapsAPI":k(t);break;case"isLoggingData":C(t)}},D=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,F(t.data.message,t.success?"success":"danger"),M(!0),a(!1),j(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),F=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return L("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return L("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})),Boolean(otterObj.navExists)&&wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Menu Icons Module"),help:"Menu Icons module allows to add icons to navigation menu items in Block Editor.",checked:v,onChange:function(){return L("themeisle_blocks_settings_menu_icons","menuIcons",!v)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:w,onChange:function(){return L("themeisle_blocks_settings_default_block","isDefaultSection",!w)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:S,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return k(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return L("themeisle_google_map_block_api_key","googleMapsAPI",S)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===P,onChange:function(){return L("otter_blocks_logger_flag","isLoggingData","yes"===P?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:R,action:function(){return j(!0)}})),wp.element.createElement(ut,null,wp.element.createElement("div",null,[nt("Let us know how we can improve. Vote on existing ideas or suggest new ones.")," ",wp.element.createElement(st,{href:"https://otter.nolt.io/"},nt("Give feedback!"))])))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),T&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return j(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return j(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:D},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Xe,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
|
otter-blocks.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin Name: Gutenberg Blocks and Template Library by Otter
|
8 |
* Plugin URI: https://themeisle.com/plugins/otter-blocks
|
9 |
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
|
10 |
-
* Version: 1.5.
|
11 |
* Author: ThemeIsle
|
12 |
* Author URI: https://themeisle.com
|
13 |
* License: GPL-2.0+
|
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
|
27 |
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
|
28 |
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
|
29 |
-
define( 'OTTER_BLOCKS_VERSION', '1.5.
|
30 |
define( 'OTTER_BLOCKS_DEV', false );
|
31 |
|
32 |
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
|
7 |
* Plugin Name: Gutenberg Blocks and Template Library by Otter
|
8 |
* Plugin URI: https://themeisle.com/plugins/otter-blocks
|
9 |
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
|
10 |
+
* Version: 1.5.6
|
11 |
* Author: ThemeIsle
|
12 |
* Author URI: https://themeisle.com
|
13 |
* License: GPL-2.0+
|
26 |
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
|
27 |
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
|
28 |
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
|
29 |
+
define( 'OTTER_BLOCKS_VERSION', '1.5.6' );
|
30 |
define( 'OTTER_BLOCKS_DEV', false );
|
31 |
|
32 |
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
|
readme.md
CHANGED
@@ -1,26 +1,24 @@
|
|
1 |
# Gutenberg Blocks and Template Library by Otter #
|
2 |
-
**Contributors:** [themeisle](https://profiles.wordpress.org/themeisle), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani)
|
3 |
**Tags:** gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
|
4 |
**Requires at least:** 5.4
|
5 |
-
**Tested up to:** 5.
|
6 |
**Requires PHP:** 5.4
|
7 |
**Stable tag:** trunk
|
8 |
**License:** GPLv3
|
9 |
**License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
11 |
-
Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages in Gutenberg.
|
12 |
|
13 |
## Description ##
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
A feature that is worth mentioning is the Section Block that allows you to build columns and various layouts in Gutenberg. Moreover, aside from the Gutenberg blocks, the plugin provides a beautiful library of pre-built Gutenberg-compatible templates that you can simply import via one click. The templates have block-friendly layouts that can be customized with no effort.
|
22 |
|
23 |
-
|
24 |
|
25 |
It has:
|
26 |
|
@@ -38,6 +36,48 @@ It has:
|
|
38 |
- Sharing Icons Block
|
39 |
- Plugin Card Block
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
## Screenshots ##
|
42 |
|
43 |
1. Section Block
|
@@ -46,9 +86,21 @@ It has:
|
|
46 |
|
47 |
## Changelog ##
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
50 |
|
51 |
-
- Dropped support for WordPress 5.4
|
52 |
- Store images locally when importing templates
|
53 |
- The improved template import mechanism
|
54 |
- Fix CSS file is not enqueued for posts outside the main loop
|
1 |
# Gutenberg Blocks and Template Library by Otter #
|
2 |
+
**Contributors:** [themeisle](https://profiles.wordpress.org/themeisle), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [soarerobertdaniel7](https://profiles.wordpress.org/soarerobertdaniel7), [mariamunteanu1](https://profiles.wordpress.org/mariamunteanu1)
|
3 |
**Tags:** gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
|
4 |
**Requires at least:** 5.4
|
5 |
+
**Tested up to:** 5.5
|
6 |
**Requires PHP:** 5.4
|
7 |
**Stable tag:** trunk
|
8 |
**License:** GPLv3
|
9 |
**License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
11 |
+
Otter is a dynamic collection of page building blocks and templates for the WordPress block editor. Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages in Gutenberg.
|
12 |
|
13 |
## Description ##
|
14 |
|
15 |
+
Otter is a dynamic collection of page building blocks and templates for the WordPress block editor.
|
16 |
|
17 |
+
The growing list of page building blocks covers all of the elements you need to build your WordPress site. Combine the blocks with Otter to build stunning pages and posts with the simplicity of designing.
|
18 |
|
19 |
+
With a lightweight approach, Otter enhances WordPress site building without impacting site speed. With Otter, you can truly harness the potential of the new WordPress era.
|
|
|
|
|
20 |
|
21 |
+
https://www.youtube.com/watch?v=ypIeTgvYeRE
|
22 |
|
23 |
It has:
|
24 |
|
36 |
- Sharing Icons Block
|
37 |
- Plugin Card Block
|
38 |
|
39 |
+
# STUNNING WEB PAGES WITH DRAG AND DROP EFFICIENCY #
|
40 |
+
|
41 |
+
Otter can be used to build everything from a personal blog to an international store without losing the personal touch. Otter’s famous ease-of-use transforms basic blocks into expressive layouts in seconds:
|
42 |
+
|
43 |
+
# DO IT YOUR WAY WITH SECTION BLOCKS #
|
44 |
+
|
45 |
+
With Otter’s Section Block you will be able to create innovative layouts that improve readability with enhanced visual appeal. The Section Block lets you create interesting layouts that help emphasis your content.
|
46 |
+
|
47 |
+
You can create your own layouts or select one of Otter’s layouts and templates. Each of the layouts has been professionally designed to provide a range of visually pleasing sections like About, Headers, Pricing, Testimonials.
|
48 |
+
|
49 |
+
You can take advantage of the responsive controls to increase padding and margins or drop elements to create visual experiences perfect for mobile, tablet, or desktop.
|
50 |
+
|
51 |
+
# TEMPLATE LIBRARY #
|
52 |
+
|
53 |
+
Unleash your inner designer with Otter’s template library. With over 50 different templates you can build a professional site quickly and efficiently.
|
54 |
+
|
55 |
+
The template library provides a range of different elements in a variety of styles to help you build great pages.
|
56 |
+
|
57 |
+
All of your website’s most important areas are covered; headers, testimonials, pricing tables, content and more.
|
58 |
+
|
59 |
+
From headers with images to headers with features, from content with images to about sections with video. Otter has a template to match your vision, just add the content and you’ll be set.
|
60 |
+
|
61 |
+
# REDESIGNED GOOGLE MAPS BLOCK #
|
62 |
+
|
63 |
+
Otter’s integration with the WordPress Block Editor allows you to see your changes live from the backend. Innovative blocks like the Google Maps block help you customise the experience right down to the color and description of the markers, search for places by name or coordinates, add and remove map controls, or change the size and style of the maps with a few clicks.
|
64 |
+
|
65 |
+
# CSS ON EVERY BLOCK #
|
66 |
+
|
67 |
+
Otter’s commitment to user centred building includes a unique block-by-block CSS extension that makes it easy for you to add CSS to your blocks. The additional CSS area is integrated into the backend to make targeting your blocks easier. You can add media queries, change colours, and add borders all in one easy to follow area.
|
68 |
+
|
69 |
+
# CUSTOMIZE EVERY BLOCK #
|
70 |
+
|
71 |
+
More than layouts and sections, you need advanced customisation options to give you control over style and appearance. With Otter, you’ve got it all.
|
72 |
+
|
73 |
+
Create mobile-friendly designs with Otter’s built-in responsive settings. Each block can be tweaked to provide a consistent experience for mobile, tablet, and desktop.
|
74 |
+
|
75 |
+
Help your site shine with design options built to enhance your brand. Every block has customization support to help you style your site according to your vision:
|
76 |
+
|
77 |
+
- Color controls for primary, accents, and backgrounds.
|
78 |
+
- Animation at the click of a button.
|
79 |
+
- Typography controls from spacing to font choice.
|
80 |
+
|
81 |
## Screenshots ##
|
82 |
|
83 |
1. Section Block
|
86 |
|
87 |
## Changelog ##
|
88 |
|
89 |
+
##### [Version 1.5.6](https://github.com/Codeinwp/otter-blocks/compare/v1.5.5...v1.5.6) (2020-08-03)
|
90 |
+
|
91 |
+
- Button Group Improvements
|
92 |
+
- Fixed Caption field missing from Slider Block
|
93 |
+
- Image management in Slider & Gallery Block
|
94 |
+
- Fix issue with CSS inline loading twice
|
95 |
+
- Fix Posts Block offset bug
|
96 |
+
- Remove default font size from Posts Block
|
97 |
+
- Improve Animation Picker
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
103 |
|
|
|
104 |
- Store images locally when importing templates
|
105 |
- The improved template import mechanism
|
106 |
- Fix CSS file is not enqueued for posts outside the main loop
|
readme.txt
CHANGED
@@ -1,26 +1,24 @@
|
|
1 |
=== Gutenberg Blocks and Template Library by Otter ===
|
2 |
-
Contributors: themeisle, hardeepasrani
|
3 |
Tags: gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
|
4 |
Requires at least: 5.4
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.4
|
7 |
Stable tag: trunk
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
11 |
-
Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages in Gutenberg.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
A feature that is worth mentioning is the Section Block that allows you to build columns and various layouts in Gutenberg. Moreover, aside from the Gutenberg blocks, the plugin provides a beautiful library of pre-built Gutenberg-compatible templates that you can simply import via one click. The templates have block-friendly layouts that can be customized with no effort.
|
22 |
|
23 |
-
|
24 |
|
25 |
It has:
|
26 |
|
@@ -38,6 +36,48 @@ It has:
|
|
38 |
- Sharing Icons Block
|
39 |
- Plugin Card Block
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
== Screenshots ==
|
42 |
|
43 |
1. Section Block
|
@@ -46,9 +86,21 @@ It has:
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
50 |
|
51 |
-
- Dropped support for WordPress 5.4
|
52 |
- Store images locally when importing templates
|
53 |
- The improved template import mechanism
|
54 |
- Fix CSS file is not enqueued for posts outside the main loop
|
1 |
=== Gutenberg Blocks and Template Library by Otter ===
|
2 |
+
Contributors: themeisle, hardeepasrani, soarerobertdaniel7, mariamunteanu1
|
3 |
Tags: gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
|
4 |
Requires at least: 5.4
|
5 |
+
Tested up to: 5.5
|
6 |
Requires PHP: 5.4
|
7 |
Stable tag: trunk
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
11 |
+
Otter is a dynamic collection of page building blocks and templates for the WordPress block editor. Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages in Gutenberg.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Otter is a dynamic collection of page building blocks and templates for the WordPress block editor.
|
16 |
|
17 |
+
The growing list of page building blocks covers all of the elements you need to build your WordPress site. Combine the blocks with Otter to build stunning pages and posts with the simplicity of designing.
|
18 |
|
19 |
+
With a lightweight approach, Otter enhances WordPress site building without impacting site speed. With Otter, you can truly harness the potential of the new WordPress era.
|
|
|
|
|
20 |
|
21 |
+
https://www.youtube.com/watch?v=ypIeTgvYeRE
|
22 |
|
23 |
It has:
|
24 |
|
36 |
- Sharing Icons Block
|
37 |
- Plugin Card Block
|
38 |
|
39 |
+
=== STUNNING WEB PAGES WITH DRAG AND DROP EFFICIENCY ===
|
40 |
+
|
41 |
+
Otter can be used to build everything from a personal blog to an international store without losing the personal touch. Otter’s famous ease-of-use transforms basic blocks into expressive layouts in seconds:
|
42 |
+
|
43 |
+
=== DO IT YOUR WAY WITH SECTION BLOCKS ===
|
44 |
+
|
45 |
+
With Otter’s Section Block you will be able to create innovative layouts that improve readability with enhanced visual appeal. The Section Block lets you create interesting layouts that help emphasis your content.
|
46 |
+
|
47 |
+
You can create your own layouts or select one of Otter’s layouts and templates. Each of the layouts has been professionally designed to provide a range of visually pleasing sections like About, Headers, Pricing, Testimonials.
|
48 |
+
|
49 |
+
You can take advantage of the responsive controls to increase padding and margins or drop elements to create visual experiences perfect for mobile, tablet, or desktop.
|
50 |
+
|
51 |
+
=== TEMPLATE LIBRARY ===
|
52 |
+
|
53 |
+
Unleash your inner designer with Otter’s template library. With over 50 different templates you can build a professional site quickly and efficiently.
|
54 |
+
|
55 |
+
The template library provides a range of different elements in a variety of styles to help you build great pages.
|
56 |
+
|
57 |
+
All of your website’s most important areas are covered; headers, testimonials, pricing tables, content and more.
|
58 |
+
|
59 |
+
From headers with images to headers with features, from content with images to about sections with video. Otter has a template to match your vision, just add the content and you’ll be set.
|
60 |
+
|
61 |
+
=== REDESIGNED GOOGLE MAPS BLOCK ===
|
62 |
+
|
63 |
+
Otter’s integration with the WordPress Block Editor allows you to see your changes live from the backend. Innovative blocks like the Google Maps block help you customise the experience right down to the color and description of the markers, search for places by name or coordinates, add and remove map controls, or change the size and style of the maps with a few clicks.
|
64 |
+
|
65 |
+
=== CSS ON EVERY BLOCK ===
|
66 |
+
|
67 |
+
Otter’s commitment to user centred building includes a unique block-by-block CSS extension that makes it easy for you to add CSS to your blocks. The additional CSS area is integrated into the backend to make targeting your blocks easier. You can add media queries, change colours, and add borders all in one easy to follow area.
|
68 |
+
|
69 |
+
=== CUSTOMIZE EVERY BLOCK ===
|
70 |
+
|
71 |
+
More than layouts and sections, you need advanced customisation options to give you control over style and appearance. With Otter, you’ve got it all.
|
72 |
+
|
73 |
+
Create mobile-friendly designs with Otter’s built-in responsive settings. Each block can be tweaked to provide a consistent experience for mobile, tablet, and desktop.
|
74 |
+
|
75 |
+
Help your site shine with design options built to enhance your brand. Every block has customization support to help you style your site according to your vision:
|
76 |
+
|
77 |
+
- Color controls for primary, accents, and backgrounds.
|
78 |
+
- Animation at the click of a button.
|
79 |
+
- Typography controls from spacing to font choice.
|
80 |
+
|
81 |
== Screenshots ==
|
82 |
|
83 |
1. Section Block
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
##### [Version 1.5.6](https://github.com/Codeinwp/otter-blocks/compare/v1.5.5...v1.5.6) (2020-08-03)
|
90 |
+
|
91 |
+
- Button Group Improvements
|
92 |
+
- Fixed Caption field missing from Slider Block
|
93 |
+
- Image management in Slider & Gallery Block
|
94 |
+
- Fix issue with CSS inline loading twice
|
95 |
+
- Fix Posts Block offset bug
|
96 |
+
- Remove default font size from Posts Block
|
97 |
+
- Improve Animation Picker
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
##### [Version 1.5.5](https://github.com/Codeinwp/otter-blocks/compare/v1.5.4...v1.5.5) (2020-06-22)
|
103 |
|
|
|
104 |
- Store images locally when importing templates
|
105 |
- The improved template import mechanism
|
106 |
- Fix CSS file is not enqueued for posts outside the main loop
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit00ab2d9d320217657b46871f654c1921::getLoader();
|
vendor/codeinwp/gutenberg-animation/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.0.6](https://github.com/Codeinwp/gutenberg-animation/compare/v1.0.5...v1.0.6) (2020-06-13)
|
2 |
|
3 |
- Remove used function
|
1 |
+
##### [Version 1.0.7](https://github.com/Codeinwp/gutenberg-animation/compare/v1.0.6...v1.0.7) (2020-08-03)
|
2 |
+
|
3 |
+
- Improve Animation picker.
|
4 |
+
- Improve Animation picker.
|
5 |
+
|
6 |
##### [Version 1.0.6](https://github.com/Codeinwp/gutenberg-animation/compare/v1.0.5...v1.0.6) (2020-06-13)
|
7 |
|
8 |
- Remove used function
|
vendor/codeinwp/gutenberg-animation/assets/css/style.css
CHANGED
@@ -1,18 +1,106 @@
|
|
1 |
.hidden-animated {
|
2 |
-
|
3 |
}
|
4 |
|
5 |
.animated.delay-100ms {
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
|
10 |
.animated.delay-200ms {
|
11 |
-
|
12 |
-
|
13 |
}
|
14 |
|
15 |
.animated.delay-500ms {
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
1 |
.hidden-animated {
|
2 |
+
visibility: hidden;
|
3 |
}
|
4 |
|
5 |
.animated.delay-100ms {
|
6 |
+
-webkit-animation-delay: 100ms;
|
7 |
+
animation-delay: 100ms;
|
8 |
}
|
9 |
|
10 |
.animated.delay-200ms {
|
11 |
+
-webkit-animation-delay: 200ms;
|
12 |
+
animation-delay: 200ms;
|
13 |
}
|
14 |
|
15 |
.animated.delay-500ms {
|
16 |
+
-webkit-animation-delay: 500ms;
|
17 |
+
animation-delay: 500ms;
|
18 |
+
}
|
19 |
+
|
20 |
+
.themeisle-animations-control__popover:not( .is-mobile ).is-bottom {
|
21 |
+
z-index: 9999999;
|
22 |
+
}
|
23 |
+
|
24 |
+
.themeisle-animations-control__popover .components-popover__content {
|
25 |
+
overflow-y: hidden;
|
26 |
+
}
|
27 |
+
|
28 |
+
.themeisle-animations-control__popover .components-popover__content .components-menu-group {
|
29 |
+
padding: 7px;
|
30 |
+
}
|
31 |
+
|
32 |
+
.themeisle-animations-control__popover .components-popover__content .components-popover__items {
|
33 |
+
max-height: 300px;
|
34 |
+
overflow-y: auto;
|
35 |
+
}
|
36 |
+
|
37 |
+
.themeisle-animations-control__popover .components-popover__content .components-popover__items button.is-selected {
|
38 |
+
background: #f8f9f9;
|
39 |
+
}
|
40 |
+
|
41 |
+
.themeisle-animations-control__popover .components-popover__content .components-popover__items .themeisle-animations-control__category {
|
42 |
+
font-weight: bold;
|
43 |
+
}
|
44 |
+
|
45 |
+
.themeisle-animations-control__popover .components-popover__content .components-popover__items button i {
|
46 |
+
margin-right: 5px;
|
47 |
+
}
|
48 |
+
|
49 |
+
.themeisle-animations-control .components-dropdown {
|
50 |
+
display: flex;
|
51 |
+
}
|
52 |
+
|
53 |
+
.themeisle-animations-control .themeisle-animations-control__button {
|
54 |
+
background: transparent;
|
55 |
+
position: relative;
|
56 |
+
width: 100%;
|
57 |
+
height: auto;
|
58 |
+
line-height: 28px;
|
59 |
+
padding: 0 12px 2px;
|
60 |
+
box-shadow: 0 0 0 transparent;
|
61 |
+
transition: box-shadow 0.1s linear;
|
62 |
+
border-radius: 4px;
|
63 |
+
border: 1px solid #8d96a0;
|
64 |
+
}
|
65 |
+
|
66 |
+
.themeisle-animations-control .themeisle-animations-control__button.is-button {
|
67 |
+
background: transparent;
|
68 |
+
}
|
69 |
+
|
70 |
+
.themeisle-animations-control .themeisle-animations-control__button:hover {
|
71 |
+
background: #fafafa;
|
72 |
+
border-color: #999;
|
73 |
+
box-shadow: inset 0 -1px 0 #999;
|
74 |
+
color: #23282d;
|
75 |
+
text-decoration: none;
|
76 |
+
}
|
77 |
+
|
78 |
+
.themeisle-animations-control .themeisle-animations-control__button:focus {
|
79 |
+
border: 1px solid black;
|
80 |
+
}
|
81 |
+
|
82 |
+
.themeisle-animations-control .themeisle-animations-control__button:after {
|
83 |
+
content: "";
|
84 |
+
pointer-events: none;
|
85 |
+
display: block;
|
86 |
+
width: 0;
|
87 |
+
height: 0;
|
88 |
+
border-left: 3px solid transparent;
|
89 |
+
border-right: 3px solid transparent;
|
90 |
+
border-top: 5px solid currentColor;
|
91 |
+
margin-left: 4px;
|
92 |
+
margin-right: 2px;
|
93 |
+
right: 8px;
|
94 |
+
top: 12px;
|
95 |
+
position: absolute;
|
96 |
+
}
|
97 |
+
|
98 |
+
@media ( max-width: 782px ) {
|
99 |
+
.themeisle-animations-control .themeisle-animations-control__button {
|
100 |
+
padding: 5px 24px 5px 8px;
|
101 |
+
}
|
102 |
+
|
103 |
+
.themeisle-animations-control .themeisle-animations-control__button:after {
|
104 |
+
top: 16px;
|
105 |
+
}
|
106 |
}
|
vendor/codeinwp/gutenberg-animation/build/animate.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var
|
1 |
+
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e){function n(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){f=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(f)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var r=["none","bounce","flash","pulse","rubberBand","shake","headShake","swing","tada","wobble","jello","heartBeat","hinge","jackInTheBox","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedIn","lightSpeedOut","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollIn","rollOut"],i=["bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","flipOutX","flipOutY","lightSpeedOut","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],a=["none","delay-100ms","delay-200ms","delay-500ms","delay-1s","delay-2s","delay-3s","delay-4s","delay-5s"],u=["none","slow","slower","fast","faster"];window.onload=function(){var t,e=document.querySelectorAll(".animated"),o=n(e);try{var l=function(){var e=t.value;if(classes=e.classList,e.animationClasses=[],!f(e)){var n=r.find((function(t){return Array.from(classes).find((function(e){return e===t}))})),o=a.find((function(t){return Array.from(classes).find((function(e){return e===t}))})),l=u.find((function(t){return Array.from(classes).find((function(e){return e===t}))}));e.classList.add("hidden-animated"),n&&(e.animationClasses.push(n),e.classList.remove(n)),o&&(e.animationClasses.push(o),e.classList.remove(o)),l&&(e.animationClasses.push(l),e.classList.remove(l))}i.forEach((function(t){e.className.includes(t)&&e.addEventListener("animationend",(function(){e.classList.remove(t)}))}))};for(o.s();!(t=o.n()).done;)l()}catch(t){o.e(t)}finally{o.f()}window.onscroll=function(){var t,o=n(e);try{var r=function(){var e=t.value;e.getBoundingClientRect().top<=.75*window.innerHeight&&0<e.getBoundingClientRect().top&&(e.animationClasses&&0<e.animationClasses.length&&(e.animationClasses.forEach((function(t){return e.classList.add(t)})),e.classList.remove("hidden-animated"),delete e.animationClasses))};for(o.s();!(t=o.n()).done;)r()}catch(t){o.e(t)}finally{o.f()}}};var f=function(t){var e=window.scrollY||window.pageYOffset,n=t.getBoundingClientRect().top+e,o=e,r=e+window.innerHeight,i=n,a=n+t.clientHeight;return a>=o&&a<=r||i<=r&&i>=o}}]);
|
vendor/codeinwp/gutenberg-animation/build/build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function a(l){if(t[l])return t[l].exports;var n=t[l]={i:l,l:!1,exports:{}};return e[l].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(l,n,function(t){return e[t]}.bind(null,n));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=1)}([,function(e,t,a){"use strict";a.r(t);var l=wp.i18n.__,n=[{label:l("None"),value:"none"},{label:l("Bounce"),value:"bounce"},{label:l("Flash"),value:"flash"},{label:l("Pulse"),value:"pulse"},{label:l("Rubber Band"),value:"rubberBand"},{label:l("Shake"),value:"shake"},{label:l("Head Shake"),value:"headShake"},{label:l("Swing"),value:"swing"},{label:l("TaDa"),value:"tada"},{label:l("Wobble"),value:"wobble"},{label:l("Jello"),value:"jello"},{label:l("Heart Beat"),value:"heartBeat"},{label:l("Hinge"),value:"hinge"},{label:l("Jack In The Box"),value:"jackInTheBox"},{label:l("Bounce In"),value:"bounceIn"},{label:l("Bounce In Down"),value:"bounceInDown"},{label:l("Bounce In Left"),value:"bounceInLeft"},{label:l("Bounce In Right"),value:"bounceInRight"},{label:l("Bounce In Up"),value:"bounceInUp"},{label:l("Bounce Out"),value:"bounceOut"},{label:l("Bounce Out Down"),value:"bounceOutDown"},{label:l("Bounce Out Left"),value:"bounceOutLeft"},{label:l("Bounce Out Right"),value:"bounceOutRight"},{label:l("Bounce Out Up"),value:"bounceOutUp"},{label:l("Fade In"),value:"fadeIn"},{label:l("Fade In Down"),value:"fadeInDown"},{label:l("Fade In Down Big"),value:"fadeInDownBig"},{label:l("Fade In Left"),value:"fadeInLeft"},{label:l("Fade In Left Big"),value:"fadeInLeftBig"},{label:l("Fade In Right"),value:"fadeInRight"},{label:l("Fade In Right Big"),value:"fadeInRightBig"},{label:l("Fade In Up"),value:"fadeInUp"},{label:l("Fade Out"),value:"fadeOut"},{label:l("Fade Out Down"),value:"fadeOutDown"},{label:l("Fade Out Down Big"),value:"fadeOutDownBig"},{label:l("Fade Out Left"),value:"fadeOutLeft"},{label:l("Fade Out Left Big"),value:"fadeOutLeftBig"},{label:l("Fade Out Right"),value:"fadeOutRight"},{label:l("Fade In Left Big"),value:"fadeOutRightBig"},{label:l("Fade Out Up"),value:"fadeOutUp"},{label:l("Fade Out Up Big"),value:"fadeOutUpBig"},{label:l("Flip"),value:"flip"},{label:l("Flip In X"),value:"flipInX"},{label:l("Flip In Y"),value:"flipInY"},{label:l("Flip Out X"),value:"flipOutX"},{label:l("Flip Out Y"),value:"flipOutY"},{label:l("Light Speed In"),value:"lightSpeedIn"},{label:l("Light Speed Out"),value:"lightSpeedOut"},{label:l("Rotate In"),value:"rotateIn"},{label:l("Rotate In Down Left"),value:"rotateInDownLeft"},{label:l("Rotate In Down Right"),value:"rotateInDownRight"},{label:l("Rotate In Up Left"),value:"rotateInUpLeft"},{label:l("Rotate In Up Right"),value:"rotateInUpRight"},{label:l("Rotate Out"),value:"rotateOut"},{label:l("Rotate Out Down Left"),value:"rotateOutDownLeft"},{label:l("Rotate Out Down Right"),value:"rotateOutDownRight"},{label:l("Rotate Out Up Left"),value:"rotateOutUpLeft"},{label:l("Rotate Out Up Right"),value:"rotateOutUpRight"},{label:l("Slide In Down"),value:"slideInDown"},{label:l("Slide In Left"),value:"slideInLeft"},{label:l("Slide In Right"),value:"slideInRight"},{label:l("Slide In Up"),value:"slideInUp"},{label:l("Slide Out Down"),value:"slideOutDown"},{label:l("Slide Out Left"),value:"slideOutLeft"},{label:l("Slide Out Right"),value:"slideOutRight"},{label:l("Slide Out Up"),value:"slideOutUp"},{label:l("Zoom In"),value:"zoomIn"},{label:l("Zoom In Down"),value:"zoomInDown"},{label:l("Zoom In Left"),value:"zoomInLeft"},{label:l("Zoom In Right"),value:"zoomInRight"},{label:l("Zoom In Up"),value:"zoomInUp"},{label:l("Zoom Out"),value:"zoomOut"},{label:l("Zoom Out Down"),value:"zoomOutDown"},{label:l("Zoom Out Left"),value:"zoomOutLeft"},{label:l("Zoom Out Right"),value:"zoomOutRight"},{label:l("Zoom Out Up"),value:"zoomOutUp"},{label:l("Roll In"),value:"rollIn"},{label:l("Roll Out"),value:"rollOut"}],o=["bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","flipOutX","flipOutY","lightSpeedOut","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],u=[{label:l("Default"),value:"none"},{label:l("100 Milliseconds"),value:"delay-100ms"},{label:l("200 Milliseconds"),value:"delay-200ms"},{label:l("500 Milliseconds"),value:"delay-500ms"},{label:l("One Second"),value:"delay-1s"},{label:l("Two Second"),value:"delay-2s"},{label:l("Three Second"),value:"delay-3s"},{label:l("Four Second"),value:"delay-4s"},{label:l("Five Second"),value:"delay-5s"}],i=[{label:l("Default"),value:"none"},{label:l("Slow"),value:"slow"},{label:l("Slower"),value:"slower"},{label:l("Fast"),value:"fast"},{label:l("Faster"),value:"faster"}];function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,a,l,n,o,u){try{var i=e[o](u),r=i.value}catch(e){return void a(e)}i.done?t(r):Promise.resolve(r).then(l,n)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?b(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=wp.i18n.__,h=wp.components.SelectControl,O=wp.element,g=O.Component,w=O.Fragment,y=function(e){function t(){var e;return p(this,t),(e=d(this,f(t).apply(this,arguments))).updateAnimation=e.updateAnimation.bind(b(e)),e.updateDelay=e.updateDelay.bind(b(e)),e.updateSpeed=e.updateSpeed.bind(b(e)),e.state={animation:"none",delay:"default",speed:"default"},e}var a,l,r,O,g;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),a=t,(l=[{key:"componentDidMount",value:function(){var e;if(this.props.attributes.className){e=(e=this.props.attributes.className).split(" ");var t=Array.from(n).find((function(t){return e.find((function(e){return e===t.value}))})),a=Array.from(u).find((function(t){return e.find((function(e){return e===t.value}))})),l=Array.from(i).find((function(t){return e.find((function(e){return e===t.value}))}));this.setState({animation:t?t.value:"none",delay:a?a.value:"default",speed:l?l.value:"default"})}}},{key:"updateAnimation",value:(O=regeneratorRuntime.mark((function e(t){var a,l,n,u,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l="none"!==t?t:"",this.props.attributes.className?(a=(a=this.props.attributes.className).split(" "),n=a.find((function(e){return e===i.state.animation})),a.find((function(e){return"animated"===e}))||a.push("animated"),n?a=a.join(" ").replace(this.state.animation,l):(a.push(l),a=a.join(" "))):a="animated ".concat(l),"none"===t&&(a=a.replace("animated","").replace(this.state.delay,"").replace(this.state.speed,""),this.setState({delay:"default",speed:"defualt"})),a=a.replace(/\s+/g," "),this.setState({animation:t}),e.next=7,this.props.setAttributes({className:a});case 7:(u=document.querySelector("#block-".concat(this.props.clientId," .animated")))&&o.forEach((function(e){u.className.includes(e)&&u.addEventListener("animationend",(function(){u.classList.remove(e),u.addEventListener("animationstart",(function(){u.classList.remove(e)}))}))}));case 9:case"end":return e.stop()}}),e,this)})),g=function(){var e=this,t=arguments;return new Promise((function(a,l){var n=O.apply(e,t);function o(e){s(n,a,l,o,u,"next",e)}function u(e){s(n,a,l,o,u,"throw",e)}o(void 0)}))},function(e){return g.apply(this,arguments)})},{key:"updateDelay",value:function(e){var t,a=this,l="none"!==e?e:"";this.props.attributes.className?(t=(t=this.props.attributes.className).split(" ")).find((function(e){return e===a.state.delay}))?t=t.join(" ").replace(this.state.delay,l):(t.push(l),t=t.join(" ")):t=l,t=t.replace(/\s+/g," "),this.setState({delay:e}),this.props.setAttributes({className:t})}},{key:"updateSpeed",value:function(e){var t,a=this,l="none"!==e?e:"";this.props.attributes.className?(t=(t=this.props.attributes.className).split(" ")).find((function(e){return e===a.state.speed}))?t=t.join(" ").replace(this.state.speed,l):(t.push(l),t=t.join(" ")):t=l,t=t.replace(/\s+/g," "),this.setState({speed:e}),this.props.setAttributes({className:t})}},{key:"render",value:function(){return wp.element.createElement(w,null,wp.element.createElement(h,{label:m("Animation"),value:this.state.animation||"none",options:n,onChange:this.updateAnimation}),"none"!==this.state.animation&&wp.element.createElement(w,null,wp.element.createElement(h,{label:m("Delay"),value:this.state.delay||"default",options:u,onChange:this.updateDelay}),wp.element.createElement(h,{label:m("Speed"),value:this.state.speed||"default",options:i,onChange:this.updateSpeed})))}}])&&c(a.prototype,l),r&&c(a,r),t}(g),I=wp.i18n.__,R=wp.blocks.hasBlockSupport,S=wp.components.PanelBody,D=wp.compose.createHigherOrderComponent,L=(wp.blockEditor||wp.editor).InspectorControls,B=wp.element.Fragment;(0,wp.hooks.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D((function(e){return function(t){return R(t.name,"customClassName",!0)&&t.isSelected?wp.element.createElement(B,null,wp.element.createElement(e,t),wp.element.createElement(L,null,wp.element.createElement(S,{title:I("Animations"),initialOpen:!1},wp.element.createElement(y,{clientId:t.clientId,setAttributes:t.setAttributes,attributes:t.attributes})))):wp.element.createElement(e,t)}}),"withInspectorControl"))}]);
|
1 |
+
!function(e){var t={};function l(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,l),a.l=!0,a.exports}l.m=e,l.c=t,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)l.d(n,a,function(t){return e[t]}.bind(null,a));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l(l.s=1)}([,function(e,t,l){"use strict";l.r(t);var n=wp.i18n.__,a=[{label:n("None"),value:"none"},{label:n("Bounce"),value:"bounce"},{label:n("Bounce In"),value:"bounceIn"},{label:n("Bounce In Down"),value:"bounceInDown"},{label:n("Bounce In Left"),value:"bounceInLeft"},{label:n("Bounce In Right"),value:"bounceInRight"},{label:n("Bounce In Up"),value:"bounceInUp"},{label:n("Bounce Out"),value:"bounceOut"},{label:n("Bounce Out Down"),value:"bounceOutDown"},{label:n("Bounce Out Left"),value:"bounceOutLeft"},{label:n("Bounce Out Right"),value:"bounceOutRight"},{label:n("Bounce Out Up"),value:"bounceOutUp"},{label:n("Fade In"),value:"fadeIn"},{label:n("Fade In Down"),value:"fadeInDown"},{label:n("Fade In Down Big"),value:"fadeInDownBig"},{label:n("Fade In Left"),value:"fadeInLeft"},{label:n("Fade In Left Big"),value:"fadeInLeftBig"},{label:n("Fade In Right"),value:"fadeInRight"},{label:n("Fade In Right Big"),value:"fadeInRightBig"},{label:n("Fade In Up"),value:"fadeInUp"},{label:n("Fade Out"),value:"fadeOut"},{label:n("Fade Out Down"),value:"fadeOutDown"},{label:n("Fade Out Down Big"),value:"fadeOutDownBig"},{label:n("Fade Out Left"),value:"fadeOutLeft"},{label:n("Fade Out Left Big"),value:"fadeOutLeftBig"},{label:n("Fade Out Right"),value:"fadeOutRight"},{label:n("Fade Out Right Big"),value:"fadeOutRightBig"},{label:n("Fade Out Up"),value:"fadeOutUp"},{label:n("Fade Out Up Big"),value:"fadeOutUpBig"},{label:n("Flip"),value:"flip"},{label:n("Flip In X"),value:"flipInX"},{label:n("Flip In Y"),value:"flipInY"},{label:n("Flip Out X"),value:"flipOutX"},{label:n("Flip Out Y"),value:"flipOutY"},{label:n("Rotate In"),value:"rotateIn"},{label:n("Rotate In Down Left"),value:"rotateInDownLeft"},{label:n("Rotate In Down Right"),value:"rotateInDownRight"},{label:n("Rotate In Up Left"),value:"rotateInUpLeft"},{label:n("Rotate In Up Right"),value:"rotateInUpRight"},{label:n("Rotate Out"),value:"rotateOut"},{label:n("Rotate Out Down Left"),value:"rotateOutDownLeft"},{label:n("Rotate Out Down Right"),value:"rotateOutDownRight"},{label:n("Rotate Out Up Left"),value:"rotateOutUpLeft"},{label:n("Rotate Out Up Right"),value:"rotateOutUpRight"},{label:n("Slide In Down"),value:"slideInDown"},{label:n("Slide In Left"),value:"slideInLeft"},{label:n("Slide In Right"),value:"slideInRight"},{label:n("Slide In Up"),value:"slideInUp"},{label:n("Slide Out Down"),value:"slideOutDown"},{label:n("Slide Out Left"),value:"slideOutLeft"},{label:n("Slide Out Right"),value:"slideOutRight"},{label:n("Slide Out Up"),value:"slideOutUp"},{label:n("Zoom In"),value:"zoomIn"},{label:n("Zoom In Down"),value:"zoomInDown"},{label:n("Zoom In Left"),value:"zoomInLeft"},{label:n("Zoom In Right"),value:"zoomInRight"},{label:n("Zoom In Up"),value:"zoomInUp"},{label:n("Zoom Out"),value:"zoomOut"},{label:n("Zoom Out Down"),value:"zoomOutDown"},{label:n("Zoom Out Left"),value:"zoomOutLeft"},{label:n("Zoom Out Right"),value:"zoomOutRight"},{label:n("Zoom Out Up"),value:"zoomOutUp"},{label:n("Roll In"),value:"rollIn"},{label:n("Roll Out"),value:"rollOut"},{label:n("Light Speed In"),value:"lightSpeedIn"},{label:n("Light Speed Out"),value:"lightSpeedOut"},{label:n("Flash"),value:"flash"},{label:n("Pulse"),value:"pulse"},{label:n("Rubber Band"),value:"rubberBand"},{label:n("Shake"),value:"shake"},{label:n("Head Shake"),value:"headShake"},{label:n("Swing"),value:"swing"},{label:n("TaDa"),value:"tada"},{label:n("Wobble"),value:"wobble"},{label:n("Jello"),value:"jello"},{label:n("Heart Beat"),value:"heartBeat"},{label:n("Hinge"),value:"hinge"},{label:n("Jack In The Box"),value:"jackInTheBox"}],o=[{label:"Bouncing",value:"bounce"},{label:"Fading",value:"fadeIn"},{label:"Flipping",value:"flip"},{label:"Rotating",value:"rotateIn"},{label:"Sliding",value:"slideInDown"},{label:"Zooming",value:"zoomIn"},{label:"Rolling",value:"rollIn"},{label:"Other",value:"lightSpeedIn"}],u=["bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","flipOutX","flipOutY","lightSpeedOut","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],r=[{label:n("None"),value:"none"},{label:n("100 Milliseconds"),value:"delay-100ms"},{label:n("200 Milliseconds"),value:"delay-200ms"},{label:n("500 Milliseconds"),value:"delay-500ms"},{label:n("One Second"),value:"delay-1s"},{label:n("Two Second"),value:"delay-2s"},{label:n("Three Second"),value:"delay-3s"},{label:n("Four Second"),value:"delay-4s"},{label:n("Five Second"),value:"delay-5s"}],i=[{label:n("Default"),value:"none"},{label:n("Slow"),value:"slow"},{label:n("Slower"),value:"slower"},{label:n("Fast"),value:"fast"},{label:n("Faster"),value:"faster"}];function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var l=[],n=!0,a=!1,o=void 0;try{for(var u,r=e[Symbol.iterator]();!(n=(u=r.next()).done)&&(l.push(u.value),!t||l.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(a)throw o}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);"Object"===l&&e.constructor&&(l=e.constructor.name);if("Map"===l||"Set"===l)return Array.from(e);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,n=new Array(t);l<t;l++)n[l]=e[l];return n}var f=wp.i18n.__,d=wp.components,b=d.BaseControl,m=d.Button,p=d.Dropdown,v=d.MenuGroup,O=d.MenuItem,g=d.TextControl,h=wp.compose.useInstanceId,w=wp.element,I=w.Fragment,y=w.useState;var S=function e(t){var l=t.animationsList,n=t.updateAnimation,a=t.currentAnimationLabel,u=t.setCurrentAnimationLabel,r=h(e),i=c(y(""),2),s=i[0],d=i[1],w=c(y(!1),2),S=w[0],L=w[1],R="inspector-themeisle-animations-control-".concat(r);return wp.element.createElement(b,{label:f("Animation"),id:R},wp.element.createElement(p,{contentClassName:"themeisle-animations-control__popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,l=e.onToggle;return wp.element.createElement(m,{isLarge:!0,className:"themeisle-animations-control__button",id:R,onClick:l,"aria-expanded":t},a)},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(v,{label:f("Animations")},wp.element.createElement(g,{placeholder:f("Search"),value:s,onChange:function(e){d(e),L(!1)}}),wp.element.createElement("div",{className:"components-popover__items"},l.map((function(e){return wp.element.createElement(I,null,""===s&&o.map((function(t){return t.value===e.value?wp.element.createElement("div",{className:"themeisle-animations-control__category"},t.label):""})),function(e,t){var l=!0;s&&s.toLowerCase().split(" ").forEach((function(t){e.label.toLowerCase().includes(t)||(l=!1)}));return l&&!S&&L(!0),l&&wp.element.createElement(O,{className:a===e.label?"is-selected":"",onClick:function(){u(e.label),n(e.value),t()}},e.label)}(e,t))})),!S&&wp.element.createElement("div",null,f("Nothing found. Try searching for something else!"))))}}))};function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var l=[],n=!0,a=!1,o=void 0;try{for(var u,r=e[Symbol.iterator]();!(n=(u=r.next()).done)&&(l.push(u.value),!t||l.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(a)throw o}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);"Object"===l&&e.constructor&&(l=e.constructor.name);if("Map"===l||"Set"===l)return Array.from(e);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,n=new Array(t);l<t;l++)n[l]=e[l];return n}var B=wp.i18n.__,D=wp.components.SelectControl,U=wp.element,F=U.Fragment,E=U.useState,A=U.useEffect;var j=function(e){var t=e.attributes,l=e.clientId,n=e.setAttributes;A((function(){var e;if(t.className){e=(e=t.className).split(" ");var l=Array.from(a).find((function(t){return e.find((function(e){return e===t.value}))})),n=Array.from(r).find((function(t){return e.find((function(e){return e===t.value}))})),o=Array.from(i).find((function(t){return e.find((function(e){return e===t.value}))}));s(l?l.value:"none"),b(n?n.value:"default"),v(o?o.value:"default"),h(l?l.label:"none")}}),[]);var o=L(E("none"),2),c=o[0],s=o[1],f=L(E("default"),2),d=f[0],b=f[1],m=L(E("default"),2),p=m[0],v=m[1],O=L(E("none"),2),g=O[0],h=O[1];return wp.element.createElement("div",{className:"themeisle-animations-control"},wp.element.createElement(S,{animationsList:a,updateAnimation:function(e){var a,o="none"!==e?e:"";if(t.className){var r=(a=(a=t.className).split(" ")).find((function(e){return e===c}));a.find((function(e){return"animated"===e}))||a.push("animated"),r?a=a.join(" ").replace(c,o):(a.push(o),a=a.join(" "))}else a="animated ".concat(o);"none"===e&&(a=a.replace("animated","").replace(d,"").replace(p,""),b("default"),v("default")),""===(a=a.replace(/\s+/g," ").trim())&&(a=void 0),s(e),n({className:a});var i=document.querySelector("#block-".concat(l," .animated"));i&&u.forEach((function(e){i.className.includes(e)&&i.addEventListener("animationend",(function(){i.classList.remove(e),i.addEventListener("animationstart",(function(){i.classList.remove(e)}))}))}))},currentAnimationLabel:g,setCurrentAnimationLabel:h}),"none"!==c&&wp.element.createElement(F,null,wp.element.createElement(D,{label:B("Delay"),value:d||"default",options:r,onChange:function(e){var l,a="none"!==e?e:"";t.className?(l=(l=t.className).split(" ")).find((function(e){return e===d}))?l=l.join(" ").replace(d,a):(l.push(a),l=l.join(" ")):l=a;l=l.replace(/\s+/g," "),b(e),n({className:l})}}),wp.element.createElement(D,{label:B("Speed"),value:p||"default",options:i,onChange:function(e){var l,a="none"!==e?e:"";t.className?(l=(l=t.className).split(" ")).find((function(e){return e===p}))?l=l.join(" ").replace(p,a):(l.push(a),l=l.join(" ")):l=a;l=l.replace(/\s+/g," "),v(e),n({className:l})}})))},N=wp.i18n.__,_=wp.blocks.hasBlockSupport,C=wp.components.PanelBody,z=wp.compose.createHigherOrderComponent,k=(wp.blockEditor||wp.editor).InspectorControls,T=wp.element.Fragment;(0,wp.hooks.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",z((function(e){return function(t){return _(t.name,"customClassName",!0)&&t.isSelected?wp.element.createElement(T,null,wp.element.createElement(e,t),wp.element.createElement(k,null,wp.element.createElement(C,{title:N("Animations"),initialOpen:!1},wp.element.createElement(j,{clientId:t.clientId,setAttributes:t.setAttributes,attributes:t.attributes})))):wp.element.createElement(e,t)}}),"withInspectorControl"))}]);
|
vendor/codeinwp/gutenberg-animation/class-gutenberg-animation.php
CHANGED
@@ -70,11 +70,13 @@ class GutenbergAnimation {
|
|
70 |
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
|
71 |
return;
|
72 |
}
|
|
|
73 |
if ( THEMEISLE_GUTENBERG_ANIMATION_DEV ) {
|
74 |
$version = time();
|
75 |
} else {
|
76 |
$version = THEMEISLE_GUTENBERG_ANIMATION_DEV;
|
77 |
}
|
|
|
78 |
wp_enqueue_style(
|
79 |
'animate-css',
|
80 |
plugin_dir_url( $this->get_dir() ) . $this->slug . '/assets/css/animate.min.css',
|
70 |
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
|
71 |
return;
|
72 |
}
|
73 |
+
|
74 |
if ( THEMEISLE_GUTENBERG_ANIMATION_DEV ) {
|
75 |
$version = time();
|
76 |
} else {
|
77 |
$version = THEMEISLE_GUTENBERG_ANIMATION_DEV;
|
78 |
}
|
79 |
+
|
80 |
wp_enqueue_style(
|
81 |
'animate-css',
|
82 |
plugin_dir_url( $this->get_dir() ) . $this->slug . '/assets/css/animate.min.css',
|
vendor/codeinwp/gutenberg-animation/load.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
|
11 |
-
define( 'THEMEISLE_GUTENBERG_ANIMATION_VERSION', '1.0.
|
12 |
define( 'THEMEISLE_GUTENBERG_ANIMATION_DEV', false );
|
13 |
|
14 |
if ( function_exists( 'add_action' ) ) {
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
|
11 |
+
define( 'THEMEISLE_GUTENBERG_ANIMATION_VERSION', '1.0.7' );
|
12 |
define( 'THEMEISLE_GUTENBERG_ANIMATION_DEV', false );
|
13 |
|
14 |
if ( function_exists( 'add_action' ) ) {
|
vendor/codeinwp/gutenberg-blocks/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.5.3](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.2...v1.5.3) (2020-06-22)
|
2 |
|
3 |
- Store images locally when importing templates
|
1 |
+
##### [Version 1.5.4](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.3...v1.5.4) (2020-08-03)
|
2 |
+
|
3 |
+
- Button Group Improvements
|
4 |
+
- Fixed Caption field missing from Slider Block
|
5 |
+
- Image management in Slider & Gallery Block
|
6 |
+
- Fix issue with CSS inline loading twice
|
7 |
+
- Fix Posts Block offset bug
|
8 |
+
- Remove default font size from Posts Block
|
9 |
+
|
10 |
##### [Version 1.5.3](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.2...v1.5.3) (2020-06-22)
|
11 |
|
12 |
- Store images locally when importing templates
|
vendor/codeinwp/gutenberg-blocks/build/blocks.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],u=0,m=[];u<i.length;u++)r=i[u],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&m.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);m.length;)m.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([36,0]),n()}([,,function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(40),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,a=e.className,r=e.children;return wp.element.createElement("div",{className:l()("components-base-control","wp-block-themeisle-blocks-color-base-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(o,{colorValue:n})),r))}},function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return m})),n.d(t,"r",(function(){return s})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return y})),n.d(t,"p",(function(){return h})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(42),n(3)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Dropdown,p=i.Icon,u=wp.compose,m=u.useInstanceId,s=u.useViewportMatch,b=wp.data,g=b.useSelect,f=b.useDispatch;t.a=function e(t){var n=t.label,a=t.className,i=t.children,u=m(e),b=s("large",">="),y=s("large","<="),h=s("small",">="),w=s("small","<="),v=!(b||y||h||w),k=g((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n&&!v?n():t()})),T=f("themeisle-gutenberg/data").updateView,E=f("core/edit-post").__experimentalSetPreviewDeviceType,x=E&&!v?E:T,C="inspector-responsive-control-".concat(u);return wp.element.createElement("div",{id:C,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(c,{icon:"Mobile"===k?"smartphone":k.toLowerCase(),label:r("Responsiveness Settings"),showTooltip:!0,className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===k}),onClick:function(){return x("Desktop")}},"Desktop"===k&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===k}),onClick:function(){return x("Tablet")}},"Tablet"===k&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===k}),onClick:function(){return x("Mobile")}},"Mobile"===k&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(43),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,d=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:d,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},d=wp.i18n.__,p=wp.components.Button,u=wp.compose.useInstanceId;t.a=function e(t){var n=t.label,a=t.type,o=t.min,r=t.max,i=t.changeType,m=t.options,s=t.onChange,b=u(e),g="inspector-sizing-control-".concat(b);return m&&1>m.length?d("Please specify more options."):wp.element.createElement("div",{id:g,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:g},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},m.map((function(e,t){return wp.element.createElement(c,{id:b,index:e,option:t,min:o,max:r,onChange:s})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(p,{icon:"linked"===a?"admin-links":"editor-unlink",label:d("linked"===a?"Unlink Values":"Link Values"),showTooltip:!0,className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n(53);var a=wp.components,l=a.Button,o=a.Dropdown,r=wp.compose.useInstanceId;t.a=function e(t){var n=t.label,a=t.children,i=r(e),c="inspector-control-panel-control-".concat(i);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:c},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(o,{position:"top left",headerTitle:n,expandOnMobile:!0,renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return wp.element.createElement(l,{id:c,icon:"admin-settings",label:n,shotTooltip:!0,className:"is-button",onClick:a,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(41);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,u=d.toLower,m=wp.i18n.__,s=wp.compose.useInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,y=b.Dropdown,h=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=function e(t){var n=t.label,a=t.value,i=t.valueVariant,c=t.valueStyle,d=t.valueTransform,b=t.isSelect,T=void 0!==b&&b,C=t.onChangeFontFamily,S=t.onChangeFontVariant,M=t.onChangeFontStyle,B=t.onChangeTextTransform,O=s(e);E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){A(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(u(e)),value:e}}));return z(t)}}))}))}),[]);var R=r(x(null),2),L=R[0],A=R[1],N=r(x(null),2),P=N[0],z=N[1],H=r(x(""),2),_=H[0],I=H[1],j="inspector-google-fonts-control-".concat(O);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:j},null!==L?T?wp.element.createElement(v,{value:a||"",id:j,options:[{label:m("Default"),value:""}].concat(o(L.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:m("Regular"),value:"regular"},{label:m("Italic"),value:"italic"}],C(void 0),void z(t);C(e),t=L.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(u(e)),value:e}})),z(t)}}):wp.element.createElement(y,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:j,onClick:n,"aria-expanded":t},a||m("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:m("Google Fonts")},wp.element.createElement(k,{value:_,onChange:function(e){return I(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),C(void 0),z([]),I("")}},m("Default")),L.map((function(e){if(!_||e.family.toLowerCase().includes(_.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),C(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(u(e)),value:e}}));z(n),I("")}},e.family)}))))}}):m("Loading…")),P&&wp.element.createElement(v,{label:m("Font Width"),value:i||"regular",options:P,onChange:S}),wp.element.createElement(v,{label:m("Font Style"),value:c,options:[{label:m("Regular"),value:"normal"},{label:m("Italic"),value:"italic"}],onChange:M}),wp.element.createElement(v,{label:m("Font Transform"),value:d,options:[{label:m("Default"),value:"none"},{label:m("Uppercase"),value:"uppercase"},{label:m("Lowercase"),value:"lowercase"},{label:m("Capitalize"),value:"capitalize"}],onChange:B}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return b}));var a=n(0),l=n.n(a),o=(n(62),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.Toolbar,p=wp.compose.useInstanceId,u=wp.blockEditor.BlockControls,m=wp.element.Fragment,s=function e(t){var n=t.label,a=t.value,o=t.options,c=t.onChange,d=p(e),u="inspector-style-switcher-control-".concat(d);return wp.element.createElement(r,{id:u,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))},b=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(u,null,wp.element.createElement(d,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(i,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(m,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a);n(70),n(71);t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,r=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement("svg",{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement("svg",{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},function(e,t,n){"use strict";n.r(t);n(67);var a=n(3),l=wp.i18n.__,o=wp.components,r=o.Button,i=o.ButtonGroup,c=o.Icon,d=wp.compose.useInstanceId;t.default=function e(t){var n=t.label,o=t.backgroundType,p=t.changeBackgroundType,u=d(e),m="inspector-background-control-".concat(u);return wp.element.createElement("div",{id:m,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement(i,{className:"linking-controls"},wp.element.createElement(r,{icon:"admin-customizer",label:l("Color"),showTootlip:!0,isPrimary:"color"===o,onClick:function(){return p("color")}}),wp.element.createElement(r,{icon:"format-image",label:l("Image"),showTootlip:!0,isPrimary:"image"===o,onClick:function(){return p("image")}}),wp.element.createElement(r,{icon:function(){return wp.element.createElement(c,{icon:a.b})},label:l("Gradient"),showTootlip:!0,isPrimary:"gradient"===o,onClick:function(){return p("gradient")}})))))}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(68);var a=n(2),l=n(0),o=n.n(l),r=wp.components,i=r.Dashicon,c=r.Tooltip,d=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,l=e.isSelected,r=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":l,className:o()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":l}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return r(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},d):d,l&&wp.element.createElement(i,{icon:"saved"}))},p=wp.i18n.__,u=[{title:p("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:p("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:p("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:p("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:p("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:p("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:p("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:p("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:p("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:p("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:p("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:p("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],m=wp.i18n.__,s=wp.components,b=s.Button,g=s.ColorIndicator,f=s.Dropdown,y=s.RangeControl,h=s.SelectControl,w=wp.compose.useInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=function e(t){var n,l=t.label,o=t.value,r=t.customGradient,i=void 0===r||r,c=t.onChange,p=t.onChangeValue,s=w(e),T="inspector-gradient-picker-control-".concat(s);n="linear"===o.type?"".concat(o.angle,"deg"):"at ".concat(o.position);var E="".concat(o.type,"-gradient( ").concat(n,", ").concat(o.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.firstLocation,"%, ").concat(o.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.secondLocation,"% )"),x=u.some((function(e){return e.firstColor===o.firstColor&&e.secondColor===o.secondColor}));return wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},l&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},l,!x&&wp.element.createElement(g,{colorValue:E}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},u.map((function(e){return wp.element.createElement(d,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===o.firstColor&&e.secondColor===o.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},m("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(a.a,{label:m("First Color"),colorValue:o.firstColor},wp.element.createElement(v,{label:m("Color"),clearable:!1,value:o.firstColor,onChange:function(e){return p({firstColor:e})}})),wp.element.createElement(y,{label:m("Location"),value:o.firstLocation,min:0,max:100,onChange:function(e){return p({firstLocation:e})}}),wp.element.createElement(a.a,{label:m("Second Color"),colorValue:o.secondColor},wp.element.createElement(v,{label:m("Color"),clearable:!1,value:o.secondColor,onChange:function(e){return p({secondColor:e})}})),wp.element.createElement(y,{label:m("Location"),value:o.secondLocation,min:0,max:100,onChange:function(e){return p({secondLocation:e})}}),wp.element.createElement(h,{label:m("Type"),value:o.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return p({type:e})}}),"linear"===o.type?wp.element.createElement(y,{label:m("Angle"),value:o.angle,min:0,max:360,onChange:function(e){return p({angle:e})}}):wp.element.createElement(h,{label:m("Position"),value:o.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return p({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isSecondary:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},m("Clear"))))))}},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(54);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,d=wp.compose.useInstanceId,p=wp.components,u=p.BaseControl,m=p.Button,s=p.Notice,b=wp.element,g=b.useEffect,f=b.useState;t.a=function e(t){var n=t.value,a=t.onChange,r=d(e);g((function(){return v(n)}),[n]);var p=o(f(!1),2),b=p[0],y=p[1],h=o(f(null),2),w=h[0],v=h[1],k=void 0!==window.themeisleGutenberg.blockIDs&&n!==w&&window.themeisleGutenberg.blockIDs.includes(w);return wp.element.createElement(c,null,wp.element.createElement(u,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(r)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!b&&"readonly",value:b?w:n,onChange:function(e){return v(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(m,{icon:b?"yes":"edit",label:i(b?"Save":"Edit"),showTooltip:!0,disabled:!!k,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!b}),onClick:function(){if(b&&n!==w){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=w,a(w)}y(!b)}}))),k&&wp.element.createElement(s,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(22);n(57);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.apiFetch,p=wp.components,u=p.Button,m=p.BaseControl,s=p.Popover,b=wp.compose.useInstanceId,g=wp.data.useSelect,f=wp.element,y=f.useEffect,h=f.useRef,w=f.useState,v=wp.keycodes,k=v.DOWN,T=v.ENTER,E=v.TAB,x=v.UP,C=wp.url.addQueryArgs;t.a=function e(t){var n=t.label,a=t.help,i=t.placeholder,p=t.value,f=t.className,v=t.onChange,S=t.children,M=b(e),B=g((function(e){return(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}),[]);y((function(){_&&null!==D&&void 0!==L[D]&&!R&&null!==O.current&&(R=!0,Object(o.a)(L[D],O.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){R=!1}),100))}));var O=h(null),R=!1,L=[],A=[],N=r(w(!1),2),P=N[0],z=N[1],H=r(w(!1),2),_=H[0],I=H[1],j=r(w(null),2),D=j[0],G=j[1],V=r(w([]),2),F=V[0],W=V[1],q=function(e){return function(t){L[e]=t}},U=function(e){v(e),I(!1)},Z="inspector-link-control-".concat(M);return wp.element.createElement(m,{label:n,id:Z,help:a,className:f},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":P})},wp.element.createElement("input",{type:"url",placeholder:i,value:p,onChange:function(e){v(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?I(!1):(I(!0),(t=B?B(e):d({path:C("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){A===t&&(W(e),G(null))})),A=t)}(e.target.value)},onKeyDown:function(e){if(_&&1<=F.length){var t=F[D];switch(e.keyCode){case x:e.stopPropagation(),e.preventDefault();var n=D?D-1:F.length-1;G(n);break;case k:e.stopPropagation(),e.preventDefault();var a=null===D||D===F.length-1?0:D+1;G(a);break;case E:case T:null!==D&&(e.stopPropagation(),U(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===S})}),_&&0<F.length&&wp.element.createElement(s,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:O,className:"wp-block-themeisle-blocks-link-control-popover-container"},F.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:q(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===D}),onClick:function(){return U(e.url)}},e.title||c("Untitled Post"))})))),void 0!==S&&wp.element.createElement(u,{icon:"admin-generic",label:c("Link Options"),showTooltip:!0,onClick:function(){return z(!P)}})),P&&S)}},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(4)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Path,p=i.Rect,u=i.SVG,m=i.Tooltip,s=wp.data.useSelect,b=wp.element.Fragment;t.default=function(e){var t,n=e.label,a=e.onClick,i=e.layout,g=e.layoutTablet,f=e.layoutMobile,y=e.columns,h=s((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);return"Desktop"===h?t=i:"Tablet"===h?t=g:"Mobile"===h&&(t=f),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===y&&wp.element.createElement(m,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===y&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(m,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===y&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(m,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===y&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===y&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(m,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===y&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(m,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(m,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(m,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}},function(e,t,n){"use strict";n.r(t);n(72);var a=n(3),l=n(0),o=n.n(l);n(73);function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=lodash,d=c.startCase,p=c.toLower,u=wp.i18n.__,m=wp.components,s=m.Button,b=m.Dashicon,g=m.Icon,f=m.TextControl,y=m.Tooltip,h=m.SelectControl,w=function(e){var t,n=e.preview,l=e.tab,i=e.blocksCategories,c=e.templateCategories,m=e.selectedCategory,w=e.selectedTemplate,v=e.search,k=e.setPreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?i:c).map((function(e){return{label:d(p(e)),value:e}})),[{label:u("All Categories"),value:"all"}].concat(r(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(s,{className:"library-modal-header-tabs-button back-to-library","aria-label":u("Back to Library"),onClick:function(){return k(!1)}},wp.element.createElement(b,{icon:"arrow-left-alt"})," ",u("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(g,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(s,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(b,{icon:"screenoptions"}),u("Blocks")),wp.element.createElement(s,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(b,{icon:"editor-table"}),u("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(s,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(w.template_url)},tabindex:"0"},wp.element.createElement(b,{icon:"arrow-down-alt",size:16}),u("Insert")),wp.element.createElement(y,{text:u("Close")},wp.element.createElement(s,{className:"library-modal-header-tabs-button","aria-label":u("Close settings"),onClick:E},wp.element.createElement(b,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(h,{className:"library-modal-category-control",value:"all"===m?"all":m,onChange:C,options:M}),wp.element.createElement(f,{type:"text",value:v||"",placeholder:u("Search"),className:"library-modal-search-control",onChange:S})))},v=wp.components.Notice,k=wp.data,T=k.useDispatch,E=k.useSelect,x=function(){var e=E((function(e){return e("core/notices").getNotices("themeisle-blocks/notices/template-library")})),t=T("core/notices").removeNotice;return wp.element.createElement("div",{className:"library-modal-error"},e.map((function(e){return wp.element.createElement(v,{status:e.status,isDismissible:e.isDismissible,onRemove:function(){return t(e.id,"themeisle-blocks/notices/template-library")},actions:e.actions},e.content)})))},C=n(23),S=n.n(C),M=wp.i18n.__,B=wp.components.Button,O=function(e){var t=e.template,n=e.importPreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},wp.element.createElement("h4",{className:"library-modal-content__footer_meta_area"},t.title&&t.title+(t.author&&M(" by ")+t.author),!t.title&&t.author&&M("Author: ")+t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},wp.element.createElement(B,{isSecondary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},R=wp.i18n.__,L=wp.blockEditor.BlockPreview,A=wp.components.Spinner,N=wp.compose.useViewportMatch,P=function(e){var t=e.preview,n=e.isLoading,a=e.data,l=e.tab,o=e.selectedTemplateContent,r=e.selectedCategory,i=e.search,c=e.importPreview,d=e.importTemplate,p=N("large",">="),u=N("large","<="),m=N("small",">="),s=N("small","<="),b=1400;return!p&&!u&&m&&!s?b=960:!(p||u||m||s)&&(b=600),t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement(L,{blocks:o,viewportWidth:b})):n?wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(A,null)):wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,importPreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"})))))};function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function _(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function I(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){_(o,a,l,r,i,"next",e)}function i(e){_(o,a,l,r,i,"throw",e)}r(void 0)}))}}var j=wp.i18n.__,D=wp.apiFetch,G=wp.blocks.parse,V=wp.components.Modal,F=wp.data,W=F.useSelect,q=F.useDispatch,U=wp.element,Z=U.useEffect,$=U.useState,Q=function(e){var t=e.clientId,n=e.close,a=W((function(e){return e("core/block-editor").getBlock(t)})),l=q("core/block-editor").replaceBlocks,r=q("core/notices").createNotice;Z((function(){(function(){var e=I(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Boolean(themeisleGutenberg.isCompatible)||r("warning",j("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."),{context:"themeisle-blocks/notices/template-library",id:"compatibility-warning",isDismissible:!1,actions:[{label:j("Update Now"),url:themeisleGutenberg.updatePath}]}),e.prev=1,e.next=4,D({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 4:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),T(n),S(a),O(t),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),r("error",j("There seems to be an error. Please try again."),{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 18:m(!1);case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var i=z($("block"),2),c=i[0],d=i[1],p=z($(!0),2),u=p[0],m=p[1],s=z($("all"),2),b=s[0],g=s[1],f=z($(""),2),y=f[0],h=f[1],v=z($([]),2),k=v[0],T=v[1],E=z($([]),2),C=E[0],S=E[1],M=z($([]),2),B=M[0],O=M[1],R=z($(!1),2),L=R[0],A=R[1],N=z($(null),2),H=N[0],_=N[1],F=z($(null),2),U=F[0],Q=F[1],K=function(){var e=I(regeneratorRuntime.mark((function e(){var t,n,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,m(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t.template_url,"&preview=true")});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),_(t),Q(n),A(!0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 15:m(!1);case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=I(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!1),m(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),o=n,l(a.clientId,o),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0}),m(!1);case 14:case"end":return e.stop()}var o}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(V,{className:o()("wp-block-themeisle-library-modal",{"is-preview":L}),onRequestClose:n,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(w,{preview:L,tab:c,changeTab:function(e){d(e),g("all"),h("")},blocksCategories:k,templateCategories:C,selectedTemplate:H,selectedCategory:b,search:y,setPreview:A,close:n,importTemplate:J,selectCategory:function(e){return g(e)},changeSearch:function(e){return h(e)}}),wp.element.createElement(x,null),wp.element.createElement(P,{preview:L,isLoading:u,data:B,tab:c,selectedTemplateContent:U,selectedCategory:b,search:y,importPreview:K,importTemplate:J}))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.Button,te=X.Dashicon,ne=X.Icon,ae=X.Path,le=X.Placeholder,oe=X.Rect,re=X.SVG,ie=X.Tooltip,ce=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=K(ce(!1),2),o=l[0],r=l[1];return wp.element.createElement(le,{label:Y("Select Layout"),instructions:Y("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ne,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ie,{text:Y("Open Template Library")},wp.element.createElement(ee,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(te,{icon:"category"}),Y("Template Library")),o&&wp.element.createElement(Q,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(ee,{isLink:!0,onClick:function(){return n(1,"equal")}},Y("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(10),r=wp.components,i=r.Placeholder,c=r.Spinner,d=wp.data.useSelect,p=function(e){var t=e.id,n=e.link,a=e.alt,l=e.size,o=d((function(e){var n=e("core").getMedia(t);return{featuredImage:n?0<Object.keys(n.media_details.sizes).length&&n.media_details.sizes[l]?n.media_details.sizes[l].source_url:n.source_url:null,altText:n&&n.alt_text?n.alt_text:a}}),[l]),r=o.featuredImage,p=o.altText;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:n},r?wp.element.createElement("img",{src:r,size:l,alt:p,"data-id":t}):wp.element.createElement(i,null,wp.element.createElement(c,null))))},u=wp.i18n,m=u.__,s=u.sprintf,b=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},void 0!==e.featured_media&&0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(p,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&s(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&s(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},g=wp.i18n,f=g.__,y=g.sprintf,h=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(p,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&y(f("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&y(f(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(b,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(h,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a,l=n(3);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r,i=(o(a={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),c=n(0),d=n.n(c),p=n(7),u=n.n(p);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=wp.blockEditor.InnerBlocks,f=wp.components,y=f.SVG,h=f.Path,w=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(y,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(y,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},v=[{attributes:{align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,c=i.id,p=i.columns,m=i.layout,b=i.layoutTablet,f=i.layoutMobile,y=i.columnsGap,h=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,M=i.backgroundRepeat,B=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,L=i.backgroundGradientSecondColor,A=i.backgroundGradientSecondLocation,N=i.backgroundGradientType,P=i.backgroundGradientAngle,z=i.backgroundGradientPosition,H=i.backgroundOverlayOpacity,_=i.backgroundOverlayType,I=i.backgroundOverlayColor,j=i.backgroundOverlayImageURL,D=i.backgroundOverlayAttachment,G=i.backgroundOverlayPosition,V=i.backgroundOverlayRepeat,F=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,U=i.backgroundOverlayGradientSecondColor,Z=i.backgroundOverlayGradientSecondLocation,$=i.backgroundOverlayGradientType,Q=i.backgroundOverlayGradientAngle,K=i.backgroundOverlayGradientPosition,J=i.backgroundOverlayFilterBlur,Y=i.backgroundOverlayFilterBrightness,X=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,ue=i.borderRadiusType,me=i.borderRadius,se=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,fe=i.borderRadiusLeft,ye=i.boxShadow,he=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Me=i.dividerBottomType,Be=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Le=i.hideTablet,Ae=i.hideMobile,Ne=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:M,backgroundSize:B}),"gradient"===T)&&(r="linear"===N?"".concat(P,"deg"):"at ".concat(z),t={background:"".concat(N,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(L||"rgba( 0, 0, 0, 0 )"," ").concat(A,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===ue&&(l={borderRadius:"".concat(me,"px")}),"unlinked"===ue&&(l={borderTopLeftRadius:"".concat(se,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(fe,"px")}),!0===ye&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(u()(he||"#000000",we))});var Pe,ze=s(s(s(s(s({},t),a),l),o),{},{justifyContent:v});("color"===_&&(n={background:I,opacity:H/100}),"image"===_&&(n={backgroundImage:"url( '".concat(j,"' )"),backgroundAttachment:D,backgroundPosition:G,backgroundRepeat:V,backgroundSize:F,opacity:H/100}),"gradient"===_)&&(Pe="linear"===$?"".concat(Q,"deg"):"at ".concat(K),n={background:"".concat($,"-gradient( ").concat(Pe,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(U||"rgba( 0, 0, 0, 0 )"," ").concat(Z,"% )"),opacity:H/100});var He=s(s({},n),{},{mixBlendMode:ae,filter:"blur( ".concat(J/10,"px ) brightness( ").concat(Y/10," ) contrast( ").concat(X/10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),_e={};h&&(_e={maxWidth:h+"px"});var Ie=Re?"":"has-desktop-".concat(m,"-layout"),je=Le?"":"has-tablet-".concat(b,"-layout"),De=Ae?"":"has-mobile-".concat(f,"-layout"),Ge=d()(e.className,"has-".concat(p,"-columns"),Ie,je,De,{"hide-in-desktop":Re},{"hide-in-tablet":Le},{"hide-in-mobile":Ae},"has-".concat(y,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(Ne,{className:Ge,id:c,style:ze},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:He}),wp.element.createElement(w,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:_e},wp.element.createElement(g.Content,null)),wp.element.createElement(w,{type:"bottom",front:!0,style:Me,fill:Be,invert:Oe}))}},{attributes:{id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,c=e.className,p=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(u()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var m,b=s(s(s(s(s({},t),a),l),o),{},{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(m="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(m,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var f=s(s({},n),{},{mixBlendMode:i.backgroundOverlayBlend}),y={};i.columnsWidth&&(y={maxWidth:i.columnsWidth+"px"});var h=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=d()(c,"has-".concat(i.columns,"-columns"),h,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(p,{className:T,id:i.id,style:b},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(w,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:y},wp.element.createElement(g.Content,null)),wp.element.createElement(w,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}},{attributes:(r={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1}},b(r,"reverseColumnsTablet",{type:"boolean",default:!1}),b(r,"columnsHTMLTag",{type:"string",default:"div"}),r),supports:{align:["wide","full"],html:!1},save:function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=d()(n,"has-".concat(t.columns,"-columns"),l,o,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign)),c=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(y,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(y,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(y,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(y,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"bottom"===t})},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(y,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:d()({rotate:"top"===t})},wp.element.createElement(h,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))};return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(c,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(g.Content,null)),wp.element.createElement(c,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}],k=n(6),T=n(17),E=wp.blockEditor,x=E.BlockControls,C=E.BlockVerticalAlignmentToolbar,S=function(e){var t=e.attributes,n=e.setAttributes,a=function(){return"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign};return a=a(),wp.element.createElement(x,null,wp.element.createElement(C,{onChange:function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});"top"===e?e="flex-start":"bottom"===e&&(e="flex-end"),n({verticalAlign:e})},value:a}))},M=n(2),B=n(25),O=n(5),R=n(4),L=n(15),A=n(18),N=n(8),P=n(20);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var I=wp.i18n.__,j=wp.blockEditor,D=j.ColorPalette,G=j.InspectorControls,V=j.MediaPlaceholder,F=wp.components,W=F.BaseControl,q=F.Button,U=F.ButtonGroup,Z=F.Dashicon,$=F.PanelBody,Q=F.ToggleControl,K=F.RangeControl,J=F.SelectControl,Y=wp.data.useSelect,X=wp.element,ee=X.Fragment,te=X.useState,ne=function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,l=e.dividerViewType,o=e.setDividerViewType,r=Y((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),i=H(te("layout"),2),c=i[0],p=i[1],u=function(){var e;return"Desktop"===r&&(e=t.paddingType),"Tablet"===r&&(e=t.paddingTypeTablet),"Mobile"===r&&(e=t.paddingTypeMobile),e};u=u();var m={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},s={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},b={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},g=function(e){var n;return"top"==e&&("Desktop"===r&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===r&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===r&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===r&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===r&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===r&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===r&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===r&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===r&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===r&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===r&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===r&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},f=function(){var e;return"Desktop"===r&&(e=t.marginType),"Tablet"===r&&(e=t.marginTypeTablet),"Mobile"===r&&(e=t.marginTypeMobile),e};f=f();var y={top:"marginTop",bottom:"marginBottom"},h={top:"marginTopTablet",bottom:"marginBottomTablet"},w={top:"marginTopMobile",bottom:"marginBottomMobile"},v=function(e){var n;return"top"==e&&("Desktop"===r&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===r&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===r&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===r&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===r&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===r&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},k=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},T=function(){var e;return"Desktop"===r&&(e=t.columnsHeightCustom),"Tablet"===r&&(e=t.columnsHeightCustomTablet),"Mobile"===r&&(e=t.columnsHeightCustomMobile),e};T=T();var E=function(){n({backgroundImageID:"",backgroundImageURL:""})},x=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},C={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},S=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},_={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},j=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},F=function(){var e;return"top"==l&&(e=t.dividerTopType),"bottom"==l&&(e=t.dividerBottomType),e};F=F();var X=function(){var e;return"top"==l&&(e=t.dividerTopColor),"bottom"==l&&(e=t.dividerBottomColor),e};X=X();var ne=function(){var e;return"top"==l&&("Desktop"==r&&(e=t.dividerTopWidth),"Tablet"==r&&(e=t.dividerTopWidthTablet),"Mobile"==r&&(e=t.dividerTopWidthMobile)),"bottom"==l&&("Desktop"==r&&(e=t.dividerBottomWidth),"Tablet"==r&&(e=t.dividerBottomWidthTablet),"Mobile"==r&&(e=t.dividerBottomWidthMobile)),e};ne=ne();var ae=function(){var e;return"top"==l&&("Desktop"==r&&(e=t.dividerTopHeight),"Tablet"==r&&(e=t.dividerTopHeightTablet),"Mobile"==r&&(e=t.dividerTopHeightMobile)),"bottom"==l&&("Desktop"==r&&(e=t.dividerBottomHeight),"Tablet"==r&&(e=t.dividerBottomHeightTablet),"Mobile"==r&&(e=t.dividerBottomHeightMobile)),e};ae=ae();var le=function(){var e;return"top"==l&&(e=t.dividerTopInvert),"bottom"==l&&(e=t.dividerBottomInvert),e};le=le();var oe=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},re=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(ee,null,wp.element.createElement(G,null,wp.element.createElement($,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(q,{className:d()("header-tab",{"is-selected":"layout"===c}),onClick:function(){return p("layout")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"editor-table"}),I("Layout"))),wp.element.createElement(q,{className:d()("header-tab",{"is-selected":"style"===c}),onClick:function(){return p("style")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"admin-customizer"}),I("Style"))),wp.element.createElement(q,{className:d()("header-tab",{"is-selected":"advanced"===c}),onClick:function(){return p("advanced")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:"admin-generic"}),I("Advanced")))),"layout"===c&&wp.element.createElement(ee,null,wp.element.createElement($,{title:I("Columns & Layout")},wp.element.createElement(K,{label:I("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(B.default,{label:I("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===r&&(n({layout:e}),a(t.columns,e)),"Tablet"===r&&n({layoutTablet:e}),"Mobile"===r&&n({layoutMobile:e})}}),wp.element.createElement(J,{label:I("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement($,{title:I("Spacing"),initialOpen:!1},wp.element.createElement(R.a,{label:"Padding"},wp.element.createElement(O.a,{type:u,min:0,max:500,changeType:function(e){"Desktop"===r&&n({paddingType:e}),"Tablet"===r&&n({paddingTypeTablet:e}),"Mobile"===r&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===r&&("linked"===t.paddingType?n({padding:a}):n(z({},m[e],a))),"Tablet"===r&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(z({},s[e],a))),"Mobile"===r&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(z({},b[e],a)))},options:[{label:I("Top"),type:"top",value:g("top")},{label:I("Right"),type:"right",value:g("right")},{label:I("Bottom"),type:"bottom",value:g("bottom")},{label:I("Left"),type:"left",value:g("left")}]})),wp.element.createElement(R.a,{label:"Margin"},wp.element.createElement(O.a,{type:f,min:-500,max:500,changeType:function(e){"Desktop"===r&&n({marginType:e}),"Tablet"===r&&n({marginTypeTablet:e}),"Mobile"===r&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===r&&("linked"===t.marginType?n({margin:a}):n(z({},y[e],a))),"Tablet"===r&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(z({},h[e],a))),"Mobile"===r&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(z({},w[e],a)))},options:[{label:I("Top"),type:"top",value:v("top")},{label:I("Right"),disabled:!0},{label:I("Bottom"),type:"bottom",value:v("bottom")},{label:I("Left"),disabled:!0}]}))),wp.element.createElement($,{title:I("Section Structure"),initialOpen:!1},wp.element.createElement(K,{label:I("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(W,{label:"Horizontal Align"},wp.element.createElement(U,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(q,{icon:"editor-alignleft",label:I("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return k("flex-start")}}),wp.element.createElement(q,{icon:"editor-aligncenter",label:I("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===t.horizontalAlign,onClick:function(){return k("center")}}),wp.element.createElement(q,{icon:"editor-alignright",label:I("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return k("flex-end")}}))),wp.element.createElement(J,{label:I("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(R.a,{label:"Custom Height"},wp.element.createElement(K,{value:T||"",onChange:function(e){"Desktop"===r&&n({columnsHeightCustom:e}),"Tablet"===r&&n({columnsHeightCustomTablet:e}),"Mobile"===r&&n({columnsHeightCustomMobile:e})},min:0,max:1e3}))))||"style"===c&&wp.element.createElement(ee,null,wp.element.createElement($,{title:I("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(L.default,{label:I("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(M.a,{label:I("Background Color"),colorValue:t.backgroundColor},wp.element.createElement(D,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(ee,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:E},wp.element.createElement(Z,{icon:"trash"}),wp.element.createElement("span",null,I("Remove Image"))))),wp.element.createElement(q,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:E},I("Change or Remove Image")),wp.element.createElement(N.a,{label:"Background Settings"},wp.element.createElement(J,{label:I("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(J,{label:I("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(J,{label:I("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(J,{label:I("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(V,{icon:"format-image",labels:{title:I("Background Image"),name:I("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(z({},t[a],e[a]))}})),wp.element.createElement($,{title:I("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(L.default,{label:I("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(K,{label:I("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(M.a,{label:I("Overlay Color"),colorValue:t.backgroundOverlayColor},wp.element.createElement(D,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(ee,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:x},wp.element.createElement(Z,{icon:"trash"}),wp.element.createElement("span",null,I("Remove Image"))))),wp.element.createElement(q,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:x},I("Change or Remove Image")),wp.element.createElement(N.a,{label:"Background Settings"},wp.element.createElement(J,{label:I("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(J,{label:I("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(J,{label:I("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(J,{label:I("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(V,{icon:"format-image",labels:{title:I("Background Image"),name:I("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundOverlayGradientFirstColor",firstLocation:"backgroundOverlayGradientFirstLocation",secondColor:"backgroundOverlayGradientSecondColor",secondLocation:"backgroundOverlayGradientSecondLocation",type:"backgroundOverlayGradientType",angle:"backgroundOverlayGradientAngle",position:"backgroundOverlayGradientPosition"};for(var a in e)n(z({},t[a],e[a]))}}),wp.element.createElement(N.a,{label:"CSS Filters"},wp.element.createElement(K,{label:I("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(K,{label:I("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(J,{label:I("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement($,{title:I("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(O.a,{label:I("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(z({},C[e],a))},options:[{label:I("Top"),type:"top",value:S("top")},{label:I("Right"),type:"right",value:S("right")},{label:I("Bottom"),type:"bottom",value:S("bottom")},{label:I("Left"),type:"left",value:S("left")}]}),wp.element.createElement(M.a,{label:I("Border Color"),colorValue:t.borderColor},wp.element.createElement(D,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(O.a,{label:I("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(z({},_[e],a))},options:[{label:I("Top"),type:"top",value:j("top")},{label:I("Right"),type:"right",value:j("right")},{label:I("Bottom"),type:"bottom",value:j("bottom")},{label:I("Left"),type:"left",value:j("left")}]}),wp.element.createElement(Q,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(ee,null,wp.element.createElement(M.a,{label:I("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(D,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(N.a,{label:"Border Shadow"},wp.element.createElement(K,{label:I("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(K,{label:I("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(K,{label:I("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(K,{label:I("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement($,{title:I("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(U,null,wp.element.createElement(q,{isSmall:!0,isSecondary:"top"!==l,isPrimary:"top"===l,onClick:function(){return o("top")}},I("Top")),wp.element.createElement(q,{isSmall:!0,isSecondary:"bottom"!==l,isPrimary:"bottom"===l,onClick:function(){return o("bottom")}},I("Bottom"))),wp.element.createElement(J,{label:I("Type"),value:F,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==l&&n({dividerTopType:e}),"bottom"==l&&n({dividerBottomType:e})}}),"none"!==F&&wp.element.createElement(ee,null,wp.element.createElement(M.a,{label:I("Color"),colorValue:X},wp.element.createElement(D,{label:I("Color"),value:X,onChange:function(e){"top"==l&&n({dividerTopColor:e}),"bottom"==l&&n({dividerBottomColor:e})}})),wp.element.createElement(R.a,{label:"Width"},wp.element.createElement(K,{value:ne,onChange:function(e){"top"==l&&("Desktop"==r&&n({dividerTopWidth:e}),"Tablet"==r&&n({dividerTopWidthTablet:e}),"Mobile"==r&&n({dividerTopWidthMobile:e})),"bottom"==l&&("Desktop"==r&&n({dividerBottomWidth:e}),"Tablet"==r&&n({dividerBottomWidthTablet:e}),"Mobile"==r&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(R.a,{label:"Height"},wp.element.createElement(K,{value:ae,onChange:function(e){"top"==l&&("Desktop"==r&&n({dividerTopHeight:e}),"Tablet"==r&&n({dividerTopHeightTablet:e}),"Mobile"==r&&n({dividerTopHeightMobile:e})),"bottom"==l&&("Desktop"==r&&n({dividerBottomHeight:e}),"Tablet"==r&&n({dividerBottomHeightTablet:e}),"Mobile"==r&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==F&&"cloud"!==F&&wp.element.createElement(Q,{label:"Invert Shape Divider",checked:le,onChange:function(){"top"==l&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==l&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===c&&wp.element.createElement(ee,null,wp.element.createElement($,{title:I("Responsive")},wp.element.createElement(Q,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return oe(e,"Desktop")}}),wp.element.createElement(Q,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return oe(e,"Tablet")}}),wp.element.createElement(Q,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return oe(e,"Mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(Q,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return re(e,"Tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(Q,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return re(e,"Mobile")}})),wp.element.createElement($,{title:I("Section Settings"),initialOpen:!1},wp.element.createElement(J,{label:I("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var oe=wp.i18n.__,re=wp.blockEditor,ie=re.__experimentalBlockNavigationList,ce=re.__experimentalBlockNavigationTree,de=re.BlockControls,pe=wp.components,ue=pe.Button,me=pe.Modal,se=pe.Toolbar,be=wp.data,ge=be.useSelect,fe=be.useDispatch,ye=wp.element,he=ye.Fragment,we=ye.useState,ve=function(e){var t=e.clientId,n=ge((function(e){var n=e("core/block-editor"),a=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:a()}}),[]),a=n.block,o=n.selectedBlockClientId,r=fe("core/block-editor").selectBlock,i=ae(we(!1),2),c=i[0],d=i[1],p=ie||ce;return wp.element.createElement(he,null,wp.element.createElement(de,null,wp.element.createElement(se,null,wp.element.createElement(ue,{className:"components-toolbar__control",label:oe("Open block navigator"),showTooltip:!0,onClick:function(){return d(!0)},icon:l.l}))),c&&wp.element.createElement(me,{title:oe("Block Navigator"),closeLabel:oe("Close"),onRequestClose:function(){return d(!1)}},wp.element.createElement(p,{blocks:[a],selectedBlockClientId:o,selectBlock:r,showNestedBlocks:!0})))},ke=n(14),Te=n(26);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){if(e){if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Re=lodash,Le=Re.isEqual,Ae=Re.times,Ne=wp.compose.useViewportMatch,Pe=wp.data,ze=Pe.useDispatch,He=Pe.useSelect,_e=wp.blockEditor.InnerBlocks,Ie=wp.element,je=Ie.Fragment,De=Ie.useEffect,Ge=Ie.useState,Ve=[],Fe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,r=ze("core/block-editor").updateBlockAttributes,c=He((function(e){var t=e("core/block-editor").getBlock,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:t(l),isViewportAvailable:!!n,isPreviewDesktop:!!n&&"Desktop"===n(),isPreviewTablet:!!n&&"Tablet"===n(),isPreviewMobile:!!n&&"Mobile"===n()}}),[]),p=c.sectionBlock,m=c.isViewportAvailable,s=c.isPreviewDesktop,b=c.isPreviewTablet,g=c.isPreviewMobile,f=Ne("large",">="),y=Ne("large","<="),h=Ne("small",">="),w=Ne("small","<=");De((function(){v()}),[]);var v=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Le(k.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=Be({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==i[e].default&&t[e]!==i[e].default)return delete a[e]})))),n(Be(Be({},a),{},{id:r})),Ve.push(r),e.push(r)}else if(Ve.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),Ve.push(c),e.push(c)}else Ve.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=xe(e)},E=Ee(Ge("top"),2),x=E[0],C=E[1],M=f&&!y&&h&&!w,B=!f&&!y&&h&&!w,O=!(f||y||h||w);m&&!O&&(M=s,B=b,O=g);var R,L,A,N,P,z,H,_=t.columnsHTMLTag;(M&&(R={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),B&&(R={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),O&&(R={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(L={background:t.backgroundColor}),"image"===t.backgroundType&&(L={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(H="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(L={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(H,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(N={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(N={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(P={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(P={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(z={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var I,j=Be(Be(Be(Be(Be({},R),L),N),P),z);("color"===t.backgroundOverlayType&&(A={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(A={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(I="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),A={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var D=Be(Be({},A),{},{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),G={};t.columnsWidth&&(G={maxWidth:t.columnsWidth+"px"});var V=d()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),"has-horizontal-".concat(t.horizontalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":M},{"has-viewport-tablet":B},{"has-viewport-mobile":O}),F=function(){var e;return M&&(e=t.dividerTopWidth),B&&(e=t.dividerTopWidthTablet),O&&(e=t.dividerTopWidthMobile),e};F=F();var W=function(){var e;return M&&(e=t.dividerBottomWidth),B&&(e=t.dividerBottomWidthTablet),O&&(e=t.dividerBottomWidthMobile),e};W=W();var q=function(){var e;return M&&(e=t.dividerTopHeight),B&&(e=t.dividerTopHeightTablet),O&&(e=t.dividerTopHeightMobile),e};q=q();var U=function(){var e;return M&&(e=t.dividerBottomHeight),B&&(e=t.dividerBottomHeightTablet),O&&(e=t.dividerBottomHeightMobile),e};U=U();var Z;return t.columns?wp.element.createElement(je,null,wp.element.createElement(ve,{clientId:l}),wp.element.createElement(S,{attributes:t,setAttributes:n}),wp.element.createElement(ne,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){p.innerBlocks.map((function(n,a){r(n.clientId,{columnWidth:T.a[e][t][a]})}))},dividerViewType:x,setDividerViewType:C}),wp.element.createElement(_,{className:V,id:t.id,style:j},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:D}),wp.element.createElement(ke.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:q}),wp.element.createElement("div",{className:"innerblocks-wrap",style:G},wp.element.createElement(_e,{allowedBlocks:["themeisle-blocks/advanced-column"],template:(Z=t.columns,Ae(Z,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:T.a[Z][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(ke.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:W,height:U}))):wp.element.createElement(Te.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})},We=wp.blockEditor.InnerBlocks,qe=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=d()(n,"has-".concat(t.columns,"-columns"),l,o,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(ke.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(We.Content,null)),wp.element.createElement(ke.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ue("Section"),description:Ue("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:i,supports:{align:["wide","full"],html:!1},deprecated:v,edit:Fe,save:qe})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(7),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=wp.blockEditor.InnerBlocks,u=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,i=e.attributes,d=e.className,u=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(o="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(o,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(n={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(n={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(a={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(a={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(l={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(r()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var m=c(c(c(c({},t),n),a),l);return wp.element.createElement(u,{className:d,id:i.id,style:m},wp.element.createElement(p.Content,null))}}],m=n(6),s=n(17),b=n(0),g=n.n(b),f=n(2),y=n(5),h=n(4),w=n(15),v=n(18),k=n(8);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var C=wp.i18n.__,S=wp.blockEditor,M=S.ColorPalette,B=S.InspectorControls,O=S.MediaPlaceholder,R=wp.components,L=R.Button,A=R.Dashicon,N=R.PanelBody,P=R.ToggleControl,z=R.RangeControl,H=R.SelectControl,_=wp.data.useSelect,I=wp.element,j=I.Fragment,D=I.useEffect,G=I.useRef,V=I.useState,F=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,d=_((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);D((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];b.current=t.clientId,x.current=t.attributes.columnWidth}}),[]),D((function(){if(1<r.innerBlocks.length)if(c)x.current=o.attributes.columnWidth,b.current=c,s.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];x.current=n.attributes.columnWidth,b.current=n.clientId,s.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var p=E(V("layout"),2),u=p[0],m=p[1],s=G(t.columnWidth),b=G(c&&c),x=G(o&&o.attributes.columnWidth),S=function(){var e;return"Desktop"===d&&(e=t.paddingType),"Tablet"===d&&(e=t.paddingTypeTablet),"Mobile"===d&&(e=t.paddingTypeMobile),e};S=S();var R={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},I={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},F={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},W=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},q=function(){var e;return"Desktop"===d&&(e=t.marginType),"Tablet"===d&&(e=t.marginTypeTablet),"Mobile"===d&&(e=t.marginTypeMobile),e};q=q();var U={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},Z={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},$={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},Q=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},K=function(){n({backgroundImageID:"",backgroundImageURL:""})},J={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},Y=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},X={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ee=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(B,null,wp.element.createElement(N,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"layout"===u}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement(A,{icon:"editor-table"}),C("Layout"))),wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"style"===u}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement(A,{icon:"admin-customizer"}),C("Style"))),wp.element.createElement(L,{className:g()("header-tab",{"is-selected":"advanced"===u}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement(A,{icon:"admin-generic"}),C("Advanced")))),"layout"===u&&wp.element.createElement(j,null,wp.element.createElement(N,{title:C("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(z,{label:C("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(s.current)-t+Number(x.current);s.current=t,x.current=a,n({columnWidth:t.toFixed(2)}),i(b.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(x.current)-10}),wp.element.createElement(h.a,{label:"Padding"},wp.element.createElement(y.a,{type:S,min:0,max:500,changeType:function(e){"Desktop"===d&&n({paddingType:e}),"Tablet"===d&&n({paddingTypeTablet:e}),"Mobile"===d&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.paddingType?n({padding:a}):n(T({},R[e],a))),"Tablet"===d&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(T({},I[e],a))),"Mobile"===d&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(T({},F[e],a)))},options:[{label:C("Top"),type:"top",value:W("top")},{label:C("Right"),type:"right",value:W("right")},{label:C("Bottom"),type:"bottom",value:W("bottom")},{label:C("Left"),type:"left",value:W("left")}]})),wp.element.createElement(h.a,{label:"Margin"},wp.element.createElement(y.a,{type:q,min:-500,max:500,changeType:function(e){"Desktop"===d&&n({marginType:e}),"Tablet"===d&&n({marginTypeTablet:e}),"Mobile"===d&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.marginType?n({margin:a}):n(T({},U[e],a))),"Tablet"===d&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(T({},Z[e],a))),"Mobile"===d&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(T({},$[e],a)))},options:[{label:C("Top"),type:"top",value:Q("top")},{label:C("Right"),type:"right",value:Q("right")},{label:C("Bottom"),type:"bottom",value:Q("bottom")},{label:C("Left"),type:"left",value:Q("left")}]}))))||"style"===u&&wp.element.createElement(j,null,wp.element.createElement(N,{title:C("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(w.default,{label:C("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(f.a,{label:C("Background Color"),colorValue:t.headingColor},wp.element.createElement(M,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(j,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:K},wp.element.createElement(A,{icon:"trash"}),wp.element.createElement("span",null,C("Remove Image"))))),wp.element.createElement(L,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:K},C("Change or Remove Image")),wp.element.createElement(k.a,{label:"Background Settings"},wp.element.createElement(H,{label:C("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(H,{label:C("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(H,{label:C("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(H,{label:C("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(O,{icon:"format-image",labels:{title:C("Background Image"),name:C("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(v.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(T({},t[a],e[a]))}})),wp.element.createElement(N,{title:C("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(y.a,{label:C("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(T({},J[e],a))},options:[{label:C("Top"),type:"top",value:Y("top")},{label:C("Right"),type:"right",value:Y("right")},{label:C("Bottom"),type:"bottom",value:Y("bottom")},{label:C("Left"),type:"left",value:Y("left")}]}),wp.element.createElement(f.a,{label:C("Border Color"),colorValue:t.borderColor},wp.element.createElement(M,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(y.a,{label:C("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(T({},X[e],a))},options:[{label:C("Top"),type:"top",value:ee("top")},{label:C("Right"),type:"right",value:ee("right")},{label:C("Bottom"),type:"bottom",value:ee("bottom")},{label:C("Left"),type:"left",value:ee("left")}]}),wp.element.createElement(P,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(j,null,wp.element.createElement(f.a,{label:C("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(M,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(k.a,{label:"Shadow Properties"},wp.element.createElement(z,{label:C("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(z,{label:C("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(z,{label:C("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(z,{label:C("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(z,{label:C("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===u&&wp.element.createElement(N,{title:C("Section Settings")},wp.element.createElement(H,{label:C("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))};function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=lodash.isEqual,Y=wp.components.ResizableBox,X=wp.compose.useViewportMatch,ee=wp.data,te=ee.useDispatch,ne=ee.useSelect,ae=wp.blockEditor.InnerBlocks,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useState,ce=[],de=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=te("core/block-editor").updateBlockAttributes,u=ne((function(e){var t=e("core/block-editor"),n=t.getAdjacentBlockClientId,a=t.getBlock,l=t.getBlockRootClientId,o=e("core/edit-post").__experimentalGetPreviewDeviceType,r=a(i),c=n(i),d=a(c),p=l(i);return{adjacentBlockClientId:c,adjacentBlock:d,parentClientId:p,parentBlock:a(p),hasInnerBlocks:!(!r||!r.innerBlocks.length),isViewportAvailable:!!o,isPreviewDesktop:!!o&&"Desktop"===o(),isPreviewTablet:!!o&&"Tablet"===o(),isPreviewMobile:!!o&&"Mobile"===o()}}),[]),b=u.adjacentBlockClientId,g=u.adjacentBlock,f=u.parentClientId,y=u.parentBlock,h=u.hasInnerBlocks,w=u.isViewportAvailable,v=u.isPreviewDesktop,k=u.isPreviewTablet,T=u.isPreviewMobile,E=X("large",">="),x=X("large","<="),C=X("small",">="),S=X("small","<=");re((function(){M()}),[]);var M=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(J(m.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=Q({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Q(Q({},a),{},{id:o})),ce.push(o),e.push(o)}else if(ce.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ce.push(r)}else ce.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=q(e)},B=W(ie(0),2),O=B[0],R=B[1],L=W(ie(0),2),A=L[0],N=L[1],P=E&&!x&&C&&!S,z=!E&&!x&&C&&!S,H=!(E||x||C||S);w&&!H&&(P=v,z=k,H=T),void 0===t.columnWidth&&y.innerBlocks.map((function(e,t){if(i===e.clientId){var n=y.attributes.columns,a=y.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var _=document.getElementById("block-".concat(i));null!==_&&(_.style.flexBasis=P?"".concat(t.columnWidth,"%"):"");var I,j,D,G,V,U,Z=t.columnsHTMLTag;(P&&(I={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),z&&(I={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),H&&(I={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(j={background:t.backgroundColor}),"image"===t.backgroundType&&(j={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(U="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(j={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(U,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(D={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(D={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(G={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(G={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(V={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var $=Q(Q(Q(Q(Q({},I),j),D),G),V);return wp.element.createElement(oe,null,wp.element.createElement(F,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:g,parentBlock:y,updateBlockAttributes:p,adjacentBlockClientId:b}),wp.element.createElement(Y,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!b},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(g.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),R(t.columnWidth),N(g.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(f)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(O)+r,c=A-r,d=document.querySelector(".resizable-tooltip-left"),u=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),u.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(b,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(Z,{className:a,id:t.id,style:$},wp.element.createElement(ae,{templateLock:!1,renderAppender:!h&&ae.ButtonBlockAppender}))))},pe=wp.blockEditor.InnerBlocks,ue=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(pe.Content,null))},me=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:me("Section Column"),description:me("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:u,supports:{inserter:!1,reusable:!1,html:!1},edit:de,save:ue})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},,function(e,t,n){n(37),n(93),n(100),n(95),n(94),n(96),n(91),n(99),n(27),n(97),n(31),n(30),n(15),n(25),n(26),n(14),n(80),n(98),n(92),n(87),n(32),n(33),e.exports=n(34)},function(e,t,n){n.p=window.themeisleGutenberg.packagePath},,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,u=l(),m=a(),s=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(m||g&&s)||u||status||d()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(81),n(82),n(30),n(31)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(32),n(33),n(34)},,,,function(e,t,n){"use strict";n.r(t);n(60),n(61);var a=n(3),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(104),c=wp.i18n.__,d=wp.components,p=d.Button,u=d.ExternalLink,m=d.Placeholder,s=d.Spinner,b=d.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(m,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(p,{isLarge:!0,isSecondary:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(u,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(m,{className:"wp-themeisle-block-spinner"},wp.element.createElement(s,null),c("Loading…"))},f=n(12);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=wp.i18n.__,k=wp.components.BaseControl,T=wp.compose.useInstanceId,E=wp.element,x=E.useEffect,C=E.useRef,S=function e(t){var n=t.value,a=t.onChange,l=T(e);x((function(){wp.oldEditor.initialize(r.current.id,{tinymce:h({},{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"})});var e=window.tinymce.get(r.current.id);return e.on("change",(function(){return a(e.getContent())})),function(){return wp.oldEditor.remove(r.current.id)}}),[]);var o="inspector-textarea-control-".concat(l),r=C(null);return wp.element.createElement(k,{id:o,label:v("Description")},wp.element.createElement("textarea",{id:o,className:"components-textarea-control__input",rows:4,value:n,onChange:function(e){return a(e.target.value)},ref:r}))},M=wp.i18n.__,B=wp.components,O=B.BaseControl,R=B.Button,L=B.ExternalLink,A=B.SelectControl,N=B.TextControl,P=wp.element.useRef,z=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=P(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(R,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||M("Custom Marker")),wp.element.createElement(R,{icon:"no-alt",label:M("Remove Marker"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(O,{label:M("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:M("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,M("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(L,{href:"https://developers.google.com/places/web-service/intro"},M("More info.")))),wp.element.createElement(N,{label:M("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(N,{label:M("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(A,{label:M("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:M("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:M("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:M("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:M("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:M("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(N,{label:M("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(S,{label:M("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var I=wp.i18n.__,j=wp.components.Button,D=wp.element,G=D.Fragment,V=D.useEffect,F=D.useState,W=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;V((function(){!1!==t&&d(t)}),[t]);var i=H(F(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(G,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(z,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(j,{isSecondary:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},I("Add Marker")))},q=wp.i18n.__,U=wp.components,Z=U.BaseControl,$=U.Button,Q=U.ExternalLink,K=U.PanelBody,J=U.RangeControl,Y=U.SelectControl,X=U.TextControl,ee=U.ToggleControl,te=wp.blockEditor.InspectorControls,ne=wp.element.useRef,ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,u=e.api,m=e.isSaving,s=e.changeAPI,b=e.saveAPIKey,g=ne(null);return wp.element.createElement(te,null,wp.element.createElement(K,{title:q("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:q("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:q("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:q("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:q("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:q("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:q("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(K,{title:q("Location")},wp.element.createElement(Z,{label:q("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:q("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,q("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(Q,{href:"https://developers.google.com/places/web-service/intro"},q("More info.")))),wp.element.createElement(X,{label:q("Latitude"),type:"text",placeholder:q("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(X,{label:q("Longitude"),type:"text",placeholder:q("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(K,{title:q("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(Y,{label:q("Map Type"),value:t.type,options:[{label:q("Road Map"),value:"roadmap"},{label:q("Satellite View"),value:"satellite"},{label:q("Hybrid"),value:"hybrid"},{label:q("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(J,{label:q("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(J,{label:q("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(K,{title:q("Controls"),initialOpen:!1},wp.element.createElement(Z,null,q("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(ee,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(ee,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(ee,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(ee,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(ee,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(K,{title:q("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(W,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(K,{title:q("Global Settings"),initialOpen:!1},wp.element.createElement(X,{label:q("Google Maps API Key"),type:"text",placeholder:q("Google Maps API Key"),value:u,className:"components-placeholder__input",onChange:s,help:q("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement($,{isLarge:!0,isSecondary:!0,type:"submit",onClick:b,isBusy:m},q("Save API Key"))))};function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var re=wp.i18n.__,ie=wp.components,ce=ie.BaseControl,de=ie.Button,pe=ie.ButtonGroup,ue=ie.Modal,me=ie.SelectControl,se=ie.TextControl,be=wp.element,ge=be.useEffect,fe=be.useRef,ye=be.useState,he=be.Fragment,we=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ge((function(){d(t.id),m(t.location),g(t.title),h(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=fe(null),i=le(ye(t.id),2),c=i[0],d=i[1],p=le(ye(t.location),2),u=p[0],m=p[1],s=le(ye(t.title),2),b=s[0],g=s[1],f=le(ye(t.icon),2),y=f[0],h=f[1],w=le(ye(t.description),2),v=w[0],k=w[1],T=le(ye(t.latitude),2),E=T[0],x=T[1],C=le(ye(t.longitude),2),M=C[0],B=C[1];return wp.element.createElement(ue,{title:re("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(he,null,wp.element.createElement(ce,{label:re("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:re("Enter a location…"),value:u,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();m(t),x(n),B(a)}))}))},onChange:function(e){return m(e.target.value)},disabled:!a})),wp.element.createElement(se,{label:re("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(se,{label:re("Longitude"),type:"text",value:M,onChange:B})),wp.element.createElement(se,{label:re("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(S,{label:re("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(me,{label:re("Map Icon"),value:y||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:re("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:re("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:re("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:re("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:re("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:h}),wp.element.createElement(pe,null,wp.element.createElement(de,{isLarge:!0,isPrimary:!0,onClick:function(){return l(u,b,y,v,E,M)}},re("Add")),wp.element.createElement(de,{isLarge:!0,isSecondary:!0,onClick:o},re("Cancel"))))},ve=wp.i18n.__,ke=wp.components.Button,Te=wp.element,Ee=Te.Fragment,xe=Te.useEffect,Ce=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return xe((function(){l&&a()}),[l]),wp.element.createElement(Ee,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(ke,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ve("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},Se={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function Me(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){if(e){if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ae=wp.i18n.__,Ne=wp.components.ResizableBox,Pe=wp.element,ze=Pe.Fragment,He=Pe.useEffect,_e=Pe.useRef,Ie=Pe.useState,je=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;He((function(){X(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,u.current=document.createElement("script"),u.current.type="text/javascript",u.current.async=!0,u.current.defer=!0,u.current.id="themeisle-google-map-api-loading"}),[]),He((function(){!1!==x&&void 0!==window.google&&m.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),He((function(){b.current=Oe(t.markers)}),[t.markers]);var d=_e([]),p=_e(null),u=_e(null),m=_e(null),s=_e(null),b=_e(Oe(t.markers)),y=Be(Ie(""),2),h=y[0],w=y[1],v=Be(Ie(!1),2),k=v[0],T=v[1],E=Be(Ie(!1),2),x=E[0],C=E[1],S=Be(Ie(!1),2),M=S[0],B=S[1],O=Be(Ie(!1),2),R=O[0],L=O[1],A=Be(Ie(!0),2),N=A[0],P=A[1],z=Be(Ie(!1),2),H=z[0],_=z[1],I=Be(Ie(!1),2),j=I[0],D=I[1],G=Be(Ie(!1),2),V=G[0],F=G[1],W=Be(Ie(!1),2),q=W[0],U=W[1],Z=Be(Ie(!1),2),$=Z[0],Q=Z[1],K=Be(Ie({}),2),J=K[0],Y=K[1],X=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:je.push(a),e.next=15;break;case 7:if(!je.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:je.push(o),e.next=15;break;case 14:je.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),ee(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),ee(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Me(o,a,l,r,i,"next",e)}function i(e){Me(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),ee=function(e){window.isMapLoaded||(window.isMapLoaded=!0,u.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",_(!0)},u.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(u.current)),document.getElementById("themeisle-google-map-api")&&_(!0)},te=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Ae("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){s.current=r,r.open(m.current,e)})),google.maps.event.addListener(r,"domready",(function(){D(t)})),google.maps.event.addListener(r,"closeclick",(function(){D(!1)}))},ne=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:m.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){s.current&&s.current.close()})),te(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=Oe(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ne(l),n({markers:l})},oe=function(e){var t=Oe(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),D(!1),0<t.length&&ne(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(L(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:h}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),L(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,ee(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),m.current.setOptions({styles:Se[e]})};return k&&x?wp.element.createElement(ze,null,wp.element.createElement(f.a,{label:Ae("Block Styles"),value:t.style,options:[{label:Ae("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Ae("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Ae("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Ae("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Ae("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Ae("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(ae,{attributes:t,setAttributes:n,map:m.current,changeStyle:ce,isPlaceAPIAvailable:N,isMarkerOpen:j,setMarkerOpen:D,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=Ae("Custom Marker"),n=m.current.getCenter(),a=n.lat(),l=n.lng();U(!0),Q(!0),Y({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:h,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(we,{marker:J,isAdvanced:$,isPlaceAPIAvailable:N,close:function(){return U(!1)},addMarker:function(e,a,l,o,r,c){var p=new google.maps.LatLng(r,c),u=Object(i.a)(),b=new google.maps.Marker({position:p,map:m.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(u,"latitude",t),le(u,"longitude",n)})),d.current.push(b);var g=Oe(t.markers),f={id:u,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){s.current&&s.current.close()})),te(b,f.id,a,o),U(!1),F(!1)}}),wp.element.createElement(Ne,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(Ce,{attributes:t,className:a,initMap:function(){if(m.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:Se[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(m.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&m.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(m.current,"idle",(function(){B(!0)})),m.current.addListener("zoom_changed",(function(){var e=m.current.getZoom();n({zoom:e})})),m.current.addListener("maptypeid_changed",(function(){var e=m.current.getMapTypeId();n({type:e})})),m.current.addListener("bounds_changed",(function(){var e=m.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ne(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(m.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&P(!1)}))},displayMap:H,isMapLoaded:M,selectMarker:function(){F(!V),V?google.maps.event.clearListeners(m.current,"click"):m.current.addListener("click",(function(e){google.maps.event.clearListeners(m.current,"click");var t=Object(i.a)(),n=Ae("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();U(!0),Q(!1),Y({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(g,{className:a,api:h,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ge=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ge("Google Maps"),description:Ge("Display Google Maps on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:De,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(85),n(86);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},u=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},m=function(e){var t=e.attributes;return wp.element.createElement(d,null,wp.element.createElement(p,{attributes:t}),wp.element.createElement(u,{attributes:t}))},s=wp.blockEditor.RichText,b=[{attributes:{id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!s.isEmpty(e.caption)&&wp.element.createElement(s.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(m,{attributes:t})))}},{attributes:{id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!s.isEmpty(e.caption)&&wp.element.createElement(s.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(m,{attributes:t})))}}],g=lodash,f=g.filter,y=g.every,h=wp.blocks.createBlock,w={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=y(e,["align",t])?t:void 0;var n=f(e,(function(e){return e.url}));return h("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return h("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):h("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},v=lodash.debounce,k=wp.blockEditor.MediaPlaceholder,T=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=v(i,250);return wp.element.createElement(k,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},E=wp.i18n.__,x=lodash.max,C=wp.blockEditor.InspectorControls,S=wp.components,M=S.PanelBody,B=S.RangeControl,O=S.ToggleControl,R=wp.element.Fragment,L=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(C,null,wp.element.createElement(M,{title:E("Settings")},t.images.length&&wp.element.createElement(R,null,wp.element.createElement(B,{label:E("Slides Per Page"),help:E("A number of visible slides."),value:t.perView,onChange:l,min:1,max:x([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(R,null,wp.element.createElement(B,{label:E("Gap"),help:E("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(B,{label:E("Peek"),help:E("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(B,{label:E("Height"),help:E("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(O,{label:E("Autoplay"),help:E("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(B,{label:E("Delay"),help:E("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(O,{label:E("Hide Arrows"),help:E("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(O,{label:E("Hide Bullets"),help:E("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function A(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var P=wp.i18n.__,z=lodash.filter,H=wp.blockEditor.RichText,_=wp.components.Button,I=wp.element.Fragment,j=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=A(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(I,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(_,{icon:"arrow-left-alt2",label:P("Move image backward"),showTooltip:!0,onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":l,disabled:!i}),wp.element.createElement(_,{icon:"arrow-right-alt2",label:P("Move image forward"),showTooltip:!0,onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(_,{icon:"no-alt",label:P("Remove image"),showTooltip:!0,onClick:function(){var e=z(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(i||!H.isEmpty(n.caption))&&wp.element.createElement(H,{tagName:"figcaption",placeholder:i?P("Write caption…"):null,value:n.caption,onChange:function(e){var n=A(t);n[a].caption=e,c({images:n})},multiline:!1})))};function D(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var q=wp.i18n.__,U=lodash.max,Z=wp.components.ResizableBox,$=wp.element,Q=$.Fragment,K=$.useEffect,J=$.useRef,Y=$.useState,X=[],ee=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;K((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),K((function(){t.images.length&&(s(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),K((function(){t.images.length&&t.perView>t.images.length&&y(U([Math.round(t.images.length/2),1]))}),[t.images]);var c=J(null),d=J(null),p=V(Y(null),2),u=p[0],s=p[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:X.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!X.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:X.push(r),d.current=r,e.next=21;break;case 18:X.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=D(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){G(o,a,l,r,i,"next",e)}function i(e){G(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},y=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(T,{labels:{title:q("Slider"),instructions:q("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(Q,null,wp.element.createElement(L,{attributes:t,setAttributes:n,slider:c.current,changePerView:y}),wp.element.createElement(Z,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(j,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===u,setAttributes:n,setSelectedImage:s})}))),wp.element.createElement(m,{attributes:t})))),r&&wp.element.createElement(T,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},te=wp.blockEditor.RichText,ne=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px"),"data-hide-arrows":t.hideArrows},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!te.isEmpty(e.caption)&&wp.element.createElement(te.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(u,{attributes:t})))},ae=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:ae("Slider"),description:ae("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:b,transforms:w,supports:{align:["wide","full"]},edit:ee,save:ne})},function(e,t,n){"use strict";n.r(t);n(38);var a=n(3);n(39);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.blocks.getBlockType,p=wp.components,u=p.Button,m=p.Icon,s=p.Modal,b=wp.element,g=b.Fragment,f=b.useState,y=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=d(t),p=r(f(!1),2),b=p[0],y=p[1],h=r(f(!1),2),w=h[0],v=h[1];return i?wp.element.createElement(g,null,wp.element.createElement(u,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return y(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(m,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(s,{title:i.title,onRequestClose:function(){return y(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(u,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(u,{isSecondary:!0,isLarge:!0,onClick:function(){return y(!1)}},c("Close")),wp.element.createElement(u,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},h=n(2),w=n(9),v=n(4),k=n(5);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.i18n.__,x=wp.blockEditor.ColorPalette,C=wp.components,S=C.PanelBody,M=C.RangeControl,B=C.SelectControl,O=wp.data.useSelect,R=wp.element.Fragment,L=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=O((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},u=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};u=u();var m={top:"marginTop",bottom:"marginBottom"},s={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(R,null,wp.element.createElement(S,{title:E("General Settings")},wp.element.createElement(B,{label:E("HTML Tag"),value:n.tag,options:[{label:E("Heading 1"),value:"h1"},{label:E("Heading 2"),value:"h2"},{label:E("Heading 3"),value:"h3"},{label:E("Heading 4"),value:"h4"},{label:E("Heading 5"),value:"h5"},{label:E("Heading 6"),value:"h6"},{label:E("Division"),value:"div"},{label:E("Paragraph"),value:"p"},{label:E("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(h.a,{label:"Heading Color",colorValue:n.headingColor},wp.element.createElement(x,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:E("Typography Settings"),initialOpen:!1},wp.element.createElement(w.a,{label:E("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:E("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,T({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,T({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,T({},d[e],o)))},options:[{label:E("Top"),type:"top",value:p("top")},{label:E("Right"),type:"right",value:p("right")},{label:E("Bottom"),type:"bottom",value:p("bottom")},{label:E("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:u,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,T({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,T({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,T({},b[e],o)))},options:[{label:E("Top"),type:"top",value:g("top")},{label:E("Right"),disabled:!0},{label:E("Bottom"),type:"bottom",value:g("bottom")},{label:E("Left"),disabled:!0}]}))))};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var P=wp.i18n.__,z=lodash.cloneDeep,H=wp.components,_=H.Button,I=H.ButtonGroup,j=H.PanelBody,D=H.RangeControl,G=H.SelectControl,V=wp.blockEditor.ColorPalette,F=wp.element,W=F.Fragment,q=F.useState,U=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=A(q(!1),2),o=l[0],r=l[1],i=function(e,l){var o=z(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(W,null,wp.element.createElement(j,{title:P("Color & Border")},wp.element.createElement(I,null,wp.element.createElement(_,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},P("Normal")),wp.element.createElement(_,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},P("Hover"))),o?wp.element.createElement(W,null,wp.element.createElement(h.a,{label:"Hover Color",colorValue:n.data.hoverColor},wp.element.createElement(V,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.data.hoverBackground},wp.element.createElement(V,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Hover Border",colorValue:n.data.hoverBorder},wp.element.createElement(V,{label:"Hover Border",value:n.data.hoverBorder,onChange:function(e){return i("hoverBorder",e)}}))):wp.element.createElement(W,null,wp.element.createElement(h.a,{label:"Color",colorValue:n.data.color},wp.element.createElement(V,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Background",colorValue:n.data.background},wp.element.createElement(V,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})),wp.element.createElement("hr",null),wp.element.createElement(h.a,{label:"Border",colorValue:n.data.border},wp.element.createElement(V,{label:"Border",value:n.data.border,onChange:function(e){return i("border",e)}}))),wp.element.createElement("hr",null),wp.element.createElement(D,{label:P("Border Size"),value:n.data.borderSize||"",onChange:function(e){return i("borderSize",e)},min:0,max:10}),wp.element.createElement("hr",null),wp.element.createElement(D,{label:P("Border Radius"),value:n.data.borderRadius||"",onChange:function(e){return i("borderRadius",e)},min:0,max:100})),wp.element.createElement(j,{title:P("Spacing"),initialOpen:!1},wp.element.createElement(k.a,{label:P("Button Padding"),min:0,max:100,onChange:i,options:[{label:P("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:P("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:P("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:P("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(D,{label:P("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:P("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(j,{title:P("Typography Settings"),initialOpen:!1},wp.element.createElement(D,{label:P("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:P("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(D,{label:P("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Q=wp.i18n.__,K=wp.components,J=K.Button,Y=K.ButtonGroup,X=K.PanelBody,ee=K.RangeControl,te=wp.blockEditor,ne=te.ColorPalette,ae=te.ContrastChecker,le=wp.element,oe=le.Fragment,re=le.useState,ie=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Z(re(!1),2),o=l[0],r=l[1];return wp.element.createElement(oe,null,wp.element.createElement(X,{title:Q("Sizing")},wp.element.createElement(ee,{label:Q("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140}),wp.element.createElement("hr",null),wp.element.createElement(ee,{label:Q("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100}),wp.element.createElement("hr",null),wp.element.createElement(ee,{label:Q("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100})),wp.element.createElement(X,{title:Q("Color"),initialOpen:!1},wp.element.createElement(Y,null,wp.element.createElement(J,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},Q("Normal")),wp.element.createElement(J,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},Q("Hover"))),o?wp.element.createElement(oe,null,wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.backgroundColorHover},wp.element.createElement(ne,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(h.a,{label:"Hover Icon",colorValue:n.textColorHover},wp.element.createElement(ne,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(ae,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(oe,null,wp.element.createElement(h.a,{label:"Background",colorValue:n.backgroundColor},wp.element.createElement(ne,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(h.a,{label:"Icon",colorValue:n.textColor},wp.element.createElement(ne,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(ae,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de=wp.i18n.__,pe=wp.components,ue=pe.BaseControl,me=pe.Button,se=pe.ButtonGroup,be=pe.Icon,ge=pe.PanelBody,fe=pe.RangeControl,ye=pe.SelectControl,he=pe.ToggleControl,we=wp.data.useSelect,ve=wp.element.Fragment,ke=function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=we((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},u=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};u=u();var m={top:"marginTop",bottom:"marginBottom"},s={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},y=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};y=y();var h=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(ve,null,wp.element.createElement(ge,{title:de("Sizing")},wp.element.createElement(ye,{label:de("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,ce({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,ce({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,ce({},d[e],a)))},options:[{label:de("Top"),type:"top",value:p("top")},{label:de("Right"),type:"right",value:p("right")},{label:de("Bottom"),type:"bottom",value:p("bottom")},{label:de("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:u,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,ce({},m[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,ce({},s[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,ce({},b[e],a)))},options:[{label:de("Top"),type:"top",value:g("top")},{label:de("Right"),disabled:!0},{label:de("Bottom"),type:"bottom",value:g("bottom")},{label:de("Left"),disabled:!0}]}))),wp.element.createElement(ge,{title:de("Section Structure"),initialOpen:!1},wp.element.createElement(ye,{label:de("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(fe,{label:de("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(ve,null,wp.element.createElement(ue,{label:"Horizontal Align"},wp.element.createElement(se,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(me,{icon:"editor-alignleft",label:de("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}}),wp.element.createElement(me,{icon:"editor-aligncenter",label:de("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}}),wp.element.createElement(me,{icon:"editor-alignright",label:de("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}}))),wp.element.createElement("hr",null)),wp.element.createElement(ye,{label:de("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(ve,null,wp.element.createElement(v.a,{label:"Custom Height"},wp.element.createElement(fe,{value:y||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(ue,{label:"Vertical Align"},wp.element.createElement(se,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(me,{icon:wp.element.createElement(be,{icon:a.t,size:20}),label:de("Top"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return h("flex-start")}}),wp.element.createElement(me,{icon:wp.element.createElement(be,{icon:a.k,size:20}),label:de("Middle"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.verticalAlign,onClick:function(){return h("center")}}),wp.element.createElement(me,{icon:wp.element.createElement(be,{icon:a.c,size:20}),label:de("Bottom"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return h("flex-end")}})))),wp.element.createElement(ge,{title:de("Responsive"),initialOpen:!1},wp.element.createElement(he,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(he,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(he,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))};function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee=wp.i18n.__,xe=wp.components,Ce=xe.PanelBody,Se=xe.SelectControl,Me=wp.data.useSelect,Be=wp.element.Fragment,Oe=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Me((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},p=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};p=p();var u={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},m={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},s={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Be,null,wp.element.createElement(Ce,{title:Ee("Sizing")},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Te({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Te({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Te({},c[e],o)))},options:[{label:Ee("Top"),type:"top",value:d("top")},{label:Ee("Right"),type:"right",value:d("right")},{label:Ee("Bottom"),type:"bottom",value:d("bottom")},{label:Ee("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:p,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Te({},u[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Te({},m[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Te({},s[e],o)))},options:[{label:Ee("Top"),type:"top",value:b("top")},{label:Ee("Right"),type:"right",value:b("right")},{label:Ee("Bottom"),type:"bottom",value:b("bottom")},{label:Ee("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Ce,{title:Ee("Section Settings"),initialOpen:!1},wp.element.createElement(Se,{label:Ee("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))},Re=wp.i18n.__,Le=wp.components.PanelBody,Ae=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:L},{name:"themeisle-blocks/button-group",control:U},{name:"themeisle-blocks/font-awesome-icons",control:ie},{name:"themeisle-blocks/advanced-columns",control:ke},{name:"themeisle-blocks/advanced-column",control:Oe}];return wp.element.createElement(Le,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},Re("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(y,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},Ne=n(6);function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function De(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){je(o,a,l,r,i,"next",e)}function i(e){je(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Ge=wp.i18n.__,Ve=lodash,Fe=Ve.cloneDeep,We=Ve.isEqual,qe=Ve.merge,Ue=wp.apiFetch,Ze=wp.components,$e=Ze.PanelBody,Qe=Ze.Snackbar,Ke=Ze.ToggleControl,Je=wp.data.useDispatch,Ye=wp.element,Xe=Ye.Fragment,et=Ye.useEffect,tt=Ye.useRef,nt=Ye.useState,at=wp.editPost,lt=at.PluginSidebar,ot=at.PluginSidebarMoreMenuItem,rt=function(){var e=Je("core/notices").createNotice;et(De(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ue({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return a(!0),e.next=7,wp.api.loadPromise.then((function(){s.current=new wp.api.models.Settings}));case 7:!1===o&&s.current.fetch().then((function(e){if(m(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Fe(Ne.a);"object"===Ie(window.themeisleGutenberg.themeDefaults)&&(t=qe(t,window.themeisleGutenberg.themeDefaults)),t=qe(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),d(t)}else{var n=Fe(Ne.a);"object"===Ie(window.themeisleGutenberg.themeDefaults)&&(n=qe(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},d(n)}r(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var t=He(nt(!1),2),n=t[0],a=t[1],l=He(nt(!1),2),o=l[0],r=l[1],i=He(nt({}),2),c=i[0],d=i[1],p=He(nt(!1),2),u=p[0],m=p[1],s=tt(null),b=function(t){Qe&&e("info",t,{isDismissible:!0,type:"snackbar"})},g=function(){var e=De(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Fe(c),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==Ne.a[e][n]&&t[e][n]===Ne.a[e][n]||"object"===Ie(t[e][n])&&We(t[e][n],Ne.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,b(Ge("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(Xe,null,n&&wp.element.createElement(ot,{target:"wp-block-themeisle-blocks-options"},Ge("Otter Options")),wp.element.createElement(lt,{title:Ge("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement($e,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(Ke,{label:Ge("Make Section block your default block for Pages?"),checked:u,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(u)}).save().then((function(e){m(Boolean(e.themeisle_blocks_settings_default_block)),b(Ge("Option updated."))}))}})),wp.element.createElement(Ae,{blockDefaults:c,changeConfig:function(e,t){var n=Fe(c);for(var a in t)n[e][a]=t[a];d(n)},resetConfig:function(e){var t=Fe(c),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ne.a[e]);t[e]=n,d(t)},saveConfig:g})))},it=(n(44),n(45),wp.components.Icon);(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(it,{icon:a.m}),render:rt})},function(e,t,n){"use strict";n.r(t);n(55),n(56);var a=n(3),l={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,u=wp.editor.RichText,m=wp.element.Fragment,s=[{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,s=t.fontStyle,b=t.fontVariant,g=t.textTransform,f=t.lineHeight,y=t.data,h={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:s,textTransform:g,lineHeight:f&&"".concat(f,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c(c({},h),{},{borderWidth:"".concat(y[e].borderSize,"px"),borderRadius:"".concat(y[e].borderRadius,"px"),padding:"".concat(y[e].paddingTopBottom,"px ").concat(y[e].paddingLeftRight,"px")});return wp.element.createElement(m,null,wp.element.createElement("a",{href:y[e].link,target:y[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===y[e].iconType||"only"===y[e].iconType)&&wp.element.createElement("i",{className:r()(y[e].prefix,"fa-fw","fa-".concat(y[e].icon),{"margin-right":"left"===y[e].iconType})}),"only"!==y[e].iconType&&wp.element.createElement(u.Content,{tagName:"span",value:y[e].text}),"right"===y[e].iconType&&wp.element.createElement("i",{className:"".concat(y[e].prefix," fa-fw fa-").concat(y[e].icon," margin-left")})))}(e)})))}},{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c(c({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(m,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(u.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(19),g=n.n(b),f=n(6),y=n(9),h=wp.i18n.__,w=wp.components,v=w.Button,k=w.Dropdown,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=wp.element.Fragment,B=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:h("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:h("Align center"),align:"center"},{icon:"editor-alignright",title:h("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(v,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:h("Typography Settings"),showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(T,{label:h("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(y.a,{label:h("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:h("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(10),R=n(2),L=n(8),A=n(21),N=n(5);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=wp.i18n.__,I=lodash.times,j=wp.components,D=j.BaseControl,G=j.Button,V=j.ButtonGroup,F=j.Dashicon,W=j.Dropdown,q=j.MenuGroup,U=j.MenuItem,Z=j.Icon,$=j.PanelBody,Q=j.Placeholder,K=j.RangeControl,J=j.SelectControl,Y=j.Spinner,X=j.ToggleControl,ee=wp.blockEditor,te=ee.ColorPalette,ne=ee.InspectorControls,ae=wp.element,le=ae.Fragment,oe=ae.useState,re=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),ie=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,u=e.changeFontFamily,m=e.changeFontVariant,s=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,f=z(oe("buttons"),2),h=f[0],w=f[1],v=z(oe(!1),2),k=v[0],T=v[1];return wp.element.createElement(ne,null,wp.element.createElement($,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(G,{className:r()("header-tab",{"is-selected":"buttons"===h}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(Z,{icon:a.d}),_("Buttons"))),wp.element.createElement(G,{className:r()("header-tab",{"is-selected":"group"===h}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(F,{icon:"admin-generic"}),_("Group Settings")))),"buttons"===h&&wp.element.createElement(le,null,wp.element.createElement($,{opened:!0},wp.element.createElement(K,{label:_("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(D,{label:_("Edit Button"),className:"wp-block-themeisle-blocks-select-button-container"},wp.element.createElement(W,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(G,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},_("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(q,null,I(t.buttons,(function(e){return wp.element.createElement(U,{onClick:function(){c(e),n()}},_("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null)):wp.element.createElement(le,null,wp.element.createElement($,{title:_("Link")},wp.element.createElement(A.a,{label:"Link",placeholder:_("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(X,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement($,{title:_("Color & Border"),initialOpen:!1},wp.element.createElement(V,null,wp.element.createElement(G,{isSmall:!0,isSecondary:k,isPrimary:!k,onClick:function(){return T(!1)}},_("Normal")),wp.element.createElement(G,{isSmall:!0,isSecondary:!k,isPrimary:k,onClick:function(){return T(!0)}},_("Hover"))),k?wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Color",colorValue:t.data[l].hoverColor},wp.element.createElement(te,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Background",colorValue:t.data[l].hoverBackground},wp.element.createElement(te,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(R.a,{label:"Hover Border",colorValue:t.data[l].hoverBorder},wp.element.createElement(te,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Color",colorValue:t.data[l].color},wp.element.createElement(te,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(R.a,{label:"Background",colorValue:t.data[l].background},wp.element.createElement(te,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(R.a,{label:"Border",colorValue:t.data[l].border},wp.element.createElement(te,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(K,{label:_("Border Width"),className:"border-width",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(K,{label:_("Border Radius"),value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement($,{title:_("Box Shadow"),initialOpen:!1},wp.element.createElement(X,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(le,null,wp.element.createElement(V,null,wp.element.createElement(G,{isSmall:!0,isSecondary:k,isPrimary:!k,onClick:function(){return T(!1)}},_("Normal")),wp.element.createElement(G,{isSmall:!0,isSecondary:!k,isPrimary:k,onClick:function(){return T(!0)}},_("Hover"))),!k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Shadow Color",colorValue:t.data[l].boxShadowColor},wp.element.createElement(te,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(K,{label:_("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:_("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:_("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:_("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:_("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(le,null,wp.element.createElement(R.a,{label:"Hover Shadow Color",colorValue:t.data[l].hoverBoxShadowColor},wp.element.createElement(te,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(L.a,{label:"Hover Shadow Properties"},wp.element.createElement(K,{label:_("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(K,{label:_("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(K,{label:_("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:_("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(K,{label:_("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement($,{title:_("Icon Settings"),initialOpen:!1},wp.element.createElement(J,{label:_("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(le,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(Q,{className:"wp-themeisle-block-spinner"},wp.element.createElement(Y,null))},wp.element.createElement(re,{label:_("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===P(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement($,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:_("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:_("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:_("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:_("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:_("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===h&&wp.element.createElement(le,null,wp.element.createElement($,{title:_("Spacing")},wp.element.createElement(K,{label:_("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(J,{label:_("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement($,{title:_("Typography Settings"),initialOpen:!1},wp.element.createElement(K,{label:_("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(y.a,{label:_("Font Family"),value:t.fontFamily,onChangeFontFamily:u,valueVariant:t.fontVariant,onChangeFontVariant:m,valueStyle:t.fontStyle,onChangeFontStyle:s,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(K,{label:_("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},ce=n(7),de=n.n(ce);function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var be=wp.i18n.__,ge=wp.blockEditor.RichText,fe=wp.element,ye=fe.Fragment,he=fe.useState,we=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=me(he((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(de()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px"),paddingTop:"".concat(n.data[t].paddingTopBottom,"px"),paddingBottom:"".concat(n.data[t].paddingTopBottom,"px"),paddingLeft:"".concat(n.data[t].paddingLeftRight,"px"),paddingRight:"".concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")},d);return wp.element.createElement(ye,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(de()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(ge,{placeholder:be("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=wp.i18n.__,Be=lodash,Oe=Be.isEqual,Re=Be.omit,Le=Be.pick,Ae=Be.times,Ne=wp.components.Button,Pe=wp.element,ze=Pe.Fragment,He=Pe.useEffect,_e=Pe.useRef,Ie=Pe.useState,je=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;He((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!Oe(f.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Re(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Le(Ce({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=Ce({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(Ce(Ce({},e),n))})),Oe(d,t.data)||(a.data=d)}n(Ce(Ce({},a),{},{id:r})),je.push(r),e.push(r)}else if(je.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),je.push(p)}else je.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ke(e)},p=_e(t.data),u=ve(Ie(0),2),m=u[0],s=u[1],b=ve(Ie(!1),2),y=b[0],h=b[1],w=function(e){s(e),h(!0),setTimeout((function(){h(!1)}),500)},v=function(e){1<=e&&5>=e&&(t.data.length<e&&(Ae(e-t.data.length,(function(){p.current.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:p.current})),n({buttons:e}),s(0))},k=function(e){n({fontSize:e})},T=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},E=function(e){n({fontVariant:e})},x=function(e){n({fontStyle:e})},C=function(e){n({textTransform:e})},S=function(e){n({lineHeight:e})},M=function(e,t){p.current=p.current.map((function(n,a){return t===a&&(n=Ce(Ce({},n),e)),n})),n({data:p.current})},O="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(ze,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(B,{attributes:t,setAttributes:n,changeFontSize:k,changeFontFamily:T,changeFontVariant:E,changeFontStyle:x,changeTextTransform:C,changeLineHeight:S}),wp.element.createElement(ie,{attributes:t,setAttributes:n,selectedButton:m,wait:y,changeButtons:v,changeButton:w,updateButton:M,changeFontSize:k,changeFontFamily:T,changeFontVariant:E,changeFontStyle:x,changeTextTransform:C,changeLineHeight:S}),wp.element.createElement("div",{id:t.id,className:r()(a,O,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Ae(t.buttons,(function(e){return wp.element.createElement(we,{index:e,attributes:t,isSelected:i,changeButton:w,updateButton:M})})),i&&4>=t.buttons&&wp.element.createElement(Ne,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return v(t.buttons+1)},label:Me("Add Button"),showTooltip:!0})))},Ge=wp.blockEditor.RichText,Ve=wp.element.Fragment,Fe=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(Ve,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(Ge.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},We=lodash.times,qe=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},We(t.buttons,(function(e){return wp.element.createElement(Fe,{index:e,attributes:t})})))},Ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:Ue("Button Group"),description:Ue("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[Ue("buttons"),Ue("button group"),Ue("advanced buttons")],attributes:l,deprecated:s,edit:De,save:qe})},function(e,t,n){"use strict";n.r(t);n(48),n(49),n(50);var a=n(3),l={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},o=n(0),r=n.n(o),i=n(7),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=wp.blockEditor.RichText,m=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(u.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],s=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return s("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return s("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return s("core/paragraph",{content:t})}}]},g=n(19),f=n.n(g),y=n(6),h=n(9),w=wp.i18n.__,v=wp.components,k=v.Button,T=v.Dropdown,E=v.DropdownMenu,x=v.RangeControl,C=v.SVG,S=v.Toolbar,M=wp.blockEditor.BlockControls,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(M,null,wp.element.createElement(E,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(T,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(h.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(2),L=n(8),A=n(4),N=n(5),P=n(20);function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var I=wp.i18n.__,j=wp.blockEditor,D=j.AlignmentToolbar,G=j.ColorPalette,V=j.InspectorControls,F=wp.components,W=F.Button,q=F.Dashicon,U=F.PanelBody,Z=F.RangeControl,$=F.ToggleControl,Q=wp.data.useSelect,K=wp.element,J=K.Fragment,Y=K.useState,X=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=Q((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),u=H(Y("style"),2),m=u[0],s=u[1],b=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};b=b();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var y={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},w={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},v={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},k=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},T=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};T=T();var E={top:"marginTop",bottom:"marginBottom"},x={top:"marginTopTablet",bottom:"marginBottomTablet"},C={top:"marginTopMobile",bottom:"marginBottomMobile"},S=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(J,null,wp.element.createElement(V,null,wp.element.createElement(U,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-customizer"}),I("Style"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-generic"}),I("Advanced")))),"style"===m&&wp.element.createElement(J,null,wp.element.createElement(U,{title:I("General Settings")},wp.element.createElement(R.a,{label:I("Heading Color"),colorValue:t.headingColor},wp.element.createElement(G,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(A.a,{label:"Font Size"},wp.element.createElement(Z,{value:b||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(A.a,{label:"Alignment"},wp.element.createElement(D,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(U,{title:I("Typography Settings"),initialOpen:!1},wp.element.createElement(h.a,{label:I("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(Z,{label:I("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(Z,{label:I("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement($,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(J,null,wp.element.createElement(R.a,{label:I("Color"),colorValue:t.textShadowColor},wp.element.createElement(G,{label:I("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(L.a,{label:"Shadow Properties"},wp.element.createElement(Z,{label:I("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Z,{label:I("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(Z,{label:I("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Z,{label:I("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(J,null,wp.element.createElement(U,{title:I("Highlight Color")},wp.element.createElement(R.a,{label:I("Highlight Color"),colorValue:t.highlightColor},wp.element.createElement(G,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(R.a,{label:I("Highlight Background"),colorValue:t.highlightBackground},wp.element.createElement(G,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(U,{title:I("Spacing"),initialOpen:!1},wp.element.createElement(A.a,{label:"Padding"},wp.element.createElement(N.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(z({},y[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(z({},w[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(z({},v[e],a)))},options:[{label:I("Top"),type:"top",value:k("top")},{label:I("Right"),type:"right",value:k("right")},{label:I("Bottom"),type:"bottom",value:k("bottom")},{label:I("Left"),type:"left",value:k("left")}]})),wp.element.createElement(A.a,{label:"Margin"},wp.element.createElement(N.a,{type:T,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(z({},E[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(z({},x[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(z({},C[e],a)))},options:[{label:I("Top"),type:"top",value:S("top")},{label:I("Right"),disabled:!0},{label:I("Bottom"),type:"bottom",value:S("bottom")},{label:I("Left"),disabled:!0}]}))))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=wp.i18n.__,re=lodash.isEqual,ie=wp.blocks.createBlock,ce=wp.blockEditor.RichText,de=wp.compose.useViewportMatch,pe=wp.data.useSelect,ue=wp.element,me=ue.Fragment,se=ue.useEffect,be=[],ge=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,u=e.onReplace,m=pe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),s=m.isViewportAvailable,b=m.isPreviewDesktop,g=m.isPreviewTablet,h=m.isPreviewMobile,w=de("large",">="),v=de("large","<="),k=de("small",">="),T=de("small","<=");se((function(){E()}),[]);var E=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(re(y.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=ae({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(ae(ae({},a),{},{id:r})),be.push(r),e.push(r)}else if(be.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),be.push(i)}else be.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ee(e)},x=w&&!v&&k&&!T,C=!w&&!v&&k&&!T,S=!(w||v||k||T);s&&!S&&(x=b,C=g,S=h);var M,B,R,L=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},A=function(e){n({fontVariant:e})},N=function(e){n({fontStyle:e})},P=function(e){n({textTransform:e})},z=function(e){n({lineHeight:e})},H=function(e){n({letterSpacing:e})};x&&(M={fontSize:"".concat(t.fontSize,"px")},B={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),C&&(M={fontSize:"".concat(t.fontSizeTablet,"px")},B={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),S&&(M={fontSize:"".concat(t.fontSizeMobile,"px")},B={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(R={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var _=ae(ae(ae({color:t.headingColor},M),{},{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},B),R);return wp.element.createElement(me,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(f.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:L,changeFontVariant:A,changeFontStyle:N,changeTextTransform:P,changeLineHeight:z,changeLetterSpacing:H}),wp.element.createElement(X,{attributes:t,setAttributes:n,changeFontFamily:L,changeFontVariant:A,changeFontStyle:N,changeTextTransform:P,changeLineHeight:z,changeLetterSpacing:H}),wp.element.createElement(ce,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:oe("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ie("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return u([])},style:_,onChange:function(e){n({content:e})}}))},fe=wp.blockEditor.RichText,ye=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(fe.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},he=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:he("Advanced Heading"),description:he("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.i,category:"themeisle-blocks",keywords:[he("heading"),he("title"),he("advanced heading")],attributes:l,deprecated:m,transforms:b,edit:ge,save:ye})},function(e,t,n){"use strict";n.r(t);n(58),n(59);var a=n(3),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=[{attributes:{prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),r(r({},e),{},{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],d=n(6),p=wp.i18n.__,u=wp.blockEditor,m=u.AlignmentToolbar,s=u.BlockControls,b=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(m,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:p("Align left"),align:"left"},{icon:"editor-aligncenter",title:p("Align center"),align:"center"},{icon:"editor-alignright",title:p("Align right"),align:"right"}]}))},g=n(2),f=n(21);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var v=wp.i18n.__,k=wp.components,T=k.Button,E=k.ButtonGroup,x=k.PanelBody,C=k.Placeholder,S=k.RangeControl,M=k.Spinner,B=k.ToggleControl,O=wp.blockEditor,R=O.ColorPalette,L=O.ContrastChecker,A=O.InspectorControls,N=wp.element,P=N.Fragment,z=N.useState,H=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),_=function(e){var t=e.attributes,n=e.setAttributes,a=h(z(!1),2),l=a[0],o=a[1];return wp.element.createElement(A,null,wp.element.createElement(x,{title:v("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(C,{className:"wp-themeisle-block-spinner"},wp.element.createElement(M,null))},wp.element.createElement(H,{label:v("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===y(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(f.a,{label:v("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(B,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(x,{title:v("Icon Sizes"),initialOpen:!1},wp.element.createElement(S,{label:v("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140}),wp.element.createElement(S,{label:v("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100}),wp.element.createElement(S,{label:v("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100})),wp.element.createElement(x,{title:v("Color"),initialOpen:!1},wp.element.createElement(E,null,wp.element.createElement(T,{isSmall:!0,isSecondary:l,isPrimary:!l,onClick:function(){return o(!1)}},v("Normal")),wp.element.createElement(T,{isSmall:!0,isSecondary:!l,isPrimary:l,onClick:function(){return o(!0)}},v("Hover"))),l?wp.element.createElement(P,null,wp.element.createElement(g.a,{label:"Hover Background",colorValue:t.backgroundColorHover},wp.element.createElement(R,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(g.a,{label:"Hover Icon",colorValue:t.textColorHover},wp.element.createElement(R,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(g.a,{label:"Hover Border",colorValue:t.borderColorHover},wp.element.createElement(R,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(L,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(P,null,wp.element.createElement(g.a,{label:"Background",colorValue:t.backgroundColor},wp.element.createElement(R,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(g.a,{label:"Icon",colorValue:t.textColor},wp.element.createElement(R,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(g.a,{label:"Border",colorValue:t.borderColor},wp.element.createElement(R,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(L,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(x,{title:v("Border Settings"),initialOpen:!1},wp.element.createElement(S,{label:v("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120}),wp.element.createElement(S,{label:v("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100})))};function I(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,W=wp.element,q=W.Fragment,U=W.useEffect,Z=[],$=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;U((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(d.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=G({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(G(G({},a),{},{id:i})),Z.push(i),e.push(i)}else if(Z.includes(t.id)){var c="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:c}),Z.push(c)}else Z.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=I(e)},c={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(q,null,wp.element.createElement(b,{attributes:t,setAttributes:n}),wp.element.createElement(_,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:c}))))},Q=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},K=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:K("Font Awesome Icons"),description:K("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:c,edit:$,save:Q})},function(e,t,n){"use strict";n.r(t);n(65),n(66);var a=n(3),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"array",items:{type:"object"}},postsToShow:{type:"number",default:5},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},offset:{type:"number",default:0},imageSize:{type:"string",default:"full"},imageBoxShadow:{type:"boolean",default:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=[{attributes:r(r({},l),{},{categories:{type:"string"}}),supports:{align:["wide","full"],html:!1},migrate:function(e){return r(r({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],d=n(12),p=n(35),u=n.n(p),m=n(0),s=n.n(m),b=n(24);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=lodash,h=y.startCase,w=y.toLower,v=wp.i18n.__,k=wp.components,T=k.Button,E=k.TextControl,x=k.SelectControl,C=k.ToggleControl,S=wp.element,M=S.Fragment,B=S.useState,O=Object(b.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle"},wp.element.createElement("span",null))})),R=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,d=g(B(!1),2),p=d[0],u=d[1],m=h(w(n)),b="hidden",f=v("Display ".concat(m));switch(l(n)&&(b="visibility",f=v("Hide ".concat(m))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:s()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:s()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(O,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},m),t&&wp.element.createElement(T,{icon:p?"arrow-up-alt2":"arrow-down-alt2",label:v(p?"Close Settings":"Open Settings"),showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return u(!p)}}),wp.element.createElement(T,{icon:b,label:f,showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),u(!1)}})),t&&wp.element.createElement("div",{className:s()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:p&&l(n)})},"image"===n&&wp.element.createElement(M,null,wp.element.createElement(x,{label:v("Image Size"),value:r.value,options:[{label:v("Thumbnail"),value:"thumbnail"},{label:v("Medium"),value:"medium"},{label:v("Medium Large"),value:"medium_large"},{label:v("Large"),value:"large"},{label:v("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(C,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(x,{label:v("Title Tag"),value:i.value||"h5",options:[{label:v("H1"),value:"h1"},{label:v("H2"),value:"h2"},{label:v("H3"),value:"h3"},{label:v("H4"),value:"h4"},{label:v("H5"),value:"h5"},{label:v("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(E,{label:v("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(M,null,wp.element.createElement(C,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(C,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},L=Object(b.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(R,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),A=Object(b.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(L,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),N=wp.i18n.__,P=wp.element.Fragment,z=function(e){var t=e.attributes,n=e.setAttributes,a=e.getFields,l=e.toggleFields,o=e.imageSize,r=e.titleTag,i=e.excerptLimit;return wp.element.createElement(P,null,wp.element.createElement("div",{className:s()("wp-block-themeisle-blocks-posts-grid-builder",t.style)},wp.element.createElement(R,{value:N("image"),disabled:!0,getFields:a,toggleFields:l,imageSize:o}),wp.element.createElement(A,{template:t.template,onSortEnd:function(e){var a=e.oldIndex,l=e.newIndex,o=u()(t.template,a,l);n({template:o})},getFields:a,toggleFields:l,titleTag:r,excerptLimit:i,useDragHandle:!0})))};function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=wp.i18n.__,G=wp.components,V=G.PanelBody,F=G.QueryControls,W=G.RangeControl,q=G.TextControl,U=wp.blockEditor.InspectorControls,Z=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeStyle,l=e.categoriesList,o=l.reduce((function(e,t){return I(I({},e),{},j({},t.name,t))}),{}),r=t.categories?t.categories.map((function(e){var t=l.find((function(t){return t.id===Number(e.id)}));return{id:e.id,name:t.name||t.slug}})):[],i="object"===H(t.categories)?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return wp.element.createElement(U,null,wp.element.createElement(V,{title:D("Styles"),initialOpen:!1},wp.element.createElement(d.b,{value:t.style,options:[{label:D("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:D("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),wp.element.createElement(V,{title:D("Settings")},"grid"===t.style&&wp.element.createElement(W,{label:D("Columns"),value:t.columns,onChange:function(e){n({columns:e})},min:1,max:5}),wp.element.createElement(F,{order:t.order,orderBy:t.orderBy,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},numberOfItems:t.postsToShow,onNumberOfItemsChange:function(e){return n({postsToShow:e})},categoriesList:l,categorySuggestions:o,selectedCategoryId:i,selectedCategories:r,onCategoryChange:function(e){var t;"object"===H(e)?0<e.length&&(t=e.map((function(e){if("object"===H(e))return e;var t=l.find((function(t){return t.name===e}));return t?{id:t.id,name:e}:void 0})).filter((function(e){return void 0!==e}))):""!==e&&(t=[{id:e,name:l.find((function(t){return t.id===Number(e)})).name}]),n({categories:t})}}),wp.element.createElement(q,{label:D("Offset"),help:D("Number of post to displace or pass over."),type:"number",value:t.offset,min:0,onChange:function(e){return n({offset:e})}})),wp.element.createElement(V,{title:D("Design & Layout"),initialOpen:!1},wp.element.createElement(z,{attributes:t,getFields:function(e){return"image"===e?t.displayFeaturedImage:"imageBoxShadow"===e?t.imageBoxShadow:"category"===e?t.displayCategory:"title"===e?t.displayTitle:"meta"===e?t.displayMeta:"description"===e?t.displayDescription:"date"===e?t.displayDate:"author"===e?t.displayAuthor:void 0},toggleFields:function(e){"image"===e&&n({displayFeaturedImage:!t.displayFeaturedImage}),"imageBoxShadow"===e&&n({imageBoxShadow:!t.imageBoxShadow}),"category"===e&&n({displayCategory:!t.displayCategory}),"title"===e&&n({displayTitle:!t.displayTitle}),"meta"===e&&n({displayMeta:!t.displayMeta}),"description"===e&&n({displayDescription:!t.displayDescription}),"date"===e&&n({displayDate:!t.displayDate}),"author"===e&&n({displayAuthor:!t.displayAuthor})},setAttributes:n,imageSize:{value:t.imageSize,onChange:function(e){n({imageSize:e})}},titleTag:{value:t.titleTag,onChange:function(e){n({titleTag:e})}},excerptLimit:{value:t.excerptLength,onChange:function(e){n({excerptLength:e})}}})))},$=n(27),Q=lodash,K=Q.isUndefined,J=Q.pickBy,Y=wp.i18n.__,X=wp.components,ee=X.Disabled,te=X.Placeholder,ne=X.Spinner,ae=wp.data.useSelect,le=wp.element.Fragment,oe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=ae((function(e){var n=t.categories&&0<t.categories.length?t.categories.map((function(e){return e.id})):[],a=J({categories:n,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(function(e){return!K(e)}));return{posts:e("core").getEntityRecords("postType","post",a),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getAuthors()}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset]),o=l.posts,r=l.categoriesList,i=l.authors,c=function(e){n({style:e})};return o&&r&&i?0===o.length?wp.element.createElement(le,null,wp.element.createElement(te,null,Y("No Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null):wp.element.createElement(le,null,wp.element.createElement(d.a,{label:Y("Block Styles"),value:t.style,options:[{label:Y("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:Y("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:c}),wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}),wp.element.createElement(ee,null,wp.element.createElement($.default,{className:a,attributes:t,posts:o,categoriesList:r,authors:i}))):wp.element.createElement(le,null,wp.element.createElement(te,{className:"wp-themeisle-block-spinner"},wp.element.createElement(ne,null),Y("Loading Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null)},re=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/posts-grid",{title:re("Posts"),description:re("Display a list of your most recent posts in a beautiful layout."),icon:a.o,category:"themeisle-blocks",keywords:["posts","grid","news"],attributes:l,supports:{align:["wide","full"],html:!1},deprecated:c,edit:oe,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(83),n(84);var a=n(3),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},d=wp.components,p=d.Path,u=d.SVG,m=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(p,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(p,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(p,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(p,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):wp.element.createElement(u,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))};var s=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,f=g.Toolbar,y=g.Button,h=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(f,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(h,{text:s("Display ".concat(c[e].label))},wp.element.createElement(y,{className:r()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(m,{icon:e})))}))))};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.components.Disabled,x=wp.element.Fragment,C=wp.serverSideRender,S=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(x,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement(E,null,wp.element.createElement(C,{block:"themeisle-blocks/sharing-icons",attributes:k({},t)})))},M=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:M("Sharing Icons"),description:M("Share buttons for your website visitors to share content on any social sharing service."),icon:a.r,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:M("Regular"),isDefault:!0},{name:"icons",label:M("Icons Only")}],edit:S,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(63),n(64);var a=n(3),l={slug:{type:"string"}},o=n(22);function r(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=wp.i18n.__,p=wp.apiFetch,u=wp.components,m=u.Placeholder,s=u.Dashicon,b=u.TextControl,g=u.Spinner,f=wp.element,y=f.useEffect,h=f.useRef,w=f.useState,v=wp.keycodes,k=v.DOWN,T=v.ENTER,E=v.TAB,x=v.UP,C=function(e){var t=e.setAttributes,n=e.hasError,a=e.setError,l=e.className,c=h(null),u=!1,f=[],v=i(w(!1),2),C=v[0],S=v[1],M=i(w(""),2),B=M[0],O=M[1],R=i(w({}),2),L=R[0],A=R[1],N=i(w(null),2),P=N[0],z=N[1];y((function(){null===P||u||(u=!0,Object(o.a)(f[P],c.current,{onlyScrollIfNeeded:!0}),f[P].focus(),setTimeout((function(){u=!1}),100))}),[P]);var H=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({slug:""}),S(!0),a(!1),e.next=5,p({path:"themeisle-gutenberg-blocks/v1/get_plugins?search=".concat(encodeURIComponent(n))});case 5:if(!(l=e.sent).data.errors){e.next=12;break}return a(!0),S(!1),z(null),A({}),e.abrupt("return");case 12:S(!1),z(null),A(l.data.plugins);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function i(e){r(o,a,l,i,c,"next",e)}function c(e){r(o,a,l,i,c,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),I=function(e){if(Object.keys(L).length){e.stopPropagation(),e.preventDefault();var t=P?P-1:Object.keys(L).length-1;z(t)}},j=function(e){if(Object.keys(L).length){e.stopPropagation(),e.preventDefault();var t=null===P||P===Object.keys(L).length-1?0:P+1;z(t)}},D=function(e){t({slug:e.slug}),A({})};return wp.element.createElement(m,{icon:"admin-plugins",label:d("Plugin Card"),instructions:d("Search for the plugin you want to display."),className:l},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-search-field"},wp.element.createElement(s,{icon:"search"}),C&&wp.element.createElement(g,null),wp.element.createElement(b,{type:"text",placeholder:d("Search for plugin…"),value:B,onChange:O,onKeyDown:function(e){switch(e.keyCode){case x:I(e);break;case k:j(e);break;case E:Object.keys(L).length&&!e.shiftKey&&z(0);break;case T:H(e.target.value)}},onFocus:function(){return z(null)}}),L&&wp.element.createElement("div",{tabIndex:"-1",className:"wp-block-themeisle-blocks-plugin-cards-search-results",ref:c},Object.keys(L).map((function(e){var t,n,a=L[e];return a.icons.svg&&(t=a.icons.svg),a.icons["2x"]&&(t=a.icons["2x"]),a.icons["1x"]&&(t=a.icons["1x"]),a.icons.default&&(t=a.icons.default),wp.element.createElement("button",{className:"wp-block-themeisle-blocks-plugin-cards-list-item",key:e,ref:(n=e,function(e){f[n]=e}),onClick:function(e){e.preventDefault(),D(a)},onKeyDown:function(e){return function(e,t){switch(e.keyCode){case x:I(e);break;case k:j(e);break;case E:if(e.shiftKey){0!==P&&I(e);break}if(P===Object.keys(L).length-1)break;j(e);break;case T:D(t)}}(e,a)}},wp.element.createElement("img",{src:t}),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:_.unescape(a.name)}}))})))),n&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},wp.element.createElement("span",null,d("There seems to be an error. Make sure your internet is working properly."))))},S=wp.i18n.__,M=wp.components,B=M.Dashicon,O=M.Button,R=M.Toolbar,L=M.Tooltip,A=wp.blockEditor.BlockControls,N=function(e){var t=e.setLoaded;return wp.element.createElement(A,null,wp.element.createElement(R,null,wp.element.createElement(L,{text:S("Edit")},wp.element.createElement(O,{className:"components-icon-button components-toolbar__control wp-block-themeisle-blocks-plugin-cards-edit-plugin-card",onClick:function(){return t(!1)}},wp.element.createElement(B,{icon:"edit"})))))};function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var D=wp.components.Disabled,G=wp.serverSideRender,V=wp.element,F=V.Fragment,W=V.useState,q=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=I(W(!1),2),o=l[0],r=l[1];return t.slug?wp.element.createElement(F,null,wp.element.createElement(N,null),wp.element.createElement(D,null,wp.element.createElement(G,{block:"themeisle-blocks/plugin-cards",attributes:z({},t)}))):wp.element.createElement(C,{attributes:t,setAttributes:n,hasError:o,setError:r,className:a})},U=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/plugin-cards",{title:U("Plugin Card"),description:U("Plugin Card block lets you display plugins data in your blog posts."),icon:a.n,category:"themeisle-blocks",keywords:["plugin","card","orbitfox"],attributes:l,supports:{html:!1},edit:q,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(46),n(47);var a=n(3),l=wp.components.Disabled,o=wp.serverSideRender,r=function(){return wp.element.createElement(l,null,wp.element.createElement(o,{block:"themeisle-blocks/about-author"}))},i=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/about-author",{title:i("About Author"),description:i("About Author block is the easiest way to add a author bio below your posts."),icon:a.a,category:"themeisle-blocks",keywords:["about","author","profile"],supports:{html:!1},edit:r,save:function(){return null}})}]);
|
1 |
+
!function(e){function t(t){for(var a,r,i=t[0],c=t[1],p=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(d&&d(t);s.length;)s.shift()();return o.push.apply(o,p||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(p);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var p=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var p=0;p<i.length;p++)t(i[p]);var d=c;o.push([44,0]),n()}([,,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return y})),n.d(t,"p",(function(){return h})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));n(1);var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t){e.exports=React},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(49),n(1),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,a=e.className,r=e.children;return wp.element.createElement("div",{className:l()("components-base-control","wp-block-themeisle-blocks-color-base-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(o,{colorValue:n})),r))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(51),n(3)),r=(n(1),wp.i18n.__),i=wp.components,c=i.Button,p=i.Dropdown,d=i.Icon,m=wp.compose,s=m.useInstanceId,u=m.useViewportMatch,b=wp.data,g=b.useSelect,f=b.useDispatch;t.a=function e(t){var n=t.label,a=t.className,i=t.children,m=s(e),b=u("large",">="),y=u("large","<="),h=u("small",">="),w=u("small","<="),v=!(b||y||h||w),k=g((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n&&!v?n():t()})),T=f("themeisle-gutenberg/data").updateView,E=f("core/edit-post").__experimentalSetPreviewDeviceType,x=E&&!v?E:T,C="inspector-responsive-control-".concat(m);return wp.element.createElement("div",{id:C,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(p,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(c,{icon:"Mobile"===k?"smartphone":k.toLowerCase(),label:r("Responsiveness Settings"),showTooltip:!0,className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===k}),onClick:function(){return x("Desktop")}},"Desktop"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===k}),onClick:function(){return x("Tablet")}},"Tablet"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===k}),onClick:function(){return x("Mobile")}},"Mobile"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(52),n(1),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,p=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:p,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},p=wp.i18n.__,d=wp.components.Button,m=wp.compose.useInstanceId;t.a=function e(t){var n=t.label,a=t.type,o=t.min,r=t.max,i=t.changeType,s=t.options,u=t.onChange,b=m(e),g="inspector-sizing-control-".concat(b);return s&&1>s.length?p("Please specify more options."):wp.element.createElement("div",{id:g,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:g},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},s.map((function(e,t){return wp.element.createElement(c,{id:b,index:e,option:t,min:o,max:r,onChange:u})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(d,{icon:"linked"===a?"admin-links":"editor-unlink",label:p("linked"===a?"Unlink Values":"Link Values"),showTooltip:!0,className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none"},"themeisle-blocks/button":{},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1,columnsHTMLTag:"div"},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,,function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(114),r=n(111);n(62),n(1);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var m=wp.i18n.__,s=wp.components,u=s.Button,b=s.Dropdown,g=wp.compose.useInstanceId,f=wp.element,y=f.Fragment,h=f.useEffect,w=f.useState;t.a=function e(t){var n=t.label,a=t.attributes,d=t.setAttributes,s=t.resetValues,f=t.onClick,v=t.children;h((function(){for(var e in s){if(s[e]!==a[e])return x(!0);x(!1)}}),[a]);var k=g(e),T=p(w(!1),2),E=T[0],x=T[1],C="inspector-control-panel-control-".concat(k);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:C},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(b,{position:"top left",headerTitle:n,expandOnMobile:!0,renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return wp.element.createElement(y,null,E&&wp.element.createElement(u,{icon:wp.element.createElement(o.a,{icon:r.a}),label:m("Reset to default"),shotTooltip:!0,isTertiary:!0,onClick:function(){return d(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s))}}),wp.element.createElement(u,{id:C,icon:"admin-settings",label:n,shotTooltip:!0,onClick:function(){a(),f&&f()},"aria-expanded":t,className:l()({"is-active":E})}))},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},v)}})))))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(50),n(1);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=lodash,d=p.startCase,m=p.toLower,s=wp.i18n.__,u=wp.compose.useInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,y=b.Dropdown,h=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=function e(t){var n=t.label,a=t.value,i=t.valueVariant,c=t.valueStyle,p=t.valueTransform,b=t.isSelect,T=void 0!==b&&b,C=t.onChangeFontFamily,S=t.onChangeFontVariant,M=t.onChangeFontStyle,B=t.onChangeTextTransform,O=u(e);E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){L(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}}));return _(t)}}))}))}),[]);var R=r(x(null),2),A=R[0],L=R[1],P=r(x(null),2),N=P[0],_=P[1],I=r(x(""),2),j=I[0],z=I[1],H="inspector-google-fonts-control-".concat(O);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==A?T?wp.element.createElement(v,{value:a||"",id:H,options:[{label:s("Default"),value:""}].concat(o(A.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:s("Regular"),value:"regular"},{label:s("Italic"),value:"italic"}],C(void 0),void _(t);C(e),t=A.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}})),_(t)}}):wp.element.createElement(y,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},a||s("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:s("Google Fonts")},wp.element.createElement(k,{value:j,onChange:function(e){return z(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),C(void 0),_([]),z("")}},s("Default")),A.map((function(e){if(!j||e.family.toLowerCase().includes(j.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),C(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}}));_(n),z("")}},e.family)}))))}}):s("Loading…")),N&&wp.element.createElement(v,{label:s("Font Width"),value:i||"regular",options:N,onChange:S}),wp.element.createElement(v,{label:s("Font Style"),value:c,options:[{label:s("Regular"),value:"normal"},{label:s("Italic"),value:"italic"}],onChange:M}),wp.element.createElement(v,{label:s("Font Transform"),value:p,options:[{label:s("Default"),value:"none"},{label:s("Uppercase"),value:"uppercase"},{label:s("Lowercase"),value:"lowercase"},{label:s("Capitalize"),value:"capitalize"}],onChange:B}))}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return b}));var a=n(0),l=n.n(a),o=(n(72),n(1),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,p=o.Toolbar,d=wp.compose.useInstanceId,m=wp.blockEditor.BlockControls,s=wp.element.Fragment,u=function e(t){var n=t.label,a=t.value,o=t.options,c=t.onChange,p=d(e),m="inspector-style-switcher-control-".concat(p);return wp.element.createElement(r,{id:m,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))},b=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(m,null,wp.element.createElement(p,null,wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(i,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(s,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a);n(80),n(81),n(1);t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,r=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement("svg",{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement("svg",{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},,function(e,t,n){"use strict";n.r(t);n(77);var a=n(3),l=(n(1),wp.i18n.__),o=wp.components,r=o.Button,i=o.ButtonGroup,c=o.Icon,p=wp.compose.useInstanceId;t.default=function e(t){var n=t.label,o=t.backgroundType,d=t.changeBackgroundType,m=p(e),s="inspector-background-control-".concat(m);return wp.element.createElement("div",{id:s,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement(i,{className:"linking-controls"},wp.element.createElement(r,{icon:"admin-customizer",label:l("Color"),showTootlip:!0,isPrimary:"color"===o,onClick:function(){return d("color")}}),wp.element.createElement(r,{icon:"format-image",label:l("Image"),showTootlip:!0,isPrimary:"image"===o,onClick:function(){return d("image")}}),wp.element.createElement(r,{icon:function(){return wp.element.createElement(c,{icon:a.b})},label:l("Gradient"),showTootlip:!0,isPrimary:"gradient"===o,onClick:function(){return d("gradient")}})))))}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(78);var a=n(5),l=n(0),o=n.n(l),r=(n(1),wp.components),i=r.Dashicon,c=r.Tooltip,p=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,l=e.isSelected,r=e.onChange,p=wp.element.createElement("button",{type:"button","aria-pressed":l,className:o()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":l}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return r(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},p):p,l&&wp.element.createElement(i,{icon:"saved"}))},d=wp.i18n.__,m=[{title:d("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:d("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:d("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:d("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:d("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:d("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:d("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:d("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:d("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:d("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:d("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:d("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],s=wp.i18n.__,u=wp.components,b=u.Button,g=u.ColorIndicator,f=u.Dropdown,y=u.RangeControl,h=u.SelectControl,w=wp.compose.useInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=function e(t){var n,l=t.label,o=t.value,r=t.customGradient,i=void 0===r||r,c=t.onChange,d=t.onChangeValue,u=w(e),T="inspector-gradient-picker-control-".concat(u);n="linear"===o.type?"".concat(o.angle,"deg"):"at ".concat(o.position);var E="".concat(o.type,"-gradient( ").concat(n,", ").concat(o.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.firstLocation,"%, ").concat(o.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.secondLocation,"% )"),x=m.some((function(e){return e.firstColor===o.firstColor&&e.secondColor===o.secondColor}));return wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},l&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},l,!x&&wp.element.createElement(g,{colorValue:E}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},m.map((function(e){return wp.element.createElement(p,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===o.firstColor&&e.secondColor===o.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},s("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(a.a,{label:s("First Color"),colorValue:o.firstColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.firstColor,onChange:function(e){return d({firstColor:e})}})),wp.element.createElement(y,{label:s("Location"),value:o.firstLocation,min:0,max:100,onChange:function(e){return d({firstLocation:e})}}),wp.element.createElement(a.a,{label:s("Second Color"),colorValue:o.secondColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.secondColor,onChange:function(e){return d({secondColor:e})}})),wp.element.createElement(y,{label:s("Location"),value:o.secondLocation,min:0,max:100,onChange:function(e){return d({secondLocation:e})}}),wp.element.createElement(h,{label:s("Type"),value:o.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return d({type:e})}}),"linear"===o.type?wp.element.createElement(y,{label:s("Angle"),value:o.angle,min:0,max:360,onChange:function(e){return d({angle:e})}}):wp.element.createElement(h,{label:s("Position"),value:o.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return d({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isSecondary:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},s("Clear"))))))}},,,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(63),n(1);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,p=wp.compose.useInstanceId,d=wp.components,m=d.BaseControl,s=d.Button,u=d.Notice,b=wp.element,g=b.useEffect,f=b.useState;t.a=function e(t){var n=t.value,a=t.onChange,r=p(e);g((function(){return v(n)}),[n]);var d=o(f(!1),2),b=d[0],y=d[1],h=o(f(null),2),w=h[0],v=h[1],k=void 0!==window.themeisleGutenberg.blockIDs&&n!==w&&window.themeisleGutenberg.blockIDs.includes(w);return wp.element.createElement(c,null,wp.element.createElement(m,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(r)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!b&&"readonly",value:b?w:n,onChange:function(e){return v(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(s,{icon:b?"yes":"edit",label:i(b?"Save":"Edit"),showTooltip:!0,disabled:!!k,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!b}),onClick:function(){if(b&&n!==w){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=w,a(w)}y(!b)}}))),k&&wp.element.createElement(u,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}},function(e,t,n){"use strict";var a=n(112),l=n(113);n(64),n(1);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,p=wp.blockEditor.__experimentalLinkControl,d=wp.components,m=d.KeyboardShortcuts,s=d.Popover,u=d.ToolbarButton,b=d.ToolbarGroup,g=wp.element,f=g.Fragment,y=g.useState,h=wp.keycodes,w=h.displayShortcut,v=h.rawShortcut;t.a=function(e){var t,n=e.isSelected,i=e.url,d=e.setAttributes,g=e.opensInNewTab,h=r(y(!1),2),k=h[0],T=h[1],E=!!i,x=E&&n,C=function(){return T(!0),!1},S=function(){d({link:void 0,newTab:void 0}),T(!1)},M=k&&wp.element.createElement(s,{position:"bottom right",onClose:function(){return T(!1)}},wp.element.createElement(p,{className:"wp-block-navigation-link__inline-link-input",value:{url:i,opensInNewTab:g},onChange:function(e){var t=e.url,n=void 0===t?"":t,a=e.opensInNewTab;d({link:n}),g!==a&&d({newTab:a})}}));return wp.element.createElement(f,null,wp.element.createElement(b,null,!E&&wp.element.createElement(u,{name:"link",icon:a.a,title:c("Link"),shortcut:w.primary("k"),onClick:C,className:"wp-block-themeisle-toolbar-icon"}),x&&wp.element.createElement(u,{name:"link",icon:l.a,title:c("Unlink"),shortcut:w.primaryShift("k"),onClick:S,isActive:!0,className:"wp-block-themeisle-toolbar-icon"})),n&&wp.element.createElement(m,{bindGlobal:!0,shortcuts:(t={},o(t,v.primary("k"),C),o(t,v.primaryShift("k"),S),t)}),M)}},,function(e,t,n){"use strict";n(55);var a=n(23),l=n.n(a),o=n(0),r=n.n(o),i=n(15),c=n(114),p=n(117),d=(n(1),wp.components.Button),m=Object(i.b)((function(e){var t=e.value,n=e.selected,a=e.dragging,l=e.sorting,o=e.selectedItemsCount,i=e.onClick,c=a&&1<o;return wp.element.createElement(d,{className:r()("wp-block-themeisle-blocks-images-grid-component__image",{"is-selected":n,"is-sorting":n&&l}),onClick:function(){return i(t)},style:{backgroundImage:"url( ' ".concat(t.url," ' )")}},c&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-images-grid-component__image__count"},o))})),s=wp.i18n.__,u=wp.components.Button,b=Object(i.a)((function(e){var t=e.items,n=e.className,a=e.onItemSelect,l=e.selectedItems,o=e.isSorting,r=e.sortingItemKey,i=e.open;return wp.element.createElement("div",{className:n,tabIndex:"0"},t.map((function(e,t){var n=l.includes(e),i=r===e;return wp.element.createElement(m,{key:"image-".concat(e.id),index:t,value:e,selected:n,dragging:i,sorting:o,selectedItemsCount:l.length,onClick:a})})),wp.element.createElement(u,{label:s("Add Images"),icon:wp.element.createElement(c.a,{icon:p.a}),isPrimary:!0,onClick:i}))}));function g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var w=wp.element.useState,v=function(e){var t=e.attributes,n=e.onSelectImages,a=e.open,o=f(w([]),2),i=o[0],c=o[1],p=f(w(!1),2),d=p[0],m=p[1],s=f(w(null),2),u=s[0],y=s[1];return wp.element.createElement(b,{className:r()("wp-block-themeisle-blocks-images-grid-component",{"is-single":1===t.images.length}),open:a,items:t.images,onItemSelect:function(e){var t;t=i.includes(e)?i.filter((function(t){return t!==e})):[].concat(g(i),[e]),c(t)},selectedItems:i,isSorting:d,sortingItemKey:u,shouldCancelStart:function(e){if(!e.target.sortableInfo)return!1;var n=t.images[e.target.sortableInfo.index];return!!i.length&&!i.includes(n)},updateBeforeSortStart:function(e){var n=e.index;return new Promise((function(e){m(!0),y(t.images[n]),e()}))},onSortEnd:function(e){var a=e.oldIndex,o=e.newIndex,r=l()(t.images,a,o);i.length&&(r=[].concat(g(r.slice(0,o).filter((function(e){return!i.includes(e)}))),g(i),g(r.slice(o,r.length).filter((function(e){return!i.includes(e)}))))),m(!1),y(null),c([]),n(r)},distance:3,axis:"xy"})},k=lodash.debounce,T=wp.blockEditor,E=T.MediaUpload,x=T.MediaUploadCheck;t.a=function(e){var t=e.attributes,n=e.onSelectImages,a=k(n,250);return wp.element.createElement(x,null,wp.element.createElement(E,{onSelect:a,allowedTypes:["image"],multiple:!0,addToGallery:!0,gallery:!0,value:t.images.map((function(e){return e.id})),render:function(e){var a=e.open;return wp.element.createElement(v,{attributes:t,open:a,onSelectImages:n})}}))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(79),n(6)),r=(n(1),wp.i18n.__),i=wp.components,c=i.Button,p=i.Path,d=i.Rect,m=i.SVG,s=i.Tooltip,u=wp.data.useSelect,b=wp.element.Fragment;t.default=function(e){var t,n=e.label,a=e.onClick,i=e.layout,g=e.layoutTablet,f=e.layoutMobile,y=e.columns,h=u((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);return"Desktop"===h?t=i:"Tablet"===h?t=g:"Mobile"===h&&(t=f),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===y&&wp.element.createElement(s,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(s,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}},function(e,t,n){"use strict";n.r(t);n(82);var a=n(3),l=n(0),o=n.n(l);n(83),n(1);function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=lodash,p=c.startCase,d=c.toLower,m=wp.i18n.__,s=wp.components,u=s.Button,b=s.Dashicon,g=s.Icon,f=s.TextControl,y=s.Tooltip,h=s.SelectControl,w=function(e){var t,n=e.preview,l=e.tab,i=e.blocksCategories,c=e.templateCategories,s=e.selectedCategory,w=e.selectedTemplate,v=e.search,k=e.setPreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?i:c).map((function(e){return{label:p(d(e)),value:e}})),[{label:m("All Categories"),value:"all"}].concat(r(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(u,{className:"library-modal-header-tabs-button back-to-library","aria-label":m("Back to Library"),onClick:function(){return k(!1)}},wp.element.createElement(b,{icon:"arrow-left-alt"})," ",m("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(g,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(b,{icon:"screenoptions"}),m("Blocks")),wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(b,{icon:"editor-table"}),m("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(u,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(w.template_url)},tabindex:"0"},wp.element.createElement(b,{icon:"arrow-down-alt",size:16}),m("Insert")),wp.element.createElement(y,{text:m("Close")},wp.element.createElement(u,{className:"library-modal-header-tabs-button","aria-label":m("Close settings"),onClick:E},wp.element.createElement(b,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(h,{className:"library-modal-category-control",value:"all"===s?"all":s,onChange:C,options:M}),wp.element.createElement(f,{type:"text",value:v||"",placeholder:m("Search"),className:"library-modal-search-control",onChange:S})))},v=wp.components.Notice,k=wp.data,T=k.useDispatch,E=k.useSelect,x=function(){var e=E((function(e){return e("core/notices").getNotices("themeisle-blocks/notices/template-library")})),t=T("core/notices").removeNotice;return wp.element.createElement("div",{className:"library-modal-error"},e.map((function(e){return wp.element.createElement(v,{status:e.status,isDismissible:e.isDismissible,onRemove:function(){return t(e.id,"themeisle-blocks/notices/template-library")},actions:e.actions},e.content)})))},C=n(27),S=n.n(C),M=wp.i18n.__,B=wp.components.Button,O=function(e){var t=e.template,n=e.importPreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},wp.element.createElement("h4",{className:"library-modal-content__footer_meta_area"},t.title&&t.title+(t.author&&M(" by ")+t.author),!t.title&&t.author&&M("Author: ")+t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},wp.element.createElement(B,{isSecondary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},R=wp.i18n.__,A=wp.blockEditor.BlockPreview,L=wp.components.Spinner,P=wp.compose.useViewportMatch,N=function(e){var t=e.preview,n=e.isLoading,a=e.data,l=e.tab,o=e.selectedTemplateContent,r=e.selectedCategory,i=e.search,c=e.importPreview,p=e.importTemplate,d=P("large",">="),m=P("large","<="),s=P("small",">="),u=P("small","<="),b=1400;return!d&&!m&&s&&!u?b=960:!(d||m||s||u)&&(b=600),t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement(A,{blocks:o,viewportWidth:b})):n?wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(L,null)):wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,importPreview:c,importTemplate:p})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"})))))};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function j(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){j(o,a,l,r,i,"next",e)}function i(e){j(o,a,l,r,i,"throw",e)}r(void 0)}))}}var H=wp.i18n.__,D=wp.apiFetch,G=wp.blocks.parse,V=wp.components.Modal,F=wp.data,W=F.useSelect,U=F.useDispatch,q=wp.element,Z=q.useEffect,$=q.useState,Q=function(e){var t=e.clientId,n=e.close,a=W((function(e){return e("core/block-editor").getBlock(t)})),l=U("core/block-editor").replaceBlocks,r=U("core/notices").createNotice;Z((function(){(function(){var e=z(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Boolean(themeisleGutenberg.isCompatible)||r("warning",H("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."),{context:"themeisle-blocks/notices/template-library",id:"compatibility-warning",isDismissible:!1,actions:[{label:H("Update Now"),url:themeisleGutenberg.updatePath}]}),e.prev=1,e.next=4,D({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 4:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),T(n),S(a),O(t),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),r("error",H("There seems to be an error. Please try again."),{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 18:s(!1);case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var i=_($("block"),2),c=i[0],p=i[1],d=_($(!0),2),m=d[0],s=d[1],u=_($("all"),2),b=u[0],g=u[1],f=_($(""),2),y=f[0],h=f[1],v=_($([]),2),k=v[0],T=v[1],E=_($([]),2),C=E[0],S=E[1],M=_($([]),2),B=M[0],O=M[1],R=_($(!1),2),A=R[0],L=R[1],P=_($(null),2),I=P[0],j=P[1],F=_($(null),2),q=F[0],Q=F[1],K=function(){var e=z(regeneratorRuntime.mark((function e(){var t,n,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,s(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t.template_url,"&preview=true")});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),j(t),Q(n),L(!0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 15:s(!1);case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=z(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!1),s(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),o=n,l(a.clientId,o),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0}),s(!1);case 14:case"end":return e.stop()}var o}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(V,{className:o()("wp-block-themeisle-library-modal",{"is-preview":A}),onRequestClose:n,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(w,{preview:A,tab:c,changeTab:function(e){p(e),g("all"),h("")},blocksCategories:k,templateCategories:C,selectedTemplate:I,selectedCategory:b,search:y,setPreview:L,close:n,importTemplate:J,selectCategory:function(e){return g(e)},changeSearch:function(e){return h(e)}}),wp.element.createElement(x,null),wp.element.createElement(N,{preview:A,isLoading:m,data:B,tab:c,selectedTemplateContent:q,selectedCategory:b,search:y,importPreview:K,importTemplate:J}))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.Button,te=X.Dashicon,ne=X.Icon,ae=X.Path,le=X.Placeholder,oe=X.Rect,re=X.SVG,ie=X.Tooltip,ce=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=K(ce(!1),2),o=l[0],r=l[1];return wp.element.createElement(le,{label:Y("Select Layout"),instructions:Y("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ne,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ie,{text:Y("Open Template Library")},wp.element.createElement(ee,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(te,{icon:"category"}),Y("Template Library")),o&&wp.element.createElement(Q,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(ee,{isLink:!0,onClick:function(){return n(1,"equal")}},Y("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=wp.i18n.__,r=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},i=function(e){var t=[o("January"),o("February"),o("March"),o("April"),o("May"),o("June"),o("July"),o("August"),o("September"),o("October"),o("November"),o("December")],n=(e=new Date(e)).getDate(),a=e.getMonth(),l=e.getFullYear();return n+" "+t[a]+", "+l},c=(n(1),wp.components),p=c.Placeholder,d=c.Spinner,m=wp.data.useSelect,s=function(e){var t=e.id,n=e.link,a=e.alt,l=e.size,o=m((function(e){var n=e("core").getMedia(t);return{featuredImage:n?0<Object.keys(n.media_details.sizes).length&&n.media_details.sizes[l]?n.media_details.sizes[l].source_url:n.source_url:null,altText:n&&n.alt_text?n.alt_text:a}}),[l]),r=o.featuredImage,i=o.altText;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:n},r?wp.element.createElement("img",{src:r,size:l,alt:i,"data-id":t}):wp.element.createElement(p,null,wp.element.createElement(d,null))))},u=wp.i18n,b=u.__,g=u.sprintf,f=function(e){var t=e.className,n=e.attributes,a=e.posts,o=e.categoriesList,c=e.authors,p=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return o&&(t=o.find((function(t){return t.id===e.categories[0]}))),c&&(a=c.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},void 0!==e.featured_media&&0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(s,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&o?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(p,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},r(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&g(b("on %s"),i(e.date)),n.displayAuthor&&void 0!==a&&c&&g(b(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},r(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},y=wp.i18n,h=y.__,w=y.sprintf,v=function(e){var t=e.className,n=e.attributes,a=e.posts,o=e.categoriesList,c=e.authors,p=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return o&&(t=o.find((function(t){return t.id===e.categories[0]}))),c&&(a=c.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(s,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&o?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(p,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},r(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&w(h("on %s"),i(e.date)),n.displayAuthor&&void 0!==a&&c&&w(h(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},r(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(f,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(v,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},o=n(0),r=n.n(o),i=n(9),c=n.n(i);n(1);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=wp.blockEditor.InnerBlocks,u=wp.components,b=u.SVG,g=u.Path,f={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(b,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(b,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},h=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(b,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(b,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},w=[{attributes:f,supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,i,p=e.attributes,m=e.className,u=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(i="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(i,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(a={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(a={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(l={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(l={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(o={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(c()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var b,g=d(d(d(d(d({},t),a),l),o),{},{justifyContent:p.horizontalAlign});("color"===p.backgroundOverlayType&&(n={background:p.backgroundOverlayColor,opacity:p.backgroundOverlayOpacity/100}),"image"===p.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(p.backgroundOverlayImageURL,"' )"),backgroundAttachment:p.backgroundOverlayAttachment,backgroundPosition:p.backgroundOverlayPosition,backgroundRepeat:p.backgroundOverlayRepeat,backgroundSize:p.backgroundOverlaySize,opacity:p.backgroundOverlayOpacity/100}),"gradient"===p.backgroundOverlayType)&&(b="linear"===p.backgroundOverlayGradientType?"".concat(p.backgroundOverlayGradientAngle,"deg"):"at ".concat(p.backgroundOverlayGradientPosition),n={background:"".concat(p.backgroundOverlayGradientType,"-gradient( ").concat(b,", ").concat(p.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientFirstLocation,"%, ").concat(p.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientSecondLocation,"% )"),opacity:p.backgroundOverlayOpacity/100});var f=d(d({},n),{},{mixBlendMode:p.backgroundOverlayBlend,filter:"blur( ".concat(p.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(p.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(p.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(p.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(p.backgroundOverlayFilterHue,"deg ) saturate( ").concat(p.backgroundOverlayFilterSaturate/10," )")}),h={};p.columnsWidth&&(h={maxWidth:p.columnsWidth+"px"});var w=p.hide?"":"has-desktop-".concat(p.layout,"-layout"),v=p.hideTablet?"":"has-tablet-".concat(p.layoutTablet,"-layout"),k=p.hideMobile?"":"has-mobile-".concat(p.layoutMobile,"-layout"),T=r()(m,"has-".concat(p.columns,"-columns"),w,v,k,{"hide-in-desktop":p.hide},{"hide-in-tablet":p.hideTablet},{"hide-in-mobile":p.hideMobile},"has-".concat(p.lcolumnsGap,"-gap"),"has-vertical-".concat(p.verticalAlign));return wp.element.createElement(u,{className:T,id:p.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:p.dividerTopType,fill:p.dividerTopColor,invert:p.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(s.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:p.dividerBottomType,fill:p.dividerBottomColor,invert:p.dividerBottomInvert}))}},{attributes:f,supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,i,p=e.attributes,m=e.className,u=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(i="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(i,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(a={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(a={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(l={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(l={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(o={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(c()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var b,g=d(d(d(d(d({},t),a),l),o),{},{justifyContent:p.horizontalAlign});("color"===p.backgroundOverlayType&&(n={background:p.backgroundOverlayColor,opacity:p.backgroundOverlayOpacity/100}),"image"===p.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(p.backgroundOverlayImageURL,"' )"),backgroundAttachment:p.backgroundOverlayAttachment,backgroundPosition:p.backgroundOverlayPosition,backgroundRepeat:p.backgroundOverlayRepeat,backgroundSize:p.backgroundOverlaySize,opacity:p.backgroundOverlayOpacity/100}),"gradient"===p.backgroundOverlayType)&&(b="linear"===p.backgroundOverlayGradientType?"".concat(p.backgroundOverlayGradientAngle,"deg"):"at ".concat(p.backgroundOverlayGradientPosition),n={background:"".concat(p.backgroundOverlayGradientType,"-gradient( ").concat(b,", ").concat(p.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientFirstLocation,"%, ").concat(p.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientSecondLocation,"% )"),opacity:p.backgroundOverlayOpacity/100});var f=d(d({},n),{},{mixBlendMode:p.backgroundOverlayBlend}),h={};p.columnsWidth&&(h={maxWidth:p.columnsWidth+"px"});var w=p.hide?"":"has-desktop-".concat(p.layout,"-layout"),v=p.hideTablet?"":"has-tablet-".concat(p.layoutTablet,"-layout"),k=p.hideMobile?"":"has-mobile-".concat(p.layoutMobile,"-layout"),T=r()(m,"has-".concat(p.columns,"-columns"),w,v,k,{"hide-in-desktop":p.hide},{"hide-in-tablet":p.hideTablet},{"hide-in-mobile":p.hideMobile},"has-".concat(p.columnsGap,"-gap"),"has-vertical-".concat(p.verticalAlign));return wp.element.createElement(u,{className:T,id:p.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:p.dividerTopType,fill:p.dividerTopColor,invert:p.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(s.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:p.dividerBottomType,fill:p.dividerBottomColor,invert:p.dividerBottomInvert}))}},{attributes:d(d({},f),{},{paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}}),supports:{align:["wide","full"],html:!1},save:function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),i=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),c=r()(n,"has-".concat(t.columns,"-columns"),l,o,i,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:c,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(h,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(s.Content,null)),wp.element.createElement(h,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}],v=n(8),k=n(21),T=wp.blockEditor,E=T.BlockControls,x=T.BlockVerticalAlignmentToolbar,C=function(e){var t=e.attributes,n=e.setAttributes,a=function(){return"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign};return a=a(),wp.element.createElement(E,null,wp.element.createElement(x,{onChange:function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});"top"===e?e="flex-start":"bottom"===e&&(e="flex-end"),n({verticalAlign:e})},value:a}))},S=n(5),M=n(30),B=n(7),O=n(6),R=n(19),A=n(22),L=n(11),P=n(25);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var j=wp.i18n.__,z=wp.blockEditor,H=z.ColorPalette,D=z.InspectorControls,G=z.MediaPlaceholder,V=wp.components,F=V.BaseControl,W=V.Button,U=V.ButtonGroup,q=V.Dashicon,Z=V.PanelBody,$=V.ToggleControl,Q=V.RangeControl,K=V.SelectControl,J=wp.data.useSelect,Y=wp.element,X=Y.Fragment,ee=Y.useState,te=function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,l=e.dividerViewType,o=e.setDividerViewType,i=J((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),c=_(ee("layout"),2),p=c[0],d=c[1],m=function(){var e;return"Desktop"===i&&(e=t.paddingType),"Tablet"===i&&(e=t.paddingTypeTablet),"Mobile"===i&&(e=t.paddingTypeMobile),e};m=m();var s={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},u={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},b={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},g=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},f=function(){var e;return"Desktop"===i&&(e=t.marginType),"Tablet"===i&&(e=t.marginTypeTablet),"Mobile"===i&&(e=t.marginTypeMobile),e};f=f();var y={top:"marginTop",bottom:"marginBottom"},h={top:"marginTopTablet",bottom:"marginBottomTablet"},w={top:"marginTopMobile",bottom:"marginBottomMobile"},v=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},k=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},T=function(){var e;return"Desktop"===i&&(e=t.columnsHeightCustom),"Tablet"===i&&(e=t.columnsHeightCustomTablet),"Mobile"===i&&(e=t.columnsHeightCustomMobile),e};T=T();var E=function(){n({backgroundImageID:"",backgroundImageURL:""})},x=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},C={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},I=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},z={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},V=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},Y=function(){var e;return"top"==l&&(e=t.dividerTopType),"bottom"==l&&(e=t.dividerBottomType),e};Y=Y();var te=function(){var e;return"top"==l&&(e=t.dividerTopColor),"bottom"==l&&(e=t.dividerBottomColor),e};te=te();var ne=function(){var e;return"top"==l&&("Desktop"==i&&(e=t.dividerTopWidth),"Tablet"==i&&(e=t.dividerTopWidthTablet),"Mobile"==i&&(e=t.dividerTopWidthMobile)),"bottom"==l&&("Desktop"==i&&(e=t.dividerBottomWidth),"Tablet"==i&&(e=t.dividerBottomWidthTablet),"Mobile"==i&&(e=t.dividerBottomWidthMobile)),e};ne=ne();var ae=function(){var e;return"top"==l&&("Desktop"==i&&(e=t.dividerTopHeight),"Tablet"==i&&(e=t.dividerTopHeightTablet),"Mobile"==i&&(e=t.dividerTopHeightMobile)),"bottom"==l&&("Desktop"==i&&(e=t.dividerBottomHeight),"Tablet"==i&&(e=t.dividerBottomHeightTablet),"Mobile"==i&&(e=t.dividerBottomHeightMobile)),e};ae=ae();var le=function(){var e;return"top"==l&&(e=t.dividerTopInvert),"bottom"==l&&(e=t.dividerBottomInvert),e};le=le();var oe=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},re=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(X,null,wp.element.createElement(D,null,wp.element.createElement(Z,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return d("layout")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"editor-table"}),j("Layout"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"style"===p}),onClick:function(){return d("style")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-customizer"}),j("Style"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return d("advanced")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-generic"}),j("Advanced")))),"layout"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Columns & Layout")},wp.element.createElement(Q,{label:j("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(M.default,{label:j("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===i&&(n({layout:e}),a(t.columns,e)),"Tablet"===i&&n({layoutTablet:e}),"Mobile"===i&&n({layoutMobile:e})}}),wp.element.createElement(K,{label:j("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(Z,{title:j("Spacing"),initialOpen:!1},wp.element.createElement(O.a,{label:"Padding"},wp.element.createElement(B.a,{type:m,min:0,max:500,changeType:function(e){"Desktop"===i&&n({paddingType:e}),"Tablet"===i&&n({paddingTypeTablet:e}),"Mobile"===i&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.paddingType?n({padding:a}):n(N({},s[e],a))),"Tablet"===i&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(N({},u[e],a))),"Mobile"===i&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(N({},b[e],a)))},options:[{label:j("Top"),type:"top",value:g("top")},{label:j("Right"),type:"right",value:g("right")},{label:j("Bottom"),type:"bottom",value:g("bottom")},{label:j("Left"),type:"left",value:g("left")}]})),wp.element.createElement(O.a,{label:"Margin"},wp.element.createElement(B.a,{type:f,min:-500,max:500,changeType:function(e){"Desktop"===i&&n({marginType:e}),"Tablet"===i&&n({marginTypeTablet:e}),"Mobile"===i&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.marginType?n({margin:a}):n(N({},y[e],a))),"Tablet"===i&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(N({},h[e],a))),"Mobile"===i&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(N({},w[e],a)))},options:[{label:j("Top"),type:"top",value:v("top")},{label:j("Right"),disabled:!0},{label:j("Bottom"),type:"bottom",value:v("bottom")},{label:j("Left"),disabled:!0}]}))),wp.element.createElement(Z,{title:j("Section Structure"),initialOpen:!1},wp.element.createElement(Q,{label:j("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(F,{label:"Horizontal Align"},wp.element.createElement(U,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(W,{icon:"editor-alignleft",label:j("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return k("flex-start")}}),wp.element.createElement(W,{icon:"editor-aligncenter",label:j("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===t.horizontalAlign,onClick:function(){return k("center")}}),wp.element.createElement(W,{icon:"editor-alignright",label:j("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return k("flex-end")}}))),wp.element.createElement(K,{label:j("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(O.a,{label:"Custom Height"},wp.element.createElement(Q,{value:T||"",onChange:function(e){"Desktop"===i&&n({columnsHeightCustom:e}),"Tablet"===i&&n({columnsHeightCustomTablet:e}),"Mobile"===i&&n({columnsHeightCustomMobile:e})},min:0,max:1e3}))))||"style"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(R.default,{label:j("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(S.a,{label:j("Background Color"),colorValue:t.backgroundColor},wp.element.createElement(H,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(X,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:E},wp.element.createElement(q,{icon:"trash"}),wp.element.createElement("span",null,j("Remove Image"))))),wp.element.createElement(W,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:E},j("Change or Remove Image")),wp.element.createElement(L.a,{label:"Background Settings"},wp.element.createElement(K,{label:j("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(K,{label:j("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(K,{label:j("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(K,{label:j("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(G,{icon:"format-image",labels:{title:j("Background Image"),name:j("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(N({},t[a],e[a]))}})),wp.element.createElement(Z,{title:j("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(R.default,{label:j("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(Q,{label:j("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:j("Overlay Color"),colorValue:t.backgroundOverlayColor},wp.element.createElement(H,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(X,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:x},wp.element.createElement(q,{icon:"trash"}),wp.element.createElement("span",null,j("Remove Image"))))),wp.element.createElement(W,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:x},j("Change or Remove Image")),wp.element.createElement(L.a,{label:"Background Settings"},wp.element.createElement(K,{label:j("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(K,{label:j("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(K,{label:j("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(K,{label:j("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(G,{icon:"format-image",labels:{title:j("Background Image"),name:j("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundOverlayGradientFirstColor",firstLocation:"backgroundOverlayGradientFirstLocation",secondColor:"backgroundOverlayGradientSecondColor",secondLocation:"backgroundOverlayGradientSecondLocation",type:"backgroundOverlayGradientType",angle:"backgroundOverlayGradientAngle",position:"backgroundOverlayGradientPosition"};for(var a in e)n(N({},t[a],e[a]))}}),wp.element.createElement(L.a,{label:"CSS Filters"},wp.element.createElement(Q,{label:j("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(Q,{label:j("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(K,{label:j("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(Z,{title:j("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(B.a,{label:j("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(N({},C[e],a))},options:[{label:j("Top"),type:"top",value:I("top")},{label:j("Right"),type:"right",value:I("right")},{label:j("Bottom"),type:"bottom",value:I("bottom")},{label:j("Left"),type:"left",value:I("left")}]}),wp.element.createElement(S.a,{label:j("Border Color"),colorValue:t.borderColor},wp.element.createElement(H,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(B.a,{label:j("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(N({},z[e],a))},options:[{label:j("Top"),type:"top",value:V("top")},{label:j("Right"),type:"right",value:V("right")},{label:j("Bottom"),type:"bottom",value:V("bottom")},{label:j("Left"),type:"left",value:V("left")}]}),wp.element.createElement($,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(X,null,wp.element.createElement(S.a,{label:j("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(H,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(L.a,{label:"Border Shadow"},wp.element.createElement(Q,{label:j("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(Q,{label:j("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Q,{label:j("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(Z,{title:j("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(U,null,wp.element.createElement(W,{isSmall:!0,isSecondary:"top"!==l,isPrimary:"top"===l,onClick:function(){return o("top")}},j("Top")),wp.element.createElement(W,{isSmall:!0,isSecondary:"bottom"!==l,isPrimary:"bottom"===l,onClick:function(){return o("bottom")}},j("Bottom"))),wp.element.createElement(K,{label:j("Type"),value:Y,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==l&&n({dividerTopType:e}),"bottom"==l&&n({dividerBottomType:e})}}),"none"!==Y&&wp.element.createElement(X,null,wp.element.createElement(S.a,{label:j("Color"),colorValue:te},wp.element.createElement(H,{label:j("Color"),value:te,onChange:function(e){"top"==l&&n({dividerTopColor:e}),"bottom"==l&&n({dividerBottomColor:e})}})),wp.element.createElement(O.a,{label:"Width"},wp.element.createElement(Q,{value:ne,onChange:function(e){"top"==l&&("Desktop"==i&&n({dividerTopWidth:e}),"Tablet"==i&&n({dividerTopWidthTablet:e}),"Mobile"==i&&n({dividerTopWidthMobile:e})),"bottom"==l&&("Desktop"==i&&n({dividerBottomWidth:e}),"Tablet"==i&&n({dividerBottomWidthTablet:e}),"Mobile"==i&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(O.a,{label:"Height"},wp.element.createElement(Q,{value:ae,onChange:function(e){"top"==l&&("Desktop"==i&&n({dividerTopHeight:e}),"Tablet"==i&&n({dividerTopHeightTablet:e}),"Mobile"==i&&n({dividerTopHeightMobile:e})),"bottom"==l&&("Desktop"==i&&n({dividerBottomHeight:e}),"Tablet"==i&&n({dividerBottomHeightTablet:e}),"Mobile"==i&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==Y&&"cloud"!==Y&&wp.element.createElement($,{label:"Invert Shape Divider",checked:le,onChange:function(){"top"==l&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==l&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Responsive")},wp.element.createElement($,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return oe(e,"Desktop")}}),wp.element.createElement($,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return oe(e,"Tablet")}}),wp.element.createElement($,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return oe(e,"Mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement($,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return re(e,"Tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement($,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return re(e,"Mobile")}})),wp.element.createElement(Z,{title:j("Section Settings"),initialOpen:!1},wp.element.createElement(K,{label:j("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var le=wp.i18n.__,oe=wp.blockEditor,re=oe.__experimentalBlockNavigationList,ie=oe.__experimentalBlockNavigationTree,ce=oe.BlockControls,pe=wp.components,de=pe.Button,me=pe.Modal,se=pe.Toolbar,ue=wp.data,be=ue.useSelect,ge=ue.useDispatch,fe=wp.element,ye=fe.Fragment,he=fe.useState,we=function(e){var t=e.clientId,n=be((function(e){var n=e("core/block-editor"),a=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:a()}}),[]),l=n.block,o=n.selectedBlockClientId,r=ge("core/block-editor").selectBlock,i=ne(he(!1),2),c=i[0],p=i[1],d=re||ie;return wp.element.createElement(ye,null,wp.element.createElement(ce,null,wp.element.createElement(se,null,wp.element.createElement(de,{className:"components-toolbar__control",label:le("Open block navigator"),showTooltip:!0,onClick:function(){return p(!0)},icon:a.l}))),c&&wp.element.createElement(me,{title:le("Block Navigator"),closeLabel:le("Close"),onRequestClose:function(){return p(!1)}},wp.element.createElement(d,{blocks:[l],selectedBlockClientId:o,selectBlock:r,showNestedBlocks:!0})))},ve=n(17),ke=n(31);function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||xe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=lodash,Re=Oe.isEqual,Ae=Oe.times,Le=wp.compose.useViewportMatch,Pe=wp.data,Ne=Pe.useDispatch,_e=Pe.useSelect,Ie=wp.blockEditor.InnerBlocks,je=wp.element,ze=je.Fragment,He=je.useEffect,De=je.useState,Ge=[],Ve=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.name,p=Ne("core/block-editor").updateBlockAttributes,d=_e((function(e){var t=e("core/block-editor").getBlock,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:t(o),isViewportAvailable:!!n,isPreviewDesktop:!!n&&"Desktop"===n(),isPreviewTablet:!!n&&"Tablet"===n(),isPreviewMobile:!!n&&"Mobile"===n()}}),[]),m=d.sectionBlock,s=d.isViewportAvailable,u=d.isPreviewDesktop,b=d.isPreviewTablet,g=d.isPreviewMobile,f=Le("large",">="),y=Le("large","<="),h=Le("small",">="),w=Le("small","<=");He((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-columns-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Re(v.a[i],window.themeisleGutenberg.globalDefaults[i])||(a=Me({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Me(Me({},a),{},{id:r})),Ge.push(r),e.push(r)}else if(Ge.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(o.substr(0,8));n({id:c}),Ge.push(c),e.push(c)}else Ge.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Ee(e)},E=Te(De("top"),2),x=E[0],S=E[1],M=f&&!y&&h&&!w,B=!f&&!y&&h&&!w,O=!(f||y||h||w);s&&!O&&(M=u,B=b,O=g);var R,A,L,P,N,_,I,j=t.columnsHTMLTag;(M&&(R={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),B&&(R={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),O&&(R={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(A={background:t.backgroundColor}),"image"===t.backgroundType&&(A={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(A={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(P={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(P={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(N={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(N={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(_={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(c()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var z,H=Me(Me(Me(Me(Me({},R),A),P),N),_);("color"===t.backgroundOverlayType&&(L={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(L={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(z="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),L={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(z,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var D=Me(Me({},L),{},{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),G={};t.columnsWidth&&(G={maxWidth:t.columnsWidth+"px"});var V=r()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),"has-horizontal-".concat(t.horizontalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":M},{"has-viewport-tablet":B},{"has-viewport-mobile":O}),F=function(){var e;return M&&(e=t.dividerTopWidth),B&&(e=t.dividerTopWidthTablet),O&&(e=t.dividerTopWidthMobile),e};F=F();var W=function(){var e;return M&&(e=t.dividerBottomWidth),B&&(e=t.dividerBottomWidthTablet),O&&(e=t.dividerBottomWidthMobile),e};W=W();var U=function(){var e;return M&&(e=t.dividerTopHeight),B&&(e=t.dividerTopHeightTablet),O&&(e=t.dividerTopHeightMobile),e};U=U();var q=function(){var e;return M&&(e=t.dividerBottomHeight),B&&(e=t.dividerBottomHeightTablet),O&&(e=t.dividerBottomHeightMobile),e};q=q();var Z;return t.columns?wp.element.createElement(ze,null,wp.element.createElement(we,{clientId:o}),wp.element.createElement(C,{attributes:t,setAttributes:n}),wp.element.createElement(te,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){m.innerBlocks.map((function(n,a){p(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:x,setDividerViewType:S}),wp.element.createElement(j,{className:V,id:t.id,style:H},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:D}),wp.element.createElement(ve.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:U}),wp.element.createElement("div",{className:"innerblocks-wrap",style:G},wp.element.createElement(Ie,{allowedBlocks:["themeisle-blocks/advanced-column"],template:(Z=t.columns,Ae(Z,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[Z][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(ve.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:W,height:q}))):wp.element.createElement(ke.default,{clientId:o,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})},Fe=wp.blockEditor.InnerBlocks,We=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),i=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),c=r()(n,"has-".concat(t.columns,"-columns"),l,o,i,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:c,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(ve.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(Fe.Content,null)),wp.element.createElement(ve.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ue("Section"),description:Ue("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:a.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:l,supports:{align:["wide","full"],html:!1},deprecated:w,edit:Ve,save:We})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},align:{type:"string"},spacing:{type:"number",default:20},paddingTopBottom:{type:"number"},paddingLeftRight:{type:"number"},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"}},o=n(0),r=n.n(o);n(1);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=lodash,u=s.omit,b=s.pick,g=s.times,f=wp.blocks.createBlock,y=wp.editor.RichText,h=wp.element.Fragment,w={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},v=[{attributes:w,save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},g(t.buttons,(function(e){return function(e){var n=d(d({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(h,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}},{attributes:w,save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},g(t.buttons,(function(e){return function(e){var n=d(d({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(h,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}},{attributes:d(d({},w),{},{fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}}),migrate:function(e,t){var n,a,l;return"flex-start"===e.align&&(n="left"),"center"===e.align&&(n="center"),"flex-end"===e.align&&(n="right"),e.data&&(a=b(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(a).length&&(a=b(a,Object.keys(a).filter((function(e){return""!==a[e]})))),l=e.data.filter((function(t,n){return n<e.buttons})).map((function(e){var t=u(e,["paddingLeftRight","paddingTopBottom"]);return f("themeisle-blocks/button",d({},t))}))),[d(d({},u(e,["buttons","data"])),{},{align:n},a),[].concat(i(l),i(t))]},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},g(t.buttons,(function(e){return function(e){return wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")}))}(e)})))}}],k=n(24),T=n.n(k),E=wp.i18n.__,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){return n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:E("Align left"),align:"left"},{icon:"editor-aligncenter",title:E("Align center"),align:"center"},{icon:"editor-alignright",title:E("Align right"),align:"right"}]}))},B=n(12),O=n(7),R=wp.i18n.__,A=wp.blockEditor.InspectorControls,L=wp.components,P=L.PanelBody,N=L.RangeControl,_=L.SelectControl,I=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(A,null,wp.element.createElement(P,{title:R("Spacing")},wp.element.createElement(O.a,{label:R("Padding"),min:0,max:100,onChange:function(e,t){"top"!==e&&"bottom"!==e||n({paddingTopBottom:t}),"right"!==e&&"left"!==e||n({paddingLeftRight:t})},options:[{label:R("Top"),type:"top",value:t.paddingTopBottom},{label:R("Right"),type:"right",value:t.paddingLeftRight},{label:R("Bottom"),type:"bottom",value:t.paddingTopBottom},{label:R("Left"),type:"left",value:t.paddingLeftRight}]}),wp.element.createElement(N,{label:R("Spacing"),value:t.spacing,onChange:function(e){return n({spacing:e})},min:0,max:50}),wp.element.createElement(_,{label:R("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return n({collapse:e})}})),wp.element.createElement(P,{title:R("Typography Settings"),initialOpen:!1},wp.element.createElement(N,{label:R("Font Size"),value:t.fontSize,onChange:function(e){return n({fontSize:e})},min:0,max:50}),wp.element.createElement(B.a,{label:R("Font Family"),value:t.fontFamily,onChangeFontFamily:function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:function(e){return n({fontVariant:e})},valueStyle:t.fontStyle,onChangeFontStyle:function(e){return n({fontStyle:e})},valueTransform:t.textTransform,onChangeTextTransform:function(e){return n({textTransform:e})}}),wp.element.createElement(N,{label:R("Line Height"),value:t.lineHeight,onChange:function(e){return n({lineHeight:e})},min:0,max:200})))},j=n(8);function z(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,W=wp.blockEditor.InnerBlocks,U=wp.compose.useViewportMatch,q=wp.data.useSelect,Z=wp.element,$=Z.Fragment,Q=Z.useEffect,K=[],J=function(e){var t,n=e.attributes,a=e.setAttributes,o=e.className,i=e.name,c=e.clientId,p=q((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=p.isViewportAvailable,m=p.isPreviewDesktop,s=p.isPreviewTablet,u=p.isPreviewMobile,b=U("large",">="),g=U("large","<="),f=U("small",">="),y=U("small","<=");Q((function(){h()}),[]);var h=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===n.id){var t,o="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(j.a[i],window.themeisleGutenberg.globalDefaults[i])||(t=G({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(t).map((function(e){if(n[e]!==t[e]&&void 0!==l[e].default&&n[e]!==l[e].default)return delete t[e]})))),a(G(G({},t),{},{id:o})),K.push(o),e.push(o)}else if(K.includes(n.id)){var r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));a({id:r}),K.push(r)}else K.push(n.id),e.push(n.id);window.themeisleGutenberg.blockIDs=z(e)},w=b&&!g&&f&&!y,v=!b&&!g&&f&&!y,k=!(b||g||f||y);return d&&!k&&(w=m,v=s,k=u),wp.element.createElement($,null,n.fontFamily&&wp.element.createElement(T.a,{fonts:[{font:n.fontFamily,weights:n.fontVariant&&["".concat(n.fontVariant+("italic"===n.fontStyle?":i":""))]}]}),wp.element.createElement(M,{attributes:n,setAttributes:a}),wp.element.createElement(I,{attributes:n,setAttributes:a}),wp.element.createElement("div",{id:n.id,className:r()(o,"wp-block-buttons",(t={},V(t,"align-".concat(n.align),n.align),V(t,"collapse","collapse-desktop"===n.collapse&&(w||v||k)||"collapse-tablet"===n.collapse&&(v||k)||"collapse-mobile"===n.collapse&&k),t))},wp.element.createElement(W,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:W.DefaultAppender})))};var Y=wp.blockEditor.InnerBlocks,X=function(e){var t,n,a,l=e.attributes,o=e.className,i="collapse-none"!==l.collapse?l.collapse:"";return wp.element.createElement("div",{id:l.id,className:r()(o,i,"wp-block-buttons",(t={},n="align-".concat(l.align),a=l.align,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t))},wp.element.createElement(Y.Content,null))},ee=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:ee("Button Group"),description:ee("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[ee("button"),ee("buttons"),ee("button group")],attributes:l,deprecated:v,edit:J,save:X})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},text:{type:"string",source:"html",selector:"span"},link:{type:"string",source:"attribute",selector:"a",attribute:"href"},newTab:{type:"boolean",default:!1},color:{type:"string"},background:{type:"string"},backgroundGradient:{type:"string"},border:{type:"string"},hoverColor:{type:"string"},hoverBackground:{type:"string"},hoverBackgroundGradient:{type:"string"},hoverBorder:{type:"string"},borderSize:{type:"number"},borderRadius:{type:"number"},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:1},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},hoverBoxShadowColor:{type:"string"},hoverBoxShadowColorOpacity:{type:"number",default:50},hoverBoxShadowBlur:{type:"number",default:5},hoverBoxShadowSpread:{type:"number",default:1},hoverBoxShadowHorizontal:{type:"number",default:0},hoverBoxShadowVertical:{type:"number",default:0},iconType:{type:"string",default:"none"},prefix:{type:"string"},icon:{type:"string"}},o=n(1),r=n(0),i=n.n(r),c=n(9),p=n.n(c),d=n(26),m=wp.blockEditor.BlockControls,s=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected;return wp.element.createElement(m,null,wp.element.createElement(d.a,{isSelected:a,setAttributes:n,url:t.link,opensInNewTab:t.newTab}))},u=n(11);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var f=wp.i18n.__,y=wp.blockEditor,h=y.__experimentalColorGradientControl,w=y.InspectorControls,v=wp.components,k=v.Button,T=v.ButtonGroup,E=v.PanelBody,x=v.RangeControl,C=v.Placeholder,S=v.SelectControl,M=v.Spinner,B=wp.element,O=B.Fragment,R=B.lazy,A=B.Suspense,L=B.useState,P=R((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,123))})),N=function(e){var t=e.attributes,n=e.setAttributes,a=b(L(!1),2),l=a[0],o=a[1],r=function(){return wp.element.createElement(T,null,wp.element.createElement(k,{isSmall:!0,isSecondary:l,isPrimary:!l,onClick:function(){return o(!1)}},f("Normal")),wp.element.createElement(k,{isSmall:!0,isSecondary:!l,isPrimary:l,onClick:function(){return o(!0)}},f("Hover")))};return wp.element.createElement(w,null,wp.element.createElement(E,{title:f("Color")},wp.element.createElement(r,null),l?wp.element.createElement(O,{key:"with-hover"},wp.element.createElement(h,{label:"Hover Color",colorValue:t.hoverColor,onColorChange:function(e){return n({hoverColor:e})}}),wp.element.createElement(h,{label:"Hover Background",colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:function(e){return n({hoverBackground:e})},onGradientChange:function(e){return n({hoverBackgroundGradient:e})}})):wp.element.createElement(O,{key:"without-hover"},wp.element.createElement(h,{label:"Color",colorValue:t.color,onColorChange:function(e){return n({color:e})}}),wp.element.createElement(h,{label:"Background",colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:function(e){return n({background:e})},onGradientChange:function(e){return n({backgroundGradient:e})}}))),wp.element.createElement(E,{title:f("Border & Box Shadow"),initialOpen:!1},wp.element.createElement(r,null),l?wp.element.createElement(h,{label:"Hover Border",colorValue:t.hoverBorder,onColorChange:function(e){return n({hoverBorder:e})}}):wp.element.createElement(h,{label:"Border",colorValue:t.border,onColorChange:function(e){return n({border:e})}}),wp.element.createElement(x,{label:f("Border Width"),value:t.borderSize,onChange:function(e){return n({borderSize:e})},min:0,max:10}),wp.element.createElement(x,{label:f("Border Radius"),value:t.borderRadius,onChange:function(e){return n({borderRadius:e})},min:0,max:100}),wp.element.createElement(u.a,{label:"Box Shadow",attributes:t,setAttributes:n,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:function(){return n({boxShadow:!0})}},wp.element.createElement(r,null),l?wp.element.createElement(O,{key:"with-hover"},wp.element.createElement(h,{label:"Shadow Color on Hover",colorValue:t.hoverBoxShadowColor,onColorChange:function(e){return n({hoverBoxShadowColor:e})}}),wp.element.createElement(x,{label:f("Opacity"),value:t.hoverBoxShadowColorOpacity,onChange:function(e){return n({hoverBoxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Blur"),value:t.hoverBoxShadowBlur,onChange:function(e){return n({hoverBoxShadowBlur:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Spread"),value:t.hoverBoxShadowSpread,onChange:function(e){return n({hoverBoxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Horizontal"),value:t.hoverBoxShadowHorizontal,onChange:function(e){return n({hoverBoxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Vertical"),value:t.hoverBoxShadowVertical,onChange:function(e){return n({hoverBoxShadowVertical:e})},min:-100,max:100})):wp.element.createElement(O,{key:"without-hover"},wp.element.createElement(h,{label:"Shadow Color",colorValue:t.boxShadowColor,onColorChange:function(e){return n({boxShadowColor:e})}}),wp.element.createElement(x,{label:f("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){return n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Blur"),value:t.boxShadowBlur,onChange:function(e){return n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Spread"),value:t.boxShadowSpread,onChange:function(e){return n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){return n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Vertical"),value:t.boxShadowVertical,onChange:function(e){return n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(E,{title:f("Icon Settings"),initialOpen:!1},wp.element.createElement(S,{label:f("Icon Position"),value:t.iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return n({iconType:e})}}),"none"!==t.iconType&&wp.element.createElement(A,{fallback:wp.element.createElement(C,null,wp.element.createElement(M,null))},wp.element.createElement(P,{label:f("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){n({icon:e.name,prefix:e.prefix})}}))))},_=n(8);function I(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=wp.i18n.__,V=lodash.isEqual,F=wp.blockEditor.RichText,W=wp.data.useSelect,U=wp.element,q=U.Fragment,Z=U.useEffect,$=[],Q=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,r=e.isSelected,c=e.name,d=e.clientId,m=W((function(e){var t=e("core/block-editor"),n=(0,t.getBlock)((0,t.getBlockRootClientId)(d));return{hasParent:!!n,parentAttributes:n?n.attributes:{},isLastChild:!n||d===n.innerBlocks[n.innerBlocks.length-1].clientId}}),[]),u=m.hasParent,b=m.parentAttributes,g=m.isLastChild;Z((function(){f()}),[]);var f=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-button-".concat(d.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(V(_.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=H({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(H(H({},a),{},{id:o})),$.push(o),e.push(o)}else if($.includes(t.id)){var r="wp-block-themeisle-blocks-button-".concat(d.substr(0,8));n({id:r}),$.push(r)}else $.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=I(e)},y={},h={},w={};t.boxShadow&&(y={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))}),u&&(w={marginRight:!g&&"".concat(b.spacing,"px")},h={paddingTop:"".concat(b.paddingTopBottom,"px"),paddingBottom:"".concat(b.paddingTopBottom,"px"),paddingLeft:"".concat(b.paddingLeftRight,"px"),paddingRight:"".concat(b.paddingLeftRight,"px"),fontSize:b.fontSize&&"".concat(b.fontSize,"px"),fontFamily:b.fontFamily,fontWeight:b.fontVariant,fontStyle:b.fontStyle,textTransform:b.textTransform,lineHeight:b.lineHeight&&"".concat(b.lineHeight,"px")});var v=H(H({color:t.color,background:t.background||t.backgroundGradient,border:"".concat(t.borderSize,"px solid ").concat(t.border),borderRadius:t.borderRadius},y),h),k=Object(o.a)("&:hover{color:",t.hoverColor," !important;background:",t.hoverBackground||t.hoverBackgroundGradient," !important;border-color:",t.hoverBorder," !important;",t.boxShadow&&"box-shadow: ".concat(t.hoverBoxShadowHorizontal,"px ").concat(t.hoverBoxShadowVertical,"px ").concat(t.hoverBoxShadowBlur,"px ").concat(t.hoverBoxShadowSpread,"px ").concat(p()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)," !important;"),"}");return Object(o.b)(q,null,Object(o.b)(s,{attributes:t,setAttributes:n,isSelected:r}),Object(o.b)(N,{attributes:t,setAttributes:n}),Object(o.b)("div",{id:t.id,className:i()(a,"wp-block-button"),style:w},"none"!==t.iconType?Object(o.b)("div",{className:"wp-block-button__link",style:v,css:k},("left"===t.iconType||"only"===t.iconType)&&Object(o.b)("i",{className:i()(t.prefix,"fa-fw","fa-".concat(t.icon),{"margin-right":"left"===t.iconType})}),"only"!==t.iconType&&Object(o.b)(F,{placeholder:G("Add text…"),value:t.text,onChange:function(e){return n({text:e})},tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&Object(o.b)("i",{className:"".concat(t.prefix," fa-fw fa-").concat(t.icon," margin-left")})):Object(o.b)(F,{placeholder:G("Add text…"),value:t.text,onChange:function(e){return n({text:e})},tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:v,css:k})))},K=wp.blockEditor.RichText,J=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:i()(n,"wp-block-button")},wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&wp.element.createElement("i",{className:i()(t.prefix,"fa-fw","fa-".concat(t.icon),{"margin-right":"left"===t.iconType})}),"only"!==t.iconType&&wp.element.createElement(K.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&wp.element.createElement("i",{className:"".concat(t.prefix," fa-fw fa-").concat(t.icon," margin-left")})))},Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button",{title:Y("Button"),description:Y("Prompt visitors to take action with a button group."),parent:["themeisle-blocks/button-group"],icon:a.d,category:"themeisle-blocks",keywords:[Y("button"),Y("buttons"),Y("button group")],attributes:l,supports:{reusable:!1},styles:[{name:"fill",label:Y("Fill"),isDefault:!0},{name:"outline",label:Y("Outline")}],edit:Q,save:J})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(9),r=n.n(o);n(1);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=wp.blockEditor.InnerBlocks,m=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,i=e.attributes,p=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(o="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(o,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(n={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(n={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(a={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(a={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(l={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(r()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var s=c(c(c(c({},t),n),a),l);return wp.element.createElement(m,{className:p,id:i.id,style:s},wp.element.createElement(d.Content,null))}}],s=n(8),u=n(21),b=n(0),g=n.n(b),f=n(5),y=n(7),h=n(6),w=n(19),v=n(22),k=n(11);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var C=wp.i18n.__,S=wp.blockEditor,M=S.ColorPalette,B=S.InspectorControls,O=S.MediaPlaceholder,R=wp.components,A=R.Button,L=R.Dashicon,P=R.PanelBody,N=R.ToggleControl,_=R.RangeControl,I=R.SelectControl,j=wp.data.useSelect,z=wp.element,H=z.Fragment,D=z.useEffect,G=z.useRef,V=z.useState,F=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,p=j((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);D((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];b.current=t.clientId,x.current=t.attributes.columnWidth}}),[]),D((function(){if(1<r.innerBlocks.length)if(c)x.current=o.attributes.columnWidth,b.current=c,u.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];x.current=n.attributes.columnWidth,b.current=n.clientId,u.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var d=E(V("layout"),2),m=d[0],s=d[1],u=G(t.columnWidth),b=G(c&&c),x=G(o&&o.attributes.columnWidth),S=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};S=S();var R={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},z={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},F={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},W=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},U=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};U=U();var q={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},Z={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},$={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},Q=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},K=function(){n({backgroundImageID:"",backgroundImageURL:""})},J={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},Y=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},X={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ee=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(B,null,wp.element.createElement(P,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"layout"===m}),onClick:function(){return s("layout")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"editor-table"}),C("Layout"))),wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-customizer"}),C("Style"))),wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-generic"}),C("Advanced")))),"layout"===m&&wp.element.createElement(H,null,wp.element.createElement(P,{title:C("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(_,{label:C("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(u.current)-t+Number(x.current);u.current=t,x.current=a,n({columnWidth:t.toFixed(2)}),i(b.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(x.current)-10}),wp.element.createElement(h.a,{label:"Padding"},wp.element.createElement(y.a,{type:S,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(T({},R[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(T({},z[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(T({},F[e],a)))},options:[{label:C("Top"),type:"top",value:W("top")},{label:C("Right"),type:"right",value:W("right")},{label:C("Bottom"),type:"bottom",value:W("bottom")},{label:C("Left"),type:"left",value:W("left")}]})),wp.element.createElement(h.a,{label:"Margin"},wp.element.createElement(y.a,{type:U,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(T({},q[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(T({},Z[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(T({},$[e],a)))},options:[{label:C("Top"),type:"top",value:Q("top")},{label:C("Right"),type:"right",value:Q("right")},{label:C("Bottom"),type:"bottom",value:Q("bottom")},{label:C("Left"),type:"left",value:Q("left")}]}))))||"style"===m&&wp.element.createElement(H,null,wp.element.createElement(P,{title:C("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(w.default,{label:C("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(f.a,{label:C("Background Color"),colorValue:t.headingColor},wp.element.createElement(M,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(H,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:K},wp.element.createElement(L,{icon:"trash"}),wp.element.createElement("span",null,C("Remove Image"))))),wp.element.createElement(A,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:K},C("Change or Remove Image")),wp.element.createElement(k.a,{label:"Background Settings"},wp.element.createElement(I,{label:C("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(I,{label:C("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(I,{label:C("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(I,{label:C("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(O,{icon:"format-image",labels:{title:C("Background Image"),name:C("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(v.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(T({},t[a],e[a]))}})),wp.element.createElement(P,{title:C("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(y.a,{label:C("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(T({},J[e],a))},options:[{label:C("Top"),type:"top",value:Y("top")},{label:C("Right"),type:"right",value:Y("right")},{label:C("Bottom"),type:"bottom",value:Y("bottom")},{label:C("Left"),type:"left",value:Y("left")}]}),wp.element.createElement(f.a,{label:C("Border Color"),colorValue:t.borderColor},wp.element.createElement(M,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(y.a,{label:C("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(T({},X[e],a))},options:[{label:C("Top"),type:"top",value:ee("top")},{label:C("Right"),type:"right",value:ee("right")},{label:C("Bottom"),type:"bottom",value:ee("bottom")},{label:C("Left"),type:"left",value:ee("left")}]}),wp.element.createElement(N,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(H,null,wp.element.createElement(f.a,{label:C("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(M,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(k.a,{label:"Shadow Properties"},wp.element.createElement(_,{label:C("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(_,{label:C("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(_,{label:C("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(_,{label:C("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(_,{label:C("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(P,{title:C("Section Settings")},wp.element.createElement(I,{label:C("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))};function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=lodash.isEqual,Y=wp.components.ResizableBox,X=wp.compose.useViewportMatch,ee=wp.data,te=ee.useDispatch,ne=ee.useSelect,ae=wp.blockEditor.InnerBlocks,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useState,ce=[],pe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,p=e.toggleSelection,d=te("core/block-editor").updateBlockAttributes,m=ne((function(e){var t=e("core/block-editor"),n=t.getAdjacentBlockClientId,a=t.getBlock,l=t.getBlockRootClientId,o=e("core/edit-post").__experimentalGetPreviewDeviceType,r=a(i),c=n(i),p=a(c),d=l(i);return{adjacentBlockClientId:c,adjacentBlock:p,parentClientId:d,parentBlock:a(d),hasInnerBlocks:!(!r||!r.innerBlocks.length),isViewportAvailable:!!o,isPreviewDesktop:!!o&&"Desktop"===o(),isPreviewTablet:!!o&&"Tablet"===o(),isPreviewMobile:!!o&&"Mobile"===o()}}),[]),b=m.adjacentBlockClientId,g=m.adjacentBlock,f=m.parentClientId,y=m.parentBlock,h=m.hasInnerBlocks,w=m.isViewportAvailable,v=m.isPreviewDesktop,k=m.isPreviewTablet,T=m.isPreviewMobile,E=X("large",">="),x=X("large","<="),C=X("small",">="),S=X("small","<=");re((function(){M()}),[]);var M=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(J(s.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=Q({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Q(Q({},a),{},{id:o})),ce.push(o),e.push(o)}else if(ce.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ce.push(r)}else ce.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=U(e)},B=W(ie(0),2),O=B[0],R=B[1],A=W(ie(0),2),L=A[0],P=A[1],N=E&&!x&&C&&!S,_=!E&&!x&&C&&!S,I=!(E||x||C||S);w&&!I&&(N=v,_=k,I=T),void 0===t.columnWidth&&y.innerBlocks.map((function(e,t){if(i===e.clientId){var n=y.attributes.columns,a=y.attributes.layout;d(i,{columnWidth:u.a[n][a][t]})}}));var j=document.getElementById("block-".concat(i));null!==j&&(j.style.flexBasis=N?"".concat(t.columnWidth,"%"):"");var z,H,D,G,V,q,Z=t.columnsHTMLTag;(N&&(z={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),_&&(z={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),I&&(z={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(H={background:t.backgroundColor}),"image"===t.backgroundType&&(H={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(q="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(H={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(q,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(D={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(D={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(G={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(G={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(V={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var $=Q(Q(Q(Q(Q({},z),H),D),G),V);return wp.element.createElement(oe,null,wp.element.createElement(F,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:g,parentBlock:y,updateBlockAttributes:d,adjacentBlockClientId:b}),wp.element.createElement(Y,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!b},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(g.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),R(t.columnWidth),P(g.attributes.columnWidth),p(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(f)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(O)+r,c=L-r,p=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(p.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),d(b,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),p(!0)}},wp.element.createElement(Z,{className:a,id:t.id,style:$},wp.element.createElement(ae,{templateLock:!1,renderAppender:!h&&ae.ButtonBlockAppender}))))},de=wp.blockEditor.InnerBlocks,me=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(de.Content,null))},se=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:se("Section Column"),description:se("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:m,supports:{inserter:!1,reusable:!1,html:!1},edit:pe,save:me})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:d("Pricing"),description:d("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:p})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:d("Service"),description:d("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:p})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:d("Testimonials"),description:d("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:p})},,,function(e,t,n){n(45),n(101),n(109),n(104),n(37),n(36),n(65),n(105),n(102),n(108),n(32),n(106),n(38),n(35),n(19),n(30),n(31),n(17),n(90),n(107),n(103),n(97),n(39),n(40),e.exports=n(41)},function(e,t,n){"use strict";n.r(t);n(46);n.p=window.themeisleGutenberg.packagePath},,,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,p=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),d={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(d[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!d[e.id]||e.id===d[e.id].id&&!t&&d[e.id].isSaving&&(d[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||p()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,,,,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){"use strict";n.r(t);n(66),n(67),n(36),n(37)},,function(e,t,n){},function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(91),n(92),n(35),n(38)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(39),n(40),n(41)},,,,function(e,t,n){"use strict";n.r(t);n(47);var a=n(3);n(48),n(1);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,p=wp.blocks.getBlockType,d=wp.components,m=d.Button,s=d.Icon,u=d.Modal,b=wp.element,g=b.Fragment,f=b.useState,y=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=p(t),d=r(f(!1),2),b=d[0],y=d[1],h=r(f(!1),2),w=h[0],v=h[1];return i?wp.element.createElement(g,null,wp.element.createElement(m,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return y(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(s,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(u,{title:i.title,onRequestClose:function(){return y(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(m,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(m,{isSecondary:!0,isLarge:!0,onClick:function(){return y(!1)}},c("Close")),wp.element.createElement(m,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},h=n(5),w=n(12),v=n(6),k=n(7);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.i18n.__,x=wp.blockEditor.ColorPalette,C=wp.components,S=C.PanelBody,M=C.RangeControl,B=C.SelectControl,O=wp.data.useSelect,R=wp.element.Fragment,A=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=O((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},p={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(R,null,wp.element.createElement(S,{title:E("General Settings")},wp.element.createElement(B,{label:E("HTML Tag"),value:n.tag,options:[{label:E("Heading 1"),value:"h1"},{label:E("Heading 2"),value:"h2"},{label:E("Heading 3"),value:"h3"},{label:E("Heading 4"),value:"h4"},{label:E("Heading 5"),value:"h5"},{label:E("Heading 6"),value:"h6"},{label:E("Division"),value:"div"},{label:E("Paragraph"),value:"p"},{label:E("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(h.a,{label:"Heading Color",colorValue:n.headingColor},wp.element.createElement(x,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:E("Typography Settings"),initialOpen:!1},wp.element.createElement(w.a,{label:E("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:E("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,T({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,T({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,T({},p[e],o)))},options:[{label:E("Top"),type:"top",value:d("top")},{label:E("Right"),type:"right",value:d("right")},{label:E("Bottom"),type:"bottom",value:d("bottom")},{label:E("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,T({},s[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,T({},u[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,T({},b[e],o)))},options:[{label:E("Top"),type:"top",value:g("top")},{label:E("Right"),disabled:!0},{label:E("Bottom"),type:"bottom",value:g("bottom")},{label:E("Left"),disabled:!0}]}))))};var L=wp.i18n.__,P=wp.components,N=P.PanelBody,_=P.RangeControl,I=P.SelectControl,j=wp.element.Fragment,z=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig;return wp.element.createElement(j,null,wp.element.createElement(N,{title:L("Spacing")},wp.element.createElement(k.a,{label:L("Button Padding"),min:0,max:100,onChange:function(e,n){return a(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n))},options:[{label:L("Top"),type:"paddingTopBottom",value:n.paddingTopBottom},{label:L("Right"),type:"paddingLeftRight",value:n.paddingLeftRight},{label:L("Bottom"),type:"paddingTopBottom",value:n.paddingTopBottom},{label:L("Left"),type:"paddingLeftRight",value:n.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(_,{label:L("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(I,{label:L("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(N,{title:L("Typography Settings"),initialOpen:!1},wp.element.createElement(_,{label:L("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:L("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(_,{label:L("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var G=wp.i18n.__,V=wp.blockEditor.__experimentalColorGradientControl,F=wp.components,W=F.Button,U=F.ButtonGroup,q=F.PanelBody,Z=F.RangeControl,$=wp.element,Q=$.Fragment,K=$.useState,J=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=H(K(!1),2),o=l[0],r=l[1],i=function(){return wp.element.createElement(U,null,wp.element.createElement(W,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},G("Normal")),wp.element.createElement(W,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},G("Hover")))};return wp.element.createElement(Q,null,wp.element.createElement(q,{title:G("Color")},wp.element.createElement(i,null),o?wp.element.createElement(Q,{key:"with-hover"},wp.element.createElement(V,{label:"Hover Color",colorValue:n.hoverColor,onColorChange:function(e){return a(t,{hoverColor:e})}}),wp.element.createElement(V,{label:"Hover Background",colorValue:n.hoverBackground,onColorChange:function(e){return a(t,{hoverBackground:e})}})):wp.element.createElement(Q,{key:"without-hover"},wp.element.createElement(V,{label:"Color",colorValue:n.color,onColorChange:function(e){return a(t,{color:e})}}),wp.element.createElement(V,{label:"Background",colorValue:n.background,onColorChange:function(e){return a(t,{background:e})}}))),wp.element.createElement(q,{title:G("Border & Box Shadow"),initialOpen:!1},wp.element.createElement(i,null),o?wp.element.createElement(V,{label:"Hover Border",colorValue:n.hoverBorder,onColorChange:function(e){return a(t,{hoverBorder:e})}}):wp.element.createElement(V,{label:"Border",colorValue:n.border,onColorChange:function(e){return a(t,{border:e})}}),wp.element.createElement(Z,{label:G("Border Width"),value:n.borderSize,onChange:function(e){return a(t,{borderSize:e})},min:0,max:10}),wp.element.createElement(Z,{label:G("Border Radius"),value:n.borderRadius,onChange:function(e){return a(t,{borderRadius:e})},min:0,max:100})))};function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ee=wp.i18n.__,te=wp.components,ne=te.Button,ae=te.ButtonGroup,le=te.PanelBody,oe=te.RangeControl,re=wp.blockEditor,ie=re.ColorPalette,ce=re.ContrastChecker,pe=wp.element,de=pe.Fragment,me=pe.useState,se=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Y(me(!1),2),o=l[0],r=l[1];return wp.element.createElement(de,null,wp.element.createElement(le,{title:ee("Sizing")},wp.element.createElement(oe,{label:ee("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140}),wp.element.createElement("hr",null),wp.element.createElement(oe,{label:ee("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100}),wp.element.createElement("hr",null),wp.element.createElement(oe,{label:ee("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100})),wp.element.createElement(le,{title:ee("Color"),initialOpen:!1},wp.element.createElement(ae,null,wp.element.createElement(ne,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},ee("Normal")),wp.element.createElement(ne,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},ee("Hover"))),o?wp.element.createElement(de,null,wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.backgroundColorHover},wp.element.createElement(ie,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(h.a,{label:"Hover Icon",colorValue:n.textColorHover},wp.element.createElement(ie,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(ce,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(de,null,wp.element.createElement(h.a,{label:"Background",colorValue:n.backgroundColor},wp.element.createElement(ie,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(h.a,{label:"Icon",colorValue:n.textColor},wp.element.createElement(ie,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(ce,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=wp.i18n.__,ge=wp.components,fe=ge.BaseControl,ye=ge.Button,he=ge.ButtonGroup,we=ge.Icon,ve=ge.PanelBody,ke=ge.RangeControl,Te=ge.SelectControl,Ee=ge.ToggleControl,xe=wp.data.useSelect,Ce=wp.element.Fragment,Se=function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=xe((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},p={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},y=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};y=y();var h=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(Ce,null,wp.element.createElement(ve,{title:be("Sizing")},wp.element.createElement(Te,{label:be("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,ue({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,ue({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,ue({},p[e],a)))},options:[{label:be("Top"),type:"top",value:d("top")},{label:be("Right"),type:"right",value:d("right")},{label:be("Bottom"),type:"bottom",value:d("bottom")},{label:be("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,ue({},s[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,ue({},u[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,ue({},b[e],a)))},options:[{label:be("Top"),type:"top",value:g("top")},{label:be("Right"),disabled:!0},{label:be("Bottom"),type:"bottom",value:g("bottom")},{label:be("Left"),disabled:!0}]}))),wp.element.createElement(ve,{title:be("Section Structure"),initialOpen:!1},wp.element.createElement(Te,{label:be("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(ke,{label:be("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(Ce,null,wp.element.createElement(fe,{label:"Horizontal Align"},wp.element.createElement(he,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ye,{icon:"editor-alignleft",label:be("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}}),wp.element.createElement(ye,{icon:"editor-aligncenter",label:be("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}}),wp.element.createElement(ye,{icon:"editor-alignright",label:be("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}}))),wp.element.createElement("hr",null)),wp.element.createElement(Te,{label:be("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(Ce,null,wp.element.createElement(v.a,{label:"Custom Height"},wp.element.createElement(ke,{value:y||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(fe,{label:"Vertical Align"},wp.element.createElement(he,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.t,size:20}),label:be("Top"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return h("flex-start")}}),wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.k,size:20}),label:be("Middle"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.verticalAlign,onClick:function(){return h("center")}}),wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.c,size:20}),label:be("Bottom"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return h("flex-end")}})))),wp.element.createElement(ve,{title:be("Responsive"),initialOpen:!1},wp.element.createElement(Ee,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(Ee,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(Ee,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))};function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=wp.i18n.__,Oe=wp.components,Re=Oe.PanelBody,Ae=Oe.SelectControl,Le=wp.data.useSelect,Pe=wp.element.Fragment,Ne=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Le((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},d=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};d=d();var m={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},s={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},u={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Pe,null,wp.element.createElement(Re,{title:Be("Sizing")},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Me({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Me({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Me({},c[e],o)))},options:[{label:Be("Top"),type:"top",value:p("top")},{label:Be("Right"),type:"right",value:p("right")},{label:Be("Bottom"),type:"bottom",value:p("bottom")},{label:Be("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:d,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Me({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Me({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Me({},u[e],o)))},options:[{label:Be("Top"),type:"top",value:b("top")},{label:Be("Right"),type:"right",value:b("right")},{label:Be("Bottom"),type:"bottom",value:b("bottom")},{label:Be("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Re,{title:Be("Section Settings"),initialOpen:!1},wp.element.createElement(Ae,{label:Be("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))},_e=wp.i18n.__,Ie=wp.components,je=Ie.PanelBody,ze=Ie.Placeholder,He=Ie.Spinner,De=function(e){var t=e.isAPILoaded,n=e.blockDefaults,a=e.changeConfig,l=e.resetConfig,o=e.saveConfig,r=[{name:"themeisle-blocks/advanced-heading",control:A},{name:"themeisle-blocks/button-group",control:z},{name:"themeisle-blocks/button",control:J},{name:"themeisle-blocks/font-awesome-icons",control:se},{name:"themeisle-blocks/advanced-columns",control:Se},{name:"themeisle-blocks/advanced-column",control:Ne}];return t?wp.element.createElement(je,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},_e("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},r.map((function(e){var t=e.control;return wp.element.createElement(y,{blockName:e.name,saveConfig:o,resetConfig:l},wp.element.createElement(t,{blockName:e.name,defaults:n[e.name],changeConfig:a}))})))):wp.element.createElement(ze,null,wp.element.createElement(He,null))},Ge=n(8);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function $e(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Ze(o,a,l,r,i,"next",e)}function i(e){Ze(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Qe=wp.i18n.__,Ke=lodash,Je=Ke.cloneDeep,Ye=Ke.isEqual,Xe=Ke.merge,et=wp.apiFetch,tt=wp.components,nt=tt.PanelBody,at=tt.Snackbar,lt=tt.ToggleControl,ot=wp.data.useDispatch,rt=wp.element,it=rt.Fragment,ct=rt.useEffect,pt=rt.useRef,dt=rt.useState,mt=wp.editPost,st=mt.PluginSidebar,ut=mt.PluginSidebarMoreMenuItem,bt=function(){var e=ot("core/notices").createNotice;ct($e(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,et({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return a(!0),e.next=7,wp.api.loadPromise.then((function(){u.current=new wp.api.models.Settings}));case 7:!1===o&&u.current.fetch().then((function(e){if(s(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Je(Ge.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(t=Xe(t,window.themeisleGutenberg.themeDefaults)),t=Xe(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=Je(Ge.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(n=Xe(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}r(!0)}));case 8:case"end":return e.stop()}}),e)}))),[]);var t=We(dt(!1),2),n=t[0],a=t[1],l=We(dt(!1),2),o=l[0],r=l[1],i=We(dt({}),2),c=i[0],p=i[1],d=We(dt(!1),2),m=d[0],s=d[1],u=pt(null),b=function(t){at&&e("info",t,{isDismissible:!0,type:"snackbar"})},g=function(){var e=$e(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Je(c),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==Ge.a[e][n]&&t[e][n]===Ge.a[e][n]||"object"===qe(t[e][n])&&Ye(t[e][n],Ge.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,b(Qe("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(it,null,n&&wp.element.createElement(ut,{target:"wp-block-themeisle-blocks-options"},Qe("Otter Options")),wp.element.createElement(st,{title:Qe("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(nt,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(lt,{label:Qe("Make Section block your default block for Pages?"),checked:m,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(m)}).save().then((function(e){s(Boolean(e.themeisle_blocks_settings_default_block)),b(Qe("Option updated."))}))}})),wp.element.createElement(De,{isAPILoaded:o,blockDefaults:c,changeConfig:function(e,t){var n=Je(c);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=Je(c),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ge.a[e]);t[e]=n,p(t)},saveConfig:g})))},gt=(n(53),n(54),n(28)),ft=wp.i18n.__,yt=wp.components.PanelBody,ht=wp.compose.createHigherOrderComponent,wt=wp.blockEditor.InspectorControls,vt=wp.element.Fragment;(0,wp.hooks.addFilter)("editor.BlockEdit","themeisle-gutenberg/gallery-extension",ht((function(e){return function(t){return"core/gallery"===t.name?wp.element.createElement(vt,null,wp.element.createElement(e,t),!!t.attributes.images.length&&wp.element.createElement(wt,null,wp.element.createElement(yt,{title:ft("Images"),initialOpen:!1},wp.element.createElement(gt.a,{attributes:t.attributes,onSelectImages:function(e){t.setAttributes({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))})}})))):wp.element.createElement(e,t)}}),"withGalleryExtension"));var kt=wp.components.Icon;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(kt,{icon:a.m}),render:bt})},function(e,t,n){"use strict";n.r(t);n(70),n(71);var a=n(3),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(121),c=(n(1),wp.i18n.__),p=wp.components,d=p.Button,m=p.ExternalLink,s=p.Placeholder,u=p.Spinner,b=p.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(s,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(d,{isLarge:!0,isSecondary:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(s,null,wp.element.createElement(u,null),c("Loading…"))},f=n(14);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=wp.i18n.__,k=wp.components.BaseControl,T=wp.compose.useInstanceId,E=wp.element,x=E.useEffect,C=E.useRef,S=function e(t){var n=t.value,a=t.onChange,l=T(e);x((function(){wp.oldEditor.initialize(r.current.id,{tinymce:h({},{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"})});var e=window.tinymce.get(r.current.id);return e.on("change",(function(){return a(e.getContent())})),function(){return wp.oldEditor.remove(r.current.id)}}),[]);var o="inspector-textarea-control-".concat(l),r=C(null);return wp.element.createElement(k,{id:o,label:v("Description")},wp.element.createElement("textarea",{id:o,className:"components-textarea-control__input",rows:4,value:n,onChange:function(e){return a(e.target.value)},ref:r}))},M=wp.i18n.__,B=wp.components,O=B.BaseControl,R=B.Button,A=B.ExternalLink,L=B.SelectControl,P=B.TextControl,N=wp.element.useRef,_=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=N(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(R,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||M("Custom Marker")),wp.element.createElement(R,{icon:"no-alt",label:M("Remove Marker"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(O,{label:M("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:M("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,M("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(A,{href:"https://developers.google.com/places/web-service/intro"},M("More info.")))),wp.element.createElement(P,{label:M("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(P,{label:M("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(L,{label:M("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:M("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:M("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:M("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:M("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:M("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(P,{label:M("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(S,{label:M("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var z=wp.i18n.__,H=wp.components.Button,D=wp.element,G=D.Fragment,V=D.useEffect,F=D.useState,W=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;V((function(){!1!==t&&p(t)}),[t]);var i=I(F(null),2),c=i[0],p=i[1],d=function(e){c===e&&(e=null),p(e)};return wp.element.createElement(G,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(_,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:d,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(H,{isSecondary:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},z("Add Marker")))},U=wp.i18n.__,q=wp.components,Z=q.BaseControl,$=q.Button,Q=q.ExternalLink,K=q.PanelBody,J=q.RangeControl,Y=q.SelectControl,X=q.TextControl,ee=q.ToggleControl,te=wp.blockEditor.InspectorControls,ne=wp.element.useRef,ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,p=e.changeMarkerProp,d=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=ne(null);return wp.element.createElement(te,null,wp.element.createElement(K,{title:U("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:U("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:U("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:U("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:U("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:U("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:U("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(K,{title:U("Location")},wp.element.createElement(Z,{label:U("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:U("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,U("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(Q,{href:"https://developers.google.com/places/web-service/intro"},U("More info.")))),wp.element.createElement(X,{label:U("Latitude"),type:"text",placeholder:U("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(X,{label:U("Longitude"),type:"text",placeholder:U("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(K,{title:U("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(Y,{label:U("Map Type"),value:t.type,options:[{label:U("Road Map"),value:"roadmap"},{label:U("Satellite View"),value:"satellite"},{label:U("Hybrid"),value:"hybrid"},{label:U("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(J,{label:U("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(J,{label:U("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(K,{title:U("Controls"),initialOpen:!1},wp.element.createElement(Z,null,U("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(ee,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(ee,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(ee,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(ee,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(ee,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(K,{title:U("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(W,{markers:t.markers,removeMarker:c,changeMarkerProp:p,addMarker:d,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(K,{title:U("Global Settings"),initialOpen:!1},wp.element.createElement(X,{label:U("Google Maps API Key"),type:"text",placeholder:U("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:U("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement($,{isLarge:!0,isSecondary:!0,type:"submit",onClick:b,isBusy:s},U("Save API Key"))))};function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var re=wp.i18n.__,ie=wp.components,ce=ie.BaseControl,pe=ie.Button,de=ie.ButtonGroup,me=ie.Modal,se=ie.SelectControl,ue=ie.TextControl,be=wp.element,ge=be.useEffect,fe=be.useRef,ye=be.useState,he=be.Fragment,we=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ge((function(){p(t.id),s(t.location),g(t.title),h(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=fe(null),i=le(ye(t.id),2),c=i[0],p=i[1],d=le(ye(t.location),2),m=d[0],s=d[1],u=le(ye(t.title),2),b=u[0],g=u[1],f=le(ye(t.icon),2),y=f[0],h=f[1],w=le(ye(t.description),2),v=w[0],k=w[1],T=le(ye(t.latitude),2),E=T[0],x=T[1],C=le(ye(t.longitude),2),M=C[0],B=C[1];return wp.element.createElement(me,{title:re("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(he,null,wp.element.createElement(ce,{label:re("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:re("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),B(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(ue,{label:re("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(ue,{label:re("Longitude"),type:"text",value:M,onChange:B})),wp.element.createElement(ue,{label:re("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(S,{label:re("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(se,{label:re("Map Icon"),value:y||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:re("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:re("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:re("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:re("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:re("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:h}),wp.element.createElement(de,null,wp.element.createElement(pe,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,y,v,E,M)}},re("Add")),wp.element.createElement(pe,{isLarge:!0,isSecondary:!0,onClick:o},re("Cancel"))))},ve=wp.i18n.__,ke=wp.components.Button,Te=wp.element,Ee=Te.Fragment,xe=Te.useEffect,Ce=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return xe((function(){l&&a()}),[l]),wp.element.createElement(Ee,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(ke,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ve("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},Se={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function Me(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Le=wp.i18n.__,Pe=wp.components.ResizableBox,Ne=wp.element,_e=Ne.Fragment,Ie=Ne.useEffect,je=Ne.useRef,ze=Ne.useState,He=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;Ie((function(){X(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Ie((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Ie((function(){b.current=Oe(t.markers)}),[t.markers]);var p=je([]),d=je(null),m=je(null),s=je(null),u=je(null),b=je(Oe(t.markers)),y=Be(ze(""),2),h=y[0],w=y[1],v=Be(ze(!1),2),k=v[0],T=v[1],E=Be(ze(!1),2),x=E[0],C=E[1],S=Be(ze(!1),2),M=S[0],B=S[1],O=Be(ze(!1),2),R=O[0],A=O[1],L=Be(ze(!0),2),P=L[0],N=L[1],_=Be(ze(!1),2),I=_[0],j=_[1],z=Be(ze(!1),2),H=z[0],D=z[1],G=Be(ze(!1),2),V=G[0],F=G[1],W=Be(ze(!1),2),U=W[0],q=W[1],Z=Be(ze(!1),2),$=Z[0],Q=Z[1],K=Be(ze({}),2),J=K[0],Y=K[1],X=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:He.push(a),e.next=15;break;case 7:if(!He.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:He.push(o),e.next=15;break;case 14:He.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){d.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||d.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),ee(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),ee(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Me(o,a,l,r,i,"next",e)}function i(e){Me(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),ee=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",j(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&j(!0)},te=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Le("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){D(t)})),google.maps.event.addListener(r,"closeclick",(function(){D(!1)}))},ne=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),p.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),te(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=Oe(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ne(l),n({markers:l})},oe=function(e){var t=Oe(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),D(!1),0<t.length&&ne(t)},re=function(){for(var e=0;e<p.current.length;e++)p.current[e].setMap(null);p.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(A(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:h}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),A(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,ee(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:Se[e]})};return k&&x?wp.element.createElement(_e,null,wp.element.createElement(f.a,{label:Le("Block Styles"),value:t.style,options:[{label:Le("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Le("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Le("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Le("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Le("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Le("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(ae,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:P,isMarkerOpen:H,setMarkerOpen:D,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=Le("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();q(!0),Q(!0),Y({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:h,isSaving:R,changeAPI:w,saveAPIKey:ie}),U&&wp.element.createElement(we,{marker:J,isAdvanced:$,isPlaceAPIAvailable:P,close:function(){return q(!1)},addMarker:function(e,a,l,o,r,c){var d=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:d,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),p.current.push(b);var g=Oe(t.markers),f={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),te(b,f.id,a,o),q(!1),F(!1)}}),wp.element.createElement(Pe,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(Ce,{attributes:t,className:a,initMap:function(){if(s.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:Se[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){B(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ne(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&N(!1)}))},displayMap:I,isMapLoaded:M,selectMarker:function(){F(!V),V?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=Object(i.a)(),n=Le("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();q(!0),Q(!1),Y({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(g,{className:a,api:h,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ge=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ge("Google Maps"),description:Ge("Display Google Maps on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:De,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(95),n(96);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=(n(1),wp.components),i=r.Path,c=r.SVG,p=wp.element.Fragment,d=function(e){var t=e.attributes;return wp.element.createElement(p,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},m=function(e){var t=e.attributes;return wp.element.createElement(p,null,!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},s=function(e){var t=e.attributes;return wp.element.createElement(p,null,wp.element.createElement(d,{attributes:t}),wp.element.createElement(m,{attributes:t}))};function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=lodash.omit,y=wp.blockEditor.RichText,h={id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},w=[{attributes:b({},f(h,["align"])),supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!y.isEmpty(e.caption)&&wp.element.createElement(y.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(s,{attributes:t})))}},{attributes:b(b({},f(h,["align"])),{},{delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1}}),supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!y.isEmpty(e.caption)&&wp.element.createElement(y.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(s,{attributes:t})))}}],v=lodash,k=v.filter,T=v.every,E=wp.blocks.createBlock,x={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=T(e,["align",t])?t:void 0;var n=k(e,(function(e){return e.url}));return E("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return E("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return E("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):E("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return E("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},C=lodash.debounce,S=wp.blockEditor.MediaPlaceholder,M=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=C(i,250);return wp.element.createElement(S,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},B=n(28),O=wp.i18n.__,R=lodash.max,A=wp.blockEditor.InspectorControls,L=wp.components,P=L.PanelBody,N=L.RangeControl,_=L.ToggleControl,I=wp.element.Fragment,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView,o=e.onSelectImages;return wp.element.createElement(A,null,wp.element.createElement(P,{title:O("Images"),initialOpen:!1},wp.element.createElement(B.a,{attributes:t,onSelectImages:o})),wp.element.createElement(P,{title:O("Settings")},t.images.length&&wp.element.createElement(I,null,wp.element.createElement(N,{label:O("Slides Per Page"),help:O("A number of visible slides."),value:t.perView,onChange:l,min:1,max:R([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(I,null,wp.element.createElement(N,{label:O("Gap"),help:O("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(N,{label:O("Peek"),help:O("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(N,{label:O("Height"),help:O("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(_,{label:O("Autoplay"),help:O("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(N,{label:O("Delay"),help:O("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(_,{label:O("Hide Arrows"),help:O("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(_,{label:O("Hide Bullets"),help:O("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))},z=n(114),H=n(118),D=n(119),G=n(120);function V(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var W=wp.i18n.__,U=lodash.filter,q=wp.blockEditor.RichText,Z=wp.components.Button,$=wp.element.Fragment,Q=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,p=e.setSelectedImage,d=function(e,n){var a=V(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),p(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return p(n.id)},onFocus:function(){return p(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement($,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:H.a}),label:W("Move image backward"),showTooltip:!0,onClick:l?void 0:function(){0!==a&&d(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":l,disabled:!i}),wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:D.a}),label:W("Move image forward"),showTooltip:!0,onClick:r?void 0:function(){a!==t.length-1&&d(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:G.a}),label:W("Remove image"),showTooltip:!0,onClick:function(){var e=U(t,(function(e,t){return a!==t}));p(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(i||!q.isEmpty(n.caption))&&wp.element.createElement(q,{tagName:"figcaption",placeholder:i?W("Write caption…"):null,value:n.caption,onChange:function(e){var n=V(t);n[a].caption=e,c({images:n})},multiline:!1})))};function K(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var te=wp.i18n.__,ne=lodash.max,ae=wp.components.ResizableBox,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useRef,ce=le.useState,pe=[],de=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;re((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),re((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),re((function(){t.images.length&&t.perView>t.images.length&&y(ne([Math.round(t.images.length/2),1]))}),[t.images]);var c=ie(null),p=ie(null),d=Y(ce(null),2),m=d[0],u=d[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:pe.push(o),p.current=o,a.push(o),e.next=21;break;case 10:if(!pe.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:pe.push(r),p.current=r,e.next=21;break;case 18:pe.push(t.id),p.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=K(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){J(o,a,l,r,i,"next",e)}function i(e){J(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||p.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},y=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(M,{labels:{title:te("Slider"),instructions:te("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(oe,null,wp.element.createElement(j,{attributes:t,setAttributes:n,slider:c.current,changePerView:y,onSelectImages:f}),wp.element.createElement(ae,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(Q,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===m,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(s,{attributes:t})))),r&&wp.element.createElement(M,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},me=wp.blockEditor.RichText,se=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px"),"data-hide-arrows":t.hideArrows},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!me.isEmpty(e.caption)&&wp.element.createElement(me.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(m,{attributes:t})))},ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:ue("Slider"),description:ue("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:w,transforms:x,supports:{align:["wide","full"]},edit:de,save:se})},function(e,t,n){"use strict";n.r(t);n(60),n(61),n(1);var a=wp.i18n.__,l=wp.richText,o=l.registerFormatType,r=l.toggleFormat,i=wp.blockEditor,c=i.RichTextShortcut,p=i.RichTextToolbarButton,d=wp.element.Fragment;o("themeisle-blocks/mark",{name:"themeisle-blocks/mark",title:a("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,n=e.value,l=e.onChange,o=function(){return l(r(n,{type:"themeisle-blocks/mark"}))};return wp.element.createElement(d,null,wp.element.createElement(c,{type:"primary",character:"m",onUse:o}),wp.element.createElement(p,{icon:"admin-customizer",title:a("Highlight"),onClick:o,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}});var m=n(3),s={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},u=n(0),b=n.n(u),g=n(9),f=n.n(g);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=wp.blockEditor.RichText,v=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(f()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(w.Content,{tagName:n.tag,value:n.content,id:n.id,className:b()(n.id,a),style:l})}}],k=wp.blocks.createBlock,T={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return k("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return k("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return k("core/paragraph",{content:t})}}]},E=n(24),x=n.n(E),C=n(8),S=n(12),M=wp.i18n.__,B=wp.components,O=B.Button,R=B.Dropdown,A=B.DropdownMenu,L=B.RangeControl,P=B.SVG,N=B.Toolbar,_=wp.blockEditor.BlockControls,I=wp.element.Fragment,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,p=function(e){return"h1"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},d=function(e){n({tag:e})};return wp.element.createElement(_,null,wp.element.createElement(A,{icon:p(t.tag),label:M("Select tag"),className:"components-toolbar",controls:[{title:M("Heading 1"),icon:p("h1"),onClick:function(){return d("h1")}},{title:M("Heading 2"),icon:p("h2"),onClick:function(){return d("h2")}},{title:M("Heading 3"),icon:p("h3"),onClick:function(){return d("h3")}},{title:M("Heading 4"),icon:p("h4"),onClick:function(){return d("h4")}},{title:M("Heading 5"),icon:p("h5"),onClick:function(){return d("h5")}},{title:M("Heading 6"),icon:p("h6"),onClick:function(){return d("h6")}},{title:M("Division"),icon:p("div"),onClick:function(){return d("div")}},{title:M("Paragraph"),icon:p("p"),onClick:function(){return d("p")}},{title:M("Span Tag"),icon:p("span"),onClick:function(){return d("span")}}]}),wp.element.createElement(N,null,wp.element.createElement(R,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(O,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:M("Typography Settings"),showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(I,null,wp.element.createElement(S.a,{label:M("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(L,{label:M("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(L,{label:M("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},z=n(5),H=n(11),D=n(6),G=n(7),V=n(25);function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var q=wp.i18n.__,Z=wp.blockEditor,$=Z.AlignmentToolbar,Q=Z.ColorPalette,K=Z.InspectorControls,J=wp.components,Y=J.Button,X=J.Dashicon,ee=J.PanelBody,te=J.RangeControl,ne=J.ToggleControl,ae=wp.data.useSelect,le=wp.element,oe=le.Fragment,re=le.useState,ie=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,p=ae((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),d=W(re("style"),2),m=d[0],s=d[1],u=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};u=u();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var y={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},w={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},v=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},k=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};k=k();var T={top:"marginTop",bottom:"marginBottom"},E={top:"marginTopTablet",bottom:"marginBottomTablet"},x={top:"marginTopMobile",bottom:"marginBottomMobile"},C=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(oe,null,wp.element.createElement(K,null,wp.element.createElement(ee,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(Y,{className:b()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(X,{icon:"admin-customizer"}),q("Style"))),wp.element.createElement(Y,{className:b()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(X,{icon:"admin-generic"}),q("Advanced")))),"style"===m&&wp.element.createElement(oe,null,wp.element.createElement(ee,{title:q("General Settings")},wp.element.createElement(z.a,{label:q("Heading Color"),colorValue:t.headingColor},wp.element.createElement(Q,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(D.a,{label:"Font Size"},wp.element.createElement(te,{value:u||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(D.a,{label:"Alignment"},wp.element.createElement($,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(ee,{title:q("Typography Settings"),initialOpen:!1},wp.element.createElement(S.a,{label:q("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(te,{label:q("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(te,{label:q("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}),wp.element.createElement(ne,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(oe,null,wp.element.createElement(z.a,{label:q("Color"),colorValue:t.textShadowColor},wp.element.createElement(Q,{label:q("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(H.a,{label:"Shadow Properties"},wp.element.createElement(te,{label:q("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(te,{label:q("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(te,{label:q("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(te,{label:q("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(oe,null,wp.element.createElement(ee,{title:q("Highlight Color")},wp.element.createElement(z.a,{label:q("Highlight Color"),colorValue:t.highlightColor},wp.element.createElement(Q,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(z.a,{label:q("Highlight Background"),colorValue:t.highlightBackground},wp.element.createElement(Q,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(ee,{title:q("Spacing"),initialOpen:!1},wp.element.createElement(D.a,{label:"Padding"},wp.element.createElement(G.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(F({},y[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(F({},h[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(F({},w[e],a)))},options:[{label:q("Top"),type:"top",value:v("top")},{label:q("Right"),type:"right",value:v("right")},{label:q("Bottom"),type:"bottom",value:v("bottom")},{label:q("Left"),type:"left",value:v("left")}]})),wp.element.createElement(D.a,{label:"Margin"},wp.element.createElement(G.a,{type:k,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(F({},T[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(F({},E[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(F({},x[e],a)))},options:[{label:q("Top"),type:"top",value:C("top")},{label:q("Right"),disabled:!0},{label:q("Bottom"),type:"bottom",value:C("bottom")},{label:q("Left"),disabled:!0}]}))))),wp.element.createElement(V.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ce(e){return function(e){if(Array.isArray(e))return pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=wp.i18n.__,be=lodash.isEqual,ge=wp.blocks.createBlock,fe=wp.blockEditor.RichText,ye=wp.compose.useViewportMatch,he=wp.data.useSelect,we=wp.element,ve=we.Fragment,ke=we.useEffect,Te=[],Ee=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.mergeBlocks,r=e.name,i=e.insertBlocksAfter,c=e.onReplace,p=he((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=p.isViewportAvailable,m=p.isPreviewDesktop,u=p.isPreviewTablet,g=p.isPreviewMobile,y=ye("large",">="),h=ye("large","<="),w=ye("small",">="),v=ye("small","<=");ke((function(){k()}),[]);var k=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-heading-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(be(C.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=me({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==s[e].default&&t[e]!==s[e].default)return delete a[e]})))),n(me(me({},a),{},{id:o})),Te.push(o),e.push(o)}else if(Te.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(l.substr(0,8));n({id:i}),Te.push(i)}else Te.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ce(e)},T=y&&!h&&w&&!v,E=!y&&!h&&w&&!v,S=!(y||h||w||v);d&&!S&&(T=m,E=u,S=g);var M,B,O,R=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},A=function(e){n({fontVariant:e})},L=function(e){n({fontStyle:e})},P=function(e){n({textTransform:e})},N=function(e){n({lineHeight:e})},_=function(e){n({letterSpacing:e})};T&&(M={fontSize:"".concat(t.fontSize,"px")},B={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),E&&(M={fontSize:"".concat(t.fontSizeTablet,"px")},B={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),S&&(M={fontSize:"".concat(t.fontSizeMobile,"px")},B={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(O={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(f()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var I=me(me(me({color:t.headingColor},M),{},{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},B),O);return wp.element.createElement(ve,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(x.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(j,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:A,changeFontStyle:L,changeTextTransform:P,changeLineHeight:N,changeLetterSpacing:_}),wp.element.createElement(ie,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:A,changeFontStyle:L,changeTextTransform:P,changeLineHeight:N,changeLetterSpacing:_}),wp.element.createElement(fe,{identifier:"content",className:b()(t.id,a),value:t.content,placeholder:ue("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:o,unstableOnSplit:i?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];i([].concat(l,[ge("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return c([])},style:I,onChange:function(e){n({content:e})}}))},xe=wp.blockEditor.RichText,Ce=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(xe.Content,{tagName:t.tag,value:t.content,id:t.id,className:b()(t.id,n)})},Se=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:Se("Advanced Heading"),description:Se("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:m.i,category:"themeisle-blocks",keywords:[Se("heading"),Se("title"),Se("advanced heading")],attributes:s,deprecated:v,transforms:T,edit:Ee,save:Ce})},function(e,t,n){"use strict";n.r(t);n(68),n(69);var a=n(3),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};n(1);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},p=[{attributes:c,supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),r(r({},e),{},{align:t,className:""})},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},l={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement("p",{className:n,style:{textAlign:t.align}},wp.element.createElement("span",{className:"".concat(n,"-container"),style:l},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:a})))}},{attributes:r(r({},c),{},{align:{type:"string"}}),save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},l={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement("p",{className:n,style:{textAlign:t.align}},wp.element.createElement("span",{className:"undefined-container",style:l},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:a})))}},{attributes:r(r({},c),{},{id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}}),save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],d=n(8),m=n(26),s=wp.i18n.__,u=wp.blockEditor,b=u.AlignmentToolbar,g=u.BlockControls,f=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected;return wp.element.createElement(g,null,wp.element.createElement(b,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:s("Align left"),align:"left"},{icon:"editor-aligncenter",title:s("Align center"),align:"center"},{icon:"editor-alignright",title:s("Align right"),align:"right"}]}),wp.element.createElement(m.a,{isSelected:a,setAttributes:n,url:t.link,opensInNewTab:t.newTab}))},y=n(5);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var k=wp.i18n.__,T=wp.components,E=T.Button,x=T.ButtonGroup,C=T.PanelBody,S=T.Placeholder,M=T.RangeControl,B=T.Spinner,O=wp.blockEditor,R=O.ColorPalette,A=O.ContrastChecker,L=O.InspectorControls,P=wp.element,N=P.Fragment,_=P.lazy,I=P.Suspense,j=P.useState,z=_((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,123))})),H=function(e){var t=e.attributes,n=e.setAttributes,a=w(j(!1),2),l=a[0],o=a[1];return wp.element.createElement(L,null,wp.element.createElement(C,{title:k("Icon")},wp.element.createElement(I,{fallback:wp.element.createElement(S,null,wp.element.createElement(B,null))},wp.element.createElement(z,{label:k("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===h(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}}))),wp.element.createElement(C,{title:k("Icon Sizes"),initialOpen:!1},wp.element.createElement(M,{label:k("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140}),wp.element.createElement(M,{label:k("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100}),wp.element.createElement(M,{label:k("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100})),wp.element.createElement(C,{title:k("Color"),initialOpen:!1},wp.element.createElement(x,null,wp.element.createElement(E,{isSmall:!0,isSecondary:l,isPrimary:!l,onClick:function(){return o(!1)}},k("Normal")),wp.element.createElement(E,{isSmall:!0,isSecondary:!l,isPrimary:l,onClick:function(){return o(!0)}},k("Hover"))),l?wp.element.createElement(N,null,wp.element.createElement(y.a,{label:"Hover Background",colorValue:t.backgroundColorHover},wp.element.createElement(R,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(y.a,{label:"Hover Icon",colorValue:t.textColorHover},wp.element.createElement(R,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(y.a,{label:"Hover Border",colorValue:t.borderColorHover},wp.element.createElement(R,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(A,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(N,null,wp.element.createElement(y.a,{label:"Background",colorValue:t.backgroundColor},wp.element.createElement(R,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(y.a,{label:"Icon",colorValue:t.textColor},wp.element.createElement(R,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(y.a,{label:"Border",colorValue:t.borderColor},wp.element.createElement(R,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(A,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(C,{title:k("Border Settings"),initialOpen:!1},wp.element.createElement(M,{label:k("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120}),wp.element.createElement(M,{label:k("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100})))};function D(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=lodash.isEqual,q=wp.element,Z=q.Fragment,$=q.useEffect,Q=[],K=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,r=e.clientId,i=e.name;$((function(){c()}),[]);var c=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-font-awesome-icons-".concat(r.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(U(d.a[i],window.themeisleGutenberg.globalDefaults[i])||(a=F({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(F(F({},a),{},{id:o})),Q.push(o),e.push(o)}else if(Q.includes(t.id)){var c="wp-block-themeisle-blocks-font-awesome-icons-".concat(r.substr(0,8));n({id:c}),Q.push(c)}else Q.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=D(e)},p={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},m={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(Z,null,wp.element.createElement(f,{attributes:t,setAttributes:n,isSelected:o}),wp.element.createElement(H,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:m},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:p}))))},J=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:Y("Font Awesome Icons"),description:Y("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:p,edit:K,save:J})},function(e,t,n){"use strict";n.r(t);n(75),n(76);var a=n(3),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"array",items:{type:"object"}},postsToShow:{type:"number",default:5},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},offset:{type:"number",default:0},imageSize:{type:"string",default:"full"},imageBoxShadow:{type:"boolean",default:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=[{attributes:r(r({},l),{},{categories:{type:"string"}}),supports:{align:["wide","full"],html:!1},migrate:function(e){return r(r({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],p=n(14),d=n(23),m=n.n(d),s=n(0),u=n.n(s),b=n(15);n(1);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=lodash,h=y.startCase,w=y.toLower,v=wp.i18n.__,k=wp.components,T=k.Button,E=k.TextControl,x=k.SelectControl,C=k.ToggleControl,S=wp.element,M=S.Fragment,B=S.useState,O=Object(b.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle",tabIndex:"0"},wp.element.createElement("span",null))})),R=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=g(B(!1),2),d=p[0],m=p[1],s=h(w(n)),b="hidden",f=v("Display ".concat(s));switch(l(n)&&(b="visibility",f=v("Hide ".concat(s))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(O,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},s),t&&wp.element.createElement(T,{icon:d?"arrow-up-alt2":"arrow-down-alt2",label:v(d?"Close Settings":"Open Settings"),showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return m(!d)}}),wp.element.createElement(T,{icon:b,label:f,showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),m(!1)}})),t&&wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:d&&l(n)})},"image"===n&&wp.element.createElement(M,null,wp.element.createElement(x,{label:v("Image Size"),value:r.value,options:[{label:v("Thumbnail"),value:"thumbnail"},{label:v("Medium"),value:"medium"},{label:v("Medium Large"),value:"medium_large"},{label:v("Large"),value:"large"},{label:v("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(C,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(x,{label:v("Title Tag"),value:i.value||"h5",options:[{label:v("H1"),value:"h1"},{label:v("H2"),value:"h2"},{label:v("H3"),value:"h3"},{label:v("H4"),value:"h4"},{label:v("H5"),value:"h5"},{label:v("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(E,{label:v("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(M,null,wp.element.createElement(C,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(C,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},A=Object(b.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(R,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),L=Object(b.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(A,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),P=wp.i18n.__,N=wp.element.Fragment,_=function(e){var t=e.attributes,n=e.setAttributes,a=e.getFields,l=e.toggleFields,o=e.imageSize,r=e.titleTag,i=e.excerptLimit;return wp.element.createElement(N,null,wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder",t.style)},wp.element.createElement(R,{value:P("image"),disabled:!0,getFields:a,toggleFields:l,imageSize:o}),wp.element.createElement(L,{template:t.template,onSortEnd:function(e){var a=e.oldIndex,l=e.newIndex,o=m()(t.template,a,l);n({template:o})},getFields:a,toggleFields:l,titleTag:r,excerptLimit:i,useDragHandle:!0,axis:"y",lockAxis:"y"})))};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=wp.i18n.__,G=wp.components,V=G.PanelBody,F=G.QueryControls,W=G.RangeControl,U=G.TextControl,q=wp.blockEditor.InspectorControls,Z=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeStyle,l=e.categoriesList,o=l.reduce((function(e,t){return z(z({},e),{},H({},t.name,t))}),{}),r=t.categories?t.categories.map((function(e){var t=l.find((function(t){return t.id===Number(e.id)}));return{id:e.id,name:t.name||t.slug}})):[],i="object"===I(t.categories)?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return wp.element.createElement(q,null,wp.element.createElement(V,{title:D("Styles"),initialOpen:!1},wp.element.createElement(p.b,{value:t.style,options:[{label:D("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:D("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),wp.element.createElement(V,{title:D("Settings")},"grid"===t.style&&wp.element.createElement(W,{label:D("Columns"),value:t.columns,onChange:function(e){n({columns:e})},min:1,max:5}),wp.element.createElement(F,{order:t.order,orderBy:t.orderBy,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},numberOfItems:t.postsToShow,onNumberOfItemsChange:function(e){return n({postsToShow:e})},categoriesList:l,categorySuggestions:o,selectedCategoryId:i,selectedCategories:r,onCategoryChange:function(e){var t;"object"===I(e)?0<e.length&&(t=e.map((function(e){if("object"===I(e))return e;var t=l.find((function(t){return t.name===e}));return t?{id:t.id,name:e}:void 0})).filter((function(e){return void 0!==e}))):""!==e&&(t=[{id:e,name:l.find((function(t){return t.id===Number(e)})).name}]),n({categories:t})}}),wp.element.createElement(U,{label:D("Offset"),help:D("Number of post to displace or pass over."),type:"number",value:t.offset,min:0,onChange:function(e){return n({offset:Number(e)})}})),wp.element.createElement(V,{title:D("Design & Layout"),initialOpen:!1},wp.element.createElement(_,{attributes:t,getFields:function(e){return"image"===e?t.displayFeaturedImage:"imageBoxShadow"===e?t.imageBoxShadow:"category"===e?t.displayCategory:"title"===e?t.displayTitle:"meta"===e?t.displayMeta:"description"===e?t.displayDescription:"date"===e?t.displayDate:"author"===e?t.displayAuthor:void 0},toggleFields:function(e){"image"===e&&n({displayFeaturedImage:!t.displayFeaturedImage}),"imageBoxShadow"===e&&n({imageBoxShadow:!t.imageBoxShadow}),"category"===e&&n({displayCategory:!t.displayCategory}),"title"===e&&n({displayTitle:!t.displayTitle}),"meta"===e&&n({displayMeta:!t.displayMeta}),"description"===e&&n({displayDescription:!t.displayDescription}),"date"===e&&n({displayDate:!t.displayDate}),"author"===e&&n({displayAuthor:!t.displayAuthor})},setAttributes:n,imageSize:{value:t.imageSize,onChange:function(e){n({imageSize:e})}},titleTag:{value:t.titleTag,onChange:function(e){n({titleTag:e})}},excerptLimit:{value:t.excerptLength,onChange:function(e){n({excerptLength:e})}}})))},$=n(32),Q=lodash,K=Q.isUndefined,J=Q.pickBy,Y=wp.i18n.__,X=wp.components,ee=X.Disabled,te=X.Placeholder,ne=X.Spinner,ae=wp.data.useSelect,le=wp.element.Fragment,oe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=ae((function(e){var n=t.categories&&0<t.categories.length?t.categories.map((function(e){return e.id})):[],a=J({categories:n,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(function(e){return!K(e)}));return{posts:e("core").getEntityRecords("postType","post",a),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getAuthors()}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset]),o=l.posts,r=l.categoriesList,i=l.authors,c=function(e){n({style:e})};return o&&r&&i?0===o.length?wp.element.createElement(le,null,wp.element.createElement(te,null,Y("No Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null):wp.element.createElement(le,null,wp.element.createElement(p.a,{label:Y("Block Styles"),value:t.style,options:[{label:Y("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:Y("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:c}),wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}),wp.element.createElement(ee,null,wp.element.createElement($.default,{className:a,attributes:t,posts:o,categoriesList:r,authors:i}))):wp.element.createElement(le,null,wp.element.createElement(te,null,wp.element.createElement(ne,null),Y("Loading Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null)},re=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/posts-grid",{title:re("Posts"),description:re("Display a list of your most recent posts in a beautiful layout."),icon:a.o,category:"themeisle-blocks",keywords:["posts","grid","news"],attributes:l,supports:{align:["wide","full"],html:!1},deprecated:c,edit:oe,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(93),n(94);var a=n(3),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},p=(n(1),wp.components),d=p.Path,m=p.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(d,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(d,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(d,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(d,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))};var u=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,f=g.Toolbar,y=g.Button,h=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(f,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(h,{text:u("Display ".concat(c[e].label))},wp.element.createElement(y,{className:r()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(s,{icon:e})))}))))};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.components.Disabled,x=wp.element.Fragment,C=wp.serverSideRender,S=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(x,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement(E,null,wp.element.createElement(C,{block:"themeisle-blocks/sharing-icons",attributes:k({},t)})))},M=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:M("Sharing Icons"),description:M("Share buttons for your website visitors to share content on any social sharing service."),icon:a.r,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:M("Regular"),isDefault:!0},{name:"icons",label:M("Icons Only")}],edit:S,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(73),n(74);var a=n(3),l={slug:{type:"string"}},o=n(43);n(1);function r(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=wp.i18n.__,d=wp.apiFetch,m=wp.components,s=m.Placeholder,u=m.Dashicon,b=m.TextControl,g=m.Spinner,f=wp.element,y=f.useEffect,h=f.useRef,w=f.useState,v=wp.keycodes,k=v.DOWN,T=v.ENTER,E=v.TAB,x=v.UP,C=function(e){var t=e.setAttributes,n=e.hasError,a=e.setError,l=e.className,c=h(null),m=!1,f=[],v=i(w(!1),2),C=v[0],S=v[1],M=i(w(""),2),B=M[0],O=M[1],R=i(w({}),2),A=R[0],L=R[1],P=i(w(null),2),N=P[0],I=P[1];y((function(){null===N||m||(m=!0,Object(o.a)(f[N],c.current,{onlyScrollIfNeeded:!0}),f[N].focus(),setTimeout((function(){m=!1}),100))}),[N]);var j=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({slug:""}),S(!0),a(!1),e.next=5,d({path:"themeisle-gutenberg-blocks/v1/get_plugins?search=".concat(encodeURIComponent(n))});case 5:if(!(l=e.sent).data.errors){e.next=12;break}return a(!0),S(!1),I(null),L({}),e.abrupt("return");case 12:S(!1),I(null),L(l.data.plugins);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function i(e){r(o,a,l,i,c,"next",e)}function c(e){r(o,a,l,i,c,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),z=function(e){if(Object.keys(A).length){e.stopPropagation(),e.preventDefault();var t=N?N-1:Object.keys(A).length-1;I(t)}},H=function(e){if(Object.keys(A).length){e.stopPropagation(),e.preventDefault();var t=null===N||N===Object.keys(A).length-1?0:N+1;I(t)}},D=function(e){t({slug:e.slug}),L({})};return wp.element.createElement(s,{icon:"admin-plugins",label:p("Plugin Card"),instructions:p("Search for the plugin you want to display."),className:l},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-search-field"},wp.element.createElement(u,{icon:"search"}),C&&wp.element.createElement(g,null),wp.element.createElement(b,{type:"text",placeholder:p("Search for plugin…"),value:B,onChange:O,onKeyDown:function(e){switch(e.keyCode){case x:z(e);break;case k:H(e);break;case E:Object.keys(A).length&&!e.shiftKey&&I(0);break;case T:j(e.target.value)}},onFocus:function(){return I(null)}}),A&&wp.element.createElement("div",{tabIndex:"-1",className:"wp-block-themeisle-blocks-plugin-cards-search-results",ref:c},Object.keys(A).map((function(e){var t,n,a=A[e];return a.icons.svg&&(t=a.icons.svg),a.icons["2x"]&&(t=a.icons["2x"]),a.icons["1x"]&&(t=a.icons["1x"]),a.icons.default&&(t=a.icons.default),wp.element.createElement("button",{className:"wp-block-themeisle-blocks-plugin-cards-list-item",key:e,ref:(n=e,function(e){f[n]=e}),onClick:function(e){e.preventDefault(),D(a)},onKeyDown:function(e){return function(e,t){switch(e.keyCode){case x:z(e);break;case k:H(e);break;case E:if(e.shiftKey){0!==N&&z(e);break}if(N===Object.ke
|