Version Description
Download this release
Release Info
Developer | vektor-inc |
Plugin | VK Blocks |
Version | 1.41.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.41.0.1 to 1.41.2.2
- build/block-build.css +1 -1
- build/button/style.css +1 -1
- inc/template-tags/package/template-tags-veu-old.php +0 -69
- inc/template-tags/package/template-tags-veu.php +0 -252
- inc/template-tags/package/template-tags.php +0 -438
- inc/tgm-plugin-activation/class-tgm-plugin-activation.php +0 -3640
- inc/vk-admin/balloon/balloon-admin.php +0 -161
- inc/vk-admin/balloon/no-image.png +0 -0
- inc/vk-admin/images/vk-blocks-logo.png +0 -0
- inc/vk-admin/images/vk-blocks-logo_ol.svg +0 -73
- inc/vk-blocks/App/RestAPI/BlockMeta/EntryPoint.php +0 -27
- inc/vk-blocks/admin/admin-block-patterns.php +0 -30
- inc/vk-blocks/admin/admin-css-optimize.php +0 -38
- inc/vk-blocks/admin/balloon/balloon-admin.php +0 -161
- inc/vk-blocks/build/block-build.asset.php +1 -1
- inc/vk-blocks/build/block-build.js +2 -2
build/block-build.css
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
.vk_ancestorPageList-hiddenGrandChild-true ul li .children{display:none}.vk_ancestorPageList-hiddenGrandChild-true ul li.current_page_ancestor .children{display:block}
|
4 |
.vk_balloon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:normal;-ms-flex-align:normal;align-items:normal;margin-bottom:2.2em}.vk_balloon figure{margin:0}.vk_balloon p{color:initial;word-break:break-all}.vk_balloon p:first-of-type{margin-top:0}.vk_balloon p:last-of-type{margin-bottom:0}.vk_balloon_icon{-ms-flex-preferred-size:80px;flex-basis:80px;-ms-flex-negative:0;flex-shrink:0;text-align:center}.vk_balloon_icon_image:not(.has-text-color){color:#ccc}.vk_balloon_icon_image{vertical-align:bottom;width:64px;height:64px;-o-object-fit:cover;object-fit:cover;display:inline-block}.vk_balloon_icon_image-type-rounded{border-radius:4px}.vk_balloon_icon_image-type-circle{border-radius:50%}.vk_balloon_icon_name{display:block;text-align:center;font-size:.7rem;margin-top:.3rem}.vk_balloon_content_outer{width:100%}.vk_balloon_content{max-width:calc(100% - 6.2em);position:relative;text-align:left}.vk_balloon_content::after{display:block;clear:both;content:""}.vk_balloon-position-left .vk_balloon_content{float:left}.vk_balloon-position-right .vk_balloon_content{float:right}.vk_balloon_content.vk_balloon_content_fullwidth{max-width:100%;float:none}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon_content{background:#f5f5f5;padding:calc(var(--vk-size-text) * 1 ) calc(var(--vk-size-text) * 1.2)}.vk_balloon_content_before,.vk_balloon_content_after{position:absolute;top:0;display:block;width:0;height:0;border-style:solid}.vk_balloon-type-speech .vk_balloon_content{border-radius:.4em}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{top:15px}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{z-index:1;border-right-color:inherit}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before{z-index:2}.vk_balloon-type-think .vk_balloon_content{border-radius:1rem}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{position:absolute;content:"";border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{width:14px;height:14px}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_icon{margin-right:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{left:-10px;border-width:10px 12px 10px 0}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{left:-18px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{left:-25px;top:20px}.vk_balloon-position-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_icon{margin-left:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{right:-10px;border-width:10px 0 10px 12px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{right:-18px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{right:-25px;top:20px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent #f5f5f5 transparent transparent}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent transparent transparent #f5f5f5}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{border-color:transparent transparent transparent currentColor}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon_content-border-true,.vk_balloon_icon_image-border-true{border-width:var(--vk-balloon-border-width, 1px);border-style:solid}.vk_balloon_content-border-true:not(.has-text-color){color:#ccc}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_before{left:-10px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_after{left:var(--vk-balloon-speech-offset, -12px);border-right-color:inherit !important}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true{border-color:currentColor}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_before{right:-10px}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_after{right:var(--vk-balloon-speech-offset, -12px);border-left-color:inherit !important}.vk_balloon-type-think .vk_balloon_content-border-true .vk_balloon_content_before,.vk_balloon-type-think .vk_balloon_content-border-true .vk_balloon_content_after{border-width:var(--vk-balloon-border-width, 1px);border-style:solid;border-color:inherit !important}.vk_balloon-animation-trembling{-webkit-animation:trembling .1s infinite;animation:trembling .1s infinite}@-webkit-keyframes trembling{0%{-webkit-transform:rotate(-0.5deg);transform:rotate(-0.5deg)}50%{-webkit-transform:rotate(0.5deg);transform:rotate(0.5deg)}}@keyframes trembling{0%{-webkit-transform:rotate(-0.5deg);transform:rotate(-0.5deg)}50%{-webkit-transform:rotate(0.5deg);transform:rotate(0.5deg)}}.vk_balloon-animation-trembling-x{-webkit-animation:trembling-x .1s infinite;animation:trembling-x .1s infinite}@-webkit-keyframes trembling-x{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.99, 0.96);transform:scale(0.99, 0.96)}}@keyframes trembling-x{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.99, 0.96);transform:scale(0.99, 0.96)}}.vk_balloon-animation-pounding{-webkit-animation:pounding 1.5s infinite;animation:pounding 1.5s infinite}@-webkit-keyframes pounding{0%{-webkit-transform:scale(1.05);transform:scale(1.05)}5%{-webkit-transform:scale(1);transform:scale(1)}95%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.05);transform:scale(1.05)}}@keyframes pounding{0%{-webkit-transform:scale(1.05);transform:scale(1.05)}5%{-webkit-transform:scale(1);transform:scale(1)}95%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.05);transform:scale(1.05)}}.vk_balloon-animation-shaking{-webkit-animation:shaking .4s infinite;animation:shaking .4s infinite}@-webkit-keyframes shaking{0%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}25%{-webkit-transform:translate(1px, -1px);transform:translate(1px, -1px)}50%{-webkit-transform:translate(-1px, -1px);transform:translate(-1px, -1px)}75%{-webkit-transform:translate(-1px, 1px);transform:translate(-1px, 1px)}100%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}}@keyframes shaking{0%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}25%{-webkit-transform:translate(1px, -1px);transform:translate(1px, -1px)}50%{-webkit-transform:translate(-1px, -1px);transform:translate(-1px, -1px)}75%{-webkit-transform:translate(-1px, 1px);transform:translate(-1px, 1px)}100%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}}.icon-image-list-note:hover{cursor:pointer}@media only screen and (max-width: 480px){.vk_balloon_content{max-width:calc(100% - 2em);font-size:.9em;padding:1em}.vk_balloon-type-think .vk_balloon_content::after{border:5px solid transparent}.vk_balloon{-webkit-box-align:normal;-ms-flex-align:normal;align-items:normal}.vk_balloon.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_icon{margin-right:1.5rem}.vk_balloon.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_conten:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2rem}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_icon{margin-left:1.5rem;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2rem;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon_icon{max-width:64px}}
|
5 |
:root{--vk-color-border-red: #dc3545;--vk-color-background-red: #dc3545;--vk-color-border-orange: #ffa536;--vk-color-background-orange: #ffa536;--vk-color-border-blue: #4267b2;--vk-color-background-blue: #4267b2;--vk-color-border-green: #28a745;--vk-color-background-green: #28a745;--vk-color-border-black: #222;--vk-color-background-black: #222}.vk_borderBox-color-red{border-color:var(--vk-color-border-red);background-color:var(--vk-color-background-red)}.vk_borderBox-color-orange{border-color:var(--vk-color-border-orange);background-color:var(--vk-color-background-orange)}.vk_borderBox-color-blue{border-color:var(--vk-color-border-blue);background-color:var(--vk-color-background-blue)}.vk_borderBox-color-green{border-color:var(--vk-color-border-green);background-color:var(--vk-color-background-green)}.vk_borderBox-color-black{border-color:var(--vk-color-border-black);background-color:var(--vk-color-background-black)}.vk_borderBox-background-transparent .vk_borderBox_body{background-color:transparent}.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox{background-color:transparent}.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{background-color:transparent}.vk_borderBox-background-white .vk_borderBox_body{background-color:#fff}.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox{background-color:#fff}.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{background-color:#fff}.vk_borderBox{margin:0 auto 2em;position:relative}.vk_borderBox .vk_borderBox_title_container{margin:0;font-size:1em;line-height:1.4;padding:.5em 1.5em .4em;font-weight:bold}.vk_borderBox .vk_borderBox_title_container i:first-child,.vk_borderBox .vk_borderBox_title_container .svg-inline--fa{margin-right:5px}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title{display:inline;font-weight:bold;font-size:1em;color:inherit;background:none;padding:0;border:none;outline:none}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title::before{content:none}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title::after{content:none}.vk_borderBox .vk_borderBox_body{padding:1.5em;border-width:2px;border-style:solid}@media(min-width: 992px){.vk_borderBox .vk_borderBox_body{padding:1.5em 2em 1.5em}}.vk_borderBox .vk_borderBox_body>*:not(.has-text-color){color:initial}.vk_borderBox .vk_borderBox_body>*:first-child{margin-top:0}.vk_borderBox .vk_borderBox_body>*:last-child{margin-bottom:0}.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container:not(.has-background),.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container:not(.has-background),.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-kado-tit-banner>.vk_borderBox_title_container:not(.has-background){background-color:#337ab7}.vk_borderBox:not([class*=vk_borderBox-color]):not(.has-text-color){color:#337ab7}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{display:inline-block}.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{border-radius:8px 8px 0 0}.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_body{border-radius:0 8px 8px 8px}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature{background-color:transparent;border-width:2px;border-style:solid}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{padding:1.5em 1.5em 1em}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_body,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_body,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_body{border:none;padding-top:0}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container::after{content:"";position:absolute;top:-32%;left:1.5em;padding:1.4em;border-radius:50%;border:solid 2px #fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fad{position:absolute;font-size:1.3em;margin-right:0;z-index:100;top:0%;left:2.3em;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);color:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{position:relative;padding-top:2.2em}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border{position:absolute;margin-right:0;top:0;left:3em;padding:1.4em;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);border-radius:50%;border:solid 2px #fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border>i{position:absolute;font-size:1.3em;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);color:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border:not(.has-background){background-color:#337ab7}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container{position:relative;top:-1.2em;left:1em;z-index:1;display:inline-block;padding:.5em .5em;background:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-tab,.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-banner{border:none;background-color:transparent}.is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner>.vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{color:#fff}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-red .vk_borderBox_title_container{background-color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-red .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-red .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-red .vk_borderBox_body{border-color:var(--vk-color-border-red)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-orange .vk_borderBox_title_container{background-color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-orange .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-orange .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-orange .vk_borderBox_body{border-color:var(--vk-color-border-orange)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-blue .vk_borderBox_title_container{background-color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-blue .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-blue .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-blue .vk_borderBox_body{border-color:var(--vk-color-border-blue)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-green .vk_borderBox_title_container{background-color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-green .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-green .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-green .vk_borderBox_body{border-color:var(--vk-color-border-green)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-black .vk_borderBox_title_container{background-color:var(--vk-color-background-black)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-black .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-black .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-black .vk_borderBox_body{border-color:var(--vk-color-border-black)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container{color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container{color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container{color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container{color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container{color:var(--vk-color-background-black)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container .fas{color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container::after{background-color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-orange);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container::after{background-color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-blue);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container::after{background-color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-green);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container::after{background-color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-black);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container::after{background-color:var(--vk-color-background-black)}.vk_borderBox_body-align-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}.vk_borderBox_body-align-center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_borderBox_body-align-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:right;-ms-flex-pack:right;justify-content:right}
|
6 |
-
:root .has-vk-color-primary-background-color,:root .editor-styles-wrapper .has-vk-color-primary-background-color{background-color:var(--vk-color-primary)}:root .has-vk-color-secondary-background-color,:root .editor-styles-wrapper .has-vk-color-secondary-background-color{background-color:#6c757d}:root .has-vk-color-success-background-color,:root .editor-styles-wrapper .has-vk-color-success-background-color{background-color:#28a745}:root .has-vk-color-info-background-color,:root .editor-styles-wrapper .has-vk-color-info-background-color{background-color:#17a2b8}:root .has-vk-color-warning-background-color,:root .editor-styles-wrapper .has-vk-color-warning-background-color{background-color:#ffc107}:root .has-vk-color-danger-background-color,:root .editor-styles-wrapper .has-vk-color-danger-background-color{background-color:#dc3545}:root .has-vk-color-light-background-color,:root .editor-styles-wrapper .has-vk-color-light-background-color{background-color:#f8f9fa}:root .has-vk-color-dark-background-color,:root .editor-styles-wrapper .has-vk-color-dark-background-color{background-color:#343a40}:root .has-vk-color-primary-color,:root .editor-styles-wrapper .has-vk-color-primary-color{color:var(--vk-color-primary)}:root .has-vk-color-secondary-color,:root .editor-styles-wrapper .has-vk-color-secondary-color{color:#6c757d}:root .has-vk-color-success-color,:root .editor-styles-wrapper .has-vk-color-success-color{color:#28a745}:root .has-vk-color-info-color,:root .editor-styles-wrapper .has-vk-color-info-color{color:#17a2b8}:root .has-vk-color-warning-color,:root .editor-styles-wrapper .has-vk-color-warning-color{color:#ffc107}:root .has-vk-color-danger-color,:root .editor-styles-wrapper .has-vk-color-danger-color{color:#dc3545}:root .has-vk-color-light-color,:root .editor-styles-wrapper .has-vk-color-light-color{color:#f8f9fa}:root .has-vk-color-dark-color,:root .editor-styles-wrapper .has-vk-color-dark-color{color:#343a40}.vk_button,.editor-styles-wrapper .vk_button{-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:0;margin-bottom:5px;text-align:center}.vk_button-color-custom a:hover,.editor-styles-wrapper .vk_button-color-custom a:hover{opacity:.8;-webkit-box-shadow:0 0 0 .2rem rgba(171,184,195,.25);box-shadow:0 0 0 .2rem rgba(171,184,195,.25)}.vk_button-color-custom .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button-color-custom .vk_button_link-type-text:hover{-webkit-box-shadow:none;box-shadow:none}@media(max-width: 575.98px){.vk_button[class*=vk_button-width-mobile-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-mobile-] .vk_button_link{display:block;min-width:50px}.vk_button-width-mobile-25,.editor-styles-wrapper .vk_button-width-mobile-25{width:calc( 25% - 8px )}.vk_button-width-mobile-50,.editor-styles-wrapper .vk_button-width-mobile-50{width:calc( 50% - 8px )}.vk_button-width-mobile-75,.editor-styles-wrapper .vk_button-width-mobile-75{width:calc( 75% - 8px )}.vk_button-width-mobile-100,.editor-styles-wrapper .vk_button-width-mobile-100{width:100%}}@media(min-width: 576px)and (max-width: 991.98px){.vk_button[class*=vk_button-width-tablet-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-tablet-] .vk_button_link{display:block}.vk_button-width-tablet-25,.editor-styles-wrapper .vk_button-width-tablet-25{width:calc(25% - 8px)}.vk_button-width-tablet-50,.editor-styles-wrapper .vk_button-width-tablet-50{width:calc(50% - 8px)}.vk_button-width-tablet-75,.editor-styles-wrapper .vk_button-width-tablet-75{width:calc(75% - 8px)}.vk_button-width-tablet-100,.editor-styles-wrapper .vk_button-width-tablet-100{width:100%}}@media(min-width: 992px){.vk_button[class*=vk_button-width-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-] .vk_button_link{display:block}.vk_button-width-25,.editor-styles-wrapper .vk_button-width-25{width:calc(25% - 8px)}.vk_button-width-50,.editor-styles-wrapper .vk_button-width-50{width:calc(50% - 8px)}.vk_button-width-75,.editor-styles-wrapper .vk_button-width-75{width:calc(75% - 8px)}.vk_button-width-100,.editor-styles-wrapper .vk_button-width-100{width:100%}}.vk_button .btn.has-background:not(.has-text-color),.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color){color:#fff}.vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.vk_button .btn.has-background:not(.has-text-color).has-white-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-white-background-color{color:#212529}.vk_button .has-text-color.is-style-outline,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline{background-color:transparent;border:1px solid currentColor}.vk_button .has-text-color.is-style-outline:hover,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover{border:1px solid #fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color{background-color:#6c757d}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color{background-color:#28a745}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color{background-color:#17a2b8}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color{background-color:#ffc107}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color{background-color:#dc3545}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color{background-color:#f8f9fa}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color{background-color:#343a40}.vk_button .has-text-color.is-style-outline:hover.has-black-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-black-color{background-color:#000}.vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color{background-color:#abb8c3}.vk_button .has-text-color.is-style-outline:hover.has-white-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color{background-color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color{background-color:#f78da7}.vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color{background-color:#cf2e2e}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color{background-color:#ff6900}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color{background-color:#fcb900}.vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color{background-color:#7bdcb5}.vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color{background-color:#00d084}.vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color{background-color:#8ed1fc}.vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color{background-color:#0693e3}.vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color{background-color:#9b51e0}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color{background-color:var(--vk-color-primary-dark)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color{background-color:var(--vk-color-primary-vivid)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color{background-color:var(--vk-color-custom-1)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color{background-color:var(--vk-color-custom-2)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color{background-color:var(--vk-color-custom-3)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color{background-color:var(--vk-color-custom-4)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color{background-color:var(--vk-color-custom-5)}.vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption{color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption{color:#212529}.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption{text-decoration:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-underline-offset:2px;-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor;text-decoration-thickness:1px}.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption{color:#212529;text-decoration:none}.vk_button.vk_button-align-left,.editor-styles-wrapper .vk_button.vk_button-align-left{text-align:left}.vk_button.vk_button-align-center,.editor-styles-wrapper .vk_button.vk_button-align-center{text-align:center}.vk_button.vk_button-align-right,.editor-styles-wrapper .vk_button.vk_button-align-right{text-align:right}.vk_button.vk_button-align-block,.editor-styles-wrapper .vk_button.vk_button-align-block{display:block}.vk_button.vk_button-align-block .vk_button_link,.editor-styles-wrapper .vk_button.vk_button-align-block .vk_button_link{width:100%}.vk_button.vk_button-align-wide,.editor-styles-wrapper .vk_button.vk_button-align-wide{display:block;margin-left:auto;margin-right:auto;max-width:70%}.vk_button.vk_button-align-wide .vk_button_btn,.vk_button.vk_button-align-wide .btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .vk_button_btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .btn{display:block}.vk_button .vk_button_link,.editor-styles-wrapper .vk_button .vk_button_link{min-width:100px;min-height:25px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_button .vk_button_link-type-text,.editor-styles-wrapper .vk_button .vk_button_link-type-text{-webkit-box-shadow:none;box-shadow:none;padding:0}.vk_button .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button .vk_button_link-type-text:hover{background:none;-webkit-box-shadow:none;box-shadow:none}.vk_button .vk_button_link.btn,.editor-styles-wrapper .vk_button .vk_button_link.btn{padding:.6em 1.5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;text-decoration:none;font-size:calc( var(--vk-size-text) * 1 )}.vk_button .vk_button_link.btn-lg,.editor-styles-wrapper .vk_button .vk_button_link.btn-lg{font-size:calc( var(--vk-size-text) * 1.25 )}.vk_button .vk_button_link.btn-sm,.editor-styles-wrapper .vk_button .vk_button_link.btn-sm{font-size:calc( var(--vk-size-text) * .875 )}.vk_button .vk_button_link_before,.editor-styles-wrapper .vk_button .vk_button_link_before{margin-right:.7rem}.vk_button .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_after{margin-left:.7rem}.vk_button .vk_button_link_caption,.editor-styles-wrapper .vk_button .vk_button_link_caption{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_button .vk_button_link_caption .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_caption .vk_button_link_after{margin-right:0}.vk_button .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.vk_button .editor-rich-text,.editor-styles-wrapper .vk_button .editor-rich-text{display:inline-block}
|
7 |
:root{--vk-color-border: rgba(0,0,0,.12)}.is-style-vk_faq-normal .vk_faq_title:before{color:#e50000}.is-style-vk_faq-normal .vk_faq_content:before{color:#337ab7}.is-style-vk_faq-bgfill-circle .vk_faq_title:before,.is-style-vk_faq-bgfill-square .vk_faq_title:before,.is-style-vk_faq-bgfill-rounded .vk_faq_title:before{background-color:#e50000;color:#fff !important}.is-style-vk_faq-bgfill-circle .vk_faq_content:before,.is-style-vk_faq-bgfill-square .vk_faq_content:before,.is-style-vk_faq-bgfill-rounded .vk_faq_content:before{background-color:#337ab7;color:#fff !important}.is-style-vk_faq-bgfill-circle .vk_faq_title:before,.is-style-vk_faq-bgfill-circle .vk_faq_content:before,.is-style-vk_faq-border-circle .vk_faq_title:before,.is-style-vk_faq-border-circle .vk_faq_content:before{border-radius:50%}.is-style-vk_faq-bgfill-rounded .vk_faq_title:before,.is-style-vk_faq-bgfill-rounded .vk_faq_content:before,.is-style-vk_faq-border-rounded .vk_faq_title:before,.is-style-vk_faq-border-rounded .vk_faq_content:before{border-radius:4px}.is-style-vk_faq-border-circle .vk_faq_title:before,.is-style-vk_faq-border-square .vk_faq_title:before,.is-style-vk_faq-border-rounded .vk_faq_title:before{border:1px solid #e50000;color:#e50000}.is-style-vk_faq-border-circle .vk_faq_content:before,.is-style-vk_faq-border-square .vk_faq_content:before,.is-style-vk_faq-border-rounded .vk_faq_content:before{border:1px solid #337ab7;color:#337ab7}.vk_faq{display:block;overflow:hidden;border-bottom:1px solid var(--vk-color-border);padding:0px 0px 1rem;margin:0 auto 1rem auto;width:100%;position:relative}.vk_faq .vk_faq_title{border:none;padding:.8rem .8rem .8rem 3rem;margin:0;position:relative;font-weight:bold;font-size:16px;border-bottom:1px dotted var(--vk-color-border)}.vk_faq .vk_faq_title:before{position:absolute;left:0;top:.7rem;font-weight:500;font-size:22px;line-height:105%;width:2.1rem;height:2.1rem;line-height:2.1rem;text-align:center;position:absolute;font-family:"areal"}.vk_faq .vk_faq_title p:first-of-type{margin-top:0}.vk_faq .vk_faq_title p:last-child{margin-bottom:0}.vk_faq .vk_faq_title:before{content:"Q";color:#e50000;font-weight:500}.vk_faq .vk_faq_title p{line-height:1.7}@media(min-width: 768px){.vk_faq .vk_faq_title{font-size:18px}}.vk_faq .vk_faq_content{border:none;padding:.8rem .8rem .8rem 3rem;margin:0;position:relative;font-weight:normal;-webkit-transition:.25s;transition:.25s}.vk_faq .vk_faq_content:before{position:absolute;left:0;top:.7rem;font-weight:500;font-size:22px;line-height:105%;width:2.1rem;height:2.1rem;line-height:2.1rem;text-align:center;position:absolute;font-family:"areal"}.vk_faq .vk_faq_content p:first-of-type{margin-top:0}.vk_faq .vk_faq_content p:last-child{margin-bottom:0}.vk_faq .vk_faq_content:before{content:"A";color:#337ab7}.vk_faq.vk_faq-accordion-close,.vk_faq.vk_faq-accordion-open{padding-bottom:0;margin-bottom:0}.vk_faq.vk_faq-accordion-close .vk_faq-body,.vk_faq.vk_faq-accordion-open .vk_faq-body{margin-top:0;margin-bottom:0}.vk_faq.vk_faq-accordion-close .vk_faq_title,.vk_faq.vk_faq-accordion-open .vk_faq_title{padding-right:2rem}@media(min-width: 768px){.vk_faq.vk_faq-accordion-close .vk_faq_title,.vk_faq.vk_faq-accordion-open .vk_faq_title{padding-right:2.5rem}}.vk_faq.vk_faq-accordion-close .vk_faq_title::after,.vk_faq.vk_faq-accordion-open .vk_faq_title::after{position:absolute;top:50%;right:unset;right:2.5rem;content:"";width:8px;height:8px;border-right:1px solid #222;border-top:1px solid #222;transition:border-color .3s ease,-webkit-transform .6s ease;-webkit-transition:border-color .3s ease,-webkit-transform .6s ease;transition:border-color .3s ease,transform .6s ease;transition:border-color .3s ease,transform .6s ease,-webkit-transform .6s ease}.vk_faq.vk_faq-accordion-close .vk_faq_title{border-bottom:none}.vk_faq.vk_faq-accordion-close .vk_faq_title::after{-webkit-transform:translate(32px, -5px) rotate(135deg);transform:translate(32px, -5px) rotate(135deg)}.vk_faq.vk_faq-accordion-open .vk_faq_title::after{-webkit-transform:translate(32px, -2px) rotate(-45deg);transform:translate(32px, -2px) rotate(-45deg)}.vk_faq.vk_faq-accordion .vk_faq_title{cursor:pointer}.vk_faq .vk_faq_content-accordion-open{height:auto;overflow:hidden;opacity:1;-webkit-transition:.25s;transition:.25s;margin-bottom:10px}.vk_faq .vk_faq_content-accordion-close{padding-top:0;padding-bottom:0;height:0;opacity:0;overflow:hidden}
|
8 |
.vk_flow{margin-bottom:0}.vk_flow .vk_flow_frame{display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px 25px;border:3px solid #e5e5e5;margin:0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media(max-width: 575.98px){.vk_flow .vk_flow_frame{-ms-flex-wrap:wrap;flex-wrap:wrap}}.vk_flow .vk_flow_frame_text{display:block;overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}@media(max-width: 575.98px){.vk_flow .vk_flow_frame_text{margin-bottom:1em}}@media(min-width: 576px){.vk_flow .vk_flow_frame_text{margin-right:15px}}.vk_flow .vk_flow_frame_text_title,.vk_flow .vk_flow_frame_text_content{padding-left:0;border:none}.vk_flow .vk_flow_frame_text_title{border-bottom:1px dotted #ccc;margin:0 0 10px;padding:0 0 5px;font-size:1.2em}.vk_flow .vk_flow_frame_text_content{margin-bottom:0;-webkit-margin-start:0;margin-inline-start:0;margin-left:0}.vk_flow .vk_flow_frame_image{max-width:150px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_flow.vk_flow-arrow-on::after{position:relative;content:"";background:var(--vk_flow-arrow) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.vk_flow.vk_flow-arrow-off{padding-bottom:0;margin-bottom:30px}.vk_flow.vk_flow-arrow-off::after{content:"";font-size:0;background-image:none}.block-editor-block-list__layout .block-editor-block-list__block.vk_flow-arrow-on:focus:after{position:relative;-webkit-box-shadow:none;box-shadow:none}
|
9 |
.vk_heading i:first-child{margin-right:.2em}.vk_heading i:last-child{margin-left:.2em}.vk_heading.vk_heading-style-plain .vk_heading_title{background:none;border:none;border-radius:0;padding:0;outline:unset;outline-offset:unset;-webkit-box-shadow:none;box-shadow:none;display:block}.vk_heading.vk_heading-style-plain .vk_heading_title:after{content:none;border:none}.vk_heading.vk_heading-style-plain .vk_heading_title:before{content:none}.vk_heading.vk_heading-style-plain .vk_heading_title:not(.has-text-color){color:unset}.vk_heading.vk_heading-style-plain .vk_heading_title:after{background:none;border:none;border-radius:0;padding:0;outline:unset;outline-offset:unset;-webkit-box-shadow:none;box-shadow:none;display:block}.vk_heading.vk_heading-style-plain .vk_heading_title:after:after{content:none;border:none}.vk_heading.vk_heading-style-plain .vk_heading_title:after:before{content:none}.vk_heading_subtext{margin-bottom:0}
|
3 |
.vk_ancestorPageList-hiddenGrandChild-true ul li .children{display:none}.vk_ancestorPageList-hiddenGrandChild-true ul li.current_page_ancestor .children{display:block}
|
4 |
.vk_balloon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:normal;-ms-flex-align:normal;align-items:normal;margin-bottom:2.2em}.vk_balloon figure{margin:0}.vk_balloon p{color:initial;word-break:break-all}.vk_balloon p:first-of-type{margin-top:0}.vk_balloon p:last-of-type{margin-bottom:0}.vk_balloon_icon{-ms-flex-preferred-size:80px;flex-basis:80px;-ms-flex-negative:0;flex-shrink:0;text-align:center}.vk_balloon_icon_image:not(.has-text-color){color:#ccc}.vk_balloon_icon_image{vertical-align:bottom;width:64px;height:64px;-o-object-fit:cover;object-fit:cover;display:inline-block}.vk_balloon_icon_image-type-rounded{border-radius:4px}.vk_balloon_icon_image-type-circle{border-radius:50%}.vk_balloon_icon_name{display:block;text-align:center;font-size:.7rem;margin-top:.3rem}.vk_balloon_content_outer{width:100%}.vk_balloon_content{max-width:calc(100% - 6.2em);position:relative;text-align:left}.vk_balloon_content::after{display:block;clear:both;content:""}.vk_balloon-position-left .vk_balloon_content{float:left}.vk_balloon-position-right .vk_balloon_content{float:right}.vk_balloon_content.vk_balloon_content_fullwidth{max-width:100%;float:none}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon_content{background:#f5f5f5;padding:calc(var(--vk-size-text) * 1 ) calc(var(--vk-size-text) * 1.2)}.vk_balloon_content_before,.vk_balloon_content_after{position:absolute;top:0;display:block;width:0;height:0;border-style:solid}.vk_balloon-type-speech .vk_balloon_content{border-radius:.4em}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{top:15px}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{z-index:1;border-right-color:inherit}.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before{z-index:2}.vk_balloon-type-think .vk_balloon_content{border-radius:1rem}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{position:absolute;content:"";border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{width:14px;height:14px}.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_icon{margin-right:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{left:-10px;border-width:10px 12px 10px 0}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{left:-18px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{left:-25px;top:20px}.vk_balloon-position-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_icon{margin-left:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{right:-10px;border-width:10px 0 10px 12px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:calc( var(--vk-size-text) * 1.2 )}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before{right:-18px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{right:-25px;top:20px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent #f5f5f5 transparent transparent}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent transparent transparent #f5f5f5}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content .vk_balloon_content_after{border-color:transparent transparent transparent currentColor}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before:not(.has-text-color),.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after:not(.has-text-color){border-color:transparent}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_before,.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content .vk_balloon_content_after{border-color:transparent currentColor transparent transparent}.vk_balloon_content-border-true,.vk_balloon_icon_image-border-true{border-width:var(--vk-balloon-border-width, 1px);border-style:solid}.vk_balloon_content-border-true:not(.has-text-color){color:#ccc}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_before{left:-10px}.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_after{left:var(--vk-balloon-speech-offset, -12px);border-right-color:inherit !important}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true{border-color:currentColor}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_before{right:-10px}.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content-border-true .vk_balloon_content_after{right:var(--vk-balloon-speech-offset, -12px);border-left-color:inherit !important}.vk_balloon-type-think .vk_balloon_content-border-true .vk_balloon_content_before,.vk_balloon-type-think .vk_balloon_content-border-true .vk_balloon_content_after{border-width:var(--vk-balloon-border-width, 1px);border-style:solid;border-color:inherit !important}.vk_balloon-animation-trembling{-webkit-animation:trembling .1s infinite;animation:trembling .1s infinite}@-webkit-keyframes trembling{0%{-webkit-transform:rotate(-0.5deg);transform:rotate(-0.5deg)}50%{-webkit-transform:rotate(0.5deg);transform:rotate(0.5deg)}}@keyframes trembling{0%{-webkit-transform:rotate(-0.5deg);transform:rotate(-0.5deg)}50%{-webkit-transform:rotate(0.5deg);transform:rotate(0.5deg)}}.vk_balloon-animation-trembling-x{-webkit-animation:trembling-x .1s infinite;animation:trembling-x .1s infinite}@-webkit-keyframes trembling-x{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.99, 0.96);transform:scale(0.99, 0.96)}}@keyframes trembling-x{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}50%{-webkit-transform:scale(0.99, 0.96);transform:scale(0.99, 0.96)}}.vk_balloon-animation-pounding{-webkit-animation:pounding 1.5s infinite;animation:pounding 1.5s infinite}@-webkit-keyframes pounding{0%{-webkit-transform:scale(1.05);transform:scale(1.05)}5%{-webkit-transform:scale(1);transform:scale(1)}95%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.05);transform:scale(1.05)}}@keyframes pounding{0%{-webkit-transform:scale(1.05);transform:scale(1.05)}5%{-webkit-transform:scale(1);transform:scale(1)}95%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(1.05);transform:scale(1.05)}}.vk_balloon-animation-shaking{-webkit-animation:shaking .4s infinite;animation:shaking .4s infinite}@-webkit-keyframes shaking{0%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}25%{-webkit-transform:translate(1px, -1px);transform:translate(1px, -1px)}50%{-webkit-transform:translate(-1px, -1px);transform:translate(-1px, -1px)}75%{-webkit-transform:translate(-1px, 1px);transform:translate(-1px, 1px)}100%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}}@keyframes shaking{0%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}25%{-webkit-transform:translate(1px, -1px);transform:translate(1px, -1px)}50%{-webkit-transform:translate(-1px, -1px);transform:translate(-1px, -1px)}75%{-webkit-transform:translate(-1px, 1px);transform:translate(-1px, 1px)}100%{-webkit-transform:translate(1px, 1px);transform:translate(1px, 1px)}}.icon-image-list-note:hover{cursor:pointer}@media only screen and (max-width: 480px){.vk_balloon_content{max-width:calc(100% - 2em);font-size:.9em;padding:1em}.vk_balloon-type-think .vk_balloon_content::after{border:5px solid transparent}.vk_balloon{-webkit-box-align:normal;-ms-flex-align:normal;align-items:normal}.vk_balloon.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_icon{margin-right:1.5rem}.vk_balloon.vk_balloon-position-left.vk_balloon-type-speech .vk_balloon_conten:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2rem}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_icon{margin-left:1.5rem;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-speech .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2rem;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content:not(.vk_balloon_content_fullwidth){display:inline-block}.vk_balloon_icon{max-width:64px}}
|
5 |
:root{--vk-color-border-red: #dc3545;--vk-color-background-red: #dc3545;--vk-color-border-orange: #ffa536;--vk-color-background-orange: #ffa536;--vk-color-border-blue: #4267b2;--vk-color-background-blue: #4267b2;--vk-color-border-green: #28a745;--vk-color-background-green: #28a745;--vk-color-border-black: #222;--vk-color-background-black: #222}.vk_borderBox-color-red{border-color:var(--vk-color-border-red);background-color:var(--vk-color-background-red)}.vk_borderBox-color-orange{border-color:var(--vk-color-border-orange);background-color:var(--vk-color-background-orange)}.vk_borderBox-color-blue{border-color:var(--vk-color-border-blue);background-color:var(--vk-color-background-blue)}.vk_borderBox-color-green{border-color:var(--vk-color-border-green);background-color:var(--vk-color-background-green)}.vk_borderBox-color-black{border-color:var(--vk-color-border-black);background-color:var(--vk-color-background-black)}.vk_borderBox-background-transparent .vk_borderBox_body{background-color:transparent}.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox{background-color:transparent}.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox-background-transparent.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{background-color:transparent}.vk_borderBox-background-white .vk_borderBox_body{background-color:#fff}.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox{background-color:#fff}.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox-background-white.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{background-color:#fff}.vk_borderBox{margin:0 auto 2em;position:relative}.vk_borderBox .vk_borderBox_title_container{margin:0;font-size:1em;line-height:1.4;padding:.5em 1.5em .4em;font-weight:bold}.vk_borderBox .vk_borderBox_title_container i:first-child,.vk_borderBox .vk_borderBox_title_container .svg-inline--fa{margin-right:5px}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title{display:inline;font-weight:bold;font-size:1em;color:inherit;background:none;padding:0;border:none;outline:none}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title::before{content:none}.vk_borderBox .vk_borderBox_title_container .vk_borderBox_title::after{content:none}.vk_borderBox .vk_borderBox_body{padding:1.5em;border-width:2px;border-style:solid}@media(min-width: 992px){.vk_borderBox .vk_borderBox_body{padding:1.5em 2em 1.5em}}.vk_borderBox .vk_borderBox_body>*:not(.has-text-color){color:initial}.vk_borderBox .vk_borderBox_body>*:first-child{margin-top:0}.vk_borderBox .vk_borderBox_body>*:last-child{margin-bottom:0}.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container:not(.has-background),.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container:not(.has-background),.vk_borderBox:not([class*=vk_borderBox-color]).is-style-vk_borderBox-style-solid-kado-tit-banner>.vk_borderBox_title_container:not(.has-background){background-color:#337ab7}.vk_borderBox:not([class*=vk_borderBox-color]):not(.has-text-color){color:#337ab7}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{display:inline-block}.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{border-radius:8px 8px 0 0}.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_body{border-radius:0 8px 8px 8px}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature{background-color:transparent;border-width:2px;border-style:solid}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{padding:1.5em 1.5em 1em}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-inner>.vk_borderBox_body,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_body,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_body{border:none;padding-top:0}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container::after,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container::after{content:"";position:absolute;top:-32%;left:1.5em;padding:1.4em;border-radius:50%;border:solid 2px #fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container>.fad,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.svg-inline--fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fa,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fas,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.far,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fal,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container>.fad{position:absolute;font-size:1.3em;margin-right:0;z-index:100;top:0%;left:2.3em;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);color:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container{position:relative;padding-top:2.2em}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border{position:absolute;margin-right:0;top:0;left:3em;padding:1.4em;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);border-radius:50%;border:solid 2px #fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border>i{position:absolute;font-size:1.3em;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);color:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-iconFeature>.vk_borderBox_title_container>.vk_borderBox_icon_border:not(.has-background){background-color:#337ab7}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-onborder>.vk_borderBox_title_container{position:relative;top:-1.2em;left:1em;z-index:1;display:inline-block;padding:.5em .5em;background:#fff}.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-tab,.vk_borderBox.is-style-vk_borderBox-style-solid-round-tit-tab,.vk_borderBox.is-style-vk_borderBox-style-solid-kado-tit-banner{border:none;background-color:transparent}.is-style-vk_borderBox-style-solid-kado-tit-tab>.vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner>.vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab>.vk_borderBox_title_container{color:#fff}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-red .vk_borderBox_title_container{background-color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-red .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-red .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-red .vk_borderBox_body{border-color:var(--vk-color-border-red)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-orange .vk_borderBox_title_container{background-color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-orange .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-orange .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-orange .vk_borderBox_body{border-color:var(--vk-color-border-orange)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-blue .vk_borderBox_title_container{background-color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-blue .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-blue .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-blue .vk_borderBox_body{border-color:var(--vk-color-border-blue)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-green .vk_borderBox_title_container{background-color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-green .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-green .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-green .vk_borderBox_body{border-color:var(--vk-color-border-green)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-black .vk_borderBox_title_container{background-color:var(--vk-color-background-black)}.is-style-vk_borderBox-style-solid-kado-tit-tab.vk_borderBox-color-black .vk_borderBox_body,.is-style-vk_borderBox-style-solid-kado-tit-banner.vk_borderBox-color-black .vk_borderBox_body,.is-style-vk_borderBox-style-solid-round-tit-tab.vk_borderBox-color-black .vk_borderBox_body{border-color:var(--vk-color-border-black)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-red .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container{color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-orange .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container{color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-blue .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container{color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-green .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container{color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-tit-inner.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-tit-onborder.vk_borderBox-color-black .vk_borderBox_title_container,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container{color:var(--vk-color-background-black)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container .fas{color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-red .vk_borderBox_title_container::after{background-color:var(--vk-color-background-red)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-orange);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-orange .vk_borderBox_title_container::after{background-color:var(--vk-color-background-orange)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-blue);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-blue .vk_borderBox_title_container::after{background-color:var(--vk-color-background-blue)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-green);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-green .vk_borderBox_title_container::after{background-color:var(--vk-color-background-green)}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container .svg-inline--fa,.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container .fas{background-color:var(--vk-color-background-black);color:#fff}.is-style-vk_borderBox-style-solid-kado-iconFeature.vk_borderBox-color-black .vk_borderBox_title_container::after{background-color:var(--vk-color-background-black)}.vk_borderBox_body-align-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}.vk_borderBox_body-align-center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_borderBox_body-align-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:right;-ms-flex-pack:right;justify-content:right}
|
6 |
+
:root .has-vk-color-primary-background-color,:root .has-undefined-background-color,:root .editor-styles-wrapper .has-vk-color-primary-background-color,:root .editor-styles-wrapper .has-undefined-background-color{background-color:var(--vk-color-primary)}:root .has-vk-color-secondary-background-color,:root .editor-styles-wrapper .has-vk-color-secondary-background-color{background-color:#6c757d}:root .has-vk-color-success-background-color,:root .editor-styles-wrapper .has-vk-color-success-background-color{background-color:#28a745}:root .has-vk-color-info-background-color,:root .editor-styles-wrapper .has-vk-color-info-background-color{background-color:#17a2b8}:root .has-vk-color-warning-background-color,:root .editor-styles-wrapper .has-vk-color-warning-background-color{background-color:#ffc107}:root .has-vk-color-danger-background-color,:root .editor-styles-wrapper .has-vk-color-danger-background-color{background-color:#dc3545}:root .has-vk-color-light-background-color,:root .editor-styles-wrapper .has-vk-color-light-background-color{background-color:#f8f9fa}:root .has-vk-color-dark-background-color,:root .editor-styles-wrapper .has-vk-color-dark-background-color{background-color:#343a40}:root .has-vk-color-primary-color,:root .editor-styles-wrapper .has-vk-color-primary-color{color:var(--vk-color-primary)}:root .has-vk-color-secondary-color,:root .editor-styles-wrapper .has-vk-color-secondary-color{color:#6c757d}:root .has-vk-color-success-color,:root .editor-styles-wrapper .has-vk-color-success-color{color:#28a745}:root .has-vk-color-info-color,:root .editor-styles-wrapper .has-vk-color-info-color{color:#17a2b8}:root .has-vk-color-warning-color,:root .editor-styles-wrapper .has-vk-color-warning-color{color:#ffc107}:root .has-vk-color-danger-color,:root .editor-styles-wrapper .has-vk-color-danger-color{color:#dc3545}:root .has-vk-color-light-color,:root .editor-styles-wrapper .has-vk-color-light-color{color:#f8f9fa}:root .has-vk-color-dark-color,:root .editor-styles-wrapper .has-vk-color-dark-color{color:#343a40}.vk_button,.editor-styles-wrapper .vk_button{-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:0;margin-bottom:5px;text-align:center}.vk_button-color-custom a:hover,.editor-styles-wrapper .vk_button-color-custom a:hover{opacity:.8;-webkit-box-shadow:0 0 0 .2rem rgba(171,184,195,.25);box-shadow:0 0 0 .2rem rgba(171,184,195,.25)}.vk_button-color-custom .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button-color-custom .vk_button_link-type-text:hover{-webkit-box-shadow:none;box-shadow:none}@media(max-width: 575.98px){.vk_button[class*=vk_button-width-mobile-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-mobile-] .vk_button_link{display:block;min-width:50px}.vk_button-width-mobile-25,.editor-styles-wrapper .vk_button-width-mobile-25{width:calc( 25% - 8px )}.vk_button-width-mobile-50,.editor-styles-wrapper .vk_button-width-mobile-50{width:calc( 50% - 8px )}.vk_button-width-mobile-75,.editor-styles-wrapper .vk_button-width-mobile-75{width:calc( 75% - 8px )}.vk_button-width-mobile-100,.editor-styles-wrapper .vk_button-width-mobile-100{width:100%}}@media(min-width: 576px)and (max-width: 991.98px){.vk_button[class*=vk_button-width-tablet-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-tablet-] .vk_button_link{display:block}.vk_button-width-tablet-25,.editor-styles-wrapper .vk_button-width-tablet-25{width:calc(25% - 8px)}.vk_button-width-tablet-50,.editor-styles-wrapper .vk_button-width-tablet-50{width:calc(50% - 8px)}.vk_button-width-tablet-75,.editor-styles-wrapper .vk_button-width-tablet-75{width:calc(75% - 8px)}.vk_button-width-tablet-100,.editor-styles-wrapper .vk_button-width-tablet-100{width:100%}}@media(min-width: 992px){.vk_button[class*=vk_button-width-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-] .vk_button_link{display:block}.vk_button-width-25,.editor-styles-wrapper .vk_button-width-25{width:calc(25% - 8px)}.vk_button-width-50,.editor-styles-wrapper .vk_button-width-50{width:calc(50% - 8px)}.vk_button-width-75,.editor-styles-wrapper .vk_button-width-75{width:calc(75% - 8px)}.vk_button-width-100,.editor-styles-wrapper .vk_button-width-100{width:100%}}.vk_button .btn.has-background:not(.has-text-color),.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color){color:#fff}.vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.vk_button .btn.has-background:not(.has-text-color).has-white-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-white-background-color{color:#212529}.vk_button .has-text-color.is-style-outline,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline{background-color:transparent;border:1px solid currentColor}.vk_button .has-text-color.is-style-outline:hover,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover{border:1px solid #fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color{background-color:#6c757d}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color{background-color:#28a745}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color{background-color:#17a2b8}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color{background-color:#ffc107}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color{background-color:#dc3545}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color{background-color:#f8f9fa}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color{background-color:#343a40}.vk_button .has-text-color.is-style-outline:hover.has-black-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-black-color{background-color:#000}.vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color{background-color:#abb8c3}.vk_button .has-text-color.is-style-outline:hover.has-white-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color{background-color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color{background-color:#f78da7}.vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color{background-color:#cf2e2e}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color{background-color:#ff6900}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color{background-color:#fcb900}.vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color{background-color:#7bdcb5}.vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color{background-color:#00d084}.vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color{background-color:#8ed1fc}.vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color{background-color:#0693e3}.vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color{background-color:#9b51e0}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color{background-color:var(--vk-color-primary-dark)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color{background-color:var(--vk-color-primary-vivid)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color{background-color:var(--vk-color-custom-1)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color{background-color:var(--vk-color-custom-2)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color{background-color:var(--vk-color-custom-3)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color{background-color:var(--vk-color-custom-4)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color{background-color:var(--vk-color-custom-5)}.vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption{color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption{color:#212529}.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption{text-decoration:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-underline-offset:2px;-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor;text-decoration-thickness:1px}.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption{color:#212529;text-decoration:none}.vk_button.vk_button-align-left,.editor-styles-wrapper .vk_button.vk_button-align-left{text-align:left}.vk_button.vk_button-align-center,.editor-styles-wrapper .vk_button.vk_button-align-center{text-align:center}.vk_button.vk_button-align-right,.editor-styles-wrapper .vk_button.vk_button-align-right{text-align:right}.vk_button.vk_button-align-block,.editor-styles-wrapper .vk_button.vk_button-align-block{display:block}.vk_button.vk_button-align-block .vk_button_link,.editor-styles-wrapper .vk_button.vk_button-align-block .vk_button_link{width:100%}.vk_button.vk_button-align-wide,.editor-styles-wrapper .vk_button.vk_button-align-wide{display:block;margin-left:auto;margin-right:auto;max-width:70%}.vk_button.vk_button-align-wide .vk_button_btn,.vk_button.vk_button-align-wide .btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .vk_button_btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .btn{display:block}.vk_button .vk_button_link,.editor-styles-wrapper .vk_button .vk_button_link{min-width:100px;min-height:25px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_button .vk_button_link-type-text,.editor-styles-wrapper .vk_button .vk_button_link-type-text{-webkit-box-shadow:none;box-shadow:none;padding:0}.vk_button .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button .vk_button_link-type-text:hover{background:none;-webkit-box-shadow:none;box-shadow:none}.vk_button .vk_button_link.btn,.editor-styles-wrapper .vk_button .vk_button_link.btn{padding:.6em 1.5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;text-decoration:none;font-size:calc( var(--vk-size-text) * 1 )}.vk_button .vk_button_link.btn-lg,.editor-styles-wrapper .vk_button .vk_button_link.btn-lg{font-size:calc( var(--vk-size-text) * 1.25 )}.vk_button .vk_button_link.btn-sm,.editor-styles-wrapper .vk_button .vk_button_link.btn-sm{font-size:calc( var(--vk-size-text) * .875 )}.vk_button .vk_button_link_before,.editor-styles-wrapper .vk_button .vk_button_link_before{margin-right:.7rem}.vk_button .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_after{margin-left:.7rem}.vk_button .vk_button_link_caption,.editor-styles-wrapper .vk_button .vk_button_link_caption{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_button .vk_button_link_caption .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_caption .vk_button_link_after{margin-right:0}.vk_button .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.vk_button .editor-rich-text,.editor-styles-wrapper .vk_button .editor-rich-text{display:inline-block}
|
7 |
:root{--vk-color-border: rgba(0,0,0,.12)}.is-style-vk_faq-normal .vk_faq_title:before{color:#e50000}.is-style-vk_faq-normal .vk_faq_content:before{color:#337ab7}.is-style-vk_faq-bgfill-circle .vk_faq_title:before,.is-style-vk_faq-bgfill-square .vk_faq_title:before,.is-style-vk_faq-bgfill-rounded .vk_faq_title:before{background-color:#e50000;color:#fff !important}.is-style-vk_faq-bgfill-circle .vk_faq_content:before,.is-style-vk_faq-bgfill-square .vk_faq_content:before,.is-style-vk_faq-bgfill-rounded .vk_faq_content:before{background-color:#337ab7;color:#fff !important}.is-style-vk_faq-bgfill-circle .vk_faq_title:before,.is-style-vk_faq-bgfill-circle .vk_faq_content:before,.is-style-vk_faq-border-circle .vk_faq_title:before,.is-style-vk_faq-border-circle .vk_faq_content:before{border-radius:50%}.is-style-vk_faq-bgfill-rounded .vk_faq_title:before,.is-style-vk_faq-bgfill-rounded .vk_faq_content:before,.is-style-vk_faq-border-rounded .vk_faq_title:before,.is-style-vk_faq-border-rounded .vk_faq_content:before{border-radius:4px}.is-style-vk_faq-border-circle .vk_faq_title:before,.is-style-vk_faq-border-square .vk_faq_title:before,.is-style-vk_faq-border-rounded .vk_faq_title:before{border:1px solid #e50000;color:#e50000}.is-style-vk_faq-border-circle .vk_faq_content:before,.is-style-vk_faq-border-square .vk_faq_content:before,.is-style-vk_faq-border-rounded .vk_faq_content:before{border:1px solid #337ab7;color:#337ab7}.vk_faq{display:block;overflow:hidden;border-bottom:1px solid var(--vk-color-border);padding:0px 0px 1rem;margin:0 auto 1rem auto;width:100%;position:relative}.vk_faq .vk_faq_title{border:none;padding:.8rem .8rem .8rem 3rem;margin:0;position:relative;font-weight:bold;font-size:16px;border-bottom:1px dotted var(--vk-color-border)}.vk_faq .vk_faq_title:before{position:absolute;left:0;top:.7rem;font-weight:500;font-size:22px;line-height:105%;width:2.1rem;height:2.1rem;line-height:2.1rem;text-align:center;position:absolute;font-family:"areal"}.vk_faq .vk_faq_title p:first-of-type{margin-top:0}.vk_faq .vk_faq_title p:last-child{margin-bottom:0}.vk_faq .vk_faq_title:before{content:"Q";color:#e50000;font-weight:500}.vk_faq .vk_faq_title p{line-height:1.7}@media(min-width: 768px){.vk_faq .vk_faq_title{font-size:18px}}.vk_faq .vk_faq_content{border:none;padding:.8rem .8rem .8rem 3rem;margin:0;position:relative;font-weight:normal;-webkit-transition:.25s;transition:.25s}.vk_faq .vk_faq_content:before{position:absolute;left:0;top:.7rem;font-weight:500;font-size:22px;line-height:105%;width:2.1rem;height:2.1rem;line-height:2.1rem;text-align:center;position:absolute;font-family:"areal"}.vk_faq .vk_faq_content p:first-of-type{margin-top:0}.vk_faq .vk_faq_content p:last-child{margin-bottom:0}.vk_faq .vk_faq_content:before{content:"A";color:#337ab7}.vk_faq.vk_faq-accordion-close,.vk_faq.vk_faq-accordion-open{padding-bottom:0;margin-bottom:0}.vk_faq.vk_faq-accordion-close .vk_faq-body,.vk_faq.vk_faq-accordion-open .vk_faq-body{margin-top:0;margin-bottom:0}.vk_faq.vk_faq-accordion-close .vk_faq_title,.vk_faq.vk_faq-accordion-open .vk_faq_title{padding-right:2rem}@media(min-width: 768px){.vk_faq.vk_faq-accordion-close .vk_faq_title,.vk_faq.vk_faq-accordion-open .vk_faq_title{padding-right:2.5rem}}.vk_faq.vk_faq-accordion-close .vk_faq_title::after,.vk_faq.vk_faq-accordion-open .vk_faq_title::after{position:absolute;top:50%;right:unset;right:2.5rem;content:"";width:8px;height:8px;border-right:1px solid #222;border-top:1px solid #222;transition:border-color .3s ease,-webkit-transform .6s ease;-webkit-transition:border-color .3s ease,-webkit-transform .6s ease;transition:border-color .3s ease,transform .6s ease;transition:border-color .3s ease,transform .6s ease,-webkit-transform .6s ease}.vk_faq.vk_faq-accordion-close .vk_faq_title{border-bottom:none}.vk_faq.vk_faq-accordion-close .vk_faq_title::after{-webkit-transform:translate(32px, -5px) rotate(135deg);transform:translate(32px, -5px) rotate(135deg)}.vk_faq.vk_faq-accordion-open .vk_faq_title::after{-webkit-transform:translate(32px, -2px) rotate(-45deg);transform:translate(32px, -2px) rotate(-45deg)}.vk_faq.vk_faq-accordion .vk_faq_title{cursor:pointer}.vk_faq .vk_faq_content-accordion-open{height:auto;overflow:hidden;opacity:1;-webkit-transition:.25s;transition:.25s;margin-bottom:10px}.vk_faq .vk_faq_content-accordion-close{padding-top:0;padding-bottom:0;height:0;opacity:0;overflow:hidden}
|
8 |
.vk_flow{margin-bottom:0}.vk_flow .vk_flow_frame{display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px 25px;border:3px solid #e5e5e5;margin:0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media(max-width: 575.98px){.vk_flow .vk_flow_frame{-ms-flex-wrap:wrap;flex-wrap:wrap}}.vk_flow .vk_flow_frame_text{display:block;overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}@media(max-width: 575.98px){.vk_flow .vk_flow_frame_text{margin-bottom:1em}}@media(min-width: 576px){.vk_flow .vk_flow_frame_text{margin-right:15px}}.vk_flow .vk_flow_frame_text_title,.vk_flow .vk_flow_frame_text_content{padding-left:0;border:none}.vk_flow .vk_flow_frame_text_title{border-bottom:1px dotted #ccc;margin:0 0 10px;padding:0 0 5px;font-size:1.2em}.vk_flow .vk_flow_frame_text_content{margin-bottom:0;-webkit-margin-start:0;margin-inline-start:0;margin-left:0}.vk_flow .vk_flow_frame_image{max-width:150px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_flow.vk_flow-arrow-on::after{position:relative;content:"";background:var(--vk_flow-arrow) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.vk_flow.vk_flow-arrow-off{padding-bottom:0;margin-bottom:30px}.vk_flow.vk_flow-arrow-off::after{content:"";font-size:0;background-image:none}.block-editor-block-list__layout .block-editor-block-list__block.vk_flow-arrow-on:focus:after{position:relative;-webkit-box-shadow:none;box-shadow:none}
|
9 |
.vk_heading i:first-child{margin-right:.2em}.vk_heading i:last-child{margin-left:.2em}.vk_heading.vk_heading-style-plain .vk_heading_title{background:none;border:none;border-radius:0;padding:0;outline:unset;outline-offset:unset;-webkit-box-shadow:none;box-shadow:none;display:block}.vk_heading.vk_heading-style-plain .vk_heading_title:after{content:none;border:none}.vk_heading.vk_heading-style-plain .vk_heading_title:before{content:none}.vk_heading.vk_heading-style-plain .vk_heading_title:not(.has-text-color){color:unset}.vk_heading.vk_heading-style-plain .vk_heading_title:after{background:none;border:none;border-radius:0;padding:0;outline:unset;outline-offset:unset;-webkit-box-shadow:none;box-shadow:none;display:block}.vk_heading.vk_heading-style-plain .vk_heading_title:after:after{content:none;border:none}.vk_heading.vk_heading-style-plain .vk_heading_title:after:before{content:none}.vk_heading_subtext{margin-bottom:0}
|
build/button/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
:root .has-vk-color-primary-background-color,:root .editor-styles-wrapper .has-vk-color-primary-background-color{background-color:var(--vk-color-primary)}:root .has-vk-color-secondary-background-color,:root .editor-styles-wrapper .has-vk-color-secondary-background-color{background-color:#6c757d}:root .has-vk-color-success-background-color,:root .editor-styles-wrapper .has-vk-color-success-background-color{background-color:#28a745}:root .has-vk-color-info-background-color,:root .editor-styles-wrapper .has-vk-color-info-background-color{background-color:#17a2b8}:root .has-vk-color-warning-background-color,:root .editor-styles-wrapper .has-vk-color-warning-background-color{background-color:#ffc107}:root .has-vk-color-danger-background-color,:root .editor-styles-wrapper .has-vk-color-danger-background-color{background-color:#dc3545}:root .has-vk-color-light-background-color,:root .editor-styles-wrapper .has-vk-color-light-background-color{background-color:#f8f9fa}:root .has-vk-color-dark-background-color,:root .editor-styles-wrapper .has-vk-color-dark-background-color{background-color:#343a40}:root .has-vk-color-primary-color,:root .editor-styles-wrapper .has-vk-color-primary-color{color:var(--vk-color-primary)}:root .has-vk-color-secondary-color,:root .editor-styles-wrapper .has-vk-color-secondary-color{color:#6c757d}:root .has-vk-color-success-color,:root .editor-styles-wrapper .has-vk-color-success-color{color:#28a745}:root .has-vk-color-info-color,:root .editor-styles-wrapper .has-vk-color-info-color{color:#17a2b8}:root .has-vk-color-warning-color,:root .editor-styles-wrapper .has-vk-color-warning-color{color:#ffc107}:root .has-vk-color-danger-color,:root .editor-styles-wrapper .has-vk-color-danger-color{color:#dc3545}:root .has-vk-color-light-color,:root .editor-styles-wrapper .has-vk-color-light-color{color:#f8f9fa}:root .has-vk-color-dark-color,:root .editor-styles-wrapper .has-vk-color-dark-color{color:#343a40}.vk_button,.editor-styles-wrapper .vk_button{-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:0;margin-bottom:5px;text-align:center}.vk_button-color-custom a:hover,.editor-styles-wrapper .vk_button-color-custom a:hover{opacity:.8;-webkit-box-shadow:0 0 0 .2rem rgba(171,184,195,.25);box-shadow:0 0 0 .2rem rgba(171,184,195,.25)}.vk_button-color-custom .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button-color-custom .vk_button_link-type-text:hover{-webkit-box-shadow:none;box-shadow:none}@media(max-width: 575.98px){.vk_button[class*=vk_button-width-mobile-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-mobile-] .vk_button_link{display:block;min-width:50px}.vk_button-width-mobile-25,.editor-styles-wrapper .vk_button-width-mobile-25{width:calc( 25% - 8px )}.vk_button-width-mobile-50,.editor-styles-wrapper .vk_button-width-mobile-50{width:calc( 50% - 8px )}.vk_button-width-mobile-75,.editor-styles-wrapper .vk_button-width-mobile-75{width:calc( 75% - 8px )}.vk_button-width-mobile-100,.editor-styles-wrapper .vk_button-width-mobile-100{width:100%}}@media(min-width: 576px)and (max-width: 991.98px){.vk_button[class*=vk_button-width-tablet-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-tablet-] .vk_button_link{display:block}.vk_button-width-tablet-25,.editor-styles-wrapper .vk_button-width-tablet-25{width:calc(25% - 8px)}.vk_button-width-tablet-50,.editor-styles-wrapper .vk_button-width-tablet-50{width:calc(50% - 8px)}.vk_button-width-tablet-75,.editor-styles-wrapper .vk_button-width-tablet-75{width:calc(75% - 8px)}.vk_button-width-tablet-100,.editor-styles-wrapper .vk_button-width-tablet-100{width:100%}}@media(min-width: 992px){.vk_button[class*=vk_button-width-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-] .vk_button_link{display:block}.vk_button-width-25,.editor-styles-wrapper .vk_button-width-25{width:calc(25% - 8px)}.vk_button-width-50,.editor-styles-wrapper .vk_button-width-50{width:calc(50% - 8px)}.vk_button-width-75,.editor-styles-wrapper .vk_button-width-75{width:calc(75% - 8px)}.vk_button-width-100,.editor-styles-wrapper .vk_button-width-100{width:100%}}.vk_button .btn.has-background:not(.has-text-color),.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color){color:#fff}.vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.vk_button .btn.has-background:not(.has-text-color).has-white-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-white-background-color{color:#212529}.vk_button .has-text-color.is-style-outline,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline{background-color:transparent;border:1px solid currentColor}.vk_button .has-text-color.is-style-outline:hover,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover{border:1px solid #fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color{background-color:#6c757d}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color{background-color:#28a745}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color{background-color:#17a2b8}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color{background-color:#ffc107}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color{background-color:#dc3545}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color{background-color:#f8f9fa}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color{background-color:#343a40}.vk_button .has-text-color.is-style-outline:hover.has-black-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-black-color{background-color:#000}.vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color{background-color:#abb8c3}.vk_button .has-text-color.is-style-outline:hover.has-white-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color{background-color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color{background-color:#f78da7}.vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color{background-color:#cf2e2e}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color{background-color:#ff6900}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color{background-color:#fcb900}.vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color{background-color:#7bdcb5}.vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color{background-color:#00d084}.vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color{background-color:#8ed1fc}.vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color{background-color:#0693e3}.vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color{background-color:#9b51e0}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color{background-color:var(--vk-color-primary-dark)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color{background-color:var(--vk-color-primary-vivid)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color{background-color:var(--vk-color-custom-1)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color{background-color:var(--vk-color-custom-2)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color{background-color:var(--vk-color-custom-3)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color{background-color:var(--vk-color-custom-4)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color{background-color:var(--vk-color-custom-5)}.vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption{color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption{color:#212529}.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption{text-decoration:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-underline-offset:2px;-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor;text-decoration-thickness:1px}.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption{color:#212529;text-decoration:none}.vk_button.vk_button-align-left,.editor-styles-wrapper .vk_button.vk_button-align-left{text-align:left}.vk_button.vk_button-align-center,.editor-styles-wrapper .vk_button.vk_button-align-center{text-align:center}.vk_button.vk_button-align-right,.editor-styles-wrapper .vk_button.vk_button-align-right{text-align:right}.vk_button.vk_button-align-block,.editor-styles-wrapper .vk_button.vk_button-align-block{display:block}.vk_button.vk_button-align-block .vk_button_link,.editor-styles-wrapper .vk_button.vk_button-align-block .vk_button_link{width:100%}.vk_button.vk_button-align-wide,.editor-styles-wrapper .vk_button.vk_button-align-wide{display:block;margin-left:auto;margin-right:auto;max-width:70%}.vk_button.vk_button-align-wide .vk_button_btn,.vk_button.vk_button-align-wide .btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .vk_button_btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .btn{display:block}.vk_button .vk_button_link,.editor-styles-wrapper .vk_button .vk_button_link{min-width:100px;min-height:25px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_button .vk_button_link-type-text,.editor-styles-wrapper .vk_button .vk_button_link-type-text{-webkit-box-shadow:none;box-shadow:none;padding:0}.vk_button .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button .vk_button_link-type-text:hover{background:none;-webkit-box-shadow:none;box-shadow:none}.vk_button .vk_button_link.btn,.editor-styles-wrapper .vk_button .vk_button_link.btn{padding:.6em 1.5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;text-decoration:none;font-size:calc( var(--vk-size-text) * 1 )}.vk_button .vk_button_link.btn-lg,.editor-styles-wrapper .vk_button .vk_button_link.btn-lg{font-size:calc( var(--vk-size-text) * 1.25 )}.vk_button .vk_button_link.btn-sm,.editor-styles-wrapper .vk_button .vk_button_link.btn-sm{font-size:calc( var(--vk-size-text) * .875 )}.vk_button .vk_button_link_before,.editor-styles-wrapper .vk_button .vk_button_link_before{margin-right:.7rem}.vk_button .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_after{margin-left:.7rem}.vk_button .vk_button_link_caption,.editor-styles-wrapper .vk_button .vk_button_link_caption{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_button .vk_button_link_caption .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_caption .vk_button_link_after{margin-right:0}.vk_button .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.vk_button .editor-rich-text,.editor-styles-wrapper .vk_button .editor-rich-text{display:inline-block}
|
1 |
+
:root .has-vk-color-primary-background-color,:root .has-undefined-background-color,:root .editor-styles-wrapper .has-vk-color-primary-background-color,:root .editor-styles-wrapper .has-undefined-background-color{background-color:var(--vk-color-primary)}:root .has-vk-color-secondary-background-color,:root .editor-styles-wrapper .has-vk-color-secondary-background-color{background-color:#6c757d}:root .has-vk-color-success-background-color,:root .editor-styles-wrapper .has-vk-color-success-background-color{background-color:#28a745}:root .has-vk-color-info-background-color,:root .editor-styles-wrapper .has-vk-color-info-background-color{background-color:#17a2b8}:root .has-vk-color-warning-background-color,:root .editor-styles-wrapper .has-vk-color-warning-background-color{background-color:#ffc107}:root .has-vk-color-danger-background-color,:root .editor-styles-wrapper .has-vk-color-danger-background-color{background-color:#dc3545}:root .has-vk-color-light-background-color,:root .editor-styles-wrapper .has-vk-color-light-background-color{background-color:#f8f9fa}:root .has-vk-color-dark-background-color,:root .editor-styles-wrapper .has-vk-color-dark-background-color{background-color:#343a40}:root .has-vk-color-primary-color,:root .editor-styles-wrapper .has-vk-color-primary-color{color:var(--vk-color-primary)}:root .has-vk-color-secondary-color,:root .editor-styles-wrapper .has-vk-color-secondary-color{color:#6c757d}:root .has-vk-color-success-color,:root .editor-styles-wrapper .has-vk-color-success-color{color:#28a745}:root .has-vk-color-info-color,:root .editor-styles-wrapper .has-vk-color-info-color{color:#17a2b8}:root .has-vk-color-warning-color,:root .editor-styles-wrapper .has-vk-color-warning-color{color:#ffc107}:root .has-vk-color-danger-color,:root .editor-styles-wrapper .has-vk-color-danger-color{color:#dc3545}:root .has-vk-color-light-color,:root .editor-styles-wrapper .has-vk-color-light-color{color:#f8f9fa}:root .has-vk-color-dark-color,:root .editor-styles-wrapper .has-vk-color-dark-color{color:#343a40}.vk_button,.editor-styles-wrapper .vk_button{-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:0;margin-bottom:5px;text-align:center}.vk_button-color-custom a:hover,.editor-styles-wrapper .vk_button-color-custom a:hover{opacity:.8;-webkit-box-shadow:0 0 0 .2rem rgba(171,184,195,.25);box-shadow:0 0 0 .2rem rgba(171,184,195,.25)}.vk_button-color-custom .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button-color-custom .vk_button_link-type-text:hover{-webkit-box-shadow:none;box-shadow:none}@media(max-width: 575.98px){.vk_button[class*=vk_button-width-mobile-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-mobile-] .vk_button_link{display:block;min-width:50px}.vk_button-width-mobile-25,.editor-styles-wrapper .vk_button-width-mobile-25{width:calc( 25% - 8px )}.vk_button-width-mobile-50,.editor-styles-wrapper .vk_button-width-mobile-50{width:calc( 50% - 8px )}.vk_button-width-mobile-75,.editor-styles-wrapper .vk_button-width-mobile-75{width:calc( 75% - 8px )}.vk_button-width-mobile-100,.editor-styles-wrapper .vk_button-width-mobile-100{width:100%}}@media(min-width: 576px)and (max-width: 991.98px){.vk_button[class*=vk_button-width-tablet-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-tablet-] .vk_button_link{display:block}.vk_button-width-tablet-25,.editor-styles-wrapper .vk_button-width-tablet-25{width:calc(25% - 8px)}.vk_button-width-tablet-50,.editor-styles-wrapper .vk_button-width-tablet-50{width:calc(50% - 8px)}.vk_button-width-tablet-75,.editor-styles-wrapper .vk_button-width-tablet-75{width:calc(75% - 8px)}.vk_button-width-tablet-100,.editor-styles-wrapper .vk_button-width-tablet-100{width:100%}}@media(min-width: 992px){.vk_button[class*=vk_button-width-] .vk_button_link,.editor-styles-wrapper .vk_button[class*=vk_button-width-] .vk_button_link{display:block}.vk_button-width-25,.editor-styles-wrapper .vk_button-width-25{width:calc(25% - 8px)}.vk_button-width-50,.editor-styles-wrapper .vk_button-width-50{width:calc(50% - 8px)}.vk_button-width-75,.editor-styles-wrapper .vk_button-width-75{width:calc(75% - 8px)}.vk_button-width-100,.editor-styles-wrapper .vk_button-width-100{width:100%}}.vk_button .btn.has-background:not(.has-text-color),.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color){color:#fff}.vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.vk_button .btn.has-background:not(.has-text-color).has-white-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-vk-color-light-background-color,.editor-styles-wrapper .vk_button .btn.has-background:not(.has-text-color).has-white-background-color{color:#212529}.vk_button .has-text-color.is-style-outline,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline{background-color:transparent;border:1px solid currentColor}.vk_button .has-text-color.is-style-outline:hover,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover{border:1px solid #fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-secondary-color{background-color:#6c757d}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-success-color{background-color:#28a745}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-info-color{background-color:#17a2b8}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-warning-color{background-color:#ffc107}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-danger-color{background-color:#dc3545}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color{background-color:#f8f9fa}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-dark-color{background-color:#343a40}.vk_button .has-text-color.is-style-outline:hover.has-black-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-black-color{background-color:#000}.vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-cyan-bluish-gray-color{background-color:#abb8c3}.vk_button .has-text-color.is-style-outline:hover.has-white-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color{background-color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-pink-color{background-color:#f78da7}.vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-red-color{background-color:#cf2e2e}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-orange-color{background-color:#ff6900}.vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-luminous-vivid-amber-color{background-color:#fcb900}.vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-light-green-cyan-color{background-color:#7bdcb5}.vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-green-cyan-color{background-color:#00d084}.vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-pale-cyan-blue-color{background-color:#8ed1fc}.vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-cyan-blue-color{background-color:#0693e3}.vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vivid-purple-color{background-color:#9b51e0}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-color{background-color:var(--vk-color-primary)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-dark-color{background-color:var(--vk-color-primary-dark)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-primary-vivid-color{background-color:var(--vk-color-primary-vivid)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-1-color{background-color:var(--vk-color-custom-1)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-2-color{background-color:var(--vk-color-custom-2)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-3-color{background-color:var(--vk-color-custom-3)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-4-color{background-color:var(--vk-color-custom-4)}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-custom-5-color{background-color:var(--vk-color-custom-5)}.vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover .vk_button_link_subCaption{color:#fff}.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-vk-color-light-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.is-style-outline:hover.has-white-color .vk_button_link_subCaption{color:#212529}.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover .vk_button_link_subCaption{text-decoration:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-underline-offset:2px;-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor;text-decoration-thickness:1px}.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-vk-color-light-background-color .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_before,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_txt,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_after,.editor-styles-wrapper .vk_button .has-text-color.vk_button_link-type-text:hover.has-white-color .vk_button_link_subCaption{color:#212529;text-decoration:none}.vk_button.vk_button-align-left,.editor-styles-wrapper .vk_button.vk_button-align-left{text-align:left}.vk_button.vk_button-align-center,.editor-styles-wrapper .vk_button.vk_button-align-center{text-align:center}.vk_button.vk_button-align-right,.editor-styles-wrapper .vk_button.vk_button-align-right{text-align:right}.vk_button.vk_button-align-block,.editor-styles-wrapper .vk_button.vk_button-align-block{display:block}.vk_button.vk_button-align-block .vk_button_link,.editor-styles-wrapper .vk_button.vk_button-align-block .vk_button_link{width:100%}.vk_button.vk_button-align-wide,.editor-styles-wrapper .vk_button.vk_button-align-wide{display:block;margin-left:auto;margin-right:auto;max-width:70%}.vk_button.vk_button-align-wide .vk_button_btn,.vk_button.vk_button-align-wide .btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .vk_button_btn,.editor-styles-wrapper .vk_button.vk_button-align-wide .btn{display:block}.vk_button .vk_button_link,.editor-styles-wrapper .vk_button .vk_button_link{min-width:100px;min-height:25px;-webkit-box-sizing:border-box;box-sizing:border-box}.vk_button .vk_button_link-type-text,.editor-styles-wrapper .vk_button .vk_button_link-type-text{-webkit-box-shadow:none;box-shadow:none;padding:0}.vk_button .vk_button_link-type-text:hover,.editor-styles-wrapper .vk_button .vk_button_link-type-text:hover{background:none;-webkit-box-shadow:none;box-shadow:none}.vk_button .vk_button_link.btn,.editor-styles-wrapper .vk_button .vk_button_link.btn{padding:.6em 1.5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;text-decoration:none;font-size:calc( var(--vk-size-text) * 1 )}.vk_button .vk_button_link.btn-lg,.editor-styles-wrapper .vk_button .vk_button_link.btn-lg{font-size:calc( var(--vk-size-text) * 1.25 )}.vk_button .vk_button_link.btn-sm,.editor-styles-wrapper .vk_button .vk_button_link.btn-sm{font-size:calc( var(--vk-size-text) * .875 )}.vk_button .vk_button_link_before,.editor-styles-wrapper .vk_button .vk_button_link_before{margin-right:.7rem}.vk_button .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_after{margin-left:.7rem}.vk_button .vk_button_link_caption,.editor-styles-wrapper .vk_button .vk_button_link_caption{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vk_button .vk_button_link_caption .vk_button_link_after,.editor-styles-wrapper .vk_button .vk_button_link_caption .vk_button_link_after{margin-right:0}.vk_button .vk_button_link_subCaption,.editor-styles-wrapper .vk_button .vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.vk_button .editor-rich-text,.editor-styles-wrapper .vk_button .editor-rich-text{display:inline-block}
|
inc/template-tags/package/template-tags-veu-old.php
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
このファイルの元ファイルは
|
5 |
-
https://github.com/vektor-inc/vektor-wp-libraries
|
6 |
-
にあります。修正の際は上記リポジトリのデータを修正してください。
|
7 |
-
*/
|
8 |
-
|
9 |
-
function vkExUnit_get_directory( $path = '' ) {
|
10 |
-
return veu_get_directory( $path );
|
11 |
-
}
|
12 |
-
function vkExUnit_get_directory_uri( $path = '' ) {
|
13 |
-
return veu_get_directory_uri( $path );
|
14 |
-
}
|
15 |
-
|
16 |
-
if ( ! function_exists( 'vkExUnit_get_common_options' ) ) {
|
17 |
-
function vkExUnit_get_common_options() {
|
18 |
-
return veu_get_common_options();
|
19 |
-
}
|
20 |
-
}
|
21 |
-
if ( ! function_exists( 'vkExUnit_is_excerpt' ) ) {
|
22 |
-
function vkExUnit_is_excerpt() {
|
23 |
-
return vk_is_excerpt();
|
24 |
-
}
|
25 |
-
}
|
26 |
-
|
27 |
-
if ( ! function_exists( 'vkExUnit_get_name' ) ) {
|
28 |
-
function vkExUnit_get_name() {
|
29 |
-
return veu_get_name();
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
if ( ! function_exists( 'vkExUnit_get_little_short_name' ) ) {
|
34 |
-
function vkExUnit_get_little_short_name() {
|
35 |
-
return veu_get_little_short_name();
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
if ( ! function_exists( 'vkExUnit_get_short_name' ) ) {
|
40 |
-
function vkExUnit_get_short_name() {
|
41 |
-
return veu_get_short_name();
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
if ( ! function_exists( 'vkExUnit_get_page_for_posts' ) ) {
|
46 |
-
function vkExUnit_get_page_for_posts() {
|
47 |
-
return vk_get_page_for_posts();
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
if ( ! function_exists( 'vkExUnit_get_post_type' ) ) {
|
52 |
-
function vkExUnit_get_post_type() {
|
53 |
-
return vk_get_post_type();
|
54 |
-
}
|
55 |
-
}
|
56 |
-
|
57 |
-
if ( ! function_exists( 'vkExUnit_get_the_archive_title' ) ) {
|
58 |
-
function vkExUnit_get_the_archive_title() {
|
59 |
-
$title = vk_get_the_archive_title();
|
60 |
-
return apply_filters( 'vkExUnit_get_the_archive_title', $title );
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
if ( ! function_exists( 'vkExUnit_get_pageDescription' ) ) {
|
65 |
-
function vkExUnit_get_pageDescription() {
|
66 |
-
$title = vk_get_page_description();
|
67 |
-
return apply_filters( 'vkExUnit_pageDescriptionCustom', $title );
|
68 |
-
}
|
69 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/template-tags/package/template-tags-veu.php
DELETED
@@ -1,252 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
このファイルの元ファイルは
|
5 |
-
https://github.com/vektor-inc/vektor-wp-libraries
|
6 |
-
にあります。修正の際は上記リポジトリのデータを修正してください。
|
7 |
-
*/
|
8 |
-
|
9 |
-
/**
|
10 |
-
* ExUnit固有の関数だが、ExUnitの機能を複製している他のプラグインにも使用されるものもある
|
11 |
-
*/
|
12 |
-
|
13 |
-
function veu_get_common_options() {
|
14 |
-
$dafault = veu_get_common_options_default();
|
15 |
-
$options = get_option( 'vkExUnit_common_options' );
|
16 |
-
$options = wp_parse_args( $options, $dafault );
|
17 |
-
return apply_filters( 'vkExUnit_common_options', $options );
|
18 |
-
}
|
19 |
-
|
20 |
-
function veu_get_common_options_default() {
|
21 |
-
// hook veu_package_is_enable()
|
22 |
-
// パッケージの情報を取得してデフォルトの配列を作成
|
23 |
-
$defaults = array();
|
24 |
-
$packages = veu_get_packages();
|
25 |
-
foreach ( $packages as $key => $value ) {
|
26 |
-
$name = $value['name'];
|
27 |
-
$default_options[ 'active_' . $name ] = $value['default'];
|
28 |
-
}
|
29 |
-
$default_options['post_metabox_individual'] = false;
|
30 |
-
$default_options['delete_options_at_deactivate'] = false;
|
31 |
-
$default_options['content_filter_state'] = 'content';
|
32 |
-
return apply_filters( 'vkExUnit_common_options_default', $default_options );
|
33 |
-
}
|
34 |
-
|
35 |
-
/*
|
36 |
-
-------------------------------------------*/
|
37 |
-
/*
|
38 |
-
validate
|
39 |
-
/*-------------------------------------------*/
|
40 |
-
|
41 |
-
function veu_common_options_validate( $input ) {
|
42 |
-
/*
|
43 |
-
入力された値の無害化
|
44 |
-
ここでは機能の有効化有無に関する項目が殆どで、手動で項目を記載すると機能の増減の際に項目の編集漏れが出るため、
|
45 |
-
veu_get_common_options_default() の中で package に登録してある項目・デフォルト値を読み込み、それをループ処理する
|
46 |
-
*/
|
47 |
-
$defaults = veu_get_common_options_default();
|
48 |
-
foreach ( $defaults as $key => $default_value ) {
|
49 |
-
// 'content_filter_state' 以外は true か false しか返ってこない
|
50 |
-
if ( $key != 'content_filter_state' ) {
|
51 |
-
$output[ $key ] = ( isset( $input[ $key ] ) ) ? esc_html( $input[ $key ] ) : $default_value;
|
52 |
-
} else {
|
53 |
-
$output['content_filter_state'] = ( ! empty( $input['content_filter_state'] ) ) ? 'loop_end' : 'content';
|
54 |
-
}
|
55 |
-
}
|
56 |
-
|
57 |
-
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
if ( ! function_exists( 'veu_get_capability_required' ) ) {
|
62 |
-
function veu_get_capability_required() {
|
63 |
-
return add_filter( 'veu_get_capability_required', 'edit_theme_options' );
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
if ( ! function_exists( 'veu_get_systemlogo_html' ) ) {
|
68 |
-
function veu_get_systemlogo_html() {
|
69 |
-
$logo = '<div class="logo_exUnit">';
|
70 |
-
$logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', veu_get_directory_uri( '/assets/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" />';
|
71 |
-
$logo .= '</div>';
|
72 |
-
$logo = apply_filters( 'veu_get_systemlogo_html', $logo );
|
73 |
-
return $logo;
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
if ( ! function_exists( 'veu_content_filter_state' ) ) {
|
78 |
-
function veu_content_filter_state() {
|
79 |
-
// $opt = veu_get_common_options();
|
80 |
-
// return empty( $opt['content_filter_state'] )? 'content' : $opt['content_filter_state'];
|
81 |
-
// コンテンツループ下部に出力すると誤動作が多いので、一旦コンテンツ下部出力に強制変更
|
82 |
-
return 'content';
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
if ( ! function_exists( 'veu_get_name' ) ) {
|
87 |
-
function veu_get_name() {
|
88 |
-
$system_name = apply_filters( 'veu_get_name', 'VK All in one Expansion Unit' );
|
89 |
-
return $system_name;
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
if ( ! function_exists( 'veu_get_little_short_name' ) ) {
|
94 |
-
function veu_get_little_short_name() {
|
95 |
-
$little_short_name = apply_filters( 'veu_get_little_short_name', 'ExUnit' );
|
96 |
-
return $little_short_name;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
if ( ! function_exists( 'veu_get_short_name' ) ) {
|
101 |
-
function veu_get_short_name() {
|
102 |
-
$short_name = apply_filters( 'veu_get_short_name', 'VK' );
|
103 |
-
return $short_name;
|
104 |
-
}
|
105 |
-
}
|
106 |
-
if ( ! function_exists( 'veu_get_prefix' ) ) {
|
107 |
-
function veu_get_prefix() {
|
108 |
-
$prefix = apply_filters( 'veu_get_prefix', 'VK' );
|
109 |
-
if ( $prefix ) {
|
110 |
-
$prefix .= ' ';
|
111 |
-
}
|
112 |
-
return $prefix;
|
113 |
-
}
|
114 |
-
}
|
115 |
-
if ( ! function_exists( 'veu_get_prefix_customize_panel' ) ) {
|
116 |
-
function veu_get_prefix_customize_panel() {
|
117 |
-
$prefix = apply_filters( 'veu_get_prefix_customize_panel', 'ExUnit' );
|
118 |
-
if ( $prefix ) {
|
119 |
-
$prefix .= ' ';
|
120 |
-
}
|
121 |
-
return $prefix;
|
122 |
-
}
|
123 |
-
}
|
124 |
-
|
125 |
-
if ( ! function_exists( 'veu_is_cta_active' ) ) {
|
126 |
-
function veu_is_cta_active() {
|
127 |
-
if ( vk_is_plugin_active( 'vk-all-in-one-expansion-unit/vkExUnit.php' ) ) {
|
128 |
-
$veu_common_options = get_option( 'vkExUnit_common_options' );
|
129 |
-
if ( isset( $veu_common_options['active_call_to_action'] ) && $veu_common_options['active_call_to_action'] ) {
|
130 |
-
return true;
|
131 |
-
}
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
require_once dirname( __FILE__ ) . '/template-tags-veu-old.php';
|
137 |
-
|
138 |
-
|
139 |
-
function veu_is_parent_metabox_display() {
|
140 |
-
$flag = apply_filters( 'veu_parent_metabox_activation', false );
|
141 |
-
if ( ! $flag ) {
|
142 |
-
$flag = veu_is_parent_metabox_display_maual();
|
143 |
-
}
|
144 |
-
return $flag;
|
145 |
-
}
|
146 |
-
|
147 |
-
function veu_is_insert_item_metabox_display() {
|
148 |
-
$options = veu_get_common_options();
|
149 |
-
$admin_post_type = vk_get_post_type();
|
150 |
-
|
151 |
-
/*
|
152 |
-
childPageIndex
|
153 |
-
/*-------------------------------------------*/
|
154 |
-
if ( ! empty( $options['active_childPageIndex'] ) && $admin_post_type['slug'] == 'page' ) {
|
155 |
-
return true;
|
156 |
-
}
|
157 |
-
/*
|
158 |
-
pageList_ancestor
|
159 |
-
/*-------------------------------------------*/
|
160 |
-
if ( ! empty( $options['active_pageList_ancestor'] ) && $admin_post_type['slug'] == 'page' ) {
|
161 |
-
return true;
|
162 |
-
}
|
163 |
-
/*
|
164 |
-
contact_section
|
165 |
-
/*-------------------------------------------*/
|
166 |
-
if ( ! empty( $options['active_contact_section'] ) && $admin_post_type['slug'] == 'page' ) {
|
167 |
-
return true;
|
168 |
-
}
|
169 |
-
/*
|
170 |
-
HTML Sitemap
|
171 |
-
/*-------------------------------------------*/
|
172 |
-
if ( ! empty( $options['active_sitemap_page'] ) && $admin_post_type['slug'] == 'page' ) {
|
173 |
-
return true;
|
174 |
-
}
|
175 |
-
}
|
176 |
-
|
177 |
-
function veu_is_parent_metabox_display_maual() {
|
178 |
-
$flag = false;
|
179 |
-
$options = veu_get_common_options();
|
180 |
-
$admin_post_type = vk_get_post_type();
|
181 |
-
|
182 |
-
$insert_item_metabox_display = veu_is_insert_item_metabox_display();
|
183 |
-
if ( $insert_item_metabox_display ) {
|
184 |
-
return true;
|
185 |
-
}
|
186 |
-
|
187 |
-
/*
|
188 |
-
Meta KeyWords
|
189 |
-
/*-------------------------------------------*/
|
190 |
-
if ( ! empty( $options['active_metaKeyword'] ) ) {
|
191 |
-
return true;
|
192 |
-
}
|
193 |
-
|
194 |
-
/*
|
195 |
-
CSS Customize
|
196 |
-
/*-------------------------------------------*/
|
197 |
-
if ( ! empty( $options['active_css_customize'] ) ) {
|
198 |
-
return true;
|
199 |
-
}
|
200 |
-
|
201 |
-
/*
|
202 |
-
CTA
|
203 |
-
/*-------------------------------------------*/
|
204 |
-
if ( ! empty( $options['active_call_to_action'] ) ) {
|
205 |
-
return true;
|
206 |
-
}
|
207 |
-
|
208 |
-
/*
|
209 |
-
NoIndex
|
210 |
-
/*-------------------------------------------*/
|
211 |
-
if ( ! empty( $options['active_noindex'] ) ) {
|
212 |
-
return true;
|
213 |
-
}
|
214 |
-
|
215 |
-
/*
|
216 |
-
Auto Eye Catch
|
217 |
-
/*-------------------------------------------*/
|
218 |
-
if ( ! empty( $options['active_auto_eyecatch'] ) ) {
|
219 |
-
return true;
|
220 |
-
}
|
221 |
-
|
222 |
-
/*
|
223 |
-
SNS
|
224 |
-
/*-------------------------------------------*/
|
225 |
-
|
226 |
-
if ( ! empty( $options['active_sns'] ) ) {
|
227 |
-
$sns_options = veu_get_sns_options();
|
228 |
-
|
229 |
-
// OGタグ出力機能がONの時は タイトルタグ 書き換え欄の出力が必要
|
230 |
-
if ( ! empty( $sns_options['enableOGTags'] ) || ! empty( $sns_options['enableTwitterCardTagss'] ) ) {
|
231 |
-
return true;
|
232 |
-
}
|
233 |
-
// シェアボタンの表示
|
234 |
-
if ( ! empty( $sns_options['enableSnsBtns'] ) ) {
|
235 |
-
// 表示除外投稿タイプの配列指定がある場合
|
236 |
-
if ( is_array( $sns_options['snsBtn_exclude_post_types'] ) ) {
|
237 |
-
// 表示除外投稿タイプをループ
|
238 |
-
foreach ( $sns_options['snsBtn_exclude_post_types'] as $loop_post_type => $value ) {
|
239 |
-
// 除外対象じゃない投稿タイプの時
|
240 |
-
if ( ! $value && $admin_post_type['slug'] == $loop_post_type ) {
|
241 |
-
return true;
|
242 |
-
}
|
243 |
-
}
|
244 |
-
} else {
|
245 |
-
// SNSを表示しない投稿タイプの指定がない場合
|
246 |
-
return true;
|
247 |
-
}
|
248 |
-
}
|
249 |
-
}
|
250 |
-
|
251 |
-
return $flag;
|
252 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/template-tags/package/template-tags.php
DELETED
@@ -1,438 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
このファイルの元ファイルは
|
5 |
-
https://github.com/vektor-inc/vektor-wp-libraries
|
6 |
-
にあります。修正の際は上記リポジトリのデータを修正してください。
|
7 |
-
*/
|
8 |
-
|
9 |
-
/*
|
10 |
-
Chack use post top page
|
11 |
-
Chack post type info
|
12 |
-
Archive title
|
13 |
-
Page description
|
14 |
-
vk_is_plugin_active
|
15 |
-
Sanitize
|
16 |
-
Post Type Check Box
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! function_exists( 'vk_is_template_tags_exist' ) ) {
|
20 |
-
function vk_is_template_tags_exist() {
|
21 |
-
return true;
|
22 |
-
}
|
23 |
-
}
|
24 |
-
|
25 |
-
|
26 |
-
if ( ! function_exists( 'vk_is_excerpt' ) ) {
|
27 |
-
function vk_is_excerpt() {
|
28 |
-
global $wp_current_filter;
|
29 |
-
if ( in_array( 'get_the_excerpt', (array) $wp_current_filter ) ) {
|
30 |
-
return true; }
|
31 |
-
return false;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
/*
|
37 |
-
Chack use post top page
|
38 |
-
/*-------------------------------------------*/
|
39 |
-
if ( ! function_exists( 'vk_get_page_for_posts' ) ) {
|
40 |
-
function vk_get_page_for_posts() {
|
41 |
-
// Get post top page by setting display page.
|
42 |
-
$page_for_posts['post_top_id'] = get_option( 'page_for_posts' );
|
43 |
-
|
44 |
-
// Set use post top page flag.
|
45 |
-
$page_for_posts['post_top_use'] = ( isset( $page_for_posts['post_top_id'] ) && $page_for_posts['post_top_id'] ) ? true : false;
|
46 |
-
|
47 |
-
// When use post top page that get post top page name.
|
48 |
-
$page_for_posts['post_top_name'] = ( $page_for_posts['post_top_use'] ) ? get_the_title( $page_for_posts['post_top_id'] ) : '';
|
49 |
-
|
50 |
-
return $page_for_posts;
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
|
55 |
-
/*
|
56 |
-
Chack post type info
|
57 |
-
/*-------------------------------------------*/
|
58 |
-
if ( ! function_exists( 'vk_get_post_type' ) ) {
|
59 |
-
function vk_get_post_type() {
|
60 |
-
|
61 |
-
$postType = array();
|
62 |
-
|
63 |
-
$url = $_SERVER['REQUEST_URI'];
|
64 |
-
|
65 |
-
// 管理画面の投稿タイプ
|
66 |
-
// ※ phpunitで is_admin()判定が効かない場合のため strpos( $url, 'wp-admin' ) を使用
|
67 |
-
if ( is_admin() || strpos( $url, 'wp-admin' ) ) {
|
68 |
-
global $post;
|
69 |
-
$postType['slug'] = get_post_type( $post );
|
70 |
-
if ( ! $postType['slug'] ) {
|
71 |
-
if ( ! empty( $_GET['post_type'] ) ) {
|
72 |
-
$postType['slug'] = $_GET['post_type'];
|
73 |
-
} elseif ( ! empty( $_GET['post'] ) ) {
|
74 |
-
$admin_post = get_post( $_GET['post'] );
|
75 |
-
if ( ! empty( $admin_post->post_type ) ) {
|
76 |
-
$postType['slug'] = $admin_post->post_type;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
return $postType;
|
81 |
-
}
|
82 |
-
|
83 |
-
/*-------------------------------------------*/
|
84 |
-
global $wp_query;
|
85 |
-
$page_for_posts = vk_get_page_for_posts();
|
86 |
-
$postType['slug'] = get_post_type();
|
87 |
-
if ( ! $postType['slug'] ) {
|
88 |
-
|
89 |
-
if ( isset( $wp_query->query_vars['post_type'] ) && $wp_query->query_vars['post_type'] ) {
|
90 |
-
|
91 |
-
$postType['slug'] = $wp_query->query_vars['post_type'];
|
92 |
-
|
93 |
-
} else {
|
94 |
-
// Case of no post type query
|
95 |
-
if ( ! empty( $wp_query->queried_object->taxonomy ) ) {
|
96 |
-
// Case of tax archive and no posts
|
97 |
-
$taxonomy = $wp_query->queried_object->taxonomy;
|
98 |
-
$postType['slug'] = get_taxonomy( $taxonomy )->object_type[0];
|
99 |
-
|
100 |
-
} else {
|
101 |
-
// Case of no tax query and no post type query and no posts
|
102 |
-
$postType['slug'] = 'post';
|
103 |
-
|
104 |
-
} // if ( ! empty( $wp_query->queried_object->taxonomy ) ) {
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
// Get post type name
|
109 |
-
/*-------------------------------------------*/
|
110 |
-
$post_type_object = get_post_type_object( $postType['slug'] );
|
111 |
-
if ( $post_type_object ) {
|
112 |
-
$allowed_html = array(
|
113 |
-
'span' => array( 'class' => array() ),
|
114 |
-
'b' => array(),
|
115 |
-
);
|
116 |
-
if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
|
117 |
-
$postType['name'] = wp_kses( get_the_title( $page_for_posts['post_top_id'] ), $allowed_html );
|
118 |
-
} else {
|
119 |
-
$postType['name'] = esc_html( $post_type_object->labels->name );
|
120 |
-
}
|
121 |
-
}
|
122 |
-
|
123 |
-
// Get post type archive url
|
124 |
-
/*-------------------------------------------*/
|
125 |
-
if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
|
126 |
-
$postType['url'] = get_the_permalink( $page_for_posts['post_top_id'] );
|
127 |
-
} else {
|
128 |
-
$postType['url'] = get_post_type_archive_link( $postType['slug'] );
|
129 |
-
}
|
130 |
-
|
131 |
-
$postType = apply_filters( 'vkExUnit_postType_custom', $postType );
|
132 |
-
return $postType;
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
/*
|
137 |
-
Archive title
|
138 |
-
/*-------------------------------------------*/
|
139 |
-
if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
|
140 |
-
function vk_get_the_archive_title() {
|
141 |
-
if ( is_category() ) {
|
142 |
-
$title = single_cat_title( '', false );
|
143 |
-
} elseif ( is_tag() ) {
|
144 |
-
$title = single_tag_title( '', false );
|
145 |
-
} elseif ( is_author() ) {
|
146 |
-
// translators:
|
147 |
-
$title = sprintf( __( 'Author: %s', 'vk-blocks' ), '<span class="vcard">' . get_the_author() . '</span>' );
|
148 |
-
} elseif ( is_year() ) {
|
149 |
-
$title = get_the_date( _x( 'Y', 'yearly archives date format', 'vk-blocks' ) );
|
150 |
-
} elseif ( is_month() ) {
|
151 |
-
$title = get_the_date( _x( 'F Y', 'monthly archives date format', 'vk-blocks' ) );
|
152 |
-
} elseif ( is_day() ) {
|
153 |
-
$title = get_the_date( _x( 'F j, Y', 'daily archives date format', 'vk-blocks' ) );
|
154 |
-
} elseif ( is_tax( 'post_format' ) ) {
|
155 |
-
if ( is_tax( 'post_format', 'post-format-aside' ) ) {
|
156 |
-
$title = _x( 'Asides', 'post format archive title' );
|
157 |
-
} elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) {
|
158 |
-
$title = _x( 'Galleries', 'post format archive title' );
|
159 |
-
} elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
|
160 |
-
$title = _x( 'Images', 'post format archive title' );
|
161 |
-
} elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
|
162 |
-
$title = _x( 'Videos', 'post format archive title' );
|
163 |
-
} elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
|
164 |
-
$title = _x( 'Quotes', 'post format archive title' );
|
165 |
-
} elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
|
166 |
-
$title = _x( 'Links', 'post format archive title' );
|
167 |
-
} elseif ( is_tax( 'post_format', 'post-format-status' ) ) {
|
168 |
-
$title = _x( 'Statuses', 'post format archive title' );
|
169 |
-
} elseif ( is_tax( 'post_format', 'post-format-audio' ) ) {
|
170 |
-
$title = _x( 'Audio', 'post format archive title' );
|
171 |
-
} elseif ( is_tax( 'post_format', 'post-format-chat' ) ) {
|
172 |
-
$title = _x( 'Chats', 'post format archive title' );
|
173 |
-
}
|
174 |
-
} elseif ( is_post_type_archive() ) {
|
175 |
-
$title = post_type_archive_title( '', false );
|
176 |
-
} elseif ( is_tax() ) {
|
177 |
-
$title = single_term_title( '', false );
|
178 |
-
} elseif ( is_home() && ! is_front_page() ) {
|
179 |
-
$vkExUnit_page_for_posts = vkExUnit_get_page_for_posts();
|
180 |
-
$title = $vkExUnit_page_for_posts['post_top_name'];
|
181 |
-
} else {
|
182 |
-
global $wp_query;
|
183 |
-
// get post type
|
184 |
-
$postType = $wp_query->query_vars['post_type'];
|
185 |
-
if ( $postType ) {
|
186 |
-
$title = get_post_type_object( $postType )->labels->name;
|
187 |
-
} else {
|
188 |
-
$title = __( 'Archives', 'vk-blocks' );
|
189 |
-
}
|
190 |
-
}
|
191 |
-
return apply_filters( 'vk_get_the_archive_title', $title );
|
192 |
-
}
|
193 |
-
}
|
194 |
-
|
195 |
-
|
196 |
-
/*
|
197 |
-
Page description
|
198 |
-
/*-------------------------------------------*/
|
199 |
-
if ( ! function_exists( 'vk_get_page_description' ) ) {
|
200 |
-
function vk_get_page_description() {
|
201 |
-
global $wp_query;
|
202 |
-
$post = $wp_query->get_queried_object();
|
203 |
-
if ( is_front_page() ) {
|
204 |
-
if ( isset( $post->post_excerpt ) && $post->post_excerpt ) {
|
205 |
-
$page_description = get_the_excerpt();
|
206 |
-
} else {
|
207 |
-
$page_description = get_bloginfo( 'description' );
|
208 |
-
}
|
209 |
-
} elseif ( is_home() ) {
|
210 |
-
$page_for_posts = vk_get_page_for_posts();
|
211 |
-
if ( $page_for_posts['post_top_use'] ) {
|
212 |
-
$page = get_post( $page_for_posts['post_top_id'] );
|
213 |
-
$page_description = $page->post_excerpt;
|
214 |
-
} else {
|
215 |
-
$page_description = get_bloginfo( 'description' );
|
216 |
-
}
|
217 |
-
} elseif ( is_category() || is_tax() ) {
|
218 |
-
if ( ! $post->description ) {
|
219 |
-
// translators:
|
220 |
-
$page_description = sprintf( __( 'About %s', 'vk-blocks' ), single_cat_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
221 |
-
} else {
|
222 |
-
$page_description = $post->description;
|
223 |
-
}
|
224 |
-
} elseif ( is_tag() ) {
|
225 |
-
$page_description = strip_tags( tag_description() );
|
226 |
-
$page_description = str_replace( array( "\r\n", "\r", "\n" ), '', $page_description ); // delete br
|
227 |
-
if ( ! $page_description ) {
|
228 |
-
$page_description = sprintf( __( 'About %s', 'vk-blocks' ), single_tag_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
229 |
-
}
|
230 |
-
} elseif ( is_archive() ) {
|
231 |
-
if ( is_year() ) {
|
232 |
-
$description_date = get_the_date( _x( 'Y', 'yearly archives date format', 'vk-blocks' ) );
|
233 |
-
// translators:
|
234 |
-
$page_description = sprintf( _x( 'Article of %s.', 'Yearly archive description', 'vk-blocks' ), $description_date );
|
235 |
-
$page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
236 |
-
} elseif ( is_month() ) {
|
237 |
-
$description_date = get_the_date( _x( 'F Y', 'monthly archives date format', 'vk-blocks' ) );
|
238 |
-
// translators:
|
239 |
-
$page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-blocks' ), $description_date );
|
240 |
-
// translators:
|
241 |
-
$page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
242 |
-
} elseif ( is_author() ) {
|
243 |
-
$userObj = get_queried_object();
|
244 |
-
// translators:
|
245 |
-
$page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-blocks' ), esc_html( $userObj->display_name ) );
|
246 |
-
$page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
247 |
-
} else {
|
248 |
-
$postType = get_post_type();
|
249 |
-
if ( $postType ) {
|
250 |
-
$page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-blocks' ), esc_html( get_post_type_object( $postType )->label ) );
|
251 |
-
$page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
|
252 |
-
} else {
|
253 |
-
$page_description = get_bloginfo( 'description' );
|
254 |
-
}
|
255 |
-
}
|
256 |
-
} elseif ( is_page() || is_single() ) {
|
257 |
-
if ( $post->post_excerpt ) {
|
258 |
-
$page_description = $post->post_excerpt;
|
259 |
-
} else {
|
260 |
-
$page_description = $post->post_content;
|
261 |
-
}
|
262 |
-
} else {
|
263 |
-
$page_description = get_bloginfo( 'description' );
|
264 |
-
}
|
265 |
-
global $paged;
|
266 |
-
if ( $paged != '0' ) {
|
267 |
-
// translators:
|
268 |
-
$page_description = '[' . sprintf( __( 'Page of %s', 'vk-blocks' ), $paged ) . '] ' . $page_description;
|
269 |
-
}
|
270 |
-
// This filter (vkExUnit_pageDescriptionCustom) is deprecated.
|
271 |
-
$page_description = apply_filters( 'vkExUnit_pageDescriptionCustom', $page_description );
|
272 |
-
|
273 |
-
/*
|
274 |
-
いままで
|
275 |
-
* 画像ギャラリーなどのショートコードがそのまま表示される
|
276 |
-
* ショートコードの中の引数の "" が入るとタグの終了がおかしくなりシェアやRSSで問題が出る
|
277 |
-
という理由で do_shortcode で実行した後 html タグを除去していた
|
278 |
-
$page_description = esc_html( strip_tags( do_shortcode( $page_description ) ) );
|
279 |
-
|
280 |
-
しかし、ここで do_shortcode 入れるとWooCommerceなどのエラーメッセージが正常に表示されなくなる。
|
281 |
-
なので、ショートコードの実行は行わないが、ショートコードの引き値としての " は不具合の原因となるので
|
282 |
-
" esc_attr でエスケープを実施する
|
283 |
-
本来ショートコードが出る場合は適切に抜粋欄に記入して運用でカバーする。
|
284 |
-
*/
|
285 |
-
// この関数は get_the_ ではないので関数内では esc_attr() は行わない
|
286 |
-
$page_description = strip_tags( $page_description );
|
287 |
-
$page_description = strip_shortcodes( $page_description );
|
288 |
-
|
289 |
-
if ( is_singular() ) {
|
290 |
-
$page_description = mb_substr( $page_description, 0, 240 ); // kill tags and trim 240 chara
|
291 |
-
}
|
292 |
-
|
293 |
-
// Delete Line break
|
294 |
-
$page_description = str_replace( array( "\r\n", "\r", "\n", "\t" ), '', $page_description );
|
295 |
-
|
296 |
-
return apply_filters( 'vk_get_page_description', $page_description );
|
297 |
-
}
|
298 |
-
}
|
299 |
-
|
300 |
-
/*
|
301 |
-
vk_is_plugin_active
|
302 |
-
/*-------------------------------------------*/
|
303 |
-
if ( ! function_exists( 'vk_is_plugin_active' ) ) {
|
304 |
-
function vk_is_plugin_active( $plugin_path = '' ) {
|
305 |
-
if ( function_exists( 'is_plugin_active' ) ) {
|
306 |
-
return is_plugin_active( $plugin_path );
|
307 |
-
} else {
|
308 |
-
return in_array(
|
309 |
-
$plugin_path,
|
310 |
-
get_option( 'active_plugins' )
|
311 |
-
);
|
312 |
-
}
|
313 |
-
}
|
314 |
-
}
|
315 |
-
|
316 |
-
/*
|
317 |
-
Sanitize
|
318 |
-
/*-------------------------------------------*/
|
319 |
-
if ( ! function_exists( 'veu_sanitize_boolean' ) ) {
|
320 |
-
function veu_sanitize_boolean( $input ) {
|
321 |
-
if ( $input == true ) {
|
322 |
-
return true;
|
323 |
-
} else {
|
324 |
-
return false;
|
325 |
-
}
|
326 |
-
}
|
327 |
-
}
|
328 |
-
|
329 |
-
if ( ! function_exists( 'veu_sanitize_radio' ) ) {
|
330 |
-
function veu_sanitize_radio( $input ) {
|
331 |
-
return esc_attr( $input );
|
332 |
-
}
|
333 |
-
}
|
334 |
-
|
335 |
-
if ( ! function_exists( 'vk_sanitize_number' ) ) {
|
336 |
-
function vk_sanitize_number( $input ) {
|
337 |
-
$return = intval( mb_convert_kana( $input, 'n' ) );
|
338 |
-
return esc_attr( $return );
|
339 |
-
}
|
340 |
-
}
|
341 |
-
if ( ! function_exists( 'vk_sanitize_array' ) ) {
|
342 |
-
function vk_sanitize_array( $input ) {
|
343 |
-
if ( is_array( $input ) ) {
|
344 |
-
$return = array();
|
345 |
-
foreach ( $input as $key => $value ) {
|
346 |
-
$return[ $key ] = wp_kses_post( $value );
|
347 |
-
}
|
348 |
-
}
|
349 |
-
return $return;
|
350 |
-
}
|
351 |
-
}
|
352 |
-
|
353 |
-
/*
|
354 |
-
Post Type Check Box
|
355 |
-
/*-------------------------------------------*/
|
356 |
-
/**
|
357 |
-
* 投稿タイプのチェックボックスを表示する関数
|
358 |
-
*
|
359 |
-
* @param [type] $args 取得する投稿タイプ情報の判別や保存されてる値の情報など
|
360 |
-
* @return [type] [description]
|
361 |
-
*/
|
362 |
-
if ( ! function_exists( 'vk_the_post_type_check_list' ) ) {
|
363 |
-
function vk_the_post_type_check_list( $args ) {
|
364 |
-
$default = array(
|
365 |
-
'post_types_args' => array(
|
366 |
-
'public' => true,
|
367 |
-
),
|
368 |
-
'name' => '',
|
369 |
-
'checked' => array( 'post' => true ),
|
370 |
-
'id' => '',
|
371 |
-
'exclude_post_types' => array( 'attachment' ),
|
372 |
-
);
|
373 |
-
$args = wp_parse_args( $args, $default );
|
374 |
-
$post_types = get_post_types( $args['post_types_args'], 'object' );
|
375 |
-
|
376 |
-
echo '<ul>';
|
377 |
-
foreach ( $post_types as $key => $value ) {
|
378 |
-
|
379 |
-
if ( ! in_array( $key, $args['exclude_post_types'] ) ) {
|
380 |
-
|
381 |
-
$checked = ( isset( $args['checked'][ $key ] ) && ( $args['checked'][ $key ] ) ) ? ' checked' : '';
|
382 |
-
|
383 |
-
if ( ! empty( $args['id'][ $key ] ) ) {
|
384 |
-
$id = ' id="' . esc_attr( $args['id'][ $key ] ) . '"';
|
385 |
-
} elseif ( ! empty( $args['name'][ $key ] ) ) {
|
386 |
-
$id = ' id="' . esc_attr( $args['name'][ $key ] ) . '"';
|
387 |
-
} else {
|
388 |
-
$id = '';
|
389 |
-
}
|
390 |
-
|
391 |
-
echo '<li><label>';
|
392 |
-
echo '<input type="checkbox" name="' . esc_attr( $args['name'] ) . '[' . $key . ']"' . $id . ' value="true"' . $checked . ' />' . esc_html( $value->label );
|
393 |
-
echo '</label></li>';
|
394 |
-
}
|
395 |
-
}
|
396 |
-
echo '</ul>';
|
397 |
-
}
|
398 |
-
}
|
399 |
-
|
400 |
-
/**
|
401 |
-
* vk_the_post_type_check_list で保存される配列が、キーに投稿タイプ名が入る微妙な仕様のため、投稿タイプだけを配列で返すように変換
|
402 |
-
*
|
403 |
-
* @param [type] $post_types : array( 'post' => 'true', 'info' => '' );
|
404 |
-
* @return [type] $return : array( 'post' );
|
405 |
-
*/
|
406 |
-
if ( ! function_exists( 'vk_the_post_type_check_list_saved_array_convert' ) ) {
|
407 |
-
function vk_the_post_type_check_list_saved_array_convert( $post_types ) {
|
408 |
-
$return = array();
|
409 |
-
if ( is_array( $post_types ) ) {
|
410 |
-
foreach ( $post_types as $post_type => $value ) {
|
411 |
-
if ( $value ) {
|
412 |
-
$return[] = $post_type;
|
413 |
-
}
|
414 |
-
}
|
415 |
-
}
|
416 |
-
return $return;
|
417 |
-
}
|
418 |
-
}
|
419 |
-
|
420 |
-
/*
|
421 |
-
vk_is_checked
|
422 |
-
/*-------------------------------------------*/
|
423 |
-
/**
|
424 |
-
* [vk_is_checked description]
|
425 |
-
*
|
426 |
-
* @param string $checked_value checkedにする場合の値
|
427 |
-
* @param string $value 保存値
|
428 |
-
* @return boolean [description]
|
429 |
-
*/
|
430 |
-
if ( ! function_exists( 'vk_is_checked' ) ) {
|
431 |
-
function vk_is_checked( $checked_value = '', $value = '' ) {
|
432 |
-
$checked = '';
|
433 |
-
if ( $checked_value == $value ) {
|
434 |
-
$checked = ' checked';
|
435 |
-
}
|
436 |
-
echo $checked;
|
437 |
-
}
|
438 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/tgm-plugin-activation/class-tgm-plugin-activation.php
DELETED
@@ -1,3640 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin installation and activation for WordPress themes.
|
4 |
-
*
|
5 |
-
* Please note that this is a drop-in library for a theme or plugin.
|
6 |
-
* The authors of this library (Thomas, Gary and Juliette) are NOT responsible
|
7 |
-
* for the support of your plugin or theme. Please contact the plugin
|
8 |
-
* or theme author for support.
|
9 |
-
*
|
10 |
-
* @package TGM-Plugin-Activation
|
11 |
-
* @version 2.5.2
|
12 |
-
* @link http://tgmpluginactivation.com/
|
13 |
-
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
|
14 |
-
* @copyright Copyright (c) 2011, Thomas Griffin
|
15 |
-
* @license GPL-2.0+
|
16 |
-
*
|
17 |
-
* @wordpress-plugin
|
18 |
-
* Plugin Name: TGM Plugin Activation
|
19 |
-
* Plugin URI:
|
20 |
-
* Description: Plugin installation and activation for WordPress themes.
|
21 |
-
* Version: 2.5.2
|
22 |
-
* Author: Thomas Griffin, Gary Jones, Juliette Reinders Folmer
|
23 |
-
* Author URI: http://tgmpluginactivation.com/
|
24 |
-
* Text Domain: tgmpa
|
25 |
-
* Domain Path: /languages/
|
26 |
-
* Copyright: 2011, Thomas Griffin
|
27 |
-
*/
|
28 |
-
|
29 |
-
/*
|
30 |
-
Copyright 2011 Thomas Griffin (thomasgriffinmedia.com)
|
31 |
-
|
32 |
-
This program is free software; you can redistribute it and/or modify
|
33 |
-
it under the terms of the GNU General Public License, version 2, as
|
34 |
-
published by the Free Software Foundation.
|
35 |
-
|
36 |
-
This program is distributed in the hope that it will be useful,
|
37 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
38 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
39 |
-
GNU General Public License for more details.
|
40 |
-
|
41 |
-
You should have received a copy of the GNU General Public License
|
42 |
-
along with this program; if not, write to the Free Software
|
43 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
44 |
-
*/
|
45 |
-
|
46 |
-
if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Automatic plugin installation and activation library.
|
50 |
-
*
|
51 |
-
* Creates a way to automatically install and activate plugins from within themes.
|
52 |
-
* The plugins can be either bundled, downloaded from the WordPress
|
53 |
-
* Plugin Repository or downloaded from another external source.
|
54 |
-
*
|
55 |
-
* @since 1.0.0
|
56 |
-
*
|
57 |
-
* @package TGM-Plugin-Activation
|
58 |
-
* @author Thomas Griffin
|
59 |
-
* @author Gary Jones
|
60 |
-
*/
|
61 |
-
class TGM_Plugin_Activation {
|
62 |
-
/**
|
63 |
-
* TGMPA version number.
|
64 |
-
*
|
65 |
-
* @since 2.5.0
|
66 |
-
*
|
67 |
-
* @const string Version number.
|
68 |
-
*/
|
69 |
-
const TGMPA_VERSION = '2.5.2';
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Regular expression to test if a URL is a WP plugin repo URL.
|
73 |
-
*
|
74 |
-
* @const string Regex.
|
75 |
-
*
|
76 |
-
* @since 2.5.0
|
77 |
-
*/
|
78 |
-
const WP_REPO_REGEX = '|^http[s]?://wordpress\.org/(?:extend/)?plugins/|';
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Arbitrary regular expression to test if a string starts with a URL.
|
82 |
-
*
|
83 |
-
* @const string Regex.
|
84 |
-
*
|
85 |
-
* @since 2.5.0
|
86 |
-
*/
|
87 |
-
const IS_URL_REGEX = '|^http[s]?://|';
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Holds a copy of itself, so it can be referenced by the class name.
|
91 |
-
*
|
92 |
-
* @since 1.0.0
|
93 |
-
*
|
94 |
-
* @var TGM_Plugin_Activation
|
95 |
-
*/
|
96 |
-
public static $instance;
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Holds arrays of plugin details.
|
100 |
-
*
|
101 |
-
* @since 1.0.0
|
102 |
-
*
|
103 |
-
* @since 2.5.0 the array has the plugin slug as an associative key.
|
104 |
-
*
|
105 |
-
* @var array
|
106 |
-
*/
|
107 |
-
public $plugins = array();
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Holds arrays of plugin names to use to sort the plugins array.
|
111 |
-
*
|
112 |
-
* @since 2.5.0
|
113 |
-
*
|
114 |
-
* @var array
|
115 |
-
*/
|
116 |
-
protected $sort_order = array();
|
117 |
-
|
118 |
-
/**
|
119 |
-
* Whether any plugins have the 'force_activation' setting set to true.
|
120 |
-
*
|
121 |
-
* @since 2.5.0
|
122 |
-
*
|
123 |
-
* @var bool
|
124 |
-
*/
|
125 |
-
protected $has_forced_activation = false;
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Whether any plugins have the 'force_deactivation' setting set to true.
|
129 |
-
*
|
130 |
-
* @since 2.5.0
|
131 |
-
*
|
132 |
-
* @var bool
|
133 |
-
*/
|
134 |
-
protected $has_forced_deactivation = false;
|
135 |
-
|
136 |
-
/**
|
137 |
-
* Name of the unique ID to hash notices.
|
138 |
-
*
|
139 |
-
* @since 2.4.0
|
140 |
-
*
|
141 |
-
* @var string
|
142 |
-
*/
|
143 |
-
public $id = 'tgmpa';
|
144 |
-
|
145 |
-
/**
|
146 |
-
* Name of the query-string argument for the admin page.
|
147 |
-
*
|
148 |
-
* @since 1.0.0
|
149 |
-
*
|
150 |
-
* @var string
|
151 |
-
*/
|
152 |
-
protected $menu = 'tgmpa-install-plugins';
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Parent menu file slug.
|
156 |
-
*
|
157 |
-
* @since 2.5.0
|
158 |
-
*
|
159 |
-
* @var string
|
160 |
-
*/
|
161 |
-
public $parent_slug = 'themes.php';
|
162 |
-
|
163 |
-
/**
|
164 |
-
* Capability needed to view the plugin installation menu item.
|
165 |
-
*
|
166 |
-
* @since 2.5.0
|
167 |
-
*
|
168 |
-
* @var string
|
169 |
-
*/
|
170 |
-
public $capability = 'edit_theme_options';
|
171 |
-
|
172 |
-
/**
|
173 |
-
* Default absolute path to folder containing bundled plugin zip files.
|
174 |
-
*
|
175 |
-
* @since 2.0.0
|
176 |
-
*
|
177 |
-
* @var string Absolute path prefix to zip file location for bundled plugins. Default is empty string.
|
178 |
-
*/
|
179 |
-
public $default_path = '';
|
180 |
-
|
181 |
-
/**
|
182 |
-
* Flag to show admin notices or not.
|
183 |
-
*
|
184 |
-
* @since 2.1.0
|
185 |
-
*
|
186 |
-
* @var boolean
|
187 |
-
*/
|
188 |
-
public $has_notices = true;
|
189 |
-
|
190 |
-
/**
|
191 |
-
* Flag to determine if the user can dismiss the notice nag.
|
192 |
-
*
|
193 |
-
* @since 2.4.0
|
194 |
-
*
|
195 |
-
* @var boolean
|
196 |
-
*/
|
197 |
-
public $dismissable = true;
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Message to be output above nag notice if dismissable is false.
|
201 |
-
*
|
202 |
-
* @since 2.4.0
|
203 |
-
*
|
204 |
-
* @var string
|
205 |
-
*/
|
206 |
-
public $dismiss_msg = '';
|
207 |
-
|
208 |
-
/**
|
209 |
-
* Flag to set automatic activation of plugins. Off by default.
|
210 |
-
*
|
211 |
-
* @since 2.2.0
|
212 |
-
*
|
213 |
-
* @var boolean
|
214 |
-
*/
|
215 |
-
public $is_automatic = false;
|
216 |
-
|
217 |
-
/**
|
218 |
-
* Optional message to display before the plugins table.
|
219 |
-
*
|
220 |
-
* @since 2.2.0
|
221 |
-
*
|
222 |
-
* @var string Message filtered by wp_kses_post(). Default is empty string.
|
223 |
-
*/
|
224 |
-
public $message = '';
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Holds configurable array of strings.
|
228 |
-
*
|
229 |
-
* Default values are added in the constructor.
|
230 |
-
*
|
231 |
-
* @since 2.0.0
|
232 |
-
*
|
233 |
-
* @var array
|
234 |
-
*/
|
235 |
-
public $strings = array();
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Holds the version of WordPress.
|
239 |
-
*
|
240 |
-
* @since 2.4.0
|
241 |
-
*
|
242 |
-
* @var int
|
243 |
-
*/
|
244 |
-
public $wp_version;
|
245 |
-
|
246 |
-
/**
|
247 |
-
* Holds the hook name for the admin page.
|
248 |
-
*
|
249 |
-
* @since 2.5.0
|
250 |
-
*
|
251 |
-
* @var string
|
252 |
-
*/
|
253 |
-
public $page_hook;
|
254 |
-
|
255 |
-
/**
|
256 |
-
* Adds a reference of this object to $instance, populates default strings,
|
257 |
-
* does the tgmpa_init action hook, and hooks in the interactions to init.
|
258 |
-
*
|
259 |
-
* @internal This method should be `protected`, but as too many TGMPA implementations
|
260 |
-
* haven't upgraded beyond v2.3.6 yet, this gives backward compatibility issues.
|
261 |
-
* Reverted back to public for the time being.
|
262 |
-
*
|
263 |
-
* @since 1.0.0
|
264 |
-
*
|
265 |
-
* @see TGM_Plugin_Activation::init()
|
266 |
-
*/
|
267 |
-
public function __construct() {
|
268 |
-
// Set the current WordPress version.
|
269 |
-
$this->wp_version = $GLOBALS['wp_version'];
|
270 |
-
|
271 |
-
// Announce that the class is ready, and pass the object (for advanced use).
|
272 |
-
do_action_ref_array( 'tgmpa_init', array( $this ) );
|
273 |
-
|
274 |
-
// When the rest of WP has loaded, kick-start the rest of the class.
|
275 |
-
add_action( 'init', array( $this, 'init' ) );
|
276 |
-
}
|
277 |
-
|
278 |
-
/**
|
279 |
-
* Magic method to (not) set protected properties from outside of this class.
|
280 |
-
*
|
281 |
-
* @internal hackedihack... There is a serious bug in v2.3.2 - 2.3.6 where the `menu` property
|
282 |
-
* is being assigned rather than tested in a conditional, effectively rendering it useless.
|
283 |
-
* This 'hack' prevents this from happening.
|
284 |
-
*
|
285 |
-
* @see https://github.com/TGMPA/TGM-Plugin-Activation/blob/2.3.6/tgm-plugin-activation/class-tgm-plugin-activation.php#L1593
|
286 |
-
*
|
287 |
-
* @param string $name Name of an inaccessible property.
|
288 |
-
* @param mixed $value Value to assign to the property.
|
289 |
-
* @return void Silently fail to set the property when this is tried from outside of this class context.
|
290 |
-
* (Inside this class context, the __set() method if not used as there is direct access.)
|
291 |
-
*/
|
292 |
-
public function __set( $name, $value ) {
|
293 |
-
return;
|
294 |
-
}
|
295 |
-
|
296 |
-
/**
|
297 |
-
* Magic method to get the value of a protected property outside of this class context.
|
298 |
-
*
|
299 |
-
* @param string $name Name of an inaccessible property.
|
300 |
-
* @return mixed The property value.
|
301 |
-
*/
|
302 |
-
public function __get( $name ) {
|
303 |
-
return $this->{$name};
|
304 |
-
}
|
305 |
-
|
306 |
-
/**
|
307 |
-
* Initialise the interactions between this class and WordPress.
|
308 |
-
*
|
309 |
-
* Hooks in three new methods for the class: admin_menu, notices and styles.
|
310 |
-
*
|
311 |
-
* @since 2.0.0
|
312 |
-
*
|
313 |
-
* @see TGM_Plugin_Activation::admin_menu()
|
314 |
-
* @see TGM_Plugin_Activation::notices()
|
315 |
-
* @see TGM_Plugin_Activation::styles()
|
316 |
-
*/
|
317 |
-
public function init() {
|
318 |
-
/**
|
319 |
-
* By default TGMPA only loads on the WP back-end and not in an Ajax call. Using this filter
|
320 |
-
* you can overrule that behaviour.
|
321 |
-
*
|
322 |
-
* @since 2.5.0
|
323 |
-
*
|
324 |
-
* @param bool $load Whether or not TGMPA should load.
|
325 |
-
* Defaults to the return of `is_admin() && ! defined( 'DOING_AJAX' )`.
|
326 |
-
*/
|
327 |
-
if ( true !== apply_filters( 'tgmpa_load', ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) ) {
|
328 |
-
return;
|
329 |
-
}
|
330 |
-
|
331 |
-
// Load class strings.
|
332 |
-
$this->strings = array(
|
333 |
-
'page_title' => __( 'Install Required Plugins', 'lightning' ),
|
334 |
-
'menu_title' => __( 'Install Plugins', 'lightning' ),
|
335 |
-
'installing' => __( 'Installing Plugin: %s', 'lightning' ),
|
336 |
-
'oops' => __( 'Something went wrong with the plugin API.', 'lightning' ),
|
337 |
-
'notice_can_install_required' => _n_noop(
|
338 |
-
'This theme requires the following plugin: %1$s.',
|
339 |
-
'This theme requires the following plugins: %1$s.',
|
340 |
-
'lightning'
|
341 |
-
),
|
342 |
-
'notice_can_install_recommended' => _n_noop(
|
343 |
-
'This theme recommends the following plugin: %1$s.',
|
344 |
-
'This theme recommends the following plugins: %1$s.',
|
345 |
-
'lightning'
|
346 |
-
),
|
347 |
-
'notice_cannot_install' => _n_noop(
|
348 |
-
'Sorry, but you do not have the correct permissions to install the %1$s plugin.',
|
349 |
-
'Sorry, but you do not have the correct permissions to install the %1$s plugins.',
|
350 |
-
'lightning'
|
351 |
-
),
|
352 |
-
'notice_ask_to_update' => _n_noop(
|
353 |
-
'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
|
354 |
-
'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
|
355 |
-
'lightning'
|
356 |
-
),
|
357 |
-
'notice_ask_to_update_maybe' => _n_noop(
|
358 |
-
'There is an update available for: %1$s.',
|
359 |
-
'There are updates available for the following plugins: %1$s.',
|
360 |
-
'lightning'
|
361 |
-
),
|
362 |
-
'notice_cannot_update' => _n_noop(
|
363 |
-
'Sorry, but you do not have the correct permissions to update the %1$s plugin.',
|
364 |
-
'Sorry, but you do not have the correct permissions to update the %1$s plugins.',
|
365 |
-
'lightning'
|
366 |
-
),
|
367 |
-
'notice_can_activate_required' => _n_noop(
|
368 |
-
'The following required plugin is currently inactive: %1$s.',
|
369 |
-
'The following required plugins are currently inactive: %1$s.',
|
370 |
-
'lightning'
|
371 |
-
),
|
372 |
-
'notice_can_activate_recommended' => _n_noop(
|
373 |
-
'The following recommended plugin is currently inactive: %1$s.',
|
374 |
-
'The following recommended plugins are currently inactive: %1$s.',
|
375 |
-
'lightning'
|
376 |
-
),
|
377 |
-
'notice_cannot_activate' => _n_noop(
|
378 |
-
'Sorry, but you do not have the correct permissions to activate the %1$s plugin.',
|
379 |
-
'Sorry, but you do not have the correct permissions to activate the %1$s plugins.',
|
380 |
-
'lightning'
|
381 |
-
),
|
382 |
-
'install_link' => _n_noop(
|
383 |
-
'Begin installing plugin',
|
384 |
-
'Begin installing plugins',
|
385 |
-
'lightning'
|
386 |
-
),
|
387 |
-
'update_link' => _n_noop(
|
388 |
-
'Begin updating plugin',
|
389 |
-
'Begin updating plugins',
|
390 |
-
'lightning'
|
391 |
-
),
|
392 |
-
'activate_link' => _n_noop(
|
393 |
-
'Begin activating plugin',
|
394 |
-
'Begin activating plugins',
|
395 |
-
'lightning'
|
396 |
-
),
|
397 |
-
'return' => __( 'Return to Required Plugins Installer', 'lightning' ),
|
398 |
-
'dashboard' => __( 'Return to the dashboard', 'lightning' ),
|
399 |
-
'plugin_activated' => __( 'Plugin activated successfully.', 'lightning' ),
|
400 |
-
'activated_successfully' => __( 'The following plugin was activated successfully:', 'lightning' ),
|
401 |
-
'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'lightning' ),
|
402 |
-
'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'lightning' ),
|
403 |
-
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'lightning' ),
|
404 |
-
'dismiss' => __( 'Dismiss this notice', 'lightning' ),
|
405 |
-
'contact_admin' => __( 'Please contact the administrator of this site for help.', 'lightning' ),
|
406 |
-
);
|
407 |
-
|
408 |
-
do_action( 'tgmpa_register' );
|
409 |
-
|
410 |
-
/* After this point, the plugins should be registered and the configuration set. */
|
411 |
-
|
412 |
-
// Proceed only if we have plugins to handle.
|
413 |
-
if ( empty( $this->plugins ) || ! is_array( $this->plugins ) ) {
|
414 |
-
return;
|
415 |
-
}
|
416 |
-
|
417 |
-
// Set up the menu and notices if we still have outstanding actions.
|
418 |
-
if ( true !== $this->is_tgmpa_complete() ) {
|
419 |
-
// Sort the plugins.
|
420 |
-
array_multisort( $this->sort_order, SORT_ASC, $this->plugins );
|
421 |
-
|
422 |
-
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
423 |
-
add_action( 'admin_head', array( $this, 'dismiss' ) );
|
424 |
-
|
425 |
-
// Prevent the normal links from showing underneath a single install/update page.
|
426 |
-
add_filter( 'install_plugin_complete_actions', array( $this, 'actions' ) );
|
427 |
-
add_filter( 'update_plugin_complete_actions', array( $this, 'actions' ) );
|
428 |
-
|
429 |
-
if ( $this->has_notices ) {
|
430 |
-
add_action( 'admin_notices', array( $this, 'notices' ) );
|
431 |
-
add_action( 'admin_init', array( $this, 'admin_init' ), 1 );
|
432 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'thickbox' ) );
|
433 |
-
}
|
434 |
-
|
435 |
-
add_action( 'load-plugins.php', array( $this, 'add_plugin_action_link_filters' ), 1 );
|
436 |
-
}
|
437 |
-
|
438 |
-
// Make sure things get reset on switch theme.
|
439 |
-
add_action( 'switch_theme', array( $this, 'flush_plugins_cache' ) );
|
440 |
-
|
441 |
-
if ( $this->has_notices ) {
|
442 |
-
add_action( 'switch_theme', array( $this, 'update_dismiss' ) );
|
443 |
-
}
|
444 |
-
|
445 |
-
// Setup the force activation hook.
|
446 |
-
if ( true === $this->has_forced_activation ) {
|
447 |
-
add_action( 'admin_init', array( $this, 'force_activation' ) );
|
448 |
-
}
|
449 |
-
|
450 |
-
// Setup the force deactivation hook.
|
451 |
-
if ( true === $this->has_forced_deactivation ) {
|
452 |
-
add_action( 'switch_theme', array( $this, 'force_deactivation' ) );
|
453 |
-
}
|
454 |
-
}
|
455 |
-
|
456 |
-
/**
|
457 |
-
* Prevent activation of plugins which don't meet the minimum version requirement from the
|
458 |
-
* WP native plugins page.
|
459 |
-
*
|
460 |
-
* @since 2.5.0
|
461 |
-
*/
|
462 |
-
public function add_plugin_action_link_filters() {
|
463 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
464 |
-
if ( false === $this->can_plugin_activate( $slug ) ) {
|
465 |
-
add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_activate' ), 20 );
|
466 |
-
}
|
467 |
-
|
468 |
-
if ( true === $plugin['force_activation'] ) {
|
469 |
-
add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_deactivate' ), 20 );
|
470 |
-
}
|
471 |
-
|
472 |
-
if ( false !== $this->does_plugin_require_update( $slug ) ) {
|
473 |
-
add_filter( 'plugin_action_links_' . $plugin['file_path'], array( $this, 'filter_plugin_action_links_update' ), 20 );
|
474 |
-
}
|
475 |
-
}
|
476 |
-
}
|
477 |
-
|
478 |
-
/**
|
479 |
-
* Remove the 'Activate' link on the WP native plugins page if the plugin does not meet the
|
480 |
-
* minimum version requirements.
|
481 |
-
*
|
482 |
-
* @since 2.5.0
|
483 |
-
*
|
484 |
-
* @param array $actions Action links.
|
485 |
-
* @return array
|
486 |
-
*/
|
487 |
-
public function filter_plugin_action_links_activate( $actions ) {
|
488 |
-
unset( $actions['activate'] );
|
489 |
-
|
490 |
-
return $actions;
|
491 |
-
}
|
492 |
-
|
493 |
-
/**
|
494 |
-
* Remove the 'Deactivate' link on the WP native plugins page if the plugin has been set to force activate.
|
495 |
-
*
|
496 |
-
* @since 2.5.0
|
497 |
-
*
|
498 |
-
* @param array $actions Action links.
|
499 |
-
* @return array
|
500 |
-
*/
|
501 |
-
public function filter_plugin_action_links_deactivate( $actions ) {
|
502 |
-
unset( $actions['deactivate'] );
|
503 |
-
|
504 |
-
return $actions;
|
505 |
-
}
|
506 |
-
|
507 |
-
/**
|
508 |
-
* Add a 'Requires update' link on the WP native plugins page if the plugin does not meet the
|
509 |
-
* minimum version requirements.
|
510 |
-
*
|
511 |
-
* @since 2.5.0
|
512 |
-
*
|
513 |
-
* @param array $actions Action links.
|
514 |
-
* @return array
|
515 |
-
*/
|
516 |
-
public function filter_plugin_action_links_update( $actions ) {
|
517 |
-
$actions['update'] = sprintf(
|
518 |
-
'<a href="%1$s" title="%2$s" class="edit">%3$s</a>',
|
519 |
-
esc_url( $this->get_tgmpa_status_url( 'update' ) ),
|
520 |
-
esc_attr__( 'This plugin needs to be updated to be compatible with your theme.', 'lightning' ),
|
521 |
-
esc_html__( 'Update Required', 'lightning' )
|
522 |
-
);
|
523 |
-
|
524 |
-
return $actions;
|
525 |
-
}
|
526 |
-
|
527 |
-
/**
|
528 |
-
* Handles calls to show plugin information via links in the notices.
|
529 |
-
*
|
530 |
-
* We get the links in the admin notices to point to the TGMPA page, rather
|
531 |
-
* than the typical plugin-install.php file, so we can prepare everything
|
532 |
-
* beforehand.
|
533 |
-
*
|
534 |
-
* WP does not make it easy to show the plugin information in the thickbox -
|
535 |
-
* here we have to require a file that includes a function that does the
|
536 |
-
* main work of displaying it, enqueue some styles, set up some globals and
|
537 |
-
* finally call that function before exiting.
|
538 |
-
*
|
539 |
-
* Down right easy once you know how...
|
540 |
-
*
|
541 |
-
* Returns early if not the TGMPA page.
|
542 |
-
*
|
543 |
-
* @since 2.1.0
|
544 |
-
*
|
545 |
-
* @global string $tab Used as iframe div class names, helps with styling
|
546 |
-
* @global string $body_id Used as the iframe body ID, helps with styling
|
547 |
-
*
|
548 |
-
* @return null Returns early if not the TGMPA page.
|
549 |
-
*/
|
550 |
-
public function admin_init() {
|
551 |
-
if ( ! $this->is_tgmpa_page() ) {
|
552 |
-
return;
|
553 |
-
}
|
554 |
-
|
555 |
-
if ( isset( $_REQUEST['tab'] ) && 'plugin-information' === $_REQUEST['tab'] ) {
|
556 |
-
// Needed for install_plugin_information().
|
557 |
-
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
558 |
-
|
559 |
-
wp_enqueue_style( 'plugin-install' );
|
560 |
-
|
561 |
-
global $tab, $body_id;
|
562 |
-
$body_id = 'plugin-information';
|
563 |
-
// @codingStandardsIgnoreStart
|
564 |
-
$tab = 'plugin-information';
|
565 |
-
// @codingStandardsIgnoreEnd
|
566 |
-
|
567 |
-
install_plugin_information();
|
568 |
-
|
569 |
-
exit;
|
570 |
-
}
|
571 |
-
}
|
572 |
-
|
573 |
-
/**
|
574 |
-
* Enqueue thickbox scripts/styles for plugin info.
|
575 |
-
*
|
576 |
-
* Thickbox is not automatically included on all admin pages, so we must
|
577 |
-
* manually enqueue it for those pages.
|
578 |
-
*
|
579 |
-
* Thickbox is only loaded if the user has not dismissed the admin
|
580 |
-
* notice or if there are any plugins left to install and activate.
|
581 |
-
*
|
582 |
-
* @since 2.1.0
|
583 |
-
*/
|
584 |
-
public function thickbox() {
|
585 |
-
if ( ! get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) ) {
|
586 |
-
add_thickbox();
|
587 |
-
}
|
588 |
-
}
|
589 |
-
|
590 |
-
/**
|
591 |
-
* Adds submenu page if there are plugin actions to take.
|
592 |
-
*
|
593 |
-
* This method adds the submenu page letting users know that a required
|
594 |
-
* plugin needs to be installed.
|
595 |
-
*
|
596 |
-
* This page disappears once the plugin has been installed and activated.
|
597 |
-
*
|
598 |
-
* @since 1.0.0
|
599 |
-
*
|
600 |
-
* @see TGM_Plugin_Activation::init()
|
601 |
-
* @see TGM_Plugin_Activation::install_plugins_page()
|
602 |
-
*
|
603 |
-
* @return null Return early if user lacks capability to install a plugin.
|
604 |
-
*/
|
605 |
-
public function admin_menu() {
|
606 |
-
// Make sure privileges are correct to see the page.
|
607 |
-
if ( ! current_user_can( 'install_plugins' ) ) {
|
608 |
-
return;
|
609 |
-
}
|
610 |
-
|
611 |
-
$args = apply_filters(
|
612 |
-
'tgmpa_admin_menu_args',
|
613 |
-
array(
|
614 |
-
'parent_slug' => $this->parent_slug, // Parent Menu slug.
|
615 |
-
'page_title' => $this->strings['page_title'], // Page title.
|
616 |
-
'menu_title' => $this->strings['menu_title'], // Menu title.
|
617 |
-
'capability' => $this->capability, // Capability.
|
618 |
-
'menu_slug' => $this->menu, // Menu slug.
|
619 |
-
'function' => array( $this, 'install_plugins_page' ), // Callback.
|
620 |
-
)
|
621 |
-
);
|
622 |
-
|
623 |
-
$this->add_admin_menu( $args );
|
624 |
-
}
|
625 |
-
|
626 |
-
/**
|
627 |
-
* Add the menu item.
|
628 |
-
*
|
629 |
-
* @since 2.5.0
|
630 |
-
*
|
631 |
-
* @param array $args Menu item configuration.
|
632 |
-
*/
|
633 |
-
protected function add_admin_menu( array $args ) {
|
634 |
-
if ( has_filter( 'tgmpa_admin_menu_use_add_theme_page' ) ) {
|
635 |
-
_deprecated_function( 'The "tgmpa_admin_menu_use_add_theme_page" filter', '2.5.0', esc_html__( 'Set the parent_slug config variable instead.', 'lightning' ) );
|
636 |
-
}
|
637 |
-
if ( 'themes.php' === $this->parent_slug ) {
|
638 |
-
|
639 |
-
$this->page_hook = call_user_func( 'add_theme_page', $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] );
|
640 |
-
}
|
641 |
-
}
|
642 |
-
|
643 |
-
/**
|
644 |
-
* Echoes plugin installation form.
|
645 |
-
*
|
646 |
-
* This method is the callback for the admin_menu method function.
|
647 |
-
* This displays the admin page and form area where the user can select to install and activate the plugin.
|
648 |
-
* Aborts early if we're processing a plugin installation action.
|
649 |
-
*
|
650 |
-
* @since 1.0.0
|
651 |
-
*
|
652 |
-
* @return null Aborts early if we're processing a plugin installation action.
|
653 |
-
*/
|
654 |
-
public function install_plugins_page() {
|
655 |
-
// Store new instance of plugin table in object.
|
656 |
-
$plugin_table = new TGMPA_List_Table;
|
657 |
-
|
658 |
-
// Return early if processing a plugin installation action.
|
659 |
-
if ( ( ( 'tgmpa-bulk-install' === $plugin_table->current_action() || 'tgmpa-bulk-update' === $plugin_table->current_action() ) && $plugin_table->process_bulk_actions() ) || $this->do_plugin_install() ) {
|
660 |
-
return;
|
661 |
-
}
|
662 |
-
|
663 |
-
// Force refresh of available plugin information so we'll know about manual updates/deletes.
|
664 |
-
wp_clean_plugins_cache( false );
|
665 |
-
|
666 |
-
?>
|
667 |
-
<div class="tgmpa wrap">
|
668 |
-
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
|
669 |
-
<?php $plugin_table->prepare_items(); ?>
|
670 |
-
|
671 |
-
<?php
|
672 |
-
if ( ! empty( $this->message ) && is_string( $this->message ) ) {
|
673 |
-
echo wp_kses_post( $this->message );
|
674 |
-
}
|
675 |
-
?>
|
676 |
-
<?php $plugin_table->views(); ?>
|
677 |
-
|
678 |
-
<form id="tgmpa-plugins" action="" method="post">
|
679 |
-
<input type="hidden" name="tgmpa-page" value="<?php echo esc_attr( $this->menu ); ?>" />
|
680 |
-
<input type="hidden" name="plugin_status" value="<?php echo esc_attr( $plugin_table->view_context ); ?>" />
|
681 |
-
<?php $plugin_table->display(); ?>
|
682 |
-
</form>
|
683 |
-
</div>
|
684 |
-
<?php
|
685 |
-
}
|
686 |
-
|
687 |
-
/**
|
688 |
-
* Installs, updates or activates a plugin depending on the action link clicked by the user.
|
689 |
-
*
|
690 |
-
* Checks the $_GET variable to see which actions have been
|
691 |
-
* passed and responds with the appropriate method.
|
692 |
-
*
|
693 |
-
* Uses WP_Filesystem to process and handle the plugin installation
|
694 |
-
* method.
|
695 |
-
*
|
696 |
-
* @since 1.0.0
|
697 |
-
*
|
698 |
-
* @uses WP_Filesystem
|
699 |
-
* @uses WP_Error
|
700 |
-
* @uses WP_Upgrader
|
701 |
-
* @uses Plugin_Upgrader
|
702 |
-
* @uses Plugin_Installer_Skin
|
703 |
-
* @uses Plugin_Upgrader_Skin
|
704 |
-
*
|
705 |
-
* @return boolean True on success, false on failure.
|
706 |
-
*/
|
707 |
-
protected function do_plugin_install() {
|
708 |
-
if ( empty( $_GET['plugin'] ) ) {
|
709 |
-
return false;
|
710 |
-
}
|
711 |
-
|
712 |
-
// All plugin information will be stored in an array for processing.
|
713 |
-
$slug = $this->sanitize_key( urldecode( $_GET['plugin'] ) );
|
714 |
-
|
715 |
-
if ( ! isset( $this->plugins[ $slug ] ) ) {
|
716 |
-
return false;
|
717 |
-
}
|
718 |
-
|
719 |
-
// Was an install or upgrade action link clicked?
|
720 |
-
if ( ( isset( $_GET['tgmpa-install'] ) && 'install-plugin' === $_GET['tgmpa-install'] ) || ( isset( $_GET['tgmpa-update'] ) && 'update-plugin' === $_GET['tgmpa-update'] ) ) {
|
721 |
-
|
722 |
-
$install_type = 'install';
|
723 |
-
if ( isset( $_GET['tgmpa-update'] ) && 'update-plugin' === $_GET['tgmpa-update'] ) {
|
724 |
-
$install_type = 'update';
|
725 |
-
}
|
726 |
-
|
727 |
-
check_admin_referer( 'tgmpa-' . $install_type, 'tgmpa-nonce' );
|
728 |
-
|
729 |
-
// Pass necessary information via URL if WP_Filesystem is needed.
|
730 |
-
$url = wp_nonce_url(
|
731 |
-
add_query_arg(
|
732 |
-
array(
|
733 |
-
'plugin' => urlencode( $slug ),
|
734 |
-
'tgmpa-' . $install_type => $install_type . '-plugin',
|
735 |
-
),
|
736 |
-
$this->get_tgmpa_url()
|
737 |
-
),
|
738 |
-
'tgmpa-' . $install_type,
|
739 |
-
'tgmpa-nonce'
|
740 |
-
);
|
741 |
-
|
742 |
-
$method = ''; // Leave blank so WP_Filesystem can populate it as necessary.
|
743 |
-
|
744 |
-
if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, array() ) ) ) {
|
745 |
-
return true;
|
746 |
-
}
|
747 |
-
|
748 |
-
if ( ! WP_Filesystem( $creds ) ) {
|
749 |
-
request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, array() ); // Setup WP_Filesystem.
|
750 |
-
return true;
|
751 |
-
}
|
752 |
-
|
753 |
-
/* If we arrive here, we have the filesystem. */
|
754 |
-
|
755 |
-
// Prep variables for Plugin_Installer_Skin class.
|
756 |
-
$extra = array();
|
757 |
-
$extra['slug'] = $slug; // Needed for potentially renaming of directory name.
|
758 |
-
$source = $this->get_download_url( $slug );
|
759 |
-
$api = ( 'repo' === $this->plugins[ $slug ]['source_type'] ) ? $this->get_plugins_api( $slug ) : null;
|
760 |
-
$api = ( false !== $api ) ? $api : null;
|
761 |
-
|
762 |
-
$url = add_query_arg(
|
763 |
-
array(
|
764 |
-
'action' => $install_type . '-plugin',
|
765 |
-
'plugin' => urlencode( $slug ),
|
766 |
-
),
|
767 |
-
'update.php'
|
768 |
-
);
|
769 |
-
|
770 |
-
if ( ! class_exists( 'Plugin_Upgrader', false ) ) {
|
771 |
-
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
772 |
-
}
|
773 |
-
|
774 |
-
$skin_args = array(
|
775 |
-
'type' => ( 'bundled' !== $this->plugins[ $slug ]['source_type'] ) ? 'web' : 'upload',
|
776 |
-
'title' => sprintf( $this->strings['installing'], $this->plugins[ $slug ]['name'] ),
|
777 |
-
'url' => esc_url_raw( $url ),
|
778 |
-
'nonce' => $install_type . '-plugin_' . $slug,
|
779 |
-
'plugin' => '',
|
780 |
-
'api' => $api,
|
781 |
-
'extra' => $extra,
|
782 |
-
);
|
783 |
-
|
784 |
-
if ( 'update' === $install_type ) {
|
785 |
-
$skin_args['plugin'] = $this->plugins[ $slug ]['file_path'];
|
786 |
-
$skin = new Plugin_Upgrader_Skin( $skin_args );
|
787 |
-
} else {
|
788 |
-
$skin = new Plugin_Installer_Skin( $skin_args );
|
789 |
-
}
|
790 |
-
|
791 |
-
// Create a new instance of Plugin_Upgrader.
|
792 |
-
$upgrader = new Plugin_Upgrader( $skin );
|
793 |
-
|
794 |
-
// Perform the action and install the plugin from the $source urldecode().
|
795 |
-
add_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1, 3 );
|
796 |
-
|
797 |
-
if ( 'update' === $install_type ) {
|
798 |
-
// Inject our info into the update transient.
|
799 |
-
$to_inject = array( $slug => $this->plugins[ $slug ] );
|
800 |
-
$to_inject[ $slug ]['source'] = $source;
|
801 |
-
$this->inject_update_info( $to_inject );
|
802 |
-
|
803 |
-
$upgrader->upgrade( $this->plugins[ $slug ]['file_path'] );
|
804 |
-
} else {
|
805 |
-
$upgrader->install( $source );
|
806 |
-
}
|
807 |
-
|
808 |
-
remove_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1, 3 );
|
809 |
-
|
810 |
-
// Make sure we have the correct file path now the plugin is installed/updated.
|
811 |
-
$this->populate_file_path( $slug );
|
812 |
-
|
813 |
-
// Only activate plugins if the config option is set to true and the plugin isn't
|
814 |
-
// already active (upgrade).
|
815 |
-
if ( $this->is_automatic && ! $this->is_plugin_active( $slug ) ) {
|
816 |
-
$plugin_activate = $upgrader->plugin_info(); // Grab the plugin info from the Plugin_Upgrader method.
|
817 |
-
if ( false === $this->activate_single_plugin( $plugin_activate, $slug, true ) ) {
|
818 |
-
return true; // Finish execution of the function early as we encountered an error.
|
819 |
-
}
|
820 |
-
}
|
821 |
-
|
822 |
-
$this->show_tgmpa_version();
|
823 |
-
|
824 |
-
// Display message based on if all plugins are now active or not.
|
825 |
-
if ( $this->is_tgmpa_complete() ) {
|
826 |
-
echo '<p>', sprintf( esc_html( $this->strings['complete'] ), '<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'lightning' ) . '</a>' ), '</p>';
|
827 |
-
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
828 |
-
} else {
|
829 |
-
echo '<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
|
830 |
-
}
|
831 |
-
|
832 |
-
return true;
|
833 |
-
} elseif ( isset( $this->plugins[ $slug ]['file_path'], $_GET['tgmpa-activate'] ) && 'activate-plugin' === $_GET['tgmpa-activate'] ) {
|
834 |
-
// Activate action link was clicked.
|
835 |
-
check_admin_referer( 'tgmpa-activate', 'tgmpa-nonce' );
|
836 |
-
|
837 |
-
if ( false === $this->activate_single_plugin( $this->plugins[ $slug ]['file_path'], $slug ) ) {
|
838 |
-
return true; // Finish execution of the function early as we encountered an error.
|
839 |
-
}
|
840 |
-
}
|
841 |
-
|
842 |
-
return false;
|
843 |
-
}
|
844 |
-
|
845 |
-
/**
|
846 |
-
* Inject information into the 'update_plugins' site transient as WP checks that before running an update.
|
847 |
-
*
|
848 |
-
* @since 2.5.0
|
849 |
-
*
|
850 |
-
* @param array $plugins The plugin information for the plugins which are to be updated.
|
851 |
-
*/
|
852 |
-
public function inject_update_info( $plugins ) {
|
853 |
-
$repo_updates = get_site_transient( 'update_plugins' );
|
854 |
-
|
855 |
-
if ( ! is_object( $repo_updates ) ) {
|
856 |
-
$repo_updates = new stdClass;
|
857 |
-
}
|
858 |
-
|
859 |
-
foreach ( $plugins as $slug => $plugin ) {
|
860 |
-
$file_path = $plugin['file_path'];
|
861 |
-
|
862 |
-
if ( empty( $repo_updates->response[ $file_path ] ) ) {
|
863 |
-
$repo_updates->response[ $file_path ] = new stdClass;
|
864 |
-
}
|
865 |
-
|
866 |
-
// We only really need to set package, but let's do all we can in case WP changes something.
|
867 |
-
$repo_updates->response[ $file_path ]->slug = $slug;
|
868 |
-
$repo_updates->response[ $file_path ]->plugin = $file_path;
|
869 |
-
$repo_updates->response[ $file_path ]->new_version = $plugin['version'];
|
870 |
-
$repo_updates->response[ $file_path ]->package = $plugin['source'];
|
871 |
-
if ( empty( $repo_updates->response[ $file_path ]->url ) && ! empty( $plugin['external_url'] ) ) {
|
872 |
-
$repo_updates->response[ $file_path ]->url = $plugin['external_url'];
|
873 |
-
}
|
874 |
-
}
|
875 |
-
|
876 |
-
set_site_transient( 'update_plugins', $repo_updates );
|
877 |
-
}
|
878 |
-
|
879 |
-
/**
|
880 |
-
* Adjust the plugin directory name if necessary.
|
881 |
-
*
|
882 |
-
* The final destination directory of a plugin is based on the subdirectory name found in the
|
883 |
-
* (un)zipped source. In some cases - most notably GitHub repository plugin downloads -, this
|
884 |
-
* subdirectory name is not the same as the expected slug and the plugin will not be recognized
|
885 |
-
* as installed. This is fixed by adjusting the temporary unzipped source subdirectory name to
|
886 |
-
* the expected plugin slug.
|
887 |
-
*
|
888 |
-
* @since 2.5.0
|
889 |
-
*
|
890 |
-
* @param string $source Path to upgrade/zip-file-name.tmp/subdirectory/.
|
891 |
-
* @param string $remote_source Path to upgrade/zip-file-name.tmp.
|
892 |
-
* @param \WP_Upgrader $upgrader Instance of the upgrader which installs the plugin.
|
893 |
-
* @return string $source
|
894 |
-
*/
|
895 |
-
public function maybe_adjust_source_dir( $source, $remote_source, $upgrader ) {
|
896 |
-
if ( ! $this->is_tgmpa_page() || ! is_object( $GLOBALS['wp_filesystem'] ) ) {
|
897 |
-
return $source;
|
898 |
-
}
|
899 |
-
|
900 |
-
// Check for single file plugins.
|
901 |
-
$source_files = array_keys( $GLOBALS['wp_filesystem']->dirlist( $remote_source ) );
|
902 |
-
if ( 1 === count( $source_files ) && false === $GLOBALS['wp_filesystem']->is_dir( $source ) ) {
|
903 |
-
return $source;
|
904 |
-
}
|
905 |
-
|
906 |
-
// Multi-file plugin, let's see if the directory is correctly named.
|
907 |
-
$desired_slug = '';
|
908 |
-
|
909 |
-
// Figure out what the slug is supposed to be.
|
910 |
-
if ( false === $upgrader->bulk && ! empty( $upgrader->skin->options['extra']['slug'] ) ) {
|
911 |
-
$desired_slug = $upgrader->skin->options['extra']['slug'];
|
912 |
-
} else {
|
913 |
-
// Bulk installer contains less info, so fall back on the info registered here.
|
914 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
915 |
-
if ( ! empty( $upgrader->skin->plugin_names[ $upgrader->skin->i ] ) && $plugin['name'] === $upgrader->skin->plugin_names[ $upgrader->skin->i ] ) {
|
916 |
-
$desired_slug = $slug;
|
917 |
-
break;
|
918 |
-
}
|
919 |
-
}
|
920 |
-
unset( $slug, $plugin );
|
921 |
-
}
|
922 |
-
|
923 |
-
if ( ! empty( $desired_slug ) ) {
|
924 |
-
$subdir_name = untrailingslashit( str_replace( trailingslashit( $remote_source ), '', $source ) );
|
925 |
-
|
926 |
-
if ( ! empty( $subdir_name ) && $subdir_name !== $desired_slug ) {
|
927 |
-
$from = untrailingslashit( $source );
|
928 |
-
$to = trailingslashit( $remote_source ) . $desired_slug;
|
929 |
-
|
930 |
-
if ( true === $GLOBALS['wp_filesystem']->move( $from, $to ) ) {
|
931 |
-
return trailingslashit( $to );
|
932 |
-
} else {
|
933 |
-
return new WP_Error(
|
934 |
-
'rename_failed', esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'lightning' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'lightning' ), array(
|
935 |
-
'found' => $subdir_name,
|
936 |
-
'expected' => $desired_slug,
|
937 |
-
)
|
938 |
-
);
|
939 |
-
}
|
940 |
-
} elseif ( empty( $subdir_name ) ) {
|
941 |
-
return new WP_Error(
|
942 |
-
'packaged_wrong', esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'lightning' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'lightning' ), array(
|
943 |
-
'found' => $subdir_name,
|
944 |
-
'expected' => $desired_slug,
|
945 |
-
)
|
946 |
-
);
|
947 |
-
}
|
948 |
-
}
|
949 |
-
|
950 |
-
return $source;
|
951 |
-
}
|
952 |
-
|
953 |
-
/**
|
954 |
-
* Activate a single plugin and send feedback about the result to the screen.
|
955 |
-
*
|
956 |
-
* @since 2.5.0
|
957 |
-
*
|
958 |
-
* @param string $file_path Path within wp-plugins/ to main plugin file.
|
959 |
-
* @param string $slug Plugin slug.
|
960 |
-
* @param bool $automatic Whether this is an automatic activation after an install. Defaults to false.
|
961 |
-
* This determines the styling of the output messages.
|
962 |
-
* @return bool False if an error was encountered, true otherwise.
|
963 |
-
*/
|
964 |
-
protected function activate_single_plugin( $file_path, $slug, $automatic = false ) {
|
965 |
-
if ( $this->can_plugin_activate( $slug ) ) {
|
966 |
-
$activate = activate_plugin( $file_path );
|
967 |
-
|
968 |
-
if ( is_wp_error( $activate ) ) {
|
969 |
-
echo '<div id="message" class="error"><p>', wp_kses_post( $activate->get_error_message() ), '</p></div>',
|
970 |
-
'<p><a href="', esc_url( $this->get_tgmpa_url() ), '" target="_parent">', esc_html( $this->strings['return'] ), '</a></p>';
|
971 |
-
|
972 |
-
return false; // End it here if there is an error with activation.
|
973 |
-
} else {
|
974 |
-
if ( ! $automatic ) {
|
975 |
-
// Make sure message doesn't display again if bulk activation is performed
|
976 |
-
// immediately after a single activation.
|
977 |
-
if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
|
978 |
-
echo '<div id="message" class="updated"><p>', esc_html( $this->strings['activated_successfully'] ), ' <strong>', esc_html( $this->plugins[ $slug ]['name'] ), '.</strong></p></div>';
|
979 |
-
}
|
980 |
-
} else {
|
981 |
-
// Simpler message layout for use on the plugin install page.
|
982 |
-
echo '<p>', esc_html( $this->strings['plugin_activated'] ), '</p>';
|
983 |
-
}
|
984 |
-
}
|
985 |
-
} elseif ( $this->is_plugin_active( $slug ) ) {
|
986 |
-
// No simpler message format provided as this message should never be encountered
|
987 |
-
// on the plugin install page.
|
988 |
-
echo '<div id="message" class="error"><p>',
|
989 |
-
sprintf(
|
990 |
-
esc_html( $this->strings['plugin_already_active'] ),
|
991 |
-
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>'
|
992 |
-
),
|
993 |
-
'</p></div>';
|
994 |
-
} elseif ( $this->does_plugin_require_update( $slug ) ) {
|
995 |
-
if ( ! $automatic ) {
|
996 |
-
// Make sure message doesn't display again if bulk activation is performed
|
997 |
-
// immediately after a single activation.
|
998 |
-
if ( ! isset( $_POST['action'] ) ) { // WPCS: CSRF OK.
|
999 |
-
echo '<div id="message" class="error"><p>',
|
1000 |
-
sprintf(
|
1001 |
-
esc_html( $this->strings['plugin_needs_higher_version'] ),
|
1002 |
-
'<strong>' . esc_html( $this->plugins[ $slug ]['name'] ) . '</strong>'
|
1003 |
-
),
|
1004 |
-
'</p></div>';
|
1005 |
-
}
|
1006 |
-
} else {
|
1007 |
-
// Simpler message layout for use on the plugin install page.
|
1008 |
-
echo '<p>', sprintf( esc_html( $this->strings['plugin_needs_higher_version'] ), esc_html( $this->plugins[ $slug ]['name'] ) ), '</p>';
|
1009 |
-
}
|
1010 |
-
}
|
1011 |
-
|
1012 |
-
return true;
|
1013 |
-
}
|
1014 |
-
|
1015 |
-
/**
|
1016 |
-
* Echoes required plugin notice.
|
1017 |
-
*
|
1018 |
-
* Outputs a message telling users that a specific plugin is required for
|
1019 |
-
* their theme. If appropriate, it includes a link to the form page where
|
1020 |
-
* users can install and activate the plugin.
|
1021 |
-
*
|
1022 |
-
* Returns early if we're on the Install page.
|
1023 |
-
*
|
1024 |
-
* @since 1.0.0
|
1025 |
-
*
|
1026 |
-
* @global object $current_screen
|
1027 |
-
*
|
1028 |
-
* @return null Returns early if we're on the Install page.
|
1029 |
-
*/
|
1030 |
-
public function notices() {
|
1031 |
-
// Remove nag on the install page / Return early if the nag message has been dismissed.
|
1032 |
-
if ( $this->is_tgmpa_page() || get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) ) {
|
1033 |
-
return;
|
1034 |
-
}
|
1035 |
-
|
1036 |
-
// Store for the plugin slugs by message type.
|
1037 |
-
$message = array();
|
1038 |
-
|
1039 |
-
// Initialize counters used to determine plurality of action link texts.
|
1040 |
-
$install_link_count = 0;
|
1041 |
-
$update_link_count = 0;
|
1042 |
-
$activate_link_count = 0;
|
1043 |
-
|
1044 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
1045 |
-
if ( $this->is_plugin_active( $slug ) && false === $this->does_plugin_have_update( $slug ) ) {
|
1046 |
-
continue;
|
1047 |
-
}
|
1048 |
-
|
1049 |
-
if ( ! $this->is_plugin_installed( $slug ) ) {
|
1050 |
-
if ( current_user_can( 'install_plugins' ) ) {
|
1051 |
-
$install_link_count++;
|
1052 |
-
|
1053 |
-
if ( true === $plugin['required'] ) {
|
1054 |
-
$message['notice_can_install_required'][] = $slug;
|
1055 |
-
} else {
|
1056 |
-
$message['notice_can_install_recommended'][] = $slug;
|
1057 |
-
}
|
1058 |
-
} else {
|
1059 |
-
// Need higher privileges to install the plugin.
|
1060 |
-
$message['notice_cannot_install'][] = $slug;
|
1061 |
-
}
|
1062 |
-
} else {
|
1063 |
-
if ( ! $this->is_plugin_active( $slug ) && $this->can_plugin_activate( $slug ) ) {
|
1064 |
-
if ( current_user_can( 'activate_plugins' ) ) {
|
1065 |
-
$activate_link_count++;
|
1066 |
-
|
1067 |
-
if ( true === $plugin['required'] ) {
|
1068 |
-
$message['notice_can_activate_required'][] = $slug;
|
1069 |
-
} else {
|
1070 |
-
$message['notice_can_activate_recommended'][] = $slug;
|
1071 |
-
}
|
1072 |
-
} else {
|
1073 |
-
// Need higher privileges to activate the plugin.
|
1074 |
-
$message['notice_cannot_activate'][] = $slug;
|
1075 |
-
}
|
1076 |
-
}
|
1077 |
-
|
1078 |
-
if ( $this->does_plugin_require_update( $slug ) || false !== $this->does_plugin_have_update( $slug ) ) {
|
1079 |
-
|
1080 |
-
if ( current_user_can( 'install_plugins' ) ) {
|
1081 |
-
$update_link_count++;
|
1082 |
-
|
1083 |
-
if ( $this->does_plugin_require_update( $slug ) ) {
|
1084 |
-
$message['notice_ask_to_update'][] = $slug;
|
1085 |
-
} elseif ( false !== $this->does_plugin_have_update( $slug ) ) {
|
1086 |
-
$message['notice_ask_to_update_maybe'][] = $slug;
|
1087 |
-
}
|
1088 |
-
} else {
|
1089 |
-
// Need higher privileges to update the plugin.
|
1090 |
-
$message['notice_cannot_update'][] = $slug;
|
1091 |
-
}
|
1092 |
-
}
|
1093 |
-
}
|
1094 |
-
}
|
1095 |
-
unset( $slug, $plugin );
|
1096 |
-
|
1097 |
-
// If we have notices to display, we move forward.
|
1098 |
-
if ( ! empty( $message ) ) {
|
1099 |
-
krsort( $message ); // Sort messages.
|
1100 |
-
$rendered = '';
|
1101 |
-
|
1102 |
-
// As add_settings_error() wraps the final message in a <p> and as the final message can't be
|
1103 |
-
// filtered, using <p>'s in our html would render invalid html output.
|
1104 |
-
$line_template = '<span style="display: block; margin: 0.5em 0.5em 0 0; clear: both;">%s</span>' . "\n";
|
1105 |
-
|
1106 |
-
// If dismissable is false and a message is set, output it now.
|
1107 |
-
if ( ! $this->dismissable && ! empty( $this->dismiss_msg ) ) {
|
1108 |
-
$rendered .= sprintf( $line_template, wp_kses_post( $this->dismiss_msg ) );
|
1109 |
-
}
|
1110 |
-
|
1111 |
-
// Render the individual message lines for the notice.
|
1112 |
-
foreach ( $message as $type => $plugin_group ) {
|
1113 |
-
$linked_plugins = array();
|
1114 |
-
|
1115 |
-
// Get the external info link for a plugin if one is available.
|
1116 |
-
foreach ( $plugin_group as $plugin_slug ) {
|
1117 |
-
$linked_plugins[] = $this->get_info_link( $plugin_slug );
|
1118 |
-
}
|
1119 |
-
unset( $plugin_slug );
|
1120 |
-
|
1121 |
-
$count = count( $plugin_group );
|
1122 |
-
$linked_plugins = array_map( array( 'TGMPA_Utils', 'wrap_in_em' ), $linked_plugins );
|
1123 |
-
$last_plugin = array_pop( $linked_plugins ); // Pop off last name to prep for readability.
|
1124 |
-
$imploded = empty( $linked_plugins ) ? $last_plugin : ( implode( ', ', $linked_plugins ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'lightning' ) . ' ' . $last_plugin );
|
1125 |
-
|
1126 |
-
$rendered .= sprintf(
|
1127 |
-
$line_template,
|
1128 |
-
sprintf(
|
1129 |
-
translate_nooped_plural( $this->strings[ $type ], $count, 'lightning' ),
|
1130 |
-
$imploded,
|
1131 |
-
$count
|
1132 |
-
)
|
1133 |
-
);
|
1134 |
-
|
1135 |
-
if ( 0 === strpos( $type, 'notice_cannot' ) ) {
|
1136 |
-
$rendered .= $this->strings['contact_admin'];
|
1137 |
-
}
|
1138 |
-
}
|
1139 |
-
unset( $type, $plugin_group, $linked_plugins, $count, $last_plugin, $imploded );
|
1140 |
-
|
1141 |
-
// Setup action links.
|
1142 |
-
$action_links = array(
|
1143 |
-
'install' => '',
|
1144 |
-
'update' => '',
|
1145 |
-
'activate' => '',
|
1146 |
-
'dismiss' => $this->dismissable ? '<a href="' . esc_url( add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ) ) . '" class="dismiss-notice" target="_parent">' . esc_html( $this->strings['dismiss'] ) . '</a>' : '',
|
1147 |
-
);
|
1148 |
-
|
1149 |
-
$link_template = '<a href="%2$s">%1$s</a>';
|
1150 |
-
|
1151 |
-
if ( current_user_can( 'install_plugins' ) ) {
|
1152 |
-
if ( $install_link_count > 0 ) {
|
1153 |
-
$action_links['install'] = sprintf(
|
1154 |
-
$link_template,
|
1155 |
-
translate_nooped_plural( $this->strings['install_link'], $install_link_count, 'lightning' ),
|
1156 |
-
esc_url( $this->get_tgmpa_status_url( 'install' ) )
|
1157 |
-
);
|
1158 |
-
}
|
1159 |
-
if ( $update_link_count > 0 ) {
|
1160 |
-
$action_links['update'] = sprintf(
|
1161 |
-
$link_template,
|
1162 |
-
translate_nooped_plural( $this->strings['update_link'], $update_link_count, 'lightning' ),
|
1163 |
-
esc_url( $this->get_tgmpa_status_url( 'update' ) )
|
1164 |
-
);
|
1165 |
-
}
|
1166 |
-
}
|
1167 |
-
|
1168 |
-
if ( current_user_can( 'activate_plugins' ) && $activate_link_count > 0 ) {
|
1169 |
-
$action_links['activate'] = sprintf(
|
1170 |
-
$link_template,
|
1171 |
-
translate_nooped_plural( $this->strings['activate_link'], $activate_link_count, 'lightning' ),
|
1172 |
-
esc_url( $this->get_tgmpa_status_url( 'activate' ) )
|
1173 |
-
);
|
1174 |
-
}
|
1175 |
-
|
1176 |
-
$action_links = apply_filters( 'tgmpa_notice_action_links', $action_links );
|
1177 |
-
|
1178 |
-
$action_links = array_filter( (array) $action_links ); // Remove any empty array items.
|
1179 |
-
|
1180 |
-
if ( ! empty( $action_links ) && is_array( $action_links ) ) {
|
1181 |
-
$action_links = sprintf( $line_template, implode( ' | ', $action_links ) );
|
1182 |
-
$rendered .= apply_filters( 'tgmpa_notice_rendered_action_links', $action_links );
|
1183 |
-
}
|
1184 |
-
|
1185 |
-
// Register the nag messages and prepare them to be processed.
|
1186 |
-
if ( ! empty( $this->strings['nag_type'] ) ) {
|
1187 |
-
add_settings_error( 'tgmpa', 'tgmpa', $rendered, sanitize_html_class( strtolower( $this->strings['nag_type'] ) ) );
|
1188 |
-
} else {
|
1189 |
-
$nag_class = version_compare( $this->wp_version, '3.8', '<' ) ? 'updated' : 'update-nag';
|
1190 |
-
add_settings_error( 'tgmpa', 'tgmpa', $rendered, $nag_class );
|
1191 |
-
}
|
1192 |
-
}
|
1193 |
-
|
1194 |
-
// Admin options pages already output settings_errors, so this is to avoid duplication.
|
1195 |
-
if ( 'options-general' !== $GLOBALS['current_screen']->parent_base ) {
|
1196 |
-
$this->display_settings_errors();
|
1197 |
-
}
|
1198 |
-
}
|
1199 |
-
|
1200 |
-
/**
|
1201 |
-
* Display settings errors and remove those which have been displayed to avoid duplicate messages showing
|
1202 |
-
*
|
1203 |
-
* @since 2.5.0
|
1204 |
-
*/
|
1205 |
-
protected function display_settings_errors() {
|
1206 |
-
global $wp_settings_errors;
|
1207 |
-
|
1208 |
-
settings_errors( 'tgmpa' );
|
1209 |
-
|
1210 |
-
foreach ( (array) $wp_settings_errors as $key => $details ) {
|
1211 |
-
if ( 'tgmpa' === $details['setting'] ) {
|
1212 |
-
unset( $wp_settings_errors[ $key ] );
|
1213 |
-
break;
|
1214 |
-
}
|
1215 |
-
}
|
1216 |
-
}
|
1217 |
-
|
1218 |
-
/**
|
1219 |
-
* Add dismissable admin notices.
|
1220 |
-
*
|
1221 |
-
* Appends a link to the admin nag messages. If clicked, the admin notice disappears and no longer is visible to users.
|
1222 |
-
*
|
1223 |
-
* @since 2.1.0
|
1224 |
-
*/
|
1225 |
-
public function dismiss() {
|
1226 |
-
if ( isset( $_GET['tgmpa-dismiss'] ) ) {
|
1227 |
-
update_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, 1 );
|
1228 |
-
}
|
1229 |
-
}
|
1230 |
-
|
1231 |
-
/**
|
1232 |
-
* Add individual plugin to our collection of plugins.
|
1233 |
-
*
|
1234 |
-
* If the required keys are not set or the plugin has already
|
1235 |
-
* been registered, the plugin is not added.
|
1236 |
-
*
|
1237 |
-
* @since 2.0.0
|
1238 |
-
*
|
1239 |
-
* @param array|null $plugin Array of plugin arguments or null if invalid argument.
|
1240 |
-
* @return null Return early if incorrect argument.
|
1241 |
-
*/
|
1242 |
-
public function register( $plugin ) {
|
1243 |
-
if ( empty( $plugin['slug'] ) || empty( $plugin['name'] ) ) {
|
1244 |
-
return;
|
1245 |
-
}
|
1246 |
-
|
1247 |
-
if ( empty( $plugin['slug'] ) || ! is_string( $plugin['slug'] ) || isset( $this->plugins[ $plugin['slug'] ] ) ) {
|
1248 |
-
return;
|
1249 |
-
}
|
1250 |
-
|
1251 |
-
$defaults = array(
|
1252 |
-
'name' => '', // String
|
1253 |
-
'slug' => '', // String
|
1254 |
-
'source' => 'repo', // String
|
1255 |
-
'required' => false, // Boolean
|
1256 |
-
'version' => '', // String
|
1257 |
-
'force_activation' => false, // Boolean
|
1258 |
-
'force_deactivation' => false, // Boolean
|
1259 |
-
'external_url' => '', // String
|
1260 |
-
'is_callable' => '', // String|Array.
|
1261 |
-
);
|
1262 |
-
|
1263 |
-
// Prepare the received data.
|
1264 |
-
$plugin = wp_parse_args( $plugin, $defaults );
|
1265 |
-
|
1266 |
-
// Standardize the received slug.
|
1267 |
-
$plugin['slug'] = $this->sanitize_key( $plugin['slug'] );
|
1268 |
-
|
1269 |
-
// Forgive users for using string versions of booleans or floats for version number.
|
1270 |
-
$plugin['version'] = (string) $plugin['version'];
|
1271 |
-
$plugin['source'] = empty( $plugin['source'] ) ? 'repo' : $plugin['source'];
|
1272 |
-
$plugin['required'] = TGMPA_Utils::validate_bool( $plugin['required'] );
|
1273 |
-
$plugin['force_activation'] = TGMPA_Utils::validate_bool( $plugin['force_activation'] );
|
1274 |
-
$plugin['force_deactivation'] = TGMPA_Utils::validate_bool( $plugin['force_deactivation'] );
|
1275 |
-
|
1276 |
-
// Enrich the received data.
|
1277 |
-
$plugin['file_path'] = $this->_get_plugin_basename_from_slug( $plugin['slug'] );
|
1278 |
-
$plugin['source_type'] = $this->get_plugin_source_type( $plugin['source'] );
|
1279 |
-
|
1280 |
-
// Set the class properties.
|
1281 |
-
$this->plugins[ $plugin['slug'] ] = $plugin;
|
1282 |
-
$this->sort_order[ $plugin['slug'] ] = $plugin['name'];
|
1283 |
-
|
1284 |
-
// Should we add the force activation hook ?
|
1285 |
-
if ( true === $plugin['force_activation'] ) {
|
1286 |
-
$this->has_forced_activation = true;
|
1287 |
-
}
|
1288 |
-
|
1289 |
-
// Should we add the force deactivation hook ?
|
1290 |
-
if ( true === $plugin['force_deactivation'] ) {
|
1291 |
-
$this->has_forced_deactivation = true;
|
1292 |
-
}
|
1293 |
-
}
|
1294 |
-
|
1295 |
-
/**
|
1296 |
-
* Determine what type of source the plugin comes from.
|
1297 |
-
*
|
1298 |
-
* @since 2.5.0
|
1299 |
-
*
|
1300 |
-
* @param string $source The source of the plugin as provided, either empty (= WP repo), a file path
|
1301 |
-
* (= bundled) or an external URL.
|
1302 |
-
* @return string 'repo', 'external', or 'bundled'
|
1303 |
-
*/
|
1304 |
-
protected function get_plugin_source_type( $source ) {
|
1305 |
-
if ( 'repo' === $source || preg_match( self::WP_REPO_REGEX, $source ) ) {
|
1306 |
-
return 'repo';
|
1307 |
-
} elseif ( preg_match( self::IS_URL_REGEX, $source ) ) {
|
1308 |
-
return 'external';
|
1309 |
-
} else {
|
1310 |
-
return 'bundled';
|
1311 |
-
}
|
1312 |
-
}
|
1313 |
-
|
1314 |
-
/**
|
1315 |
-
* Sanitizes a string key.
|
1316 |
-
*
|
1317 |
-
* Near duplicate of WP Core `sanitize_key()`. The difference is that uppercase characters *are*
|
1318 |
-
* allowed, so as not to break upgrade paths from non-standard bundled plugins using uppercase
|
1319 |
-
* characters in the plugin directory path/slug. Silly them.
|
1320 |
-
*
|
1321 |
-
* @see https://developer.wordpress.org/reference/hooks/sanitize_key/
|
1322 |
-
*
|
1323 |
-
* @since 2.5.0
|
1324 |
-
*
|
1325 |
-
* @param string $key String key.
|
1326 |
-
* @return string Sanitized key
|
1327 |
-
*/
|
1328 |
-
public function sanitize_key( $key ) {
|
1329 |
-
$raw_key = $key;
|
1330 |
-
$key = preg_replace( '`[^A-Za-z0-9_-]`', '', $key );
|
1331 |
-
|
1332 |
-
/**
|
1333 |
-
* Filter a sanitized key string.
|
1334 |
-
*
|
1335 |
-
* @since 3.0.0
|
1336 |
-
*
|
1337 |
-
* @param string $key Sanitized key.
|
1338 |
-
* @param string $raw_key The key prior to sanitization.
|
1339 |
-
*/
|
1340 |
-
return apply_filters( 'tgmpa_sanitize_key', $key, $raw_key );
|
1341 |
-
}
|
1342 |
-
|
1343 |
-
/**
|
1344 |
-
* Amend default configuration settings.
|
1345 |
-
*
|
1346 |
-
* @since 2.0.0
|
1347 |
-
*
|
1348 |
-
* @param array $config Array of config options to pass as class properties.
|
1349 |
-
*/
|
1350 |
-
public function config( $config ) {
|
1351 |
-
$keys = array(
|
1352 |
-
'id',
|
1353 |
-
'default_path',
|
1354 |
-
'has_notices',
|
1355 |
-
'dismissable',
|
1356 |
-
'dismiss_msg',
|
1357 |
-
'menu',
|
1358 |
-
'parent_slug',
|
1359 |
-
'capability',
|
1360 |
-
'is_automatic',
|
1361 |
-
'message',
|
1362 |
-
'strings',
|
1363 |
-
);
|
1364 |
-
|
1365 |
-
foreach ( $keys as $key ) {
|
1366 |
-
if ( isset( $config[ $key ] ) ) {
|
1367 |
-
if ( is_array( $config[ $key ] ) ) {
|
1368 |
-
$this->$key = array_merge( $this->$key, $config[ $key ] );
|
1369 |
-
} else {
|
1370 |
-
$this->$key = $config[ $key ];
|
1371 |
-
}
|
1372 |
-
}
|
1373 |
-
}
|
1374 |
-
}
|
1375 |
-
|
1376 |
-
/**
|
1377 |
-
* Amend action link after plugin installation.
|
1378 |
-
*
|
1379 |
-
* @since 2.0.0
|
1380 |
-
*
|
1381 |
-
* @param array $install_actions Existing array of actions.
|
1382 |
-
* @return array Amended array of actions.
|
1383 |
-
*/
|
1384 |
-
public function actions( $install_actions ) {
|
1385 |
-
// Remove action links on the TGMPA install page.
|
1386 |
-
if ( $this->is_tgmpa_page() ) {
|
1387 |
-
return false;
|
1388 |
-
}
|
1389 |
-
|
1390 |
-
return $install_actions;
|
1391 |
-
}
|
1392 |
-
|
1393 |
-
/**
|
1394 |
-
* Flushes the plugins cache on theme switch to prevent stale entries
|
1395 |
-
* from remaining in the plugin table.
|
1396 |
-
*
|
1397 |
-
* @since 2.4.0
|
1398 |
-
*
|
1399 |
-
* @param bool $clear_update_cache Optional. Whether to clear the Plugin updates cache.
|
1400 |
-
* Parameter added in v2.5.0.
|
1401 |
-
*/
|
1402 |
-
public function flush_plugins_cache( $clear_update_cache = true ) {
|
1403 |
-
wp_clean_plugins_cache( $clear_update_cache );
|
1404 |
-
}
|
1405 |
-
|
1406 |
-
/**
|
1407 |
-
* Set file_path key for each installed plugin.
|
1408 |
-
*
|
1409 |
-
* @since 2.1.0
|
1410 |
-
*
|
1411 |
-
* @param string $plugin_slug Optional. If set, only (re-)populates the file path for that specific plugin.
|
1412 |
-
* Parameter added in v2.5.0.
|
1413 |
-
*/
|
1414 |
-
public function populate_file_path( $plugin_slug = '' ) {
|
1415 |
-
if ( ! empty( $plugin_slug ) && is_string( $plugin_slug ) && isset( $this->plugins[ $plugin_slug ] ) ) {
|
1416 |
-
$this->plugins[ $plugin_slug ]['file_path'] = $this->_get_plugin_basename_from_slug( $plugin_slug );
|
1417 |
-
} else {
|
1418 |
-
// Add file_path key for all plugins.
|
1419 |
-
foreach ( $this->plugins as $slug => $values ) {
|
1420 |
-
$this->plugins[ $slug ]['file_path'] = $this->_get_plugin_basename_from_slug( $slug );
|
1421 |
-
}
|
1422 |
-
}
|
1423 |
-
}
|
1424 |
-
|
1425 |
-
/**
|
1426 |
-
* Helper function to extract the file path of the plugin file from the
|
1427 |
-
* plugin slug, if the plugin is installed.
|
1428 |
-
*
|
1429 |
-
* @since 2.0.0
|
1430 |
-
*
|
1431 |
-
* @param string $slug Plugin slug (typically folder name) as provided by the developer.
|
1432 |
-
* @return string Either file path for plugin if installed, or just the plugin slug.
|
1433 |
-
*/
|
1434 |
-
protected function _get_plugin_basename_from_slug( $slug ) {
|
1435 |
-
$keys = array_keys( $this->get_plugins() );
|
1436 |
-
|
1437 |
-
foreach ( $keys as $key ) {
|
1438 |
-
if ( preg_match( '|^' . $slug . '/|', $key ) ) {
|
1439 |
-
return $key;
|
1440 |
-
}
|
1441 |
-
}
|
1442 |
-
|
1443 |
-
return $slug;
|
1444 |
-
}
|
1445 |
-
|
1446 |
-
/**
|
1447 |
-
* Retrieve plugin data, given the plugin name.
|
1448 |
-
*
|
1449 |
-
* Loops through the registered plugins looking for $name. If it finds it,
|
1450 |
-
* it returns the $data from that plugin. Otherwise, returns false.
|
1451 |
-
*
|
1452 |
-
* @since 2.1.0
|
1453 |
-
*
|
1454 |
-
* @param string $name Name of the plugin, as it was registered.
|
1455 |
-
* @param string $data Optional. Array key of plugin data to return. Default is slug.
|
1456 |
-
* @return string|boolean Plugin slug if found, false otherwise.
|
1457 |
-
*/
|
1458 |
-
public function _get_plugin_data_from_name( $name, $data = 'slug' ) {
|
1459 |
-
foreach ( $this->plugins as $values ) {
|
1460 |
-
if ( $name === $values['name'] && isset( $values[ $data ] ) ) {
|
1461 |
-
return $values[ $data ];
|
1462 |
-
}
|
1463 |
-
}
|
1464 |
-
|
1465 |
-
return false;
|
1466 |
-
}
|
1467 |
-
|
1468 |
-
/**
|
1469 |
-
* Retrieve the download URL for a package.
|
1470 |
-
*
|
1471 |
-
* @since 2.5.0
|
1472 |
-
*
|
1473 |
-
* @param string $slug Plugin slug.
|
1474 |
-
* @return string Plugin download URL or path to local file or empty string if undetermined.
|
1475 |
-
*/
|
1476 |
-
public function get_download_url( $slug ) {
|
1477 |
-
$dl_source = '';
|
1478 |
-
|
1479 |
-
switch ( $this->plugins[ $slug ]['source_type'] ) {
|
1480 |
-
case 'repo':
|
1481 |
-
return $this->get_wp_repo_download_url( $slug );
|
1482 |
-
case 'external':
|
1483 |
-
return $this->plugins[ $slug ]['source'];
|
1484 |
-
case 'bundled':
|
1485 |
-
return $this->default_path . $this->plugins[ $slug ]['source'];
|
1486 |
-
}
|
1487 |
-
|
1488 |
-
return $dl_source; // Should never happen.
|
1489 |
-
}
|
1490 |
-
|
1491 |
-
/**
|
1492 |
-
* Retrieve the download URL for a WP repo package.
|
1493 |
-
*
|
1494 |
-
* @since 2.5.0
|
1495 |
-
*
|
1496 |
-
* @param string $slug Plugin slug.
|
1497 |
-
* @return string Plugin download URL.
|
1498 |
-
*/
|
1499 |
-
protected function get_wp_repo_download_url( $slug ) {
|
1500 |
-
$source = '';
|
1501 |
-
$api = $this->get_plugins_api( $slug );
|
1502 |
-
|
1503 |
-
if ( false !== $api && isset( $api->download_link ) ) {
|
1504 |
-
$source = $api->download_link;
|
1505 |
-
}
|
1506 |
-
|
1507 |
-
return $source;
|
1508 |
-
}
|
1509 |
-
|
1510 |
-
/**
|
1511 |
-
* Try to grab information from WordPress API.
|
1512 |
-
*
|
1513 |
-
* @since 2.5.0
|
1514 |
-
*
|
1515 |
-
* @param string $slug Plugin slug.
|
1516 |
-
* @return object Plugins_api response object on success, WP_Error on failure.
|
1517 |
-
*/
|
1518 |
-
protected function get_plugins_api( $slug ) {
|
1519 |
-
static $api = array(); // Cache received responses.
|
1520 |
-
|
1521 |
-
if ( ! isset( $api[ $slug ] ) ) {
|
1522 |
-
if ( ! function_exists( 'plugins_api' ) ) {
|
1523 |
-
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
1524 |
-
}
|
1525 |
-
|
1526 |
-
$response = plugins_api(
|
1527 |
-
'plugin_information', array(
|
1528 |
-
'slug' => $slug,
|
1529 |
-
'fields' => array( 'sections' => false ),
|
1530 |
-
)
|
1531 |
-
);
|
1532 |
-
|
1533 |
-
$api[ $slug ] = false;
|
1534 |
-
|
1535 |
-
if ( is_wp_error( $response ) ) {
|
1536 |
-
wp_die( esc_html( $this->strings['oops'] ) );
|
1537 |
-
} else {
|
1538 |
-
$api[ $slug ] = $response;
|
1539 |
-
}
|
1540 |
-
}
|
1541 |
-
|
1542 |
-
return $api[ $slug ];
|
1543 |
-
}
|
1544 |
-
|
1545 |
-
/**
|
1546 |
-
* Retrieve a link to a plugin information page.
|
1547 |
-
*
|
1548 |
-
* @since 2.5.0
|
1549 |
-
*
|
1550 |
-
* @param string $slug Plugin slug.
|
1551 |
-
* @return string Fully formed html link to a plugin information page if available
|
1552 |
-
* or the plugin name if not.
|
1553 |
-
*/
|
1554 |
-
public function get_info_link( $slug ) {
|
1555 |
-
if ( ! empty( $this->plugins[ $slug ]['external_url'] ) && preg_match( self::IS_URL_REGEX, $this->plugins[ $slug ]['external_url'] ) ) {
|
1556 |
-
$link = sprintf(
|
1557 |
-
'<a href="%1$s" target="_blank">%2$s</a>',
|
1558 |
-
esc_url( $this->plugins[ $slug ]['external_url'] ),
|
1559 |
-
esc_html( $this->plugins[ $slug ]['name'] )
|
1560 |
-
);
|
1561 |
-
} elseif ( 'repo' === $this->plugins[ $slug ]['source_type'] ) {
|
1562 |
-
$url = add_query_arg(
|
1563 |
-
array(
|
1564 |
-
'tab' => 'plugin-information',
|
1565 |
-
'plugin' => urlencode( $slug ),
|
1566 |
-
'TB_iframe' => 'true',
|
1567 |
-
'width' => '640',
|
1568 |
-
'height' => '500',
|
1569 |
-
),
|
1570 |
-
self_admin_url( 'plugin-install.php' )
|
1571 |
-
);
|
1572 |
-
|
1573 |
-
$link = sprintf(
|
1574 |
-
'<a href="%1$s" class="thickbox">%2$s</a>',
|
1575 |
-
esc_url( $url ),
|
1576 |
-
esc_html( $this->plugins[ $slug ]['name'] )
|
1577 |
-
);
|
1578 |
-
} else {
|
1579 |
-
$link = esc_html( $this->plugins[ $slug ]['name'] ); // No hyperlink.
|
1580 |
-
}
|
1581 |
-
|
1582 |
-
return $link;
|
1583 |
-
}
|
1584 |
-
|
1585 |
-
/**
|
1586 |
-
* Determine if we're on the TGMPA Install page.
|
1587 |
-
*
|
1588 |
-
* @since 2.1.0
|
1589 |
-
*
|
1590 |
-
* @return boolean True when on the TGMPA page, false otherwise.
|
1591 |
-
*/
|
1592 |
-
protected function is_tgmpa_page() {
|
1593 |
-
return isset( $_GET['page'] ) && $this->menu === $_GET['page'];
|
1594 |
-
}
|
1595 |
-
|
1596 |
-
/**
|
1597 |
-
* Retrieve the URL to the TGMPA Install page.
|
1598 |
-
*
|
1599 |
-
* I.e. depending on the config settings passed something along the lines of:
|
1600 |
-
* http://example.com/wp-admin/themes.php?page=tgmpa-install-plugins
|
1601 |
-
*
|
1602 |
-
* @since 2.5.0
|
1603 |
-
*
|
1604 |
-
* @return string Properly encoded URL (not escaped).
|
1605 |
-
*/
|
1606 |
-
public function get_tgmpa_url() {
|
1607 |
-
static $url;
|
1608 |
-
|
1609 |
-
if ( ! isset( $url ) ) {
|
1610 |
-
$parent = $this->parent_slug;
|
1611 |
-
if ( false === strpos( $parent, '.php' ) ) {
|
1612 |
-
$parent = 'admin.php';
|
1613 |
-
}
|
1614 |
-
$url = add_query_arg(
|
1615 |
-
array(
|
1616 |
-
'page' => urlencode( $this->menu ),
|
1617 |
-
),
|
1618 |
-
self_admin_url( $parent )
|
1619 |
-
);
|
1620 |
-
}
|
1621 |
-
|
1622 |
-
return $url;
|
1623 |
-
}
|
1624 |
-
|
1625 |
-
/**
|
1626 |
-
* Retrieve the URL to the TGMPA Install page for a specific plugin status (view).
|
1627 |
-
*
|
1628 |
-
* I.e. depending on the config settings passed something along the lines of:
|
1629 |
-
* http://example.com/wp-admin/themes.php?page=tgmpa-install-plugins&plugin_status=install
|
1630 |
-
*
|
1631 |
-
* @since 2.5.0
|
1632 |
-
*
|
1633 |
-
* @param string $status Plugin status - either 'install', 'update' or 'activate'.
|
1634 |
-
* @return string Properly encoded URL (not escaped).
|
1635 |
-
*/
|
1636 |
-
public function get_tgmpa_status_url( $status ) {
|
1637 |
-
return add_query_arg(
|
1638 |
-
array(
|
1639 |
-
'plugin_status' => urlencode( $status ),
|
1640 |
-
),
|
1641 |
-
$this->get_tgmpa_url()
|
1642 |
-
);
|
1643 |
-
}
|
1644 |
-
|
1645 |
-
/**
|
1646 |
-
* Determine whether there are open actions for plugins registered with TGMPA.
|
1647 |
-
*
|
1648 |
-
* @since 2.5.0
|
1649 |
-
*
|
1650 |
-
* @return bool True if complete, i.e. no outstanding actions. False otherwise.
|
1651 |
-
*/
|
1652 |
-
public function is_tgmpa_complete() {
|
1653 |
-
$complete = true;
|
1654 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
1655 |
-
if ( ! $this->is_plugin_active( $slug ) || false !== $this->does_plugin_have_update( $slug ) ) {
|
1656 |
-
$complete = false;
|
1657 |
-
break;
|
1658 |
-
}
|
1659 |
-
}
|
1660 |
-
|
1661 |
-
return $complete;
|
1662 |
-
}
|
1663 |
-
|
1664 |
-
/**
|
1665 |
-
* Check if a plugin is installed. Does not take must-use plugins into account.
|
1666 |
-
*
|
1667 |
-
* @since 2.5.0
|
1668 |
-
*
|
1669 |
-
* @param string $slug Plugin slug.
|
1670 |
-
* @return bool True if installed, false otherwise.
|
1671 |
-
*/
|
1672 |
-
public function is_plugin_installed( $slug ) {
|
1673 |
-
$installed_plugins = $this->get_plugins(); // Retrieve a list of all installed plugins (WP cached).
|
1674 |
-
|
1675 |
-
return ( ! empty( $installed_plugins[ $this->plugins[ $slug ]['file_path'] ] ) );
|
1676 |
-
}
|
1677 |
-
|
1678 |
-
/**
|
1679 |
-
* Check if a plugin is active.
|
1680 |
-
*
|
1681 |
-
* @since 2.5.0
|
1682 |
-
*
|
1683 |
-
* @param string $slug Plugin slug.
|
1684 |
-
* @return bool True if active, false otherwise.
|
1685 |
-
*/
|
1686 |
-
public function is_plugin_active( $slug ) {
|
1687 |
-
return ( ( ! empty( $this->plugins[ $slug ]['is_callable'] ) && is_callable( $this->plugins[ $slug ]['is_callable'] ) ) || is_plugin_active( $this->plugins[ $slug ]['file_path'] ) );
|
1688 |
-
}
|
1689 |
-
|
1690 |
-
/**
|
1691 |
-
* Check if a plugin can be updated, i.e. if we have information on the minimum WP version required
|
1692 |
-
* available, check whether the current install meets them.
|
1693 |
-
*
|
1694 |
-
* @since 2.5.0
|
1695 |
-
*
|
1696 |
-
* @param string $slug Plugin slug.
|
1697 |
-
* @return bool True if OK to update, false otherwise.
|
1698 |
-
*/
|
1699 |
-
public function can_plugin_update( $slug ) {
|
1700 |
-
// We currently can't get reliable info on non-WP-repo plugins - issue #380.
|
1701 |
-
if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
|
1702 |
-
return true;
|
1703 |
-
}
|
1704 |
-
|
1705 |
-
$api = $this->get_plugins_api( $slug );
|
1706 |
-
|
1707 |
-
if ( false !== $api && isset( $api->requires ) ) {
|
1708 |
-
return version_compare( $GLOBALS['wp_version'], $api->requires, '>=' );
|
1709 |
-
}
|
1710 |
-
|
1711 |
-
// No usable info received from the plugins API, presume we can update.
|
1712 |
-
return true;
|
1713 |
-
}
|
1714 |
-
|
1715 |
-
/**
|
1716 |
-
* Check if a plugin can be activated, i.e. is not currently active and meets the minimum
|
1717 |
-
* plugin version requirements set in TGMPA (if any).
|
1718 |
-
*
|
1719 |
-
* @since 2.5.0
|
1720 |
-
*
|
1721 |
-
* @param string $slug Plugin slug.
|
1722 |
-
* @return bool True if OK to activate, false otherwise.
|
1723 |
-
*/
|
1724 |
-
public function can_plugin_activate( $slug ) {
|
1725 |
-
return ( ! $this->is_plugin_active( $slug ) && ! $this->does_plugin_require_update( $slug ) );
|
1726 |
-
}
|
1727 |
-
|
1728 |
-
/**
|
1729 |
-
* Retrieve the version number of an installed plugin.
|
1730 |
-
*
|
1731 |
-
* @since 2.5.0
|
1732 |
-
*
|
1733 |
-
* @param string $slug Plugin slug.
|
1734 |
-
* @return string Version number as string or an empty string if the plugin is not installed
|
1735 |
-
* or version unknown (plugins which don't comply with the plugin header standard).
|
1736 |
-
*/
|
1737 |
-
public function get_installed_version( $slug ) {
|
1738 |
-
$installed_plugins = $this->get_plugins(); // Retrieve a list of all installed plugins (WP cached).
|
1739 |
-
|
1740 |
-
if ( ! empty( $installed_plugins[ $this->plugins[ $slug ]['file_path'] ]['Version'] ) ) {
|
1741 |
-
return $installed_plugins[ $this->plugins[ $slug ]['file_path'] ]['Version'];
|
1742 |
-
}
|
1743 |
-
|
1744 |
-
return '';
|
1745 |
-
}
|
1746 |
-
|
1747 |
-
/**
|
1748 |
-
* Check whether a plugin complies with the minimum version requirements.
|
1749 |
-
*
|
1750 |
-
* @since 2.5.0
|
1751 |
-
*
|
1752 |
-
* @param string $slug Plugin slug.
|
1753 |
-
* @return bool True when a plugin needs to be updated, otherwise false.
|
1754 |
-
*/
|
1755 |
-
public function does_plugin_require_update( $slug ) {
|
1756 |
-
$installed_version = $this->get_installed_version( $slug );
|
1757 |
-
$minimum_version = $this->plugins[ $slug ]['version'];
|
1758 |
-
|
1759 |
-
return version_compare( $minimum_version, $installed_version, '>' );
|
1760 |
-
}
|
1761 |
-
|
1762 |
-
/**
|
1763 |
-
* Check whether there is an update available for a plugin.
|
1764 |
-
*
|
1765 |
-
* @since 2.5.0
|
1766 |
-
*
|
1767 |
-
* @param string $slug Plugin slug.
|
1768 |
-
* @return false|string Version number string of the available update or false if no update available.
|
1769 |
-
*/
|
1770 |
-
public function does_plugin_have_update( $slug ) {
|
1771 |
-
// Presume bundled and external plugins will point to a package which meets the minimum required version.
|
1772 |
-
if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
|
1773 |
-
if ( $this->does_plugin_require_update( $slug ) ) {
|
1774 |
-
return $this->plugins[ $slug ]['version'];
|
1775 |
-
}
|
1776 |
-
|
1777 |
-
return false;
|
1778 |
-
}
|
1779 |
-
|
1780 |
-
$repo_updates = get_site_transient( 'update_plugins' );
|
1781 |
-
|
1782 |
-
if ( isset( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version ) ) {
|
1783 |
-
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->new_version;
|
1784 |
-
}
|
1785 |
-
|
1786 |
-
return false;
|
1787 |
-
}
|
1788 |
-
|
1789 |
-
/**
|
1790 |
-
* Retrieve potential upgrade notice for a plugin.
|
1791 |
-
*
|
1792 |
-
* @since 2.5.0
|
1793 |
-
*
|
1794 |
-
* @param string $slug Plugin slug.
|
1795 |
-
* @return string The upgrade notice or an empty string if no message was available or provided.
|
1796 |
-
*/
|
1797 |
-
public function get_upgrade_notice( $slug ) {
|
1798 |
-
// We currently can't get reliable info on non-WP-repo plugins - issue #380.
|
1799 |
-
if ( 'repo' !== $this->plugins[ $slug ]['source_type'] ) {
|
1800 |
-
return '';
|
1801 |
-
}
|
1802 |
-
|
1803 |
-
$repo_updates = get_site_transient( 'update_plugins' );
|
1804 |
-
|
1805 |
-
if ( ! empty( $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice ) ) {
|
1806 |
-
return $repo_updates->response[ $this->plugins[ $slug ]['file_path'] ]->upgrade_notice;
|
1807 |
-
}
|
1808 |
-
|
1809 |
-
return '';
|
1810 |
-
}
|
1811 |
-
|
1812 |
-
/**
|
1813 |
-
* Wrapper around the core WP get_plugins function, making sure it's actually available.
|
1814 |
-
*
|
1815 |
-
* @since 2.5.0
|
1816 |
-
*
|
1817 |
-
* @param string $plugin_folder Optional. Relative path to single plugin folder.
|
1818 |
-
* @return array Array of installed plugins with plugin information.
|
1819 |
-
*/
|
1820 |
-
public function get_plugins( $plugin_folder = '' ) {
|
1821 |
-
if ( ! function_exists( 'get_plugins' ) ) {
|
1822 |
-
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
1823 |
-
}
|
1824 |
-
|
1825 |
-
return get_plugins( $plugin_folder );
|
1826 |
-
}
|
1827 |
-
|
1828 |
-
/**
|
1829 |
-
* Delete dismissable nag option when theme is switched.
|
1830 |
-
*
|
1831 |
-
* This ensures that the user(s) is/are again reminded via nag of required
|
1832 |
-
* and/or recommended plugins if they re-activate the theme.
|
1833 |
-
*
|
1834 |
-
* @since 2.1.1
|
1835 |
-
*/
|
1836 |
-
public function update_dismiss() {
|
1837 |
-
delete_metadata( 'user', null, 'tgmpa_dismissed_notice_' . $this->id, null, true );
|
1838 |
-
}
|
1839 |
-
|
1840 |
-
/**
|
1841 |
-
* Forces plugin activation if the parameter 'force_activation' is
|
1842 |
-
* set to true.
|
1843 |
-
*
|
1844 |
-
* This allows theme authors to specify certain plugins that must be
|
1845 |
-
* active at all times while using the current theme.
|
1846 |
-
*
|
1847 |
-
* Please take special care when using this parameter as it has the
|
1848 |
-
* potential to be harmful if not used correctly. Setting this parameter
|
1849 |
-
* to true will not allow the specified plugin to be deactivated unless
|
1850 |
-
* the user switches themes.
|
1851 |
-
*
|
1852 |
-
* @since 2.2.0
|
1853 |
-
*/
|
1854 |
-
public function force_activation() {
|
1855 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
1856 |
-
if ( true === $plugin['force_activation'] ) {
|
1857 |
-
if ( ! $this->is_plugin_installed( $slug ) ) {
|
1858 |
-
// Oops, plugin isn't there so iterate to next condition.
|
1859 |
-
continue;
|
1860 |
-
} elseif ( $this->can_plugin_activate( $slug ) ) {
|
1861 |
-
// There we go, activate the plugin.
|
1862 |
-
activate_plugin( $plugin['file_path'] );
|
1863 |
-
}
|
1864 |
-
}
|
1865 |
-
}
|
1866 |
-
}
|
1867 |
-
|
1868 |
-
/**
|
1869 |
-
* Forces plugin deactivation if the parameter 'force_deactivation'
|
1870 |
-
* is set to true.
|
1871 |
-
*
|
1872 |
-
* This allows theme authors to specify certain plugins that must be
|
1873 |
-
* deactivated upon switching from the current theme to another.
|
1874 |
-
*
|
1875 |
-
* Please take special care when using this parameter as it has the
|
1876 |
-
* potential to be harmful if not used correctly.
|
1877 |
-
*
|
1878 |
-
* @since 2.2.0
|
1879 |
-
*/
|
1880 |
-
public function force_deactivation() {
|
1881 |
-
foreach ( $this->plugins as $slug => $plugin ) {
|
1882 |
-
// Only proceed forward if the parameter is set to true and plugin is active.
|
1883 |
-
if ( true === $plugin['force_deactivation'] && $this->is_plugin_active( $slug ) ) {
|
1884 |
-
deactivate_plugins( $plugin['file_path'] );
|
1885 |
-
}
|
1886 |
-
}
|
1887 |
-
}
|
1888 |
-
|
1889 |
-
/**
|
1890 |
-
* Echo the current TGMPA version number to the page.
|
1891 |
-
*/
|
1892 |
-
public function show_tgmpa_version() {
|
1893 |
-
echo '<p style="float: right; padding: 0em 1.5em 0.5em 0;"><strong><small>',
|
1894 |
-
esc_html( sprintf( _x( 'TGMPA v%s', '%s = version number', 'lightning' ), self::TGMPA_VERSION ) ),
|
1895 |
-
'</small></strong></p>';
|
1896 |
-
}
|
1897 |
-
|
1898 |
-
/**
|
1899 |
-
* Returns the singleton instance of the class.
|
1900 |
-
*
|
1901 |
-
* @since 2.4.0
|
1902 |
-
*
|
1903 |
-
* @return object The TGM_Plugin_Activation object.
|
1904 |
-
*/
|
1905 |
-
public static function get_instance() {
|
1906 |
-
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) {
|
1907 |
-
self::$instance = new self();
|
1908 |
-
}
|
1909 |
-
|
1910 |
-
return self::$instance;
|
1911 |
-
}
|
1912 |
-
}
|
1913 |
-
|
1914 |
-
if ( ! function_exists( 'load_tgm_plugin_activation' ) ) {
|
1915 |
-
/**
|
1916 |
-
* Ensure only one instance of the class is ever invoked.
|
1917 |
-
*/
|
1918 |
-
function load_tgm_plugin_activation() {
|
1919 |
-
$GLOBALS['tgmpa'] = TGM_Plugin_Activation::get_instance();
|
1920 |
-
}
|
1921 |
-
}
|
1922 |
-
|
1923 |
-
if ( did_action( 'plugins_loaded' ) ) {
|
1924 |
-
load_tgm_plugin_activation();
|
1925 |
-
} else {
|
1926 |
-
add_action( 'plugins_loaded', 'load_tgm_plugin_activation' );
|
1927 |
-
}
|
1928 |
-
}
|
1929 |
-
|
1930 |
-
if ( ! function_exists( 'tgmpa' ) ) {
|
1931 |
-
/**
|
1932 |
-
* Helper function to register a collection of required plugins.
|
1933 |
-
*
|
1934 |
-
* @since 2.0.0
|
1935 |
-
* @api
|
1936 |
-
*
|
1937 |
-
* @param array $plugins An array of plugin arrays.
|
1938 |
-
* @param array $config Optional. An array of configuration values.
|
1939 |
-
*/
|
1940 |
-
function tgmpa( $plugins, $config = array() ) {
|
1941 |
-
$instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
1942 |
-
|
1943 |
-
foreach ( $plugins as $plugin ) {
|
1944 |
-
call_user_func( array( $instance, 'register' ), $plugin );
|
1945 |
-
}
|
1946 |
-
|
1947 |
-
if ( ! empty( $config ) && is_array( $config ) ) {
|
1948 |
-
// Send out notices for deprecated arguments passed.
|
1949 |
-
if ( isset( $config['notices'] ) ) {
|
1950 |
-
_deprecated_argument( __FUNCTION__, '2.2.0', 'The `notices` config parameter was renamed to `has_notices` in TGMPA 2.2.0. Please adjust your configuration.' );
|
1951 |
-
if ( ! isset( $config['has_notices'] ) ) {
|
1952 |
-
$config['has_notices'] = $config['notices'];
|
1953 |
-
}
|
1954 |
-
}
|
1955 |
-
|
1956 |
-
if ( isset( $config['parent_menu_slug'] ) ) {
|
1957 |
-
_deprecated_argument( __FUNCTION__, '2.4.0', 'The `parent_menu_slug` config parameter was removed in TGMPA 2.4.0. In TGMPA 2.5.0 an alternative was (re-)introduced. Please adjust your configuration. For more information visit the website: http://tgmpluginactivation.com/configuration/#h-configuration-options.' );
|
1958 |
-
}
|
1959 |
-
if ( isset( $config['parent_url_slug'] ) ) {
|
1960 |
-
_deprecated_argument( __FUNCTION__, '2.4.0', 'The `parent_url_slug` config parameter was removed in TGMPA 2.4.0. In TGMPA 2.5.0 an alternative was (re-)introduced. Please adjust your configuration. For more information visit the website: http://tgmpluginactivation.com/configuration/#h-configuration-options.' );
|
1961 |
-
}
|
1962 |
-
|
1963 |
-
call_user_func( array( $instance, 'config' ), $config );
|
1964 |
-
}
|
1965 |
-
}
|
1966 |
-
}
|
1967 |
-
|
1968 |
-
/**
|
1969 |
-
* WP_List_Table isn't always available. If it isn't available,
|
1970 |
-
* we load it here.
|
1971 |
-
*
|
1972 |
-
* @since 2.2.0
|
1973 |
-
*/
|
1974 |
-
if ( ! class_exists( 'WP_List_Table' ) ) {
|
1975 |
-
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
|
1976 |
-
}
|
1977 |
-
|
1978 |
-
if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
1979 |
-
|
1980 |
-
/**
|
1981 |
-
* List table class for handling plugins.
|
1982 |
-
*
|
1983 |
-
* Extends the WP_List_Table class to provide a future-compatible
|
1984 |
-
* way of listing out all required/recommended plugins.
|
1985 |
-
*
|
1986 |
-
* Gives users an interface similar to the Plugin Administration
|
1987 |
-
* area with similar (albeit stripped down) capabilities.
|
1988 |
-
*
|
1989 |
-
* This class also allows for the bulk install of plugins.
|
1990 |
-
*
|
1991 |
-
* @since 2.2.0
|
1992 |
-
*
|
1993 |
-
* @package TGM-Plugin-Activation
|
1994 |
-
* @author Thomas Griffin
|
1995 |
-
* @author Gary Jones
|
1996 |
-
*/
|
1997 |
-
class TGMPA_List_Table extends WP_List_Table {
|
1998 |
-
/**
|
1999 |
-
* TGMPA instance.
|
2000 |
-
*
|
2001 |
-
* @since 2.5.0
|
2002 |
-
*
|
2003 |
-
* @var object
|
2004 |
-
*/
|
2005 |
-
protected $tgmpa;
|
2006 |
-
|
2007 |
-
/**
|
2008 |
-
* The currently chosen view.
|
2009 |
-
*
|
2010 |
-
* @since 2.5.0
|
2011 |
-
*
|
2012 |
-
* @var string One of: 'all', 'install', 'update', 'activate'
|
2013 |
-
*/
|
2014 |
-
public $view_context = 'all';
|
2015 |
-
|
2016 |
-
/**
|
2017 |
-
* The plugin counts for the various views.
|
2018 |
-
*
|
2019 |
-
* @since 2.5.0
|
2020 |
-
*
|
2021 |
-
* @var array
|
2022 |
-
*/
|
2023 |
-
protected $view_totals = array(
|
2024 |
-
'all' => 0,
|
2025 |
-
'install' => 0,
|
2026 |
-
'update' => 0,
|
2027 |
-
'activate' => 0,
|
2028 |
-
);
|
2029 |
-
|
2030 |
-
/**
|
2031 |
-
* References parent constructor and sets defaults for class.
|
2032 |
-
*
|
2033 |
-
* @since 2.2.0
|
2034 |
-
*/
|
2035 |
-
public function __construct() {
|
2036 |
-
$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
2037 |
-
|
2038 |
-
parent::__construct(
|
2039 |
-
array(
|
2040 |
-
'singular' => 'plugin',
|
2041 |
-
'plural' => 'plugins',
|
2042 |
-
'ajax' => false,
|
2043 |
-
)
|
2044 |
-
);
|
2045 |
-
|
2046 |
-
if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'install', 'update', 'activate' ), true ) ) {
|
2047 |
-
$this->view_context = sanitize_key( $_REQUEST['plugin_status'] );
|
2048 |
-
}
|
2049 |
-
|
2050 |
-
add_filter( 'tgmpa_table_data_items', array( $this, 'sort_table_items' ) );
|
2051 |
-
}
|
2052 |
-
|
2053 |
-
/**
|
2054 |
-
* Get a list of CSS classes for the <table> tag.
|
2055 |
-
*
|
2056 |
-
* Overruled to prevent the 'plural' argument from being added.
|
2057 |
-
*
|
2058 |
-
* @since 2.5.0
|
2059 |
-
*
|
2060 |
-
* @return array CSS classnames.
|
2061 |
-
*/
|
2062 |
-
public function get_table_classes() {
|
2063 |
-
return array( 'widefat', 'fixed' );
|
2064 |
-
}
|
2065 |
-
|
2066 |
-
/**
|
2067 |
-
* Gathers and renames all of our plugin information to be used by WP_List_Table to create our table.
|
2068 |
-
*
|
2069 |
-
* @since 2.2.0
|
2070 |
-
*
|
2071 |
-
* @return array $table_data Information for use in table.
|
2072 |
-
*/
|
2073 |
-
protected function _gather_plugin_data() {
|
2074 |
-
// Load thickbox for plugin links.
|
2075 |
-
$this->tgmpa->admin_init();
|
2076 |
-
$this->tgmpa->thickbox();
|
2077 |
-
|
2078 |
-
// Categorize the plugins which have open actions.
|
2079 |
-
$plugins = $this->categorize_plugins_to_views();
|
2080 |
-
|
2081 |
-
// Set the counts for the view links.
|
2082 |
-
$this->set_view_totals( $plugins );
|
2083 |
-
|
2084 |
-
// Prep variables for use and grab list of all installed plugins.
|
2085 |
-
$table_data = array();
|
2086 |
-
$i = 0;
|
2087 |
-
|
2088 |
-
// Redirect to the 'all' view if no plugins were found for the selected view context.
|
2089 |
-
if ( empty( $plugins[ $this->view_context ] ) ) {
|
2090 |
-
$this->view_context = 'all';
|
2091 |
-
}
|
2092 |
-
|
2093 |
-
foreach ( $plugins[ $this->view_context ] as $slug => $plugin ) {
|
2094 |
-
$table_data[ $i ]['sanitized_plugin'] = $plugin['name'];
|
2095 |
-
$table_data[ $i ]['slug'] = $slug;
|
2096 |
-
$table_data[ $i ]['plugin'] = '<strong>' . $this->tgmpa->get_info_link( $slug ) . '</strong>';
|
2097 |
-
$table_data[ $i ]['source'] = $this->get_plugin_source_type_text( $plugin['source_type'] );
|
2098 |
-
$table_data[ $i ]['type'] = $this->get_plugin_advise_type_text( $plugin['required'] );
|
2099 |
-
$table_data[ $i ]['status'] = $this->get_plugin_status_text( $slug );
|
2100 |
-
$table_data[ $i ]['installed_version'] = $this->tgmpa->get_installed_version( $slug );
|
2101 |
-
$table_data[ $i ]['minimum_version'] = $plugin['version'];
|
2102 |
-
$table_data[ $i ]['available_version'] = $this->tgmpa->does_plugin_have_update( $slug );
|
2103 |
-
|
2104 |
-
// Prep the upgrade notice info.
|
2105 |
-
$upgrade_notice = $this->tgmpa->get_upgrade_notice( $slug );
|
2106 |
-
if ( ! empty( $upgrade_notice ) ) {
|
2107 |
-
$table_data[ $i ]['upgrade_notice'] = $upgrade_notice;
|
2108 |
-
|
2109 |
-
add_action( "tgmpa_after_plugin_row_$slug", array( $this, 'wp_plugin_update_row' ), 10, 2 );
|
2110 |
-
}
|
2111 |
-
|
2112 |
-
$table_data[ $i ] = apply_filters( 'tgmpa_table_data_item', $table_data[ $i ], $plugin );
|
2113 |
-
|
2114 |
-
$i++;
|
2115 |
-
}
|
2116 |
-
|
2117 |
-
return $table_data;
|
2118 |
-
}
|
2119 |
-
|
2120 |
-
/**
|
2121 |
-
* Categorize the plugins which have open actions into views for the TGMPA page.
|
2122 |
-
*
|
2123 |
-
* @since 2.5.0
|
2124 |
-
*/
|
2125 |
-
protected function categorize_plugins_to_views() {
|
2126 |
-
$plugins = array(
|
2127 |
-
'all' => array(), // Meaning: all plugins which still have open actions.
|
2128 |
-
'install' => array(),
|
2129 |
-
'update' => array(),
|
2130 |
-
'activate' => array(),
|
2131 |
-
);
|
2132 |
-
|
2133 |
-
foreach ( $this->tgmpa->plugins as $slug => $plugin ) {
|
2134 |
-
if ( $this->tgmpa->is_plugin_active( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
2135 |
-
// No need to display plugins if they are installed, up-to-date and active.
|
2136 |
-
continue;
|
2137 |
-
} else {
|
2138 |
-
$plugins['all'][ $slug ] = $plugin;
|
2139 |
-
|
2140 |
-
if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
|
2141 |
-
$plugins['install'][ $slug ] = $plugin;
|
2142 |
-
} else {
|
2143 |
-
if ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
2144 |
-
$plugins['update'][ $slug ] = $plugin;
|
2145 |
-
}
|
2146 |
-
|
2147 |
-
if ( $this->tgmpa->can_plugin_activate( $slug ) ) {
|
2148 |
-
$plugins['activate'][ $slug ] = $plugin;
|
2149 |
-
}
|
2150 |
-
}
|
2151 |
-
}
|
2152 |
-
}
|
2153 |
-
|
2154 |
-
return $plugins;
|
2155 |
-
}
|
2156 |
-
|
2157 |
-
/**
|
2158 |
-
* Set the counts for the view links.
|
2159 |
-
*
|
2160 |
-
* @since 2.5.0
|
2161 |
-
*
|
2162 |
-
* @param array $plugins Plugins order by view.
|
2163 |
-
*/
|
2164 |
-
protected function set_view_totals( $plugins ) {
|
2165 |
-
foreach ( $plugins as $type => $list ) {
|
2166 |
-
$this->view_totals[ $type ] = count( $list );
|
2167 |
-
}
|
2168 |
-
}
|
2169 |
-
|
2170 |
-
/**
|
2171 |
-
* Get the plugin required/recommended text string.
|
2172 |
-
*
|
2173 |
-
* @since 2.5.0
|
2174 |
-
*
|
2175 |
-
* @param string $required Plugin required setting.
|
2176 |
-
* @return string
|
2177 |
-
*/
|
2178 |
-
protected function get_plugin_advise_type_text( $required ) {
|
2179 |
-
if ( true === $required ) {
|
2180 |
-
return __( 'Required', 'lightning' );
|
2181 |
-
}
|
2182 |
-
|
2183 |
-
return __( 'Recommended', 'lightning' );
|
2184 |
-
}
|
2185 |
-
|
2186 |
-
/**
|
2187 |
-
* Get the plugin source type text string.
|
2188 |
-
*
|
2189 |
-
* @since 2.5.0
|
2190 |
-
*
|
2191 |
-
* @param string $type Plugin type.
|
2192 |
-
* @return string
|
2193 |
-
*/
|
2194 |
-
protected function get_plugin_source_type_text( $type ) {
|
2195 |
-
$string = '';
|
2196 |
-
|
2197 |
-
switch ( $type ) {
|
2198 |
-
case 'repo':
|
2199 |
-
$string = __( 'WordPress Repository', 'lightning' );
|
2200 |
-
break;
|
2201 |
-
case 'external':
|
2202 |
-
$string = __( 'External Source', 'lightning' );
|
2203 |
-
break;
|
2204 |
-
case 'bundled':
|
2205 |
-
$string = __( 'Pre-Packaged', 'lightning' );
|
2206 |
-
break;
|
2207 |
-
}
|
2208 |
-
|
2209 |
-
return $string;
|
2210 |
-
}
|
2211 |
-
|
2212 |
-
/**
|
2213 |
-
* Determine the plugin status message.
|
2214 |
-
*
|
2215 |
-
* @since 2.5.0
|
2216 |
-
*
|
2217 |
-
* @param string $slug Plugin slug.
|
2218 |
-
* @return string
|
2219 |
-
*/
|
2220 |
-
protected function get_plugin_status_text( $slug ) {
|
2221 |
-
if ( ! $this->tgmpa->is_plugin_installed( $slug ) ) {
|
2222 |
-
return __( 'Not Installed', 'lightning' );
|
2223 |
-
}
|
2224 |
-
|
2225 |
-
if ( ! $this->tgmpa->is_plugin_active( $slug ) ) {
|
2226 |
-
$install_status = __( 'Installed But Not Activated', 'lightning' );
|
2227 |
-
} else {
|
2228 |
-
$install_status = __( 'Active', 'lightning' );
|
2229 |
-
}
|
2230 |
-
|
2231 |
-
$update_status = '';
|
2232 |
-
|
2233 |
-
if ( $this->tgmpa->does_plugin_require_update( $slug ) && false === $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
2234 |
-
$update_status = __( 'Required Update not Available', 'lightning' );
|
2235 |
-
|
2236 |
-
} elseif ( $this->tgmpa->does_plugin_require_update( $slug ) ) {
|
2237 |
-
$update_status = __( 'Requires Update', 'lightning' );
|
2238 |
-
|
2239 |
-
} elseif ( false !== $this->tgmpa->does_plugin_have_update( $slug ) ) {
|
2240 |
-
$update_status = __( 'Update recommended', 'lightning' );
|
2241 |
-
}
|
2242 |
-
|
2243 |
-
if ( '' === $update_status ) {
|
2244 |
-
return $install_status;
|
2245 |
-
}
|
2246 |
-
|
2247 |
-
return sprintf(
|
2248 |
-
_x( '%1$s, %2$s', '%1$s = install status, %2$s = update status', 'lightning' ),
|
2249 |
-
$install_status,
|
2250 |
-
$update_status
|
2251 |
-
);
|
2252 |
-
}
|
2253 |
-
|
2254 |
-
/**
|
2255 |
-
* Sort plugins by Required/Recommended type and by alphabetical plugin name within each type.
|
2256 |
-
*
|
2257 |
-
* @since 2.5.0
|
2258 |
-
*
|
2259 |
-
* @param array $items Prepared table items.
|
2260 |
-
* @return array Sorted table items.
|
2261 |
-
*/
|
2262 |
-
public function sort_table_items( $items ) {
|
2263 |
-
$type = array();
|
2264 |
-
$name = array();
|
2265 |
-
|
2266 |
-
foreach ( $items as $i => $plugin ) {
|
2267 |
-
$type[ $i ] = $plugin['type']; // Required / recommended.
|
2268 |
-
$name[ $i ] = $plugin['sanitized_plugin'];
|
2269 |
-
}
|
2270 |
-
|
2271 |
-
array_multisort( $type, SORT_DESC, $name, SORT_ASC, $items );
|
2272 |
-
|
2273 |
-
return $items;
|
2274 |
-
}
|
2275 |
-
|
2276 |
-
/**
|
2277 |
-
* Get an associative array ( id => link ) of the views available on this table.
|
2278 |
-
*
|
2279 |
-
* @since 2.5.0
|
2280 |
-
*
|
2281 |
-
* @return array
|
2282 |
-
*/
|
2283 |
-
public function get_views() {
|
2284 |
-
$status_links = array();
|
2285 |
-
|
2286 |
-
foreach ( $this->view_totals as $type => $count ) {
|
2287 |
-
if ( $count < 1 ) {
|
2288 |
-
continue;
|
2289 |
-
}
|
2290 |
-
|
2291 |
-
switch ( $type ) {
|
2292 |
-
case 'all':
|
2293 |
-
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'plugins', 'lightning' );
|
2294 |
-
break;
|
2295 |
-
case 'install':
|
2296 |
-
$text = _n( 'To Install <span class="count">(%s)</span>', 'To Install <span class="count">(%s)</span>', $count, 'lightning' );
|
2297 |
-
break;
|
2298 |
-
case 'update':
|
2299 |
-
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'lightning' );
|
2300 |
-
break;
|
2301 |
-
case 'activate':
|
2302 |
-
$text = _n( 'To Activate <span class="count">(%s)</span>', 'To Activate <span class="count">(%s)</span>', $count, 'lightning' );
|
2303 |
-
break;
|
2304 |
-
default:
|
2305 |
-
$text = '';
|
2306 |
-
break;
|
2307 |
-
}
|
2308 |
-
|
2309 |
-
if ( ! empty( $text ) ) {
|
2310 |
-
|
2311 |
-
$status_links[ $type ] = sprintf(
|
2312 |
-
'<a href="%s"%s>%s</a>',
|
2313 |
-
esc_url( $this->tgmpa->get_tgmpa_status_url( $type ) ),
|
2314 |
-
( $type === $this->view_context ) ? ' class="current"' : '',
|
2315 |
-
sprintf( $text, number_format_i18n( $count ) )
|
2316 |
-
);
|
2317 |
-
}
|
2318 |
-
}
|
2319 |
-
|
2320 |
-
return $status_links;
|
2321 |
-
}
|
2322 |
-
|
2323 |
-
/**
|
2324 |
-
* Create default columns to display important plugin information
|
2325 |
-
* like type, action and status.
|
2326 |
-
*
|
2327 |
-
* @since 2.2.0
|
2328 |
-
*
|
2329 |
-
* @param array $item Array of item data.
|
2330 |
-
* @param string $column_name The name of the column.
|
2331 |
-
* @return string
|
2332 |
-
*/
|
2333 |
-
public function column_default( $item, $column_name ) {
|
2334 |
-
return $item[ $column_name ];
|
2335 |
-
}
|
2336 |
-
|
2337 |
-
/**
|
2338 |
-
* Required for bulk installing.
|
2339 |
-
*
|
2340 |
-
* Adds a checkbox for each plugin.
|
2341 |
-
*
|
2342 |
-
* @since 2.2.0
|
2343 |
-
*
|
2344 |
-
* @param array $item Array of item data.
|
2345 |
-
* @return string The input checkbox with all necessary info.
|
2346 |
-
*/
|
2347 |
-
public function column_cb( $item ) {
|
2348 |
-
return sprintf(
|
2349 |
-
'<input type="checkbox" name="%1$s[]" value="%2$s" id="%3$s" />',
|
2350 |
-
esc_attr( $this->_args['singular'] ),
|
2351 |
-
esc_attr( $item['slug'] ),
|
2352 |
-
esc_attr( $item['sanitized_plugin'] )
|
2353 |
-
);
|
2354 |
-
}
|
2355 |
-
|
2356 |
-
/**
|
2357 |
-
* Create default title column along with the action links.
|
2358 |
-
*
|
2359 |
-
* @since 2.2.0
|
2360 |
-
*
|
2361 |
-
* @param array $item Array of item data.
|
2362 |
-
* @return string The plugin name and action links.
|
2363 |
-
*/
|
2364 |
-
public function column_plugin( $item ) {
|
2365 |
-
return sprintf(
|
2366 |
-
'%1$s %2$s',
|
2367 |
-
$item['plugin'],
|
2368 |
-
$this->row_actions( $this->get_row_actions( $item ), true )
|
2369 |
-
);
|
2370 |
-
}
|
2371 |
-
|
2372 |
-
/**
|
2373 |
-
* Create version information column.
|
2374 |
-
*
|
2375 |
-
* @since 2.5.0
|
2376 |
-
*
|
2377 |
-
* @param array $item Array of item data.
|
2378 |
-
* @return string HTML-formatted version information.
|
2379 |
-
*/
|
2380 |
-
public function column_version( $item ) {
|
2381 |
-
$output = array();
|
2382 |
-
|
2383 |
-
if ( $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
|
2384 |
-
$installed = ! empty( $item['installed_version'] ) ? $item['installed_version'] : _x( 'unknown', 'as in: "version nr unknown"', 'lightning' );
|
2385 |
-
|
2386 |
-
$color = '';
|
2387 |
-
if ( ! empty( $item['minimum_version'] ) && $this->tgmpa->does_plugin_require_update( $item['slug'] ) ) {
|
2388 |
-
$color = ' color: #ff0000; font-weight: bold;';
|
2389 |
-
}
|
2390 |
-
|
2391 |
-
$output[] = sprintf(
|
2392 |
-
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Installed version:', 'lightning' ) . '</p>',
|
2393 |
-
$color,
|
2394 |
-
$installed
|
2395 |
-
);
|
2396 |
-
}
|
2397 |
-
|
2398 |
-
if ( ! empty( $item['minimum_version'] ) ) {
|
2399 |
-
$output[] = sprintf(
|
2400 |
-
'<p><span style="min-width: 32px; text-align: right; float: right;">%1$s</span>' . __( 'Minimum required version:', 'lightning' ) . '</p>',
|
2401 |
-
$item['minimum_version']
|
2402 |
-
);
|
2403 |
-
}
|
2404 |
-
|
2405 |
-
if ( ! empty( $item['available_version'] ) ) {
|
2406 |
-
$color = '';
|
2407 |
-
if ( ! empty( $item['minimum_version'] ) && version_compare( $item['available_version'], $item['minimum_version'], '>=' ) ) {
|
2408 |
-
$color = ' color: #71C671; font-weight: bold;';
|
2409 |
-
}
|
2410 |
-
|
2411 |
-
$output[] = sprintf(
|
2412 |
-
'<p><span style="min-width: 32px; text-align: right; float: right;%1$s">%2$s</span>' . __( 'Available version:', 'lightning' ) . '</p>',
|
2413 |
-
$color,
|
2414 |
-
$item['available_version']
|
2415 |
-
);
|
2416 |
-
}
|
2417 |
-
|
2418 |
-
if ( empty( $output ) ) {
|
2419 |
-
return ' '; // Let's not break the table layout.
|
2420 |
-
} else {
|
2421 |
-
return implode( "\n", $output );
|
2422 |
-
}
|
2423 |
-
}
|
2424 |
-
|
2425 |
-
/**
|
2426 |
-
* Sets default message within the plugins table if no plugins
|
2427 |
-
* are left for interaction.
|
2428 |
-
*
|
2429 |
-
* Hides the menu item to prevent the user from clicking and
|
2430 |
-
* getting a permissions error.
|
2431 |
-
*
|
2432 |
-
* @since 2.2.0
|
2433 |
-
*/
|
2434 |
-
public function no_items() {
|
2435 |
-
printf( wp_kses_post( __( 'No plugins to install, update or activate. <a href="%1$s">Return to the Dashboard</a>', 'lightning' ) ), esc_url( self_admin_url() ) );
|
2436 |
-
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
2437 |
-
}
|
2438 |
-
|
2439 |
-
/**
|
2440 |
-
* Output all the column information within the table.
|
2441 |
-
*
|
2442 |
-
* @since 2.2.0
|
2443 |
-
*
|
2444 |
-
* @return array $columns The column names.
|
2445 |
-
*/
|
2446 |
-
public function get_columns() {
|
2447 |
-
$columns = array(
|
2448 |
-
'cb' => '<input type="checkbox" />',
|
2449 |
-
'plugin' => __( 'Plugin', 'lightning' ),
|
2450 |
-
'source' => __( 'Source', 'lightning' ),
|
2451 |
-
'type' => __( 'Type', 'lightning' ),
|
2452 |
-
);
|
2453 |
-
|
2454 |
-
if ( 'all' === $this->view_context || 'update' === $this->view_context ) {
|
2455 |
-
$columns['version'] = __( 'Version', 'lightning' );
|
2456 |
-
$columns['status'] = __( 'Status', 'lightning' );
|
2457 |
-
}
|
2458 |
-
|
2459 |
-
return apply_filters( 'tgmpa_table_columns', $columns );
|
2460 |
-
}
|
2461 |
-
|
2462 |
-
/**
|
2463 |
-
* Get name of default primary column
|
2464 |
-
*
|
2465 |
-
* @since 2.5.0 / WP 4.3+ compatibility
|
2466 |
-
* @access protected
|
2467 |
-
*
|
2468 |
-
* @return string
|
2469 |
-
*/
|
2470 |
-
protected function get_default_primary_column_name() {
|
2471 |
-
return 'plugin';
|
2472 |
-
}
|
2473 |
-
|
2474 |
-
/**
|
2475 |
-
* Get the name of the primary column.
|
2476 |
-
*
|
2477 |
-
* @since 2.5.0 / WP 4.3+ compatibility
|
2478 |
-
* @access protected
|
2479 |
-
*
|
2480 |
-
* @return string The name of the primary column.
|
2481 |
-
*/
|
2482 |
-
protected function get_primary_column_name() {
|
2483 |
-
if ( method_exists( 'WP_List_Table', 'get_primary_column_name' ) ) {
|
2484 |
-
return parent::get_primary_column_name();
|
2485 |
-
} else {
|
2486 |
-
return $this->get_default_primary_column_name();
|
2487 |
-
}
|
2488 |
-
}
|
2489 |
-
|
2490 |
-
/**
|
2491 |
-
* Get the actions which are relevant for a specific plugin row.
|
2492 |
-
*
|
2493 |
-
* @since 2.5.0
|
2494 |
-
*
|
2495 |
-
* @param array $item Array of item data.
|
2496 |
-
* @return array Array with relevant action links.
|
2497 |
-
*/
|
2498 |
-
protected function get_row_actions( $item ) {
|
2499 |
-
$actions = array();
|
2500 |
-
$action_links = array();
|
2501 |
-
|
2502 |
-
// Display the 'Install' action link if the plugin is not yet available.
|
2503 |
-
if ( ! $this->tgmpa->is_plugin_installed( $item['slug'] ) ) {
|
2504 |
-
$actions['install'] = _x( 'Install %2$s', '%2$s = plugin name in screen reader markup', 'lightning' );
|
2505 |
-
} else {
|
2506 |
-
// Display the 'Update' action link if an update is available and WP complies with plugin minimum.
|
2507 |
-
if ( false !== $this->tgmpa->does_plugin_have_update( $item['slug'] ) && $this->tgmpa->can_plugin_update( $item['slug'] ) ) {
|
2508 |
-
$actions['update'] = _x( 'Update %2$s', '%2$s = plugin name in screen reader markup', 'lightning' );
|
2509 |
-
}
|
2510 |
-
|
2511 |
-
// Display the 'Activate' action link, but only if the plugin meets the minimum version.
|
2512 |
-
if ( $this->tgmpa->can_plugin_activate( $item['slug'] ) ) {
|
2513 |
-
$actions['activate'] = _x( 'Activate %2$s', '%2$s = plugin name in screen reader markup', 'lightning' );
|
2514 |
-
}
|
2515 |
-
}
|
2516 |
-
|
2517 |
-
// Create the actual links.
|
2518 |
-
foreach ( $actions as $action => $text ) {
|
2519 |
-
$nonce_url = wp_nonce_url(
|
2520 |
-
add_query_arg(
|
2521 |
-
array(
|
2522 |
-
'plugin' => urlencode( $item['slug'] ),
|
2523 |
-
'tgmpa-' . $action => $action . '-plugin',
|
2524 |
-
),
|
2525 |
-
$this->tgmpa->get_tgmpa_url()
|
2526 |
-
),
|
2527 |
-
'tgmpa-' . $action,
|
2528 |
-
'tgmpa-nonce'
|
2529 |
-
);
|
2530 |
-
|
2531 |
-
$action_links[ $action ] = sprintf(
|
2532 |
-
'<a href="%1$s">' . esc_html( $text ) . '</a>',
|
2533 |
-
esc_url( $nonce_url ),
|
2534 |
-
'<span class="screen-reader-text">' . esc_html( $item['sanitized_plugin'] ) . '</span>'
|
2535 |
-
);
|
2536 |
-
}
|
2537 |
-
|
2538 |
-
$prefix = ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) ? 'network_admin_' : '';
|
2539 |
-
return apply_filters( "tgmpa_{$prefix}plugin_action_links", array_filter( $action_links ), $item['slug'], $item, $this->view_context );
|
2540 |
-
}
|
2541 |
-
|
2542 |
-
/**
|
2543 |
-
* Generates content for a single row of the table.
|
2544 |
-
*
|
2545 |
-
* @since 2.5.0
|
2546 |
-
*
|
2547 |
-
* @param object $item The current item.
|
2548 |
-
*/
|
2549 |
-
public function single_row( $item ) {
|
2550 |
-
parent::single_row( $item );
|
2551 |
-
|
2552 |
-
/**
|
2553 |
-
* Fires after each specific row in the TGMPA Plugins list table.
|
2554 |
-
*
|
2555 |
-
* The dynamic portion of the hook name, `$item['slug']`, refers to the slug
|
2556 |
-
* for the plugin.
|
2557 |
-
*
|
2558 |
-
* @since 2.5.0
|
2559 |
-
*/
|
2560 |
-
do_action( "tgmpa_after_plugin_row_{$item['slug']}", $item['slug'], $item, $this->view_context );
|
2561 |
-
}
|
2562 |
-
|
2563 |
-
/**
|
2564 |
-
* Show the upgrade notice below a plugin row if there is one.
|
2565 |
-
*
|
2566 |
-
* @since 2.5.0
|
2567 |
-
*
|
2568 |
-
* @see /wp-admin/includes/update.php
|
2569 |
-
*
|
2570 |
-
* @param string $slug Plugin slug.
|
2571 |
-
* @param array $item The information available in this table row.
|
2572 |
-
* @return null Return early if upgrade notice is empty.
|
2573 |
-
*/
|
2574 |
-
public function wp_plugin_update_row( $slug, $item ) {
|
2575 |
-
if ( empty( $item['upgrade_notice'] ) ) {
|
2576 |
-
return;
|
2577 |
-
}
|
2578 |
-
|
2579 |
-
echo '
|
2580 |
-
<tr class="plugin-update-tr">
|
2581 |
-
<td colspan="', absint( $this->get_column_count() ), '" class="plugin-update colspanchange">
|
2582 |
-
<div class="update-message">',
|
2583 |
-
esc_html__( 'Upgrade message from the plugin author:', 'lightning' ),
|
2584 |
-
' <strong>', wp_kses_data( $item['upgrade_notice'] ), '</strong>
|
2585 |
-
</div>
|
2586 |
-
</td>
|
2587 |
-
</tr>';
|
2588 |
-
}
|
2589 |
-
|
2590 |
-
/**
|
2591 |
-
* Extra controls to be displayed between bulk actions and pagination.
|
2592 |
-
*
|
2593 |
-
* @since 2.5.0
|
2594 |
-
*
|
2595 |
-
* @param string $which 'top' or 'bottom' table navigation.
|
2596 |
-
*/
|
2597 |
-
public function extra_tablenav( $which ) {
|
2598 |
-
if ( 'bottom' === $which ) {
|
2599 |
-
$this->tgmpa->show_tgmpa_version();
|
2600 |
-
}
|
2601 |
-
}
|
2602 |
-
|
2603 |
-
/**
|
2604 |
-
* Defines the bulk actions for handling registered plugins.
|
2605 |
-
*
|
2606 |
-
* @since 2.2.0
|
2607 |
-
*
|
2608 |
-
* @return array $actions The bulk actions for the plugin install table.
|
2609 |
-
*/
|
2610 |
-
public function get_bulk_actions() {
|
2611 |
-
|
2612 |
-
$actions = array();
|
2613 |
-
|
2614 |
-
if ( 'update' !== $this->view_context && 'activate' !== $this->view_context ) {
|
2615 |
-
if ( current_user_can( 'install_plugins' ) ) {
|
2616 |
-
$actions['tgmpa-bulk-install'] = __( 'Install', 'lightning' );
|
2617 |
-
}
|
2618 |
-
}
|
2619 |
-
|
2620 |
-
if ( 'install' !== $this->view_context ) {
|
2621 |
-
if ( current_user_can( 'update_plugins' ) ) {
|
2622 |
-
$actions['tgmpa-bulk-update'] = __( 'Update', 'lightning' );
|
2623 |
-
}
|
2624 |
-
if ( current_user_can( 'activate_plugins' ) ) {
|
2625 |
-
$actions['tgmpa-bulk-activate'] = __( 'Activate', 'lightning' );
|
2626 |
-
}
|
2627 |
-
}
|
2628 |
-
|
2629 |
-
return $actions;
|
2630 |
-
}
|
2631 |
-
|
2632 |
-
/**
|
2633 |
-
* Processes bulk installation and activation actions.
|
2634 |
-
*
|
2635 |
-
* The bulk installation process looks for the $_POST information and passes that
|
2636 |
-
* through if a user has to use WP_Filesystem to enter their credentials.
|
2637 |
-
*
|
2638 |
-
* @since 2.2.0
|
2639 |
-
*/
|
2640 |
-
public function process_bulk_actions() {
|
2641 |
-
// Bulk installation process.
|
2642 |
-
if ( 'tgmpa-bulk-install' === $this->current_action() || 'tgmpa-bulk-update' === $this->current_action() ) {
|
2643 |
-
|
2644 |
-
check_admin_referer( 'bulk-' . $this->_args['plural'] );
|
2645 |
-
|
2646 |
-
$install_type = 'install';
|
2647 |
-
if ( 'tgmpa-bulk-update' === $this->current_action() ) {
|
2648 |
-
$install_type = 'update';
|
2649 |
-
}
|
2650 |
-
|
2651 |
-
$plugins_to_install = array();
|
2652 |
-
|
2653 |
-
// Did user actually select any plugins to install/update ?
|
2654 |
-
if ( empty( $_POST['plugin'] ) ) {
|
2655 |
-
if ( 'install' === $install_type ) {
|
2656 |
-
$message = __( 'No plugins were selected to be installed. No action taken.', 'lightning' );
|
2657 |
-
} else {
|
2658 |
-
$message = __( 'No plugins were selected to be updated. No action taken.', 'lightning' );
|
2659 |
-
}
|
2660 |
-
|
2661 |
-
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
|
2662 |
-
|
2663 |
-
return false;
|
2664 |
-
}
|
2665 |
-
|
2666 |
-
if ( is_array( $_POST['plugin'] ) ) {
|
2667 |
-
$plugins_to_install = (array) $_POST['plugin'];
|
2668 |
-
} elseif ( is_string( $_POST['plugin'] ) ) {
|
2669 |
-
// Received via Filesystem page - un-flatten array (WP bug #19643).
|
2670 |
-
$plugins_to_install = explode( ',', $_POST['plugin'] );
|
2671 |
-
}
|
2672 |
-
|
2673 |
-
// Sanitize the received input.
|
2674 |
-
$plugins_to_install = array_map( 'urldecode', $plugins_to_install );
|
2675 |
-
$plugins_to_install = array_map( array( $this->tgmpa, 'sanitize_key' ), $plugins_to_install );
|
2676 |
-
|
2677 |
-
// Validate the received input.
|
2678 |
-
foreach ( $plugins_to_install as $key => $slug ) {
|
2679 |
-
// Check if the plugin was registered with TGMPA and remove if not.
|
2680 |
-
if ( ! isset( $this->tgmpa->plugins[ $slug ] ) ) {
|
2681 |
-
unset( $plugins_to_install[ $key ] );
|
2682 |
-
continue;
|
2683 |
-
}
|
2684 |
-
|
2685 |
-
// For updates: make sure this is a plugin we *can* update (update available and WP version ok).
|
2686 |
-
if ( 'update' === $install_type && ( $this->tgmpa->is_plugin_installed( $slug ) && ( false === $this->tgmpa->does_plugin_have_update( $slug ) || ! $this->tgmpa->can_plugin_update( $slug ) ) ) ) {
|
2687 |
-
unset( $plugins_to_install[ $key ] );
|
2688 |
-
}
|
2689 |
-
}
|
2690 |
-
|
2691 |
-
// No need to proceed further if we have no plugins to handle.
|
2692 |
-
if ( empty( $plugins_to_install ) ) {
|
2693 |
-
if ( 'install' === $install_type ) {
|
2694 |
-
$message = __( 'No plugins are available to be installed at this time.', 'lightning' );
|
2695 |
-
} else {
|
2696 |
-
$message = __( 'No plugins are available to be updated at this time.', 'lightning' );
|
2697 |
-
}
|
2698 |
-
|
2699 |
-
echo '<div id="message" class="error"><p>', esc_html( $message ), '</p></div>';
|
2700 |
-
|
2701 |
-
return false;
|
2702 |
-
}
|
2703 |
-
|
2704 |
-
// Pass all necessary information if WP_Filesystem is needed.
|
2705 |
-
$url = wp_nonce_url(
|
2706 |
-
$this->tgmpa->get_tgmpa_url(),
|
2707 |
-
'bulk-' . $this->_args['plural']
|
2708 |
-
);
|
2709 |
-
|
2710 |
-
// Give validated data back to $_POST which is the only place the filesystem looks for extra fields.
|
2711 |
-
$_POST['plugin'] = implode( ',', $plugins_to_install ); // Work around for WP bug #19643.
|
2712 |
-
|
2713 |
-
$method = ''; // Leave blank so WP_Filesystem can populate it as necessary.
|
2714 |
-
$fields = array_keys( $_POST ); // Extra fields to pass to WP_Filesystem.
|
2715 |
-
|
2716 |
-
if ( false === ( $creds = request_filesystem_credentials( esc_url_raw( $url ), $method, false, false, $fields ) ) ) {
|
2717 |
-
return true; // Stop the normal page form from displaying, credential request form will be shown.
|
2718 |
-
}
|
2719 |
-
|
2720 |
-
// Now we have some credentials, setup WP_Filesystem.
|
2721 |
-
if ( ! WP_Filesystem( $creds ) ) {
|
2722 |
-
// Our credentials were no good, ask the user for them again.
|
2723 |
-
request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields );
|
2724 |
-
|
2725 |
-
return true;
|
2726 |
-
}
|
2727 |
-
|
2728 |
-
/* If we arrive here, we have the filesystem */
|
2729 |
-
|
2730 |
-
// Store all information in arrays since we are processing a bulk installation.
|
2731 |
-
$names = array();
|
2732 |
-
$sources = array(); // Needed for installs.
|
2733 |
-
$file_paths = array(); // Needed for upgrades.
|
2734 |
-
$to_inject = array(); // Information to inject into the update_plugins transient.
|
2735 |
-
|
2736 |
-
// Prepare the data for validated plugins for the install/upgrade.
|
2737 |
-
foreach ( $plugins_to_install as $slug ) {
|
2738 |
-
$name = $this->tgmpa->plugins[ $slug ]['name'];
|
2739 |
-
$source = $this->tgmpa->get_download_url( $slug );
|
2740 |
-
|
2741 |
-
if ( ! empty( $name ) && ! empty( $source ) ) {
|
2742 |
-
$names[] = $name;
|
2743 |
-
|
2744 |
-
switch ( $install_type ) {
|
2745 |
-
|
2746 |
-
case 'install':
|
2747 |
-
$sources[] = $source;
|
2748 |
-
break;
|
2749 |
-
|
2750 |
-
case 'update':
|
2751 |
-
$file_paths[] = $this->tgmpa->plugins[ $slug ]['file_path'];
|
2752 |
-
$to_inject[ $slug ] = $this->tgmpa->plugins[ $slug ];
|
2753 |
-
$to_inject[ $slug ]['source'] = $source;
|
2754 |
-
break;
|
2755 |
-
}
|
2756 |
-
}
|
2757 |
-
}
|
2758 |
-
unset( $slug, $name, $source );
|
2759 |
-
|
2760 |
-
// Create a new instance of TGMPA_Bulk_Installer.
|
2761 |
-
$installer = new TGMPA_Bulk_Installer(
|
2762 |
-
new TGMPA_Bulk_Installer_Skin(
|
2763 |
-
array(
|
2764 |
-
'url' => esc_url_raw( $this->tgmpa->get_tgmpa_url() ),
|
2765 |
-
'nonce' => 'bulk-' . $this->_args['plural'],
|
2766 |
-
'names' => $names,
|
2767 |
-
'install_type' => $install_type,
|
2768 |
-
)
|
2769 |
-
)
|
2770 |
-
);
|
2771 |
-
|
2772 |
-
// Wrap the install process with the appropriate HTML.
|
2773 |
-
echo '<div class="tgmpa wrap">',
|
2774 |
-
'<h2>', esc_html( get_admin_page_title() ), '</h2>';
|
2775 |
-
|
2776 |
-
// Process the bulk installation submissions.
|
2777 |
-
add_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 );
|
2778 |
-
|
2779 |
-
if ( 'tgmpa-bulk-update' === $this->current_action() ) {
|
2780 |
-
// Inject our info into the update transient.
|
2781 |
-
$this->tgmpa->inject_update_info( $to_inject );
|
2782 |
-
|
2783 |
-
$installer->bulk_upgrade( $file_paths );
|
2784 |
-
} else {
|
2785 |
-
$installer->bulk_install( $sources );
|
2786 |
-
}
|
2787 |
-
|
2788 |
-
remove_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 );
|
2789 |
-
|
2790 |
-
echo '</div>';
|
2791 |
-
|
2792 |
-
return true;
|
2793 |
-
}
|
2794 |
-
|
2795 |
-
// Bulk activation process.
|
2796 |
-
if ( 'tgmpa-bulk-activate' === $this->current_action() ) {
|
2797 |
-
check_admin_referer( 'bulk-' . $this->_args['plural'] );
|
2798 |
-
|
2799 |
-
// Did user actually select any plugins to activate ?
|
2800 |
-
if ( empty( $_POST['plugin'] ) ) {
|
2801 |
-
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins were selected to be activated. No action taken.', 'lightning' ), '</p></div>';
|
2802 |
-
|
2803 |
-
return false;
|
2804 |
-
}
|
2805 |
-
|
2806 |
-
// Grab plugin data from $_POST.
|
2807 |
-
$plugins = array();
|
2808 |
-
if ( isset( $_POST['plugin'] ) ) {
|
2809 |
-
$plugins = array_map( 'urldecode', (array) $_POST['plugin'] );
|
2810 |
-
$plugins = array_map( array( $this->tgmpa, 'sanitize_key' ), $plugins );
|
2811 |
-
}
|
2812 |
-
|
2813 |
-
$plugins_to_activate = array();
|
2814 |
-
$plugin_names = array();
|
2815 |
-
|
2816 |
-
// Grab the file paths for the selected & inactive plugins from the registration array.
|
2817 |
-
foreach ( $plugins as $slug ) {
|
2818 |
-
if ( $this->tgmpa->can_plugin_activate( $slug ) ) {
|
2819 |
-
$plugins_to_activate[] = $this->tgmpa->plugins[ $slug ]['file_path'];
|
2820 |
-
$plugin_names[] = $this->tgmpa->plugins[ $slug ]['name'];
|
2821 |
-
}
|
2822 |
-
}
|
2823 |
-
unset( $slug );
|
2824 |
-
|
2825 |
-
// Return early if there are no plugins to activate.
|
2826 |
-
if ( empty( $plugins_to_activate ) ) {
|
2827 |
-
echo '<div id="message" class="error"><p>', esc_html__( 'No plugins are available to be activated at this time.', 'lightning' ), '</p></div>';
|
2828 |
-
|
2829 |
-
return false;
|
2830 |
-
}
|
2831 |
-
|
2832 |
-
// Now we are good to go - let's start activating plugins.
|
2833 |
-
$activate = activate_plugins( $plugins_to_activate );
|
2834 |
-
|
2835 |
-
if ( is_wp_error( $activate ) ) {
|
2836 |
-
echo '<div id="message" class="error"><p>', wp_kses_post( $activate->get_error_message() ), '</p></div>';
|
2837 |
-
} else {
|
2838 |
-
$count = count( $plugin_names ); // Count so we can use _n function.
|
2839 |
-
$plugin_names = array_map( array( 'TGMPA_Utils', 'wrap_in_strong' ), $plugin_names );
|
2840 |
-
$last_plugin = array_pop( $plugin_names ); // Pop off last name to prep for readability.
|
2841 |
-
$imploded = empty( $plugin_names ) ? $last_plugin : ( implode( ', ', $plugin_names ) . ' ' . esc_html_x( 'and', 'plugin A *and* plugin B', 'lightning' ) . ' ' . $last_plugin );
|
2842 |
-
|
2843 |
-
printf( // WPCS: xss ok.
|
2844 |
-
'<div id="message" class="updated"><p>%1$s %2$s.</p></div>',
|
2845 |
-
esc_html( _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'lightning' ) ),
|
2846 |
-
$imploded
|
2847 |
-
);
|
2848 |
-
|
2849 |
-
// Update recently activated plugins option.
|
2850 |
-
$recent = (array) get_option( 'recently_activated' );
|
2851 |
-
foreach ( $plugins_to_activate as $plugin => $time ) {
|
2852 |
-
if ( isset( $recent[ $plugin ] ) ) {
|
2853 |
-
unset( $recent[ $plugin ] );
|
2854 |
-
}
|
2855 |
-
}
|
2856 |
-
update_option( 'recently_activated', $recent );
|
2857 |
-
}
|
2858 |
-
|
2859 |
-
unset( $_POST ); // Reset the $_POST variable in case user wants to perform one action after another.
|
2860 |
-
|
2861 |
-
return true;
|
2862 |
-
}
|
2863 |
-
|
2864 |
-
return false;
|
2865 |
-
}
|
2866 |
-
|
2867 |
-
/**
|
2868 |
-
* Prepares all of our information to be outputted into a usable table.
|
2869 |
-
*
|
2870 |
-
* @since 2.2.0
|
2871 |
-
*/
|
2872 |
-
public function prepare_items() {
|
2873 |
-
$columns = $this->get_columns(); // Get all necessary column information.
|
2874 |
-
$hidden = array(); // No columns to hide, but we must set as an array.
|
2875 |
-
$sortable = array(); // No reason to make sortable columns.
|
2876 |
-
$primary = $this->get_primary_column_name(); // Column which has the row actions.
|
2877 |
-
$this->_column_headers = array( $columns, $hidden, $sortable, $primary ); // Get all necessary column headers.
|
2878 |
-
|
2879 |
-
// Process our bulk activations here.
|
2880 |
-
if ( 'tgmpa-bulk-activate' === $this->current_action() ) {
|
2881 |
-
$this->process_bulk_actions();
|
2882 |
-
}
|
2883 |
-
|
2884 |
-
// Store all of our plugin data into $items array so WP_List_Table can use it.
|
2885 |
-
$this->items = apply_filters( 'tgmpa_table_data_items', $this->_gather_plugin_data() );
|
2886 |
-
}
|
2887 |
-
|
2888 |
-
/* *********** DEPRECATED METHODS *********** */
|
2889 |
-
|
2890 |
-
/**
|
2891 |
-
* Retrieve plugin data, given the plugin name.
|
2892 |
-
*
|
2893 |
-
* @since 2.2.0
|
2894 |
-
* @deprecated 2.5.0 use {@see TGM_Plugin_Activation::_get_plugin_data_from_name()} instead.
|
2895 |
-
* @see TGM_Plugin_Activation::_get_plugin_data_from_name()
|
2896 |
-
*
|
2897 |
-
* @param string $name Name of the plugin, as it was registered.
|
2898 |
-
* @param string $data Optional. Array key of plugin data to return. Default is slug.
|
2899 |
-
* @return string|boolean Plugin slug if found, false otherwise.
|
2900 |
-
*/
|
2901 |
-
protected function _get_plugin_data_from_name( $name, $data = 'slug' ) {
|
2902 |
-
_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'TGM_Plugin_Activation::_get_plugin_data_from_name()' );
|
2903 |
-
|
2904 |
-
return $this->tgmpa->_get_plugin_data_from_name( $name, $data );
|
2905 |
-
}
|
2906 |
-
}
|
2907 |
-
}
|
2908 |
-
|
2909 |
-
|
2910 |
-
if ( ! class_exists( 'TGM_Bulk_Installer' ) ) {
|
2911 |
-
|
2912 |
-
/**
|
2913 |
-
* Hack: Prevent TGMPA v2.4.1- bulk installer class from being loaded if 2.4.1- is loaded after 2.5+.
|
2914 |
-
*/
|
2915 |
-
class TGM_Bulk_Installer {
|
2916 |
-
}
|
2917 |
-
}
|
2918 |
-
if ( ! class_exists( 'TGM_Bulk_Installer_Skin' ) ) {
|
2919 |
-
|
2920 |
-
/**
|
2921 |
-
* Hack: Prevent TGMPA v2.4.1- bulk installer skin class from being loaded if 2.4.1- is loaded after 2.5+.
|
2922 |
-
*/
|
2923 |
-
class TGM_Bulk_Installer_Skin {
|
2924 |
-
}
|
2925 |
-
}
|
2926 |
-
|
2927 |
-
/**
|
2928 |
-
* The WP_Upgrader file isn't always available. If it isn't available,
|
2929 |
-
* we load it here.
|
2930 |
-
*
|
2931 |
-
* We check to make sure no action or activation keys are set so that WordPress
|
2932 |
-
* does not try to re-include the class when processing upgrades or installs outside
|
2933 |
-
* of the class.
|
2934 |
-
*
|
2935 |
-
* @since 2.2.0
|
2936 |
-
*/
|
2937 |
-
add_action( 'admin_init', 'tgmpa_load_bulk_installer' );
|
2938 |
-
if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
|
2939 |
-
/**
|
2940 |
-
* Load bulk installer
|
2941 |
-
*/
|
2942 |
-
function tgmpa_load_bulk_installer() {
|
2943 |
-
// Silently fail if 2.5+ is loaded *after* an older version.
|
2944 |
-
if ( ! isset( $GLOBALS['tgmpa'] ) ) {
|
2945 |
-
return;
|
2946 |
-
}
|
2947 |
-
|
2948 |
-
// Get TGMPA class instance.
|
2949 |
-
$tgmpa_instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
2950 |
-
|
2951 |
-
if ( isset( $_GET['page'] ) && $tgmpa_instance->menu === $_GET['page'] ) {
|
2952 |
-
if ( ! class_exists( 'Plugin_Upgrader', false ) ) {
|
2953 |
-
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
2954 |
-
}
|
2955 |
-
|
2956 |
-
if ( ! class_exists( 'TGMPA_Bulk_Installer' ) ) {
|
2957 |
-
|
2958 |
-
/**
|
2959 |
-
* Installer class to handle bulk plugin installations.
|
2960 |
-
*
|
2961 |
-
* Extends WP_Upgrader and customizes to suit the installation of multiple
|
2962 |
-
* plugins.
|
2963 |
-
*
|
2964 |
-
* @since 2.2.0
|
2965 |
-
*
|
2966 |
-
* @internal Since 2.5.0 the class is an extension of Plugin_Upgrader rather than WP_Upgrader
|
2967 |
-
* @internal Since 2.5.2 the class has been renamed from TGM_Bulk_Installer to TGMPA_Bulk_Installer.
|
2968 |
-
* This was done to prevent backward compatibility issues with v2.3.6.
|
2969 |
-
*
|
2970 |
-
* @package TGM-Plugin-Activation
|
2971 |
-
* @author Thomas Griffin
|
2972 |
-
* @author Gary Jones
|
2973 |
-
*/
|
2974 |
-
class TGMPA_Bulk_Installer extends Plugin_Upgrader {
|
2975 |
-
/**
|
2976 |
-
* Holds result of bulk plugin installation.
|
2977 |
-
*
|
2978 |
-
* @since 2.2.0
|
2979 |
-
*
|
2980 |
-
* @var string
|
2981 |
-
*/
|
2982 |
-
public $result;
|
2983 |
-
|
2984 |
-
/**
|
2985 |
-
* Flag to check if bulk installation is occurring or not.
|
2986 |
-
*
|
2987 |
-
* @since 2.2.0
|
2988 |
-
*
|
2989 |
-
* @var boolean
|
2990 |
-
*/
|
2991 |
-
public $bulk = false;
|
2992 |
-
|
2993 |
-
/**
|
2994 |
-
* TGMPA instance
|
2995 |
-
*
|
2996 |
-
* @since 2.5.0
|
2997 |
-
*
|
2998 |
-
* @var object
|
2999 |
-
*/
|
3000 |
-
protected $tgmpa;
|
3001 |
-
|
3002 |
-
/**
|
3003 |
-
* Whether or not the destination directory needs to be cleared ( = on update).
|
3004 |
-
*
|
3005 |
-
* @since 2.5.0
|
3006 |
-
*
|
3007 |
-
* @var bool
|
3008 |
-
*/
|
3009 |
-
protected $clear_destination = false;
|
3010 |
-
|
3011 |
-
/**
|
3012 |
-
* References parent constructor and sets defaults for class.
|
3013 |
-
*
|
3014 |
-
* @since 2.2.0
|
3015 |
-
*
|
3016 |
-
* @param \Bulk_Upgrader_Skin|null $skin Installer skin.
|
3017 |
-
*/
|
3018 |
-
public function __construct( $skin = null ) {
|
3019 |
-
// Get TGMPA class instance.
|
3020 |
-
$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
3021 |
-
|
3022 |
-
parent::__construct( $skin );
|
3023 |
-
|
3024 |
-
if ( isset( $this->skin->options['install_type'] ) && 'update' === $this->skin->options['install_type'] ) {
|
3025 |
-
$this->clear_destination = true;
|
3026 |
-
}
|
3027 |
-
|
3028 |
-
if ( $this->tgmpa->is_automatic ) {
|
3029 |
-
$this->activate_strings();
|
3030 |
-
}
|
3031 |
-
|
3032 |
-
add_action( 'upgrader_process_complete', array( $this->tgmpa, 'populate_file_path' ) );
|
3033 |
-
}
|
3034 |
-
|
3035 |
-
/**
|
3036 |
-
* Sets the correct activation strings for the installer skin to use.
|
3037 |
-
*
|
3038 |
-
* @since 2.2.0
|
3039 |
-
*/
|
3040 |
-
public function activate_strings() {
|
3041 |
-
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'lightning' );
|
3042 |
-
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'lightning' );
|
3043 |
-
}
|
3044 |
-
|
3045 |
-
/**
|
3046 |
-
* Performs the actual installation of each plugin.
|
3047 |
-
*
|
3048 |
-
* @since 2.2.0
|
3049 |
-
*
|
3050 |
-
* @see WP_Upgrader::run()
|
3051 |
-
*
|
3052 |
-
* @param array $options The installation config options.
|
3053 |
-
* @return null|array Return early if error, array of installation data on success.
|
3054 |
-
*/
|
3055 |
-
public function run( $options ) {
|
3056 |
-
$result = parent::run( $options );
|
3057 |
-
|
3058 |
-
// Reset the strings in case we changed one during automatic activation.
|
3059 |
-
if ( $this->tgmpa->is_automatic ) {
|
3060 |
-
if ( 'update' === $this->skin->options['install_type'] ) {
|
3061 |
-
$this->upgrade_strings();
|
3062 |
-
} else {
|
3063 |
-
$this->install_strings();
|
3064 |
-
}
|
3065 |
-
}
|
3066 |
-
|
3067 |
-
return $result;
|
3068 |
-
}
|
3069 |
-
|
3070 |
-
/**
|
3071 |
-
* Processes the bulk installation of plugins.
|
3072 |
-
*
|
3073 |
-
* @since 2.2.0
|
3074 |
-
*
|
3075 |
-
* @internal This is basically a near identical copy of the WP Core Plugin_Upgrader::bulk_upgrade()
|
3076 |
-
* method, with minor adjustments to deal with new installs instead of upgrades.
|
3077 |
-
* For ease of future synchronizations, the adjustments are clearly commented, but no other
|
3078 |
-
* comments are added. Code style has been made to comply.
|
3079 |
-
*
|
3080 |
-
* @see Plugin_Upgrader::bulk_upgrade()
|
3081 |
-
* @see https://core.trac.wordpress.org/browser/tags/4.2.1/src/wp-admin/includes/class-wp-upgrader.php#L838
|
3082 |
-
*
|
3083 |
-
* @param array $plugins The plugin sources needed for installation.
|
3084 |
-
* @param array $args Arbitrary passed extra arguments.
|
3085 |
-
* @return string|bool Install confirmation messages on success, false on failure.
|
3086 |
-
*/
|
3087 |
-
public function bulk_install( $plugins, $args = array() ) {
|
3088 |
-
// [TGMPA + ] Hook auto-activation in.
|
3089 |
-
add_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );
|
3090 |
-
|
3091 |
-
$defaults = array(
|
3092 |
-
'clear_update_cache' => true,
|
3093 |
-
);
|
3094 |
-
$parsed_args = wp_parse_args( $args, $defaults );
|
3095 |
-
|
3096 |
-
$this->init();
|
3097 |
-
$this->bulk = true;
|
3098 |
-
|
3099 |
-
$this->install_strings(); // [TGMPA + ] adjusted.
|
3100 |
-
|
3101 |
-
/* [TGMPA - ] $current = get_site_transient( 'update_plugins' ); */
|
3102 |
-
|
3103 |
-
/* [TGMPA - ] add_filter('upgrader_clear_destination', array($this, 'delete_old_plugin'), 10, 4); */
|
3104 |
-
|
3105 |
-
$this->skin->header();
|
3106 |
-
|
3107 |
-
// Connect to the Filesystem first.
|
3108 |
-
$res = $this->fs_connect( array( WP_CONTENT_DIR, WP_PLUGIN_DIR ) );
|
3109 |
-
if ( ! $res ) {
|
3110 |
-
$this->skin->footer();
|
3111 |
-
|
3112 |
-
return false;
|
3113 |
-
}
|
3114 |
-
|
3115 |
-
$this->skin->bulk_header();
|
3116 |
-
|
3117 |
-
// Only start maintenance mode if:
|
3118 |
-
// - running Multisite and there are one or more plugins specified, OR
|
3119 |
-
// - a plugin with an update available is currently active.
|
3120 |
-
// @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible.
|
3121 |
-
$maintenance = ( is_multisite() && ! empty( $plugins ) );
|
3122 |
-
|
3123 |
-
/*
|
3124 |
-
[TGMPA - ]
|
3125 |
-
foreach ( $plugins as $plugin )
|
3126 |
-
$maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin] ) );
|
3127 |
-
*/
|
3128 |
-
if ( $maintenance ) {
|
3129 |
-
$this->maintenance_mode( true );
|
3130 |
-
}
|
3131 |
-
|
3132 |
-
$results = array();
|
3133 |
-
|
3134 |
-
$this->update_count = count( $plugins );
|
3135 |
-
$this->update_current = 0;
|
3136 |
-
foreach ( $plugins as $plugin ) {
|
3137 |
-
$this->update_current++;
|
3138 |
-
|
3139 |
-
/*
|
3140 |
-
[TGMPA - ]
|
3141 |
-
$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true);
|
3142 |
-
|
3143 |
-
if ( !isset( $current->response[ $plugin ] ) ) {
|
3144 |
-
$this->skin->set_result('up_to_date');
|
3145 |
-
$this->skin->before();
|
3146 |
-
$this->skin->feedback('up_to_date');
|
3147 |
-
$this->skin->after();
|
3148 |
-
$results[$plugin] = true;
|
3149 |
-
continue;
|
3150 |
-
}
|
3151 |
-
|
3152 |
-
// Get the URL to the zip file
|
3153 |
-
$r = $current->response[ $plugin ];
|
3154 |
-
|
3155 |
-
$this->skin->plugin_active = is_plugin_active($plugin);
|
3156 |
-
*/
|
3157 |
-
|
3158 |
-
$result = $this->run(
|
3159 |
-
array(
|
3160 |
-
'package' => $plugin, // [TGMPA + ] adjusted.
|
3161 |
-
'destination' => WP_PLUGIN_DIR,
|
3162 |
-
'clear_destination' => false, // [TGMPA + ] adjusted.
|
3163 |
-
'clear_working' => true,
|
3164 |
-
'is_multi' => true,
|
3165 |
-
'hook_extra' => array(
|
3166 |
-
'plugin' => $plugin,
|
3167 |
-
),
|
3168 |
-
)
|
3169 |
-
);
|
3170 |
-
|
3171 |
-
$results[ $plugin ] = $this->result;
|
3172 |
-
|
3173 |
-
// Prevent credentials auth screen from displaying multiple times.
|
3174 |
-
if ( false === $result ) {
|
3175 |
-
break;
|
3176 |
-
}
|
3177 |
-
} //end foreach $plugins
|
3178 |
-
|
3179 |
-
$this->maintenance_mode( false );
|
3180 |
-
|
3181 |
-
/**
|
3182 |
-
* Fires when the bulk upgrader process is complete.
|
3183 |
-
*
|
3184 |
-
* @since WP 3.6.0 / TGMPA 2.5.0
|
3185 |
-
*
|
3186 |
-
* @param Plugin_Upgrader $this Plugin_Upgrader instance. In other contexts, $this, might
|
3187 |
-
* be a Theme_Upgrader or Core_Upgrade instance.
|
3188 |
-
* @param array $data {
|
3189 |
-
* Array of bulk item update data.
|
3190 |
-
*
|
3191 |
-
* @type string $action Type of action. Default 'update'.
|
3192 |
-
* @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'.
|
3193 |
-
* @type bool $bulk Whether the update process is a bulk update. Default true.
|
3194 |
-
* @type array $packages Array of plugin, theme, or core packages to update.
|
3195 |
-
* }
|
3196 |
-
*/
|
3197 |
-
do_action(
|
3198 |
-
'upgrader_process_complete', $this, array(
|
3199 |
-
'action' => 'install', // [TGMPA + ] adjusted.
|
3200 |
-
'type' => 'plugin',
|
3201 |
-
'bulk' => true,
|
3202 |
-
'plugins' => $plugins,
|
3203 |
-
)
|
3204 |
-
);
|
3205 |
-
|
3206 |
-
$this->skin->bulk_footer();
|
3207 |
-
|
3208 |
-
$this->skin->footer();
|
3209 |
-
|
3210 |
-
// Cleanup our hooks, in case something else does a upgrade on this connection.
|
3211 |
-
/* [TGMPA - ] remove_filter('upgrader_clear_destination', array($this, 'delete_old_plugin')); */
|
3212 |
-
|
3213 |
-
// [TGMPA + ] Remove our auto-activation hook.
|
3214 |
-
remove_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );
|
3215 |
-
|
3216 |
-
// Force refresh of plugin update information.
|
3217 |
-
wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );
|
3218 |
-
|
3219 |
-
return $results;
|
3220 |
-
}
|
3221 |
-
|
3222 |
-
/**
|
3223 |
-
* Handle a bulk upgrade request.
|
3224 |
-
*
|
3225 |
-
* @since 2.5.0
|
3226 |
-
*
|
3227 |
-
* @see Plugin_Upgrader::bulk_upgrade()
|
3228 |
-
*
|
3229 |
-
* @param array $plugins The local WP file_path's of the plugins which should be upgraded.
|
3230 |
-
* @param array $args Arbitrary passed extra arguments.
|
3231 |
-
* @return string|bool Install confirmation messages on success, false on failure.
|
3232 |
-
*/
|
3233 |
-
public function bulk_upgrade( $plugins, $args = array() ) {
|
3234 |
-
|
3235 |
-
add_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );
|
3236 |
-
|
3237 |
-
$result = parent::bulk_upgrade( $plugins, $args );
|
3238 |
-
|
3239 |
-
remove_filter( 'upgrader_post_install', array( $this, 'auto_activate' ), 10 );
|
3240 |
-
|
3241 |
-
return $result;
|
3242 |
-
}
|
3243 |
-
|
3244 |
-
/**
|
3245 |
-
* Abuse a filter to auto-activate plugins after installation.
|
3246 |
-
*
|
3247 |
-
* Hooked into the 'upgrader_post_install' filter hook.
|
3248 |
-
*
|
3249 |
-
* @since 2.5.0
|
3250 |
-
*
|
3251 |
-
* @param bool $bool The value we need to give back (true).
|
3252 |
-
* @return bool
|
3253 |
-
*/
|
3254 |
-
public function auto_activate( $bool ) {
|
3255 |
-
// Only process the activation of installed plugins if the automatic flag is set to true.
|
3256 |
-
if ( $this->tgmpa->is_automatic ) {
|
3257 |
-
// Flush plugins cache so the headers of the newly installed plugins will be read correctly.
|
3258 |
-
wp_clean_plugins_cache();
|
3259 |
-
|
3260 |
-
// Get the installed plugin file.
|
3261 |
-
$plugin_info = $this->plugin_info();
|
3262 |
-
|
3263 |
-
// Don't try to activate on upgrade of active plugin as WP will do this already.
|
3264 |
-
if ( ! is_plugin_active( $plugin_info ) ) {
|
3265 |
-
$activate = activate_plugin( $plugin_info );
|
3266 |
-
|
3267 |
-
// Adjust the success string based on the activation result.
|
3268 |
-
$this->strings['process_success'] = $this->strings['process_success'] . "<br />\n";
|
3269 |
-
|
3270 |
-
if ( is_wp_error( $activate ) ) {
|
3271 |
-
$this->skin->error( $activate );
|
3272 |
-
$this->strings['process_success'] .= $this->strings['activation_failed'];
|
3273 |
-
} else {
|
3274 |
-
$this->strings['process_success'] .= $this->strings['activation_success'];
|
3275 |
-
}
|
3276 |
-
}
|
3277 |
-
}
|
3278 |
-
|
3279 |
-
return $bool;
|
3280 |
-
}
|
3281 |
-
}
|
3282 |
-
}
|
3283 |
-
|
3284 |
-
if ( ! class_exists( 'TGMPA_Bulk_Installer_Skin' ) ) {
|
3285 |
-
|
3286 |
-
/**
|
3287 |
-
* Installer skin to set strings for the bulk plugin installations..
|
3288 |
-
*
|
3289 |
-
* Extends Bulk_Upgrader_Skin and customizes to suit the installation of multiple
|
3290 |
-
* plugins.
|
3291 |
-
*
|
3292 |
-
* @since 2.2.0
|
3293 |
-
*
|
3294 |
-
* @internal Since 2.5.2 the class has been renamed from TGM_Bulk_Installer_Skin to
|
3295 |
-
* TGMPA_Bulk_Installer_Skin.
|
3296 |
-
* This was done to prevent backward compatibility issues with v2.3.6.
|
3297 |
-
*
|
3298 |
-
* @see https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
|
3299 |
-
*
|
3300 |
-
* @package TGM-Plugin-Activation
|
3301 |
-
* @author Thomas Griffin
|
3302 |
-
* @author Gary Jones
|
3303 |
-
*/
|
3304 |
-
class TGMPA_Bulk_Installer_Skin extends Bulk_Upgrader_Skin {
|
3305 |
-
/**
|
3306 |
-
* Holds plugin info for each individual plugin installation.
|
3307 |
-
*
|
3308 |
-
* @since 2.2.0
|
3309 |
-
*
|
3310 |
-
* @var array
|
3311 |
-
*/
|
3312 |
-
public $plugin_info = array();
|
3313 |
-
|
3314 |
-
/**
|
3315 |
-
* Holds names of plugins that are undergoing bulk installations.
|
3316 |
-
*
|
3317 |
-
* @since 2.2.0
|
3318 |
-
*
|
3319 |
-
* @var array
|
3320 |
-
*/
|
3321 |
-
public $plugin_names = array();
|
3322 |
-
|
3323 |
-
/**
|
3324 |
-
* Integer to use for iteration through each plugin installation.
|
3325 |
-
*
|
3326 |
-
* @since 2.2.0
|
3327 |
-
*
|
3328 |
-
* @var integer
|
3329 |
-
*/
|
3330 |
-
public $i = 0;
|
3331 |
-
|
3332 |
-
/**
|
3333 |
-
* TGMPA instance
|
3334 |
-
*
|
3335 |
-
* @since 2.5.0
|
3336 |
-
*
|
3337 |
-
* @var object
|
3338 |
-
*/
|
3339 |
-
protected $tgmpa;
|
3340 |
-
|
3341 |
-
/**
|
3342 |
-
* Constructor. Parses default args with new ones and extracts them for use.
|
3343 |
-
*
|
3344 |
-
* @since 2.2.0
|
3345 |
-
*
|
3346 |
-
* @param array $args Arguments to pass for use within the class.
|
3347 |
-
*/
|
3348 |
-
public function __construct( $args = array() ) {
|
3349 |
-
// Get TGMPA class instance.
|
3350 |
-
$this->tgmpa = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
3351 |
-
|
3352 |
-
// Parse default and new args.
|
3353 |
-
$defaults = array(
|
3354 |
-
'url' => '',
|
3355 |
-
'nonce' => '',
|
3356 |
-
'names' => array(),
|
3357 |
-
'install_type' => 'install',
|
3358 |
-
);
|
3359 |
-
$args = wp_parse_args( $args, $defaults );
|
3360 |
-
|
3361 |
-
// Set plugin names to $this->plugin_names property.
|
3362 |
-
$this->plugin_names = $args['names'];
|
3363 |
-
|
3364 |
-
// Extract the new args.
|
3365 |
-
parent::__construct( $args );
|
3366 |
-
}
|
3367 |
-
|
3368 |
-
/**
|
3369 |
-
* Sets install skin strings for each individual plugin.
|
3370 |
-
*
|
3371 |
-
* Checks to see if the automatic activation flag is set and uses the
|
3372 |
-
* the proper strings accordingly.
|
3373 |
-
*
|
3374 |
-
* @since 2.2.0
|
3375 |
-
*/
|
3376 |
-
public function add_strings() {
|
3377 |
-
if ( 'update' === $this->options['install_type'] ) {
|
3378 |
-
parent::add_strings();
|
3379 |
-
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)', 'lightning' );
|
3380 |
-
} else {
|
3381 |
-
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'lightning' );
|
3382 |
-
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'lightning' );
|
3383 |
-
|
3384 |
-
if ( $this->tgmpa->is_automatic ) {
|
3385 |
-
// Automatic activation strings.
|
3386 |
-
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'lightning' );
|
3387 |
-
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'lightning' );
|
3388 |
-
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'lightning' );
|
3389 |
-
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'lightning' );
|
3390 |
-
} else {
|
3391 |
-
// Default installation strings.
|
3392 |
-
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'lightning' );
|
3393 |
-
$this->upgrader->strings['skin_update_successful'] = esc_html__( '%1$s installed successfully.', 'lightning' );
|
3394 |
-
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'lightning' );
|
3395 |
-
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'lightning' );
|
3396 |
-
}
|
3397 |
-
|
3398 |
-
// Add "read more" link only for WP < 4.8.
|
3399 |
-
if ( version_compare( $this->tgmpa->wp_version, '4.8', '<' ) ) {
|
3400 |
-
$this->upgrader->strings['skin_update_successful'] .= ' <a href="#" class="hide-if-no-js" onclick="%2$s"><span>' . esc_html__( 'Show Details', 'lightning' ) . '</span><span class="hidden">' . esc_html__( 'Hide Details', 'lightning' ) . '</span>.</a>';
|
3401 |
-
}
|
3402 |
-
}
|
3403 |
-
}
|
3404 |
-
|
3405 |
-
/**
|
3406 |
-
* Outputs the header strings and necessary JS before each plugin installation.
|
3407 |
-
*
|
3408 |
-
* @since 2.2.0
|
3409 |
-
*
|
3410 |
-
* @param string $title Unused in this implementation.
|
3411 |
-
*/
|
3412 |
-
public function before( $title = '' ) {
|
3413 |
-
if ( empty( $title ) ) {
|
3414 |
-
$title = esc_html( $this->plugin_names[ $this->i ] );
|
3415 |
-
}
|
3416 |
-
parent::before( $title );
|
3417 |
-
}
|
3418 |
-
|
3419 |
-
/**
|
3420 |
-
* Outputs the footer strings and necessary JS after each plugin installation.
|
3421 |
-
*
|
3422 |
-
* Checks for any errors and outputs them if they exist, else output
|
3423 |
-
* success strings.
|
3424 |
-
*
|
3425 |
-
* @since 2.2.0
|
3426 |
-
*
|
3427 |
-
* @param string $title Unused in this implementation.
|
3428 |
-
*/
|
3429 |
-
public function after( $title = '' ) {
|
3430 |
-
if ( empty( $title ) ) {
|
3431 |
-
$title = esc_html( $this->plugin_names[ $this->i ] );
|
3432 |
-
}
|
3433 |
-
parent::after( $title );
|
3434 |
-
|
3435 |
-
$this->i++;
|
3436 |
-
}
|
3437 |
-
|
3438 |
-
/**
|
3439 |
-
* Outputs links after bulk plugin installation is complete.
|
3440 |
-
*
|
3441 |
-
* @since 2.2.0
|
3442 |
-
*/
|
3443 |
-
public function bulk_footer() {
|
3444 |
-
// Serve up the string to say installations (and possibly activations) are complete.
|
3445 |
-
parent::bulk_footer();
|
3446 |
-
|
3447 |
-
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
|
3448 |
-
wp_clean_plugins_cache();
|
3449 |
-
|
3450 |
-
$this->tgmpa->show_tgmpa_version();
|
3451 |
-
|
3452 |
-
// Display message based on if all plugins are now active or not.
|
3453 |
-
$update_actions = array();
|
3454 |
-
|
3455 |
-
if ( $this->tgmpa->is_tgmpa_complete() ) {
|
3456 |
-
// All plugins are active, so we display the complete string and hide the menu to protect users.
|
3457 |
-
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
3458 |
-
$update_actions['dashboard'] = sprintf(
|
3459 |
-
esc_html( $this->tgmpa->strings['complete'] ),
|
3460 |
-
'<a href="' . esc_url( self_admin_url() ) . '">' . esc_html__( 'Return to the Dashboard', 'lightning' ) . '</a>'
|
3461 |
-
);
|
3462 |
-
} else {
|
3463 |
-
$update_actions['tgmpa_page'] = '<a href="' . esc_url( $this->tgmpa->get_tgmpa_url() ) . '" target="_parent">' . esc_html( $this->tgmpa->strings['return'] ) . '</a>';
|
3464 |
-
}
|
3465 |
-
|
3466 |
-
/**
|
3467 |
-
* Filter the list of action links available following bulk plugin installs/updates.
|
3468 |
-
*
|
3469 |
-
* @since 2.5.0
|
3470 |
-
*
|
3471 |
-
* @param array $update_actions Array of plugin action links.
|
3472 |
-
* @param array $plugin_info Array of information for the last-handled plugin.
|
3473 |
-
*/
|
3474 |
-
$update_actions = apply_filters( 'tgmpa_update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );
|
3475 |
-
|
3476 |
-
if ( ! empty( $update_actions ) ) {
|
3477 |
-
$this->feedback( implode( ' | ', (array) $update_actions ) );
|
3478 |
-
}
|
3479 |
-
}
|
3480 |
-
|
3481 |
-
/* *********** DEPRECATED METHODS *********** */
|
3482 |
-
|
3483 |
-
/**
|
3484 |
-
* Flush header output buffer.
|
3485 |
-
*
|
3486 |
-
* @since 2.2.0
|
3487 |
-
* @deprecated 2.5.0 use {@see Bulk_Upgrader_Skin::flush_output()} instead
|
3488 |
-
* @see Bulk_Upgrader_Skin::flush_output()
|
3489 |
-
*/
|
3490 |
-
public function before_flush_output() {
|
3491 |
-
_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'Bulk_Upgrader_Skin::flush_output()' );
|
3492 |
-
$this->flush_output();
|
3493 |
-
}
|
3494 |
-
|
3495 |
-
/**
|
3496 |
-
* Flush footer output buffer and iterate $this->i to make sure the
|
3497 |
-
* installation strings reference the correct plugin.
|
3498 |
-
*
|
3499 |
-
* @since 2.2.0
|
3500 |
-
* @deprecated 2.5.0 use {@see Bulk_Upgrader_Skin::flush_output()} instead
|
3501 |
-
* @see Bulk_Upgrader_Skin::flush_output()
|
3502 |
-
*/
|
3503 |
-
public function after_flush_output() {
|
3504 |
-
_deprecated_function( __FUNCTION__, 'TGMPA 2.5.0', 'Bulk_Upgrader_Skin::flush_output()' );
|
3505 |
-
$this->flush_output();
|
3506 |
-
$this->i++;
|
3507 |
-
}
|
3508 |
-
}
|
3509 |
-
}
|
3510 |
-
}
|
3511 |
-
}
|
3512 |
-
}
|
3513 |
-
|
3514 |
-
if ( ! class_exists( 'TGMPA_Utils' ) ) {
|
3515 |
-
|
3516 |
-
/**
|
3517 |
-
* Generic utilities for TGMPA.
|
3518 |
-
*
|
3519 |
-
* All methods are static, poor-dev name-spacing class wrapper.
|
3520 |
-
*
|
3521 |
-
* Class was called TGM_Utils in 2.5.0 but renamed TGMPA_Utils in 2.5.1 as this was conflicting with Soliloquy.
|
3522 |
-
*
|
3523 |
-
* @since 2.5.0
|
3524 |
-
*
|
3525 |
-
* @package TGM-Plugin-Activation
|
3526 |
-
* @author Juliette Reinders Folmer
|
3527 |
-
*/
|
3528 |
-
class TGMPA_Utils {
|
3529 |
-
/**
|
3530 |
-
* Whether the PHP filter extension is enabled.
|
3531 |
-
*
|
3532 |
-
* @see http://php.net/book.filter
|
3533 |
-
*
|
3534 |
-
* @since 2.5.0
|
3535 |
-
*
|
3536 |
-
* @static
|
3537 |
-
*
|
3538 |
-
* @var bool $has_filters True is the extension is enabled.
|
3539 |
-
*/
|
3540 |
-
public static $has_filters;
|
3541 |
-
|
3542 |
-
/**
|
3543 |
-
* Wrap an arbitrary string in <em> tags. Meant to be used in combination with array_map().
|
3544 |
-
*
|
3545 |
-
* @since 2.5.0
|
3546 |
-
*
|
3547 |
-
* @static
|
3548 |
-
*
|
3549 |
-
* @param string $string Text to be wrapped.
|
3550 |
-
* @return string
|
3551 |
-
*/
|
3552 |
-
public static function wrap_in_em( $string ) {
|
3553 |
-
return '<em>' . wp_kses_post( $string ) . '</em>';
|
3554 |
-
}
|
3555 |
-
|
3556 |
-
/**
|
3557 |
-
* Wrap an arbitrary string in <strong> tags. Meant to be used in combination with array_map().
|
3558 |
-
*
|
3559 |
-
* @since 2.5.0
|
3560 |
-
*
|
3561 |
-
* @static
|
3562 |
-
*
|
3563 |
-
* @param string $string Text to be wrapped.
|
3564 |
-
* @return string
|
3565 |
-
*/
|
3566 |
-
public static function wrap_in_strong( $string ) {
|
3567 |
-
return '<strong>' . wp_kses_post( $string ) . '</strong>';
|
3568 |
-
}
|
3569 |
-
|
3570 |
-
/**
|
3571 |
-
* Helper function: Validate a value as boolean
|
3572 |
-
*
|
3573 |
-
* @since 2.5.0
|
3574 |
-
*
|
3575 |
-
* @static
|
3576 |
-
*
|
3577 |
-
* @param mixed $value Arbitrary value.
|
3578 |
-
* @return bool
|
3579 |
-
*/
|
3580 |
-
public static function validate_bool( $value ) {
|
3581 |
-
if ( ! isset( self::$has_filters ) ) {
|
3582 |
-
self::$has_filters = extension_loaded( 'filter' );
|
3583 |
-
}
|
3584 |
-
|
3585 |
-
if ( self::$has_filters ) {
|
3586 |
-
return filter_var( $value, FILTER_VALIDATE_BOOLEAN );
|
3587 |
-
} else {
|
3588 |
-
return self::emulate_filter_bool( $value );
|
3589 |
-
}
|
3590 |
-
}
|
3591 |
-
|
3592 |
-
/**
|
3593 |
-
* Helper function: Cast a value to bool
|
3594 |
-
*
|
3595 |
-
* @since 2.5.0
|
3596 |
-
*
|
3597 |
-
* @static
|
3598 |
-
*
|
3599 |
-
* @param mixed $value Value to cast.
|
3600 |
-
* @return bool
|
3601 |
-
*/
|
3602 |
-
protected static function emulate_filter_bool( $value ) {
|
3603 |
-
// @codingStandardsIgnoreStart
|
3604 |
-
static $true = array(
|
3605 |
-
'1',
|
3606 |
-
'true', 'True', 'TRUE',
|
3607 |
-
'y', 'Y',
|
3608 |
-
'yes', 'Yes', 'YES',
|
3609 |
-
'on', 'On', 'ON',
|
3610 |
-
);
|
3611 |
-
static $false = array(
|
3612 |
-
'0',
|
3613 |
-
'false', 'False', 'FALSE',
|
3614 |
-
'n', 'N',
|
3615 |
-
'no', 'No', 'NO',
|
3616 |
-
'off', 'Off', 'OFF',
|
3617 |
-
);
|
3618 |
-
// @codingStandardsIgnoreEnd
|
3619 |
-
|
3620 |
-
if ( is_bool( $value ) ) {
|
3621 |
-
return $value;
|
3622 |
-
} elseif ( is_int( $value ) && ( 0 === $value || 1 === $value ) ) {
|
3623 |
-
return (bool) $value;
|
3624 |
-
} elseif ( ( is_float( $value ) && ! is_nan( $value ) ) && ( (float) 0 === $value || (float) 1 === $value ) ) {
|
3625 |
-
return (bool) $value;
|
3626 |
-
} elseif ( is_string( $value ) ) {
|
3627 |
-
$value = trim( $value );
|
3628 |
-
if ( in_array( $value, $true, true ) ) {
|
3629 |
-
return true;
|
3630 |
-
} elseif ( in_array( $value, $false, true ) ) {
|
3631 |
-
return false;
|
3632 |
-
} else {
|
3633 |
-
return false;
|
3634 |
-
}
|
3635 |
-
}
|
3636 |
-
|
3637 |
-
return false;
|
3638 |
-
}
|
3639 |
-
} // End of class TGMPA_Utils
|
3640 |
-
} // End of class_exists wrapper
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-admin/balloon/balloon-admin.php
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! function_exists('vk_blocks_setting') ) {
|
3 |
-
function vk_blocks_setting() {
|
4 |
-
$options = get_option( 'vk_blocks_balloon_meta' );
|
5 |
-
$image_number = 15;
|
6 |
-
$image_number = apply_filters( 'vk_blocks_image_number', $image_number );
|
7 |
-
?>
|
8 |
-
|
9 |
-
<form method="post" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ;?>">
|
10 |
-
<?php wp_nonce_field( 'vkb-nonce-key', 'vkb-setting-page' ); ?>
|
11 |
-
<div>
|
12 |
-
<section>
|
13 |
-
<h3 id="baloon-image-setting"><?php echo __( 'Balloon Image Setting', 'vk-blocks' ); ?></h3>
|
14 |
-
<style type="text/css">
|
15 |
-
.balloonIconList {
|
16 |
-
width:100%;
|
17 |
-
display:flex;
|
18 |
-
flex-wrap: wrap;
|
19 |
-
}
|
20 |
-
.balloonIconList li {
|
21 |
-
box-sizing:border-box;
|
22 |
-
width:30%;
|
23 |
-
padding:20px 15px 15px;
|
24 |
-
margin:10px;
|
25 |
-
border:1px solid #ccc;
|
26 |
-
border-radius:5px;
|
27 |
-
background-color:rgba(255,255,255,0.9);
|
28 |
-
box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,1);
|
29 |
-
}
|
30 |
-
.balloonIconList_iconFrame {
|
31 |
-
width:100px;
|
32 |
-
margin:0 auto 0.5rem;
|
33 |
-
}
|
34 |
-
.balloonIconList_iconFrame_src {
|
35 |
-
width:100px;
|
36 |
-
height:100px;
|
37 |
-
object-fit:cover;
|
38 |
-
border-radius:50%;
|
39 |
-
border:1px solid #e5e5e5;
|
40 |
-
}
|
41 |
-
.balloonIconList li img {
|
42 |
-
|
43 |
-
}
|
44 |
-
.balloonIconList li .button {
|
45 |
-
width:49%;
|
46 |
-
margin-top:5px;
|
47 |
-
box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,0.7);
|
48 |
-
}
|
49 |
-
.balloonIconList li .button.button-set {
|
50 |
-
color:#464646;
|
51 |
-
border-color:#999;
|
52 |
-
float:left;
|
53 |
-
}
|
54 |
-
.balloonIconList li .button.button-delete {
|
55 |
-
color:#c00;
|
56 |
-
border-color:#c00;
|
57 |
-
float:right;
|
58 |
-
}
|
59 |
-
input.balloonIconList_name_input[type=text] {
|
60 |
-
display:block;
|
61 |
-
width:100%;
|
62 |
-
text-align:center;
|
63 |
-
border-color:#ccc;
|
64 |
-
box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,0.1);
|
65 |
-
}
|
66 |
-
.balloonIconList_nameLabel {
|
67 |
-
clear:both;
|
68 |
-
display:block; overflow:hidden;
|
69 |
-
padding-top:0.5rem;
|
70 |
-
padding-bottom:0.3rem;
|
71 |
-
}
|
72 |
-
</style>
|
73 |
-
<p>
|
74 |
-
<?php _e( 'You can register frequently used icon images for speech bubble blocks.', 'vk-blocks' );?>
|
75 |
-
<?php _e( 'If you change image or name that please click Save Changes button.', 'vk-blocks' );?>
|
76 |
-
</p>
|
77 |
-
<?php $image_default = plugin_dir_url( __FILE__ ).'/no-image.png'; ?>
|
78 |
-
<ul class="balloonIconList">
|
79 |
-
<?php for( $i = 1; $i <= $image_number; $i++ ) : ?>
|
80 |
-
<li>
|
81 |
-
<?php
|
82 |
-
// 現在保存されている画像idを取得して表示
|
83 |
-
$image = '';
|
84 |
-
if ( ! empty( $options['default_icons'][$i]['src'] ) ) {
|
85 |
-
$image = $options['default_icons'][$i]['src'];
|
86 |
-
// } else {
|
87 |
-
// $image = $image_default;
|
88 |
-
}
|
89 |
-
?>
|
90 |
-
<div class="balloonIconList_iconFrame">
|
91 |
-
<div style="width:100px;height:100px;object-fit:cover;">
|
92 |
-
<?php if ( $image ) : ?>
|
93 |
-
<img src="<?php echo $image; ?>" class="balloonIconList_iconFrame_src" />
|
94 |
-
<?php else : ?>
|
95 |
-
<img src="<?php echo $image_default; ?>" class="balloonIconList_iconFrame_src" />
|
96 |
-
<?php endif; ?>
|
97 |
-
</div>
|
98 |
-
</div>
|
99 |
-
|
100 |
-
<button class="button button-block button-set" type="button" onclick="veu_default_image_additional(this);">
|
101 |
-
<?php echo __( 'Select', 'vk-blocks' ); ?>
|
102 |
-
</button>
|
103 |
-
<button class="button button-block button-delete" type="button" onclick="veu_default_image_delete(this);">
|
104 |
-
<?php echo __( 'Delete', 'vk-blocks' ); ?>
|
105 |
-
</button>
|
106 |
-
|
107 |
-
<input type="hidden" class="__id" name="vk_blocks_balloon_meta[default_icons][<?php echo $i; ?>][src]" value="<?php echo esc_attr( $image ); ?>" />
|
108 |
-
|
109 |
-
<label for="icon_title['<?php echo $i ;?>]" class="balloonIconList_nameLabel"><?php echo __( 'Balloon Image Name', 'vk-blocks' ); ?></label>
|
110 |
-
<?php
|
111 |
-
$name = '';
|
112 |
-
if ( ! empty( $options['default_icons'][$i]['name'] ) ) {
|
113 |
-
$name = $options['default_icons'][$i]['name'];
|
114 |
-
}
|
115 |
-
?>
|
116 |
-
<input class="balloonIconList_name_input" type="text" name="vk_blocks_balloon_meta[default_icons][<?php echo $i; ?>][name]" id="icon_title['<?php echo $i ;?>]" value="<?php echo esc_attr( $name ); ?>" />
|
117 |
-
</li>
|
118 |
-
<?php endfor; ?>
|
119 |
-
</ul>
|
120 |
-
|
121 |
-
<script type="text/javascript">
|
122 |
-
if(veu_default_image_additional == undefined){
|
123 |
-
var veu_default_image_additional = function(e){
|
124 |
-
var d=jQuery(e).parent().children(".balloonIconList_iconFrame");
|
125 |
-
var w=jQuery(e).parent().children('.__id')[0];
|
126 |
-
var addImgBtn=jQuery(e);
|
127 |
-
var delImgBtn=jQuery(e).next();
|
128 |
-
var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
|
129 |
-
u.state().get('selection').each(function(f){
|
130 |
-
// もともと表示されてた img タグを削除
|
131 |
-
d.children().remove();
|
132 |
-
// 新しく画像タグを挿入
|
133 |
-
d.append(jQuery('<img class="balloonIconList_iconFrame_src">').attr('src',f.toJSON().url));
|
134 |
-
jQuery(w).val(f.toJSON().url).change();
|
135 |
-
});
|
136 |
-
});
|
137 |
-
u.open();
|
138 |
-
};
|
139 |
-
}
|
140 |
-
if(veu_default_image_delete == undefined){
|
141 |
-
var veu_default_image_delete = function(e){
|
142 |
-
var d=jQuery(e).parent().children(".balloonIconList_iconFrame");
|
143 |
-
var w=jQuery(e).parent().children('.__id')[0];
|
144 |
-
var addImgBtn=jQuery(e).prev();
|
145 |
-
var delImgBtn=jQuery(e);
|
146 |
-
// もともと表示されてた img タグを削除
|
147 |
-
d.children().remove();
|
148 |
-
// 新しく画像タグを挿入
|
149 |
-
d.append(jQuery('<img class="balloonIconList_iconFrame_src">').attr('src','<?php echo esc_url($image_default)?>'));
|
150 |
-
jQuery(w).val('').change();
|
151 |
-
};
|
152 |
-
}
|
153 |
-
</script>
|
154 |
-
<?php submit_button(); ?>
|
155 |
-
</section>
|
156 |
-
</div>
|
157 |
-
</form>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
}
|
161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-admin/balloon/no-image.png
DELETED
Binary file
|
inc/vk-admin/images/vk-blocks-logo.png
DELETED
Binary file
|
inc/vk-admin/images/vk-blocks-logo_ol.svg
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="utf-8"?>
|
2 |
-
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
-
<svg version="1.1" id="レイヤー_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
4 |
-
y="0px" viewBox="0 0 434.8 144.9" style="enable-background:new 0 0 434.8 144.9;" xml:space="preserve">
|
5 |
-
<style type="text/css">
|
6 |
-
.st0{fill:#231815;}
|
7 |
-
.st1{fill:#D70C18;}
|
8 |
-
</style>
|
9 |
-
<g>
|
10 |
-
<g>
|
11 |
-
<path class="st0" d="M184.5,99.9c1.6-0.3,4.6-0.6,7.4-0.6c3.7,0,6.1,0.5,8,1.8c1.7,1.1,2.9,2.8,2.9,5.2c0,2.6-1.6,4.9-4.6,6v0.1
|
12 |
-
c2.9,0.7,5.6,3.1,5.6,6.9c0,2.5-1.1,4.4-2.7,5.7c-2,1.7-5.2,2.6-10.3,2.6c-2.8,0-4.9-0.2-6.2-0.4V99.9z M189.5,110.9h2.6
|
13 |
-
c3.5,0,5.5-1.7,5.5-4c0-2.6-2-3.8-5.2-3.8c-1.5,0-2.4,0.1-2.9,0.2V110.9z M189.5,123.7c0.7,0.1,1.5,0.1,2.7,0.1
|
14 |
-
c3.2,0,6.2-1.2,6.2-4.7c0-3.2-2.8-4.6-6.3-4.6h-2.5V123.7z"/>
|
15 |
-
<path class="st0" d="M209.1,98.1h5.1v29.3h-5.1V98.1z"/>
|
16 |
-
<path class="st0" d="M239.8,117.1c0,7.4-5.2,10.7-10.3,10.7c-5.7,0-10-3.9-10-10.3c0-6.6,4.3-10.6,10.4-10.6
|
17 |
-
C235.8,106.8,239.8,111,239.8,117.1z M224.7,117.3c0,3.9,1.9,6.8,5,6.8c2.9,0,4.9-2.8,4.9-6.8c0-3.2-1.4-6.8-4.9-6.8
|
18 |
-
C226.1,110.5,224.7,114,224.7,117.3z"/>
|
19 |
-
<path class="st0" d="M259.8,126.8c-1.1,0.5-3.1,1-5.7,1c-6.3,0-10.4-4-10.4-10.3c0-6,4.1-10.7,11.2-10.7c1.9,0,3.7,0.4,4.9,0.9
|
20 |
-
l-0.9,3.8c-0.8-0.4-2-0.8-3.8-0.8c-3.9,0-6.2,2.8-6.1,6.5c0,4.1,2.7,6.5,6.2,6.5c1.7,0,3-0.4,4-0.8L259.8,126.8z"/>
|
21 |
-
<path class="st0" d="M270.5,116.1L270.5,116.1c0.6-0.8,1.1-1.6,1.7-2.4l4.9-6.4h6.1l-7.4,8.2l8.5,11.9H278l-5.8-8.9l-1.7,2v6.8
|
22 |
-
h-5.1V98.1h5.1V116.1z"/>
|
23 |
-
<path class="st0" d="M298.8,99.6h5.1v23.5h11.4v4.3h-16.5V99.6z"/>
|
24 |
-
<path class="st0" d="M326.2,101.7c0,1.5-1.1,2.7-2.9,2.7c-1.7,0-2.8-1.2-2.8-2.7c0-1.5,1.1-2.7,2.8-2.7
|
25 |
-
C325.1,98.9,326.2,100.1,326.2,101.7z M320.8,127.4v-20.1h5.1v20.1H320.8z"/>
|
26 |
-
<path class="st0" d="M333.1,127.4c0.1-1.4,0.2-3.6,0.2-5.6V98.1h5.1v12h0.1c1.2-2,3.4-3.2,6.4-3.2c4.9,0,8.4,4.1,8.4,10.2
|
27 |
-
c0,7.2-4.6,10.8-9.1,10.8c-2.6,0-4.9-1-6.3-3.5h-0.1l-0.2,3H333.1z M338.3,119.1c0,0.4,0,0.8,0.1,1.2c0.5,2.1,2.3,3.6,4.5,3.6
|
28 |
-
c3.2,0,5.1-2.5,5.1-6.6c0-3.5-1.7-6.4-5.1-6.4c-2.1,0-4,1.5-4.5,3.7c-0.1,0.4-0.2,0.8-0.2,1.3V119.1z"/>
|
29 |
-
<path class="st0" d="M359.2,113.7c0-2.7-0.1-4.7-0.2-6.5h4.4l0.2,3.8h0.1c1-2.8,3.3-4.3,5.5-4.3c0.5,0,0.8,0,1.2,0.1v4.8
|
30 |
-
c-0.4-0.1-0.9-0.1-1.5-0.1c-2.4,0-4.1,1.5-4.6,3.8c-0.1,0.4-0.1,1-0.1,1.5v10.4h-5.1V113.7z"/>
|
31 |
-
<path class="st0" d="M387.1,127.4l-0.3-2.2h-0.1c-1.2,1.6-3.3,2.7-5.9,2.7c-4.1,0-6.3-2.9-6.3-6c0-5.1,4.5-7.6,11.9-7.6v-0.3
|
32 |
-
c0-1.3-0.5-3.5-4.1-3.5c-2,0-4,0.6-5.4,1.5l-1-3.3c1.5-0.9,4.1-1.8,7.3-1.8c6.4,0,8.3,4.1,8.3,8.5v7.2c0,1.8,0.1,3.6,0.3,4.8
|
33 |
-
H387.1z M386.4,117.5c-3.6,0-7,0.7-7,3.8c0,2,1.3,2.9,2.9,2.9c2,0,3.5-1.3,4-2.8c0.1-0.4,0.1-0.8,0.1-1.1V117.5z"/>
|
34 |
-
<path class="st0" d="M398.6,113.7c0-2.7-0.1-4.7-0.2-6.5h4.4l0.2,3.8h0.1c1-2.8,3.3-4.3,5.5-4.3c0.5,0,0.8,0,1.2,0.1v4.8
|
35 |
-
c-0.4-0.1-0.9-0.1-1.5-0.1c-2.4,0-4.1,1.5-4.6,3.8c-0.1,0.4-0.1,1-0.1,1.5v10.4h-5.1V113.7z"/>
|
36 |
-
<path class="st0" d="M418.3,107.3l3.6,10.8c0.4,1.2,0.8,2.8,1.1,3.9h0.1c0.3-1.1,0.7-2.6,1.1-3.9l3.1-10.7h5.4l-5,13.7
|
37 |
-
c-2.8,7.5-4.6,10.8-7,12.9c-2,1.7-4.1,2.4-5.3,2.6l-1.1-4.3c0.9-0.2,1.9-0.7,2.9-1.4c1-0.6,2.1-1.8,2.8-3.2
|
38 |
-
c0.2-0.3,0.3-0.6,0.3-0.9c0-0.2-0.1-0.5-0.3-1l-7.4-18.4H418.3z"/>
|
39 |
-
</g>
|
40 |
-
</g>
|
41 |
-
<g>
|
42 |
-
<g>
|
43 |
-
<path class="st0" d="M183.8,23.9c3.5-0.7,9.9-1.3,16.1-1.3c8.1,0,13.2,1.1,17.3,3.8c3.7,2.3,6.2,6.2,6.2,11.4
|
44 |
-
c0,5.6-3.5,10.6-10.1,13v0.2c6.4,1.6,12.3,6.7,12.3,15c0,5.4-2.3,9.6-5.8,12.5c-4.3,3.7-11.4,5.6-22.5,5.6
|
45 |
-
c-6.1,0-10.7-0.4-13.6-0.8V23.9z M194.7,47.8h5.7c7.7,0,11.9-3.6,11.9-8.7c0-5.7-4.3-8.3-11.3-8.3c-3.3,0-5.1,0.2-6.3,0.5V47.8z
|
46 |
-
M194.7,75.6c1.4,0.3,3.3,0.3,5.9,0.3c7.1,0,13.4-2.7,13.4-10.1c0-7-6.2-9.9-13.8-9.9h-5.5V75.6z"/>
|
47 |
-
<path class="st0" d="M235.6,19.9h11.1v63.8h-11.1V19.9z"/>
|
48 |
-
<path class="st0" d="M300.6,61.3c0,16.1-11.3,23.3-22.5,23.3c-12.3,0-21.9-8.5-21.9-22.5c0-14.3,9.4-23.2,22.6-23.2
|
49 |
-
C291.9,38.9,300.6,48.1,300.6,61.3z M267.7,61.8c0,8.4,4.2,14.8,10.9,14.8c6.3,0,10.7-6.1,10.7-14.9c0-6.9-3-14.7-10.7-14.7
|
50 |
-
C270.8,47,267.7,54.5,267.7,61.8z"/>
|
51 |
-
<path class="st0" d="M342.3,82.3c-2.3,1.1-6.9,2.3-12.3,2.3c-13.7,0-22.5-8.8-22.5-22.4c0-13.1,8.9-23.3,24.3-23.3
|
52 |
-
c4.1,0,8.2,0.9,10.7,2l-2,8.3c-1.8-0.9-4.4-1.7-8.4-1.7c-8.4,0-13.4,6.2-13.4,14.2c0,9,5.9,14.1,13.4,14.1c3.8,0,6.5-0.8,8.7-1.7
|
53 |
-
L342.3,82.3z"/>
|
54 |
-
<path class="st0" d="M363.8,59.1h0.2c1-1.7,2.3-3.6,3.4-5.1l10.7-14h13.3l-16.2,17.8l18.5,25.9h-13.6l-12.6-19.3l-3.7,4.4v14.9
|
55 |
-
h-11.1V19.9h11.1V59.1z"/>
|
56 |
-
<path class="st0" d="M400.2,73.5c2.4,1.5,7.2,3.2,11.2,3.2c4.9,0,7-2,7-4.9c0-3-1.8-4.5-7.2-6.4c-8.6-2.9-12.1-7.6-12.1-12.8
|
57 |
-
c0-7.7,6.4-13.7,16.6-13.7c4.8,0,9,1.2,11.6,2.6l-2.2,7.8c-1.8-1-5.4-2.5-9.2-2.5c-3.9,0-6.1,1.9-6.1,4.6c0,2.8,2.1,4.1,7.6,6.1
|
58 |
-
c8,2.8,11.6,6.9,11.7,13.3c0,8-6.2,13.7-17.8,13.7c-5.3,0-10.1-1.3-13.3-3.1L400.2,73.5z"/>
|
59 |
-
</g>
|
60 |
-
</g>
|
61 |
-
<g>
|
62 |
-
<path d="M148.4,23.4l-44.5,0.1c-0.6,0-1.2,0.4-1.4,1L99.1,34c-0.3,1,0.4,2,1.4,2l17.3,0c1.3,0,2,1.6,1.1,2.5L91.3,67.2l0.1,0
|
63 |
-
l14.2,44.7c0.3,1-0.4,1.9-1.4,1.9l-13.9,0c-0.7,0-1.2-0.4-1.4-1l-7.1-22.9c-0.4-1.4-2.3-1.4-2.8-0.1l-5.8,16.1
|
64 |
-
c-0.1,0.3-0.1,0.6,0,0.9l5.3,19.5c0.2,0.6,0.8,1.1,1.4,1.1h44.8c1,0,1.7-1,1.4-1.9L108,69.2c-0.2-0.5,0-1.1,0.4-1.5l41.1-41.8
|
65 |
-
C150.4,25,149.7,23.4,148.4,23.4z"/>
|
66 |
-
<g>
|
67 |
-
<polygon class="st1" points="43.9,65.1 43.9,65.1 43.9,65.1 "/>
|
68 |
-
<path class="st1" d="M95.7,0L68.6,0.1c-0.6,0-1.2,0.4-1.4,1l-3.5,9.5c-0.4,1,0.4,2,1.4,2l11.4,0c1,0,1.7,1,1.4,2L45.6,103
|
69 |
-
c-0.5,1.3-2.3,1.3-2.8,0L19.6,39.2c-0.4-1,0.4-2,1.4-2l11.7,0c0.6,0,1.2,0.4,1.4,1l8.4,23c0.5,1.3,2.3,1.3,2.8,0l13-35.8
|
70 |
-
c0.4-1-0.4-2-1.4-2l-55.4,0c-1,0-1.7,1-1.4,2l42.6,118.4c0.5,1.3,2.3,1.3,2.8,0L97.1,2C97.4,1,96.7,0,95.7,0z"/>
|
71 |
-
</g>
|
72 |
-
</g>
|
73 |
-
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-blocks/App/RestAPI/BlockMeta/EntryPoint.php
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class EntryPoint {
|
4 |
-
public function __construct() {
|
5 |
-
add_action( 'rest_api_init', array( $this, '_rest_api_init' ) );
|
6 |
-
}
|
7 |
-
|
8 |
-
public function _rest_api_init() {
|
9 |
-
register_rest_route(
|
10 |
-
'vk-blocks/v1',
|
11 |
-
'/block-meta/(?P<name>.+)',
|
12 |
-
array(
|
13 |
-
'methods' => 'GET',
|
14 |
-
'callback' => array( $this, '_callback' ),
|
15 |
-
'permission_callback' => function () {
|
16 |
-
return current_user_can( 'edit_posts' );
|
17 |
-
},
|
18 |
-
)
|
19 |
-
);
|
20 |
-
}
|
21 |
-
|
22 |
-
public function _callback( $request ) {
|
23 |
-
$block_name = esc_html( $request['name'] );
|
24 |
-
$block_meta = get_option( 'vk_blocks_' . $block_name . '_meta' );
|
25 |
-
return rest_ensure_response( $block_meta );
|
26 |
-
}
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-blocks/admin/admin-block-patterns.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$vk_blocks_options = vkblocks_get_options();
|
3 |
-
$vk_blocks_template = file_exists( VK_BLOCKS_PATH . 'vk-blocks-pro-template.php' ) ? VK_BLOCKS_PATH . 'vk-blocks-pro-template.php' : '';
|
4 |
-
?>
|
5 |
-
<section>
|
6 |
-
<h3 id="block-template-setting"><?php esc_html_e( 'Display Block Template Setting', 'vk-blocks' ); ?></h3>
|
7 |
-
<table class="form-table">
|
8 |
-
<tr>
|
9 |
-
<th><?php esc_html_e( 'WordPress Block Template', 'vk-blocks' ); ?></th>
|
10 |
-
<td>
|
11 |
-
<select name="vk_blocks_options[display_wp_block_template]">
|
12 |
-
<option value="hide"<?php vkblocks_the_selected( "hide", $vk_blocks_options['display_wp_block_template'] ) ?>><?php _e( 'Hide' , 'vk-blocks' );?></option>
|
13 |
-
<option value="display"<?php vkblocks_the_selected( "display", $vk_blocks_options['display_wp_block_template'] ) ?>><?php _e( 'Display' , 'vk-blocks' );?></option>
|
14 |
-
</select>
|
15 |
-
</td>
|
16 |
-
</tr>
|
17 |
-
<?php if ( ! empty( $vk_blocks_template ) ) : ?>
|
18 |
-
<tr>
|
19 |
-
<th><?php esc_html_e( 'VK Blocks Template', 'vk-blocks' ); ?></th>
|
20 |
-
<td>
|
21 |
-
<select name="vk_blocks_options[display_vk_block_template]">
|
22 |
-
<option value="hide"<?php vkblocks_the_selected( "hide", $vk_blocks_options['display_vk_block_template'] ) ?>><?php _e( 'Hide' , 'vk-blocks' );?></option>
|
23 |
-
<option value="display"<?php vkblocks_the_selected( "display", $vk_blocks_options['display_vk_block_template'] ) ?>><?php _e( 'Display' , 'vk-blocks' );?></option>
|
24 |
-
</select>
|
25 |
-
</td>
|
26 |
-
</tr>
|
27 |
-
<?php endif; ?>
|
28 |
-
</table>
|
29 |
-
<?php submit_button(); ?>
|
30 |
-
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-blocks/admin/admin-css-optimize.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$css_optimize_array = array(
|
3 |
-
array(
|
4 |
-
'label' => __( 'Nothing to do', 'vk-blocks' ),
|
5 |
-
'value' => 'default',
|
6 |
-
),
|
7 |
-
array(
|
8 |
-
'label' => __( 'Optimize VK Blocks CSS ( Tree Shaking )', 'vk-blocks' ) . ' ( Beta )',
|
9 |
-
'value' => 'tree-shaking',
|
10 |
-
),
|
11 |
-
/*
|
12 |
-
array(
|
13 |
-
'label' => __( 'Optimize VK Blocks CSS ( Tree Shaking + Preload )', 'vk-blocks' ) . ' ( Beta )',
|
14 |
-
'value' => 'optomize-all-css',
|
15 |
-
),
|
16 |
-
*/
|
17 |
-
);
|
18 |
-
|
19 |
-
$vk_blocks_options = vkblocks_get_options();
|
20 |
-
?>
|
21 |
-
<section>
|
22 |
-
<h3 id="css-optimize-setting"><?php echo __( 'CSS Optimize Setting', 'vk-blocks' ); ?></h3>
|
23 |
-
<select name="vk_blocks_options[css_optimize]">
|
24 |
-
<?php
|
25 |
-
foreach ( $css_optimize_array as $css_optimize ) : ?>
|
26 |
-
<?php
|
27 |
-
$selected = '';
|
28 |
-
if ( $vk_blocks_options['css_optimize'] === $css_optimize['value'] ){
|
29 |
-
$selected = ' selected';
|
30 |
-
}
|
31 |
-
?>
|
32 |
-
<option value="<?php echo $css_optimize['value']; ?>"<?php echo $selected; ?>>
|
33 |
-
<?php echo $css_optimize['label']; ?>
|
34 |
-
</option>
|
35 |
-
<?php endforeach; ?>
|
36 |
-
</select>
|
37 |
-
<?php submit_button(); ?>
|
38 |
-
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-blocks/admin/balloon/balloon-admin.php
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! function_exists('vk_blocks_setting') ) {
|
3 |
-
function vk_blocks_setting() {
|
4 |
-
$options = get_option( 'vk_blocks_balloon_meta' );
|
5 |
-
$image_number = 15;
|
6 |
-
$image_number = apply_filters( 'vk_blocks_image_number', $image_number );
|
7 |
-
?>
|
8 |
-
|
9 |
-
<form method="post" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ;?>">
|
10 |
-
<?php wp_nonce_field( 'vkb-nonce-key', 'vkb-setting-page' ); ?>
|
11 |
-
<div>
|
12 |
-
<section>
|
13 |
-
<h3 id="baloon-image-setting"><?php echo __( 'Balloon Image Setting', 'vk-blocks' ); ?></h3>
|
14 |
-
<style type="text/css">
|
15 |
-
.balloonIconList {
|
16 |
-
width:100%;
|
17 |
-
display:flex;
|
18 |
-
flex-wrap: wrap;
|
19 |
-
}
|
20 |
-
.balloonIconList li {
|
21 |
-
box-sizing:border-box;
|
22 |
-
width:30%;
|
23 |
-
padding:20px 15px 15px;
|
24 |
-
margin:10px;
|
25 |
-
border:1px solid #ccc;
|
26 |
-
border-radius:5px;
|
27 |
-
background-color:rgba(255,255,255,0.9);
|
28 |
-
box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,1);
|
29 |
-
}
|
30 |
-
.balloonIconList_iconFrame {
|
31 |
-
width:100px;
|
32 |
-
margin:0 auto 0.5rem;
|
33 |
-
}
|
34 |
-
.balloonIconList_iconFrame_src {
|
35 |
-
width:100px;
|
36 |
-
height:100px;
|
37 |
-
object-fit:cover;
|
38 |
-
border-radius:50%;
|
39 |
-
border:1px solid #e5e5e5;
|
40 |
-
}
|
41 |
-
.balloonIconList li img {
|
42 |
-
|
43 |
-
}
|
44 |
-
.balloonIconList li .button {
|
45 |
-
width:49%;
|
46 |
-
margin-top:5px;
|
47 |
-
box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,0.7);
|
48 |
-
}
|
49 |
-
.balloonIconList li .button.button-set {
|
50 |
-
color:#464646;
|
51 |
-
border-color:#999;
|
52 |
-
float:left;
|
53 |
-
}
|
54 |
-
.balloonIconList li .button.button-delete {
|
55 |
-
color:#c00;
|
56 |
-
border-color:#c00;
|
57 |
-
float:right;
|
58 |
-
}
|
59 |
-
input.balloonIconList_name_input[type=text] {
|
60 |
-
display:block;
|
61 |
-
width:100%;
|
62 |
-
text-align:center;
|
63 |
-
border-color:#ccc;
|
64 |
-
box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,0.1);
|
65 |
-
}
|
66 |
-
.balloonIconList_nameLabel {
|
67 |
-
clear:both;
|
68 |
-
display:block; overflow:hidden;
|
69 |
-
padding-top:0.5rem;
|
70 |
-
padding-bottom:0.3rem;
|
71 |
-
}
|
72 |
-
</style>
|
73 |
-
<p>
|
74 |
-
<?php _e( 'You can register frequently used icon images for speech bubble blocks.', 'vk-blocks' );?>
|
75 |
-
<?php _e( 'If you change image or name that please click Save Changes button.', 'vk-blocks' );?>
|
76 |
-
</p>
|
77 |
-
<?php $image_default = VK_BLOCKS_URL.'/admin/images/no-image.png'; ?>
|
78 |
-
<ul class="balloonIconList">
|
79 |
-
<?php for( $i = 1; $i <= $image_number; $i++ ) : ?>
|
80 |
-
<li>
|
81 |
-
<?php
|
82 |
-
// 現在保存されている画像idを取得して表示
|
83 |
-
$image = '';
|
84 |
-
if ( ! empty( $options['default_icons'][$i]['src'] ) ) {
|
85 |
-
$image = $options['default_icons'][$i]['src'];
|
86 |
-
// } else {
|
87 |
-
// $image = $image_default;
|
88 |
-
}
|
89 |
-
?>
|
90 |
-
<div class="balloonIconList_iconFrame">
|
91 |
-
<div style="width:100px;height:100px;object-fit:cover;">
|
92 |
-
<?php if ( $image ) : ?>
|
93 |
-
<img src="<?php echo $image; ?>" class="balloonIconList_iconFrame_src" />
|
94 |
-
<?php else : ?>
|
95 |
-
<img src="<?php echo $image_default; ?>" class="balloonIconList_iconFrame_src" />
|
96 |
-
<?php endif; ?>
|
97 |
-
</div>
|
98 |
-
</div>
|
99 |
-
|
100 |
-
<button class="button button-block button-set" type="button" onclick="veu_default_image_additional(this);">
|
101 |
-
<?php echo __( 'Select', 'vk-blocks' ); ?>
|
102 |
-
</button>
|
103 |
-
<button class="button button-block button-delete" type="button" onclick="veu_default_image_delete(this);">
|
104 |
-
<?php echo __( 'Delete', 'vk-blocks' ); ?>
|
105 |
-
</button>
|
106 |
-
|
107 |
-
<input type="hidden" class="__id" name="vk_blocks_balloon_meta[default_icons][<?php echo $i; ?>][src]" value="<?php echo esc_attr( $image ); ?>" />
|
108 |
-
|
109 |
-
<label for="icon_title['<?php echo $i ;?>]" class="balloonIconList_nameLabel"><?php echo __( 'Balloon Image Name', 'vk-blocks' ); ?></label>
|
110 |
-
<?php
|
111 |
-
$name = '';
|
112 |
-
if ( ! empty( $options['default_icons'][$i]['name'] ) ) {
|
113 |
-
$name = $options['default_icons'][$i]['name'];
|
114 |
-
}
|
115 |
-
?>
|
116 |
-
<input class="balloonIconList_name_input" type="text" name="vk_blocks_balloon_meta[default_icons][<?php echo $i; ?>][name]" id="icon_title['<?php echo $i ;?>]" value="<?php echo esc_attr( $name ); ?>" />
|
117 |
-
</li>
|
118 |
-
<?php endfor; ?>
|
119 |
-
</ul>
|
120 |
-
|
121 |
-
<script type="text/javascript">
|
122 |
-
if(veu_default_image_additional == undefined){
|
123 |
-
var veu_default_image_additional = function(e){
|
124 |
-
var d=jQuery(e).parent().children(".balloonIconList_iconFrame");
|
125 |
-
var w=jQuery(e).parent().children('.__id')[0];
|
126 |
-
var addImgBtn=jQuery(e);
|
127 |
-
var delImgBtn=jQuery(e).next();
|
128 |
-
var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
|
129 |
-
u.state().get('selection').each(function(f){
|
130 |
-
// もともと表示されてた img タグを削除
|
131 |
-
d.children().remove();
|
132 |
-
// 新しく画像タグを挿入
|
133 |
-
d.append(jQuery('<img class="balloonIconList_iconFrame_src">').attr('src',f.toJSON().url));
|
134 |
-
jQuery(w).val(f.toJSON().url).change();
|
135 |
-
});
|
136 |
-
});
|
137 |
-
u.open();
|
138 |
-
};
|
139 |
-
}
|
140 |
-
if(veu_default_image_delete == undefined){
|
141 |
-
var veu_default_image_delete = function(e){
|
142 |
-
var d=jQuery(e).parent().children(".balloonIconList_iconFrame");
|
143 |
-
var w=jQuery(e).parent().children('.__id')[0];
|
144 |
-
var addImgBtn=jQuery(e).prev();
|
145 |
-
var delImgBtn=jQuery(e);
|
146 |
-
// もともと表示されてた img タグを削除
|
147 |
-
d.children().remove();
|
148 |
-
// 新しく画像タグを挿入
|
149 |
-
d.append(jQuery('<img class="balloonIconList_iconFrame_src">').attr('src','<?php echo esc_url($image_default)?>'));
|
150 |
-
jQuery(w).val('').change();
|
151 |
-
};
|
152 |
-
}
|
153 |
-
</script>
|
154 |
-
<?php submit_button(); ?>
|
155 |
-
</section>
|
156 |
-
</div>
|
157 |
-
</form>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
}
|
161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/vk-blocks/build/block-build.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => 'a63e7def4f55f7664df5d186a8107b5c');
|
inc/vk-blocks/build/block-build.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function(){var e={184:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var c in n)o.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},790:function(e,t,n){"use strict";var o,a=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var l=n(960),c=new Map([[l.ElementType.Tag,1],[l.ElementType.Script,1],[l.ElementType.Style,1],[l.ElementType.Directive,1],[l.ElementType.Text,3],[l.ElementType.CDATA,4],[l.ElementType.Comment,8],[l.ElementType.Root,9]]),i=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=c.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=i;var s=function(e){function t(t,n){var o=e.call(this,t)||this;return o.data=n,o}return a(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(i);t.DataNode=s;var u=function(e){function t(t){return e.call(this,l.ElementType.Text,t)||this}return a(t,e),t}(s);t.Text=u;var m=function(e){function t(t){return e.call(this,l.ElementType.Comment,t)||this}return a(t,e),t}(s);t.Comment=m;var p=function(e){function t(t,n){var o=e.call(this,l.ElementType.Directive,n)||this;return o.name=t,o}return a(t,e),t}(s);t.ProcessingInstruction=p;var v=function(e){function t(t,n){var o=e.call(this,t)||this;return o.children=n,o}return a(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(i);t.NodeWithChildren=v;var f=function(e){function t(t){return e.call(this,l.ElementType.Root,t)||this}return a(t,e),t}(v);t.Document=f;var b=function(e){function t(t,n,o,a){void 0===o&&(o=[]),void 0===a&&(a="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var r=e.call(this,a,o)||this;return r.name=t,r.attribs=n,r}return a(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(v);function d(e){return(0,l.isTag)(e)}function k(e){return e.type===l.ElementType.CDATA}function _(e){return e.type===l.ElementType.Text}function h(e){return e.type===l.ElementType.Comment}function g(e){return e.type===l.ElementType.Directive}function y(e){return e.type===l.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),_(e))n=new u(e.data);else if(h(e))n=new m(e.data);else if(d(e)){var o=t?x(e.children):[],a=new b(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=a}else if(k(e)){o=t?x(e.children):[];var c=new v(l.ElementType.CDATA,o);o.forEach((function(e){return e.parent=c})),n=c}else if(y(e)){o=t?x(e.children):[];var i=new f(o);o.forEach((function(e){return e.parent=i})),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!g(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new p(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=b,t.isTag=d,t.isCDATA=k,t.isText=_,t.isComment=h,t.isDirective=g,t.isDocument=y,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},885:function(e){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},276:function(e,t,n){var o="html",a="head",r="body",l=/<([a-zA-Z]+[0-9]?)/,c=/<head.*>/i,i=/<body.*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var m=new window.DOMParser;s=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),m.parseFromString(e,"text/html")}}if(document.implementation){var p=n(507).isIE,v=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);s=function(e,t){return t?(v.documentElement.getElementsByTagName(t)[0].innerHTML=e,v):(v.documentElement.innerHTML=e,v)}}var f,b=document.createElement("template");b.content&&(f=function(e){return b.innerHTML=e,b.content.childNodes}),e.exports=function(e){var t,n,m,p,v=e.match(l);switch(v&&v[1]&&(t=v[1].toLowerCase()),t){case o:return n=u(e),c.test(e)||(m=n.getElementsByTagName(a)[0])&&m.parentNode.removeChild(m),i.test(e)||(m=n.getElementsByTagName(r)[0])&&m.parentNode.removeChild(m),n.getElementsByTagName(o);case a:case r:return p=s(e).getElementsByTagName(t),i.test(e)&&c.test(e)?p[0].parentNode.childNodes:p;default:return f?f(e):s(e,r).getElementsByTagName(r)[0].childNodes}}},152:function(e,t,n){var o=n(276),a=n(507).formatDOM,r=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(r);return n&&n[1]&&(t=n[1]),a(o(e),null,t)}},507:function(e,t,n){for(var o,a=n(885),r=n(790),l=a.CASE_SENSITIVE_TAG_NAMES,c=r.Comment,i=r.Element,s=r.ProcessingInstruction,u=r.Text,m={},p=0,v=l.length;p<v;p++)o=l[p],m[o.toLowerCase()]=o;function f(e){for(var t,n={},o=0,a=e.length;o<a;o++)n[(t=e[o]).name]=t.value;return n}function b(e){return function(e){return m[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:f,formatDOM:function e(t,n,o){n=n||null;for(var a=[],r=0,l=t.length;r<l;r++){var m,p=t[r];switch(p.nodeType){case 1:(m=new i(b(p.nodeName),f(p.attributes))).children=e(p.childNodes,m);break;case 3:m=new u(p.nodeValue);break;case 8:m=new c(p.nodeValue);break;default:continue}var v=a[r-1]||null;v&&(v.next=m),m.parent=n,m.prev=v,m.next=null,a.push(m)}return o&&((m=new s(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=a[0]||null,m.parent=n,a.unshift(m),a[1]&&(a[1].prev=a[0])),a},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},488:function(e,t,n){var o=n(670),a=n(484),r=n(152);r="function"==typeof r.default?r.default:r;var l={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:o(r(e,(t=t||{}).htmlparser2||l),t)}c.domToReact=o,c.htmlToDOM=r,c.attributesToProps=a,c.Element=n(790).Element,e.exports=c,e.exports.default=c},484:function(e,t,n){var o=n(726),a=n(606);function r(e){return o.possibleStandardNames[e]}e.exports=function(e){var t,n,l,c,i,s={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(l=e[t],o.isCustomAttribute(t))s[t]=l;else if(c=r(n=t.toLowerCase()))switch(i=o.getPropertyInfo(c),"checked"!==c&&"value"!==c||u||(c=r("default"+n)),s[c]=l,i&&i.type){case o.BOOLEAN:s[c]=!0;break;case o.OVERLOADED_BOOLEAN:""===l&&(s[c]=!0)}else a.PRESERVE_CUSTOM_ATTRIBUTES&&(s[t]=l);return a.setStyleProp(e.style,s),s}},670:function(e,t,n){var o=n(196),a=n(484),r=n(606),l=r.setStyleProp,c=r.canTextBeChildOfNode;function i(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&r.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var r,s,u,m,p,v=(n=n||{}).library||o,f=v.cloneElement,b=v.createElement,d=v.isValidElement,k=[],_="function"==typeof n.replace,h=n.trim,g=0,y=t.length;g<y;g++)if(r=t[g],_&&d(u=n.replace(r)))y>1&&(u=f(u,{key:u.key||g})),k.push(u);else if("text"!==r.type){switch(m=r.attribs,i(r)?l(m.style,m):m&&(m=a(m)),p=null,r.type){case"script":case"style":r.children[0]&&(m.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?m.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}y>1&&(m.key=g),k.push(b(r.name,m,p))}else{if((s=!r.data.trim().length)&&r.parent&&!c(r.parent))continue;if(h&&s)continue;k.push(r.data)}return 1===k.length?k[0]:k}},606:function(e,t,n){var o=n(196),a=n(476).default,r={reactCompat:!0},l=o.version.split(".")[0]>=16,c=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:l,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,o,a="function"==typeof t,r={},l={};for(n in e)o=e[n],a&&(r=t(n,o))&&2===r.length?l[r[0]]=r[1]:"string"==typeof o&&(l[o]=n);return l},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=a(e,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!c.has(e.name)},elementsWithNoTextChildren:c}},139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,i=/^\s+|\s+$/g,s="";function u(e){return e?e.replace(i,s):s}e.exports=function(e,i){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];i=i||{};var m=1,p=1;function v(e){var t=e.match(n);t&&(m+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function f(){var e={line:m,column:p};return function(t){return t.position=new b(e),h(),t}}function b(e){this.start=e,this.end={line:m,column:p},this.source=i.source}b.prototype.content=e;var d=[];function k(t){var n=new Error(i.source+":"+m+":"+p+": "+t);if(n.reason=t,n.filename=i.source,n.line=m,n.column=p,n.source=e,!i.silent)throw n;d.push(n)}function _(t){var n=t.exec(e);if(n){var o=n[0];return v(o),e=e.slice(o.length),n}}function h(){_(o)}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return k("End of comment missing");var o=e.slice(2,n-2);return p+=2,v(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=f(),n=_(a);if(n){if(y(),!_(r))return k("property missing ':'");var o=_(l),i=e({type:"declaration",property:u(n[0].replace(t,s)),value:o?u(o[0].replace(t,s)):s});return _(c),i}}return h(),function(){var e,t=[];for(g(t);e=E();)!1!==e&&(t.push(e),g(t));return t}()}},726:function(e,t,n){"use strict";function o(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}function a(e,t,n,o,a,r,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=l}Object.defineProperty(t,"__esModule",{value:!0});var r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){r[e]=new a(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,l=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);_n=!0);}catch(e){l=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw a}}return r}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t,n)||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.")}()),c=l[0],i=l[1];r[c]=new a(c,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){r[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){r[e]=new a(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){r[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){r[e]=new a(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){r[e]=new a(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){r[e]=new a(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){r[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)}));var l=/[\-\:]([a-z])/g,c=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){r[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){r[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)}));var i=n(229),s=i.CAMELCASE,u=i.SAME,m=i.possibleStandardNames,p=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),v=Object.keys(m).reduce((function(e,t){var n=m[t];return n===u?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=v},229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},476:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var a=o(n(848)),r=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?(a.default(e,(function(e,o){e&&o&&(n[r.camelCase(e,t)]=o)})),n):n}},678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,a=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||a.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(r,c)),e.replace(o,l))}},848:function(e,t,n){var o=n(139);e.exports=function(e,t){var n,a=null;if(!e||"string"!=typeof e)return a;for(var r,l,c=o(e),i="function"==typeof t,s=0,u=c.length;s<u;s++)r=(n=c[s]).property,l=n.value,i?t(r,l,n):l&&(a||(a={}),a[r]=l);return a}},196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{metadata:function(){return oe},name:function(){return ae},settings:function(){return re}});var t={};n.r(t),n.d(t,{metadata:function(){return ce},name:function(){return ue},settings:function(){return me}});var o={};n.r(o),n.d(o,{metadata:function(){return Me},name:function(){return Fe},settings:function(){return je}});var a={};n.r(a),n.d(a,{metadata:function(){return Le},name:function(){return vt},settings:function(){return ft}});var r={};n.r(r),n.d(r,{metadata:function(){return yt},name:function(){return Xt},settings:function(){return $t}});var l={};n.r(l),n.d(l,{metadata:function(){return pn},name:function(){return vn},settings:function(){return fn}});var c={};n.r(c),n.d(c,{metadata:function(){return En},name:function(){return xn},settings:function(){return Cn}});var i={};n.r(i),n.d(i,{metadata:function(){return Sn},name:function(){return Rn},settings:function(){return An}});var s={};n.r(s),n.d(s,{metadata:function(){return Hn},name:function(){return Un},settings:function(){return Dn}});var u={};n.r(u),n.d(u,{metadata:function(){return Xn},name:function(){return $n},settings:function(){return Kn}});var m={};n.r(m),n.d(m,{metadata:function(){return Mo},name:function(){return jo},settings:function(){return Ho}});var p={};n.r(p),n.d(p,{metadata:function(){return Do},name:function(){return Ko},settings:function(){return Qo}});var v={};n.r(v),n.d(v,{metadata:function(){return aa},name:function(){return ra},settings:function(){return la}});var f={};n.r(f),n.d(f,{metadata:function(){return ma},name:function(){return pa},settings:function(){return va}});var b={};n.r(b),n.d(b,{metadata:function(){return ba},name:function(){return Ia},settings:function(){return Ra}});var d={};n.r(d),n.d(d,{metadata:function(){return fr},name:function(){return br},settings:function(){return dr}});var k={};n.r(k),n.d(k,{metadata:function(){return _r},name:function(){return Vr},settings:function(){return qr}});var _={};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}n.r(_),n.d(_,{metadata:function(){return Kr},name:function(){return Qr},settings:function(){return el}}),window.wp.coreData,window.wp.notices;var g=window.wp.blocks;function y(e,t){const n=C(e),o=C(t),a=n.pop(),r=o.pop(),l=w(n,o);return 0!==l?l:a&&r?w(a.split("."),r.split(".")):a||r?a?-1:1:0}const E=(e,t,n)=>{R(n);const o=y(e,t);return S[n].includes(o)};y.validate=e=>"string"==typeof e&&/^[v\d]/.test(e)&&x.test(e),y.compare=E,y.sastisfies=(e,t)=>{const n=t.match(/^([<>=~^]+)/),o=n?n[1]:"=";if("^"!==o&&"~"!==o)return E(e,t,o);const[a,r,l]=C(e),[c,i,s]=C(t);return 0===B(a,c)&&("^"===o?w([r,l],[i,s])>=0:0===B(r,i)&&B(l,s)>=0)};const x=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,C=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(x);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},N=e=>"*"===e||"x"===e||"X"===e,T=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},B=(e,t)=>{if(N(e)||N(t))return 0;const[n,o]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(T(e),T(t));return n>o?1:n<o?-1:0},w=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const o=B(e[n]||0,t[n]||0);if(0!==o)return o}return 0},S={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},I=Object.keys(S),R=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===I.indexOf(e))throw new Error(`Invalid operator, expected one of ${I.join("|")}`)};var A,O,z,P=window.wp.element,M=window.wp.i18n,F=(0,M.__)("Lorem ipsum dolor","vk-blocks"),j=(0,M.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ","vk-blocks"),H=(0,M.__)("Lorem ipsum","vk-blocks"),L='<i class="fas fa-user"></i>',U="https://demo.dev3.biz/lightning-pro/wp-content/uploads/2018/02/agent-18762_1920-200x300.jpg",D="#8ed1fc",V="https://example.com",q=('{"alt":"Example Image","sizes":{"full":{"url":"'.concat(U,'"}}}'),(0,M.__)("Theoretical Physicist","vk-blocks")),W=(0,M.__)("Profile","vk-blocks"),J=(0,M.__)("Albert Einstein","vk-blocks"),Z=(0,M.__)("14 March 1879 – 18 April 1955","vk-blocks"),G=n(196);function Y(){return Y=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},Y.apply(this,arguments)}var X,$,K,Q=window.wp.blockEditor,ee=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return(0,P.createElement)("div",{className:"alert alert-".concat(n)},(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:o}))}}],te=ee,ne=window.wp.components,oe=JSON.parse('{"apiVersion":2,"name":"vk-blocks/alert","category":"vk-blocks-cat","title":"Alert","description":"A colored box with four statuses, including annotations and alerts.","textdomain":"vk-blocks","attributes":{"style":{"type":"string","default":"info"},"content":{"type":"string","source":"html","selector":"p"}},"supports":{"className":true}}'),ae=oe.name,re={icon:(0,P.createElement)((function(e){return G.createElement("svg",Y({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A||(A=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),O||(O=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),z||(z=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 8.5a8.5 8.5 0 0 1-12.12 7.7l.18-.2a1.61 1.61 0 0 0-1.17-2.72H8.62c.06-.67-.3-1.43-1.04-1.69A8.5 8.5 0 1 1 24 8.5zm-7.86.7H14.9L14 6.27V4h3v2.28l-.86 2.91zm.86 1.29V13h-3v-2.51h3z",fill:"#000"})))}),null),example:{attributes:{style:"info",content:j}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return(0,P.createElement)("div",Q.useBlockProps.save({className:"alert alert-".concat(n)}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:o}))},edit:function(e){var t=e.attributes,n=e.setAttributes,o=t.style,a=t.content,r=(0,Q.useBlockProps)({className:"alert alert-".concat(o)});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Style Settings","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:o,onChange:function(e){return n({style:e})},options:[{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"}]}))),(0,P.createElement)("div",r,(0,P.createElement)(Q.RichText,{tagName:"p",onChange:function(e){return n({content:e})},value:a})))},deprecated:te};function le(){return le=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},le.apply(this,arguments)}var ce=JSON.parse('{"apiVersion":2,"name":"vk-blocks/ancestor-page-list","category":"vk-blocks-cat","title":"Page list from ancestor","attributes":{"ancestorTitleDisplay":{"type":"boolean","default":true},"ancestorTitleTagName":{"type":"string","default":"h4"},"ancestorTitleClassName":{"type":"string","default":null},"ancestorTitleLink":{"type":"boolean","default":false},"displayHasChildOnly":{"type":"boolean","default":false},"hiddenGrandChild":{"type":"boolean","default":false}},"description":"Display Page list from ancestor page","textdomain":"vk-blocks","supports":{"className":true}}'),ie=window.wp.serverSideRender,se=n.n(ie),ue=ce.name,me={icon:(0,P.createElement)((function(e){return G.createElement("svg",le({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),X||(X=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8 6.32 8 7 7.33 7 6.5 7 5.68 6.32 5 5.5 5 4.67 5 4 5.68 4 6.5ZM20 6H9v1h11V6ZM7 11.5l-1.967.008h-.005c-.364 0-.71.126-.987.343A1.504 1.504 0 0 1 5.5 10c.82-.001 1.5.679 1.5 1.499Zm4.109 5.5.946-.997A.056.056 0 0 0 12.06 16H20v1h-8.891ZM20 11H9v1h11v-1Z",fill:"#000"})),$||($=G.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z",fill:"#000"})),K||(K=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))}),null),example:{attributes:{hiddenGrandChild:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.name,a=t.ancestorTitleDisplay,r=t.ancestorTitleTagName,l=t.ancestorTitleClassName,c=t.ancestorTitleLink,i=t.displayHasChildOnly,s=t.hiddenGrandChild;t.name=o;var u=(0,Q.useBlockProps)();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Ancestor Page List Setting","vk-blocks")},(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Display Ancestor Page Title","vk-blocks"),checked:a,onChange:function(e){return n({ancestorTitleDisplay:e})}}),(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Archive type","vk-blocks"),value:r,onChange:function(e){return n({ancestorTitleTagName:e})},options:[{value:"h2",label:(0,M.__)("h2","vk-blocks")},{value:"h3",label:(0,M.__)("h3","vk-blocks")},{value:"h4",label:(0,M.__)("h4","vk-blocks")},{value:"h5",label:(0,M.__)("h5","vk-blocks")},{value:"h6",label:(0,M.__)("h6","vk-blocks")}]}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Ancestor page title class name","vk-blocks"),value:l,className:"mt-0 mb-3",onChange:function(e){return n({ancestorTitleClassName:e})}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add link to ancestor page title","vk-blocks"),checked:c,onChange:function(e){return n({ancestorTitleLink:e})}}),(0,P.createElement)("hr",null),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("If there is no child page, the block itself is not displayed","vk-blocks"),checked:i,onChange:function(e){return n({displayHasChildOnly:e})}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Don't display inactive grand child pages","vk-blocks"),checked:s,onChange:function(e){return n({hiddenGrandChild:e})}}))),(0,P.createElement)("div",u,(0,P.createElement)(se(),{block:"vk-blocks/ancestor-page-list",attributes:t})))}},pe=function(e){var t=!1;return e&&null!==e.match(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)&&(t=!0),t};function ve(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 fe(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){h(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}var be,de,ke,_e,he=fe(fe({},{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}}),{},{balloonImageType:{type:"string",default:"normal"}}),ge=fe(fe({},he),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}}),ye=fe(fe({},ge),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string",default:null},balloonType:{type:"string",default:"type-speech"}}),Ee=fe(fe({},ye),{},{balloonBorderColor:{type:"string",default:"#cccccc"},balloonBgColor:{type:"string",default:"#f5f5f5"}}),xe=[{attributes:Ee,save:function(e){var t=e.attributes,n=t.balloonName,o=t.balloonType,a=t.balloonBorder,r=t.balloonImageBorder,l=t.balloonBorderColor,c=t.balloonBgColor,i=t.balloonAlign,s=t.IconImage,u=t.balloonImageType,m=t.balloonAnimation,p="",v="",f="",b={},d="",k="",_={},h={};!0===a?(p+="vk_balloon_content-border-true",!0===r?v+="vk_balloon_icon_image-border-true":v="",void 0!==l&&(v+=" has-text-color",p+=" has-text-color",pe(l)||(v+=" has-".concat(l,"-color"),p+=" has-".concat(l,"-color"))),pe(l)&&!pe(c)?b={borderColor:"".concat(l)}:!pe(l)&&pe(c)?b={background:"".concat(c)}:pe(l)&&pe(c)&&(b={borderColor:"".concat(l),background:"".concat(c)}),"position-left"===i?("type-speech"===o?(void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))):"type-think"===o&&(void 0!==l&&(d+=" has-text-color",pe(l)||(d+=" has-".concat(l,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))),pe(l)&&(h={borderColor:"transparent transparent transparent ".concat(c)}),pe(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===i&&("type-speech"===o?(void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))):"type-think"===o&&void 0!==l&&(d+=" has-text-color",k+=" has-text-color",pe(l)||(d+=" has-".concat(l,"-color"),k+=" has-".concat(l,"-color"))),pe(l)&&(h={borderColor:"transparent ".concat(l," transparent transparent")}),pe(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))):void 0!==c&&(v="",void 0!==c&&pe(c)&&(b={background:"".concat(c)}),"position-left"===i?("type-speech"===o&&void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),pe(l)&&(h={borderColor:"transparent transparent transparent ".concat(c)}),pe(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===i&&("type-speech"===o&&void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),pe(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))),void 0!==c&&(f+=" has-background-color",pe(c)||(f+=" has-".concat(c,"-background-color")));var g=Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(i," vk_balloon-").concat(o," vk_balloon-animation-").concat(m)});return(0,P.createElement)("div",g,(0,P.createElement)("div",{className:"vk_balloon_icon"},s?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(u," ").concat(v),style:b,src:s,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(f," ").concat(p),style:b},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(d),style:_}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(k),style:h}),(0,P.createElement)(Q.InnerBlocks.Content,null))))}},{attributes:Ee,save:function(e){var t,n,o,a,r,l=e.attributes,c=l.balloonName,i=l.balloonType,s=l.balloonBorder,u=l.balloonImageBorder,m=l.balloonBorderColor,p=l.balloonBgColor,v=l.balloonAlign,f=l.IconImage,b=l.balloonImageType,d=l.balloonAnimation;return!0===s?(t="vk_balloon_content-border-true",n=!0===u?"vk_balloon_icon_image-border-true":"",o=m,a=p):(t="",n="",o=p,a=p),r="position-right"===v?"transparent transparent transparent ".concat(a):"transparent ".concat(a," transparent transparent"),(0,P.createElement)("div",Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(v," vk_balloon-").concat(i," vk_balloon-animation-").concat(d)}),(0,P.createElement)("div",{className:"vk_balloon_icon"},f?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(n),style:{borderColor:o},src:f,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:c})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(t),style:{backgroundColor:a,borderColor:o}},(0,P.createElement)("span",{className:"vk_balloon_content_before",style:{borderColor:r}}),(0,P.createElement)("span",{className:"vk_balloon_content_after",style:{borderColor:r}}),(0,P.createElement)(Q.InnerBlocks.Content,null))))}}];function Ce(){return Ce=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},Ce.apply(this,arguments)}function Ne(){return Ne=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},Ne.apply(this,arguments)}function Te(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}function Be(e,t){if(e){if("string"==typeof e)return Te(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)?Te(e,t):void 0}}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);_n=!0);}catch(e){l=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw a}}return r}}(e,t)||Be(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.")}()}var Se,Ie,Re,Ae=window.wp.apiFetch,Oe=n.n(Ae),ze=window.wp.data,Pe=function(e){var t=e.schema,n=e.setAttributes,o=function(e){var t;if(e){var n=(0,ze.select)("core/block-editor").getSettings().colors,o=(0,Q.getColorObjectByAttributeValues)(n,e);t=void 0!==o.color?o.color:e}return t}(e.attributes[t]);return(0,P.createElement)(Q.ColorPalette,{value:o,onChange:function(e){var o=(0,ze.select)("core/block-editor").getSettings().colors,a=(0,Q.getColorObjectByColorValue)(o,e);n(h({},t,void 0!==a?a.slug:e))}})},Me=JSON.parse('{"apiVersion":2,"name":"vk-blocks/balloon","title":"Ballon","description":"These speech balloons are perfect for recreating conversations.","category":"vk-blocks-cat","attributes":{"content":{"source":"html","selector":"p"},"balloonName":{"source":"html","selector":"figcaption"},"balloonType":{"type":"string","default":"type-speech"},"balloonFullWidth":{"type":"boolean","default":false},"balloonBorder":{"type":"boolean","default":false},"balloonImageBorder":{"type":"boolean","default":false},"balloonBorderWidth":{"type":"string","default":"thin"},"balloonBorderColor":{"type":"string"},"balloonBgColor":{"type":"string"},"balloonAlign":{"type":"string","default":"position-left"},"IconImage":{"type":"string","defaul":null},"balloonImageType":{"type":"string","default":"normal"},"balloonAnimation":{"type":"string","default":"none"}},"textdomain":"vk-blocks","supports":{"className":true}}'),Fe=Me.name,je={icon:(0,P.createElement)((function(e){return G.createElement("svg",Ce({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),be||(be=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 1.2H8.71c-.99 0-1.8.8-1.8 1.8v.27c0 .96-.62 1.8-1.53 2.1l-.93.3 1.15.48c.8.34 1.31 1.12 1.31 1.98 0 .92.75 1.67 1.67 1.67H18c1 0 1.8-.8 1.8-1.8V3c0-1-.8-1.8-1.8-1.8zM5.13 7.25c.35.15.58.5.58.88A2.87 2.87 0 0 0 8.58 11H18a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H8.71a3 3 0 0 0-3 3v.27a1 1 0 0 1-.7.95L1 5.5l4.13 1.75z",fill:"#000"})),de||(de=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.89 6.1H9V4.9h.89v1.2zm2.67 0h-1.78V4.9h1.78v1.2zm2.66 0h-1.78V4.9h1.78v1.2zm1.78 0h-.89V4.9H17v1.2zm4.21 10.6c0 .3.16.58.41.75L24 19l-2.23 1.09a1 1 0 0 0-.56.9 3 3 0 0 1-3 3.01H14a3 3 0 0 1-3-3v-3.89l1.06-1.1c.43-.46.53-1.05.38-1.57.45-.28.99-.44 1.56-.44h4.52a2.7 2.7 0 0 1 2.7 2.7zm-3 6.1H14c-1 0-1.8-.8-1.8-1.8v-4c0-1 .8-1.8 1.8-1.8h4.52c.82 0 1.5.67 1.5 1.5 0 .7.35 1.37.95 1.75l.6.4-.32.16A2.2 2.2 0 0 0 20 21c0 1-.8 1.81-1.8 1.81z",fill:"#000"})),ke||(ke=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),_e||(_e=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{balloonName:H,balloonType:"type-speech",balloonBgColor:"#f5f5f5",balloonAlign:"position-left",IconImage:U,balloonImageType:"normal"},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.content,l=o.balloonName,c=o.balloonType,i=o.balloonBorder,s=o.balloonFullWidth,u=o.balloonImageBorder,m=o.balloonBorderColor,p=o.balloonBgColor,v=o.balloonAlign,f=o.IconImage,b=o.balloonImageType,d=o.balloonAnimation,k=we((0,P.useState)(null),2),_=k[0],h=k[1];(0,P.useEffect)((function(){Oe()({path:"/vk-blocks/v1/block-meta/balloon/",method:"GET",parse:!0}).then((function(e){h(e)}))}),[]),_&&_.default_icons&&(t=Object.keys(_.default_icons).map((function(e){var t=_.default_icons[e],n="";return t.src&&(n=(0,P.createElement)("div",{key:e},(0,P.createElement)(ne.Button,{onClick:function(){a({IconImage:t.src}),a({balloonName:t.name})},className:"button button-large components-button"},(0,P.createElement)("img",{className:"icon-image",src:t.src,alt:t.name})))),n}))),"type-serif"===c&&a({balloonType:"type-speech"}),null==b&&a({balloonImageType:"normal"}),null==d&&a({balloonAnimation:"none"}),null==i&&a({balloonBorder:!1}),null==u&&a({balloonImageBorder:!1});var g="",y="",E="",x={},C={},N="",T="",B={},w={},S={};S&&(C=S,x=S),"background"in x&&delete x.background,!0===i?(n=(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border","vk-blocks")," "),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to balloon","vk-blocks"),checked:i,onChange:function(e){return a({balloonBorder:e})}}),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)(" Image Border","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to image","vk-blocks"),className:"mb-1",checked:u,onChange:function(e){return a({balloonImageBorder:e})}}),(0,P.createElement)("p",null,(0,M.__)("* You can change border width on Setting > VK Blocks","vk-blocks")," "),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border color of speech balloon","vk-blocks")),(0,P.createElement)(Pe,Ne({schema:"balloonBorderColor"},e))),g+="vk_balloon_content-border-true",!0===u?y+="vk_balloon_icon_image-border-true":y="",void 0!==m&&(y+=" has-text-color",g+=" has-text-color",pe(m)||(y+=" has-".concat(m,"-color"),g+=" has-".concat(m,"-color"))),pe(m)&&!pe(p)?(C={borderColor:"".concat(m)},x={borderColor:"".concat(m)}):!pe(m)&&pe(p)?C={background:"".concat(p)}:pe(m)&&pe(p)&&(C={borderColor:"".concat(m),background:"".concat(p)},x={borderColor:"".concat(m)}),"position-left"===v?("type-speech"===c?(void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))):"type-think"===c&&(void 0!==m&&(N+=" has-text-color",pe(m)||(N+=" has-".concat(m,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))),pe(m)&&(w={borderColor:"transparent transparent transparent ".concat(p)}),pe(p)&&(B={borderColor:"transparent ".concat(p," transparent transparent")})):"position-right"===v&&("type-speech"===c?(void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))):"type-think"===c&&void 0!==m&&(N+=" has-text-color",T+=" has-text-color",pe(m)||(N+=" has-".concat(m,"-color"),T+=" has-".concat(m,"-color"))),pe(m)&&(w={borderColor:"transparent ".concat(m," transparent transparent")}),pe(p)&&(B={borderColor:"transparent transparent transparent ".concat(p)}))):(n=(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to balloon","vk-blocks"),checked:i,onChange:function(e){return a({balloonBorder:e})}})),y="",void 0!==p&&pe(p)&&(C={background:"".concat(p)}),"position-left"===v?("type-speech"===c&&void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),pe(m)&&(w={borderColor:"transparent transparent transparent ".concat(p)}),pe(p)&&(B={borderColor:"transparent ".concat(p," transparent transparent")})):"position-right"===v&&("type-speech"===c&&void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),pe(p)&&(B={borderColor:"transparent transparent transparent ".concat(p)}))),void 0!==p&&(E+=" has-background-color",pe(p)||(E+=" has-".concat(p,"-background-color"))),s&&(g+=" vk_balloon_content_fullwidth");var I=(0,Q.useBlockProps)({className:"vk_balloon vk_balloon-".concat(v," vk_balloon-").concat(c," vk_balloon-animation-").concat(d)});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Balloon setting","vk-blocks")},(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Position","vk-blocks")),(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please specify the layout of the balloon.","vk-blocks")," "),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"position-left"===v,isSecondary:"position-left"!==v,onClick:function(){return a({balloonAlign:"position-left"})}},(0,M.__)("Left","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"position-right"===v,isSecondary:"position-right"!==v,onClick:function(){return a({balloonAlign:"position-right"})}},(0,M.__)("Right","vk-blocks"))),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Type","vk-blocks")),(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please select the type of balloon.","vk-blocks")," "),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"type-speech"===c,isSecondary:"type-speech"!==c,onClick:function(){return a({balloonType:"type-speech"})}},(0,M.__)("Speech","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"type-think"===c,isSecondary:"type-think"!==c,onClick:function(){return a({balloonType:"type-think"})}},(0,M.__)("Thinking","vk-blocks"))),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Image Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"normal"===b,isSecondary:"normal"!==b,onClick:function(){return a({balloonImageType:"normal"})}},(0,M.__)("Normal","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"rounded"===b,isSecondary:"rounded"!==b,onClick:function(){return a({balloonImageType:"rounded"})}},(0,M.__)("Rounded","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"circle"===b,isSecondary:"circle"!==b,onClick:function(){return a({balloonImageType:"circle"})}},(0,M.__)("Circle","vk-blocks"))),(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Width","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("100%","vk-blocks"),checked:s,onChange:function(e){return a({balloonFullWidth:e})}})),n,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Background color of speech balloon","vk-blocks")),(0,P.createElement)(Pe,Ne({schema:"balloonBgColor"},e))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Default Icon Setting","vk-blocks")},(0,P.createElement)("div",{className:"icon-image-list mb-2"},t),(0,P.createElement)("div",null,(0,M.__)("You can register default icons from Settings > VK Blocks in Admin.","vk-blocks"))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Animation setting","vk-blocks")},(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please select the type of animation.","vk-blocks")," "),(0,P.createElement)(ne.SelectControl,{value:d,onChange:function(e){return a({balloonAnimation:e})},options:[{value:"none",label:(0,M.__)("None","vk-blocks")},{value:"trembling",label:(0,M.__)("Trembling","vk-blocks")},{value:"trembling-x",label:(0,M.__)("Trembling X","vk-blocks")},{value:"pounding",label:(0,M.__)("Pounding","vk-blocks")},{value:"shaking",label:(0,M.__)("Shaking","vk-blocks")}]}))),(0,P.createElement)("div",I,(0,P.createElement)("div",{className:"vk_balloon_icon"},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return a({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(y),value:f,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:f?"image-button":"button button-large"},f?(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(y),style:x,src:f,alt:(0,M.__)("Upload image","vk-blocks")}):(0,M.__)("Select image","vk-blocks"))}}),(0,P.createElement)(Q.RichText,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return a({balloonName:e})},value:l,placeholder:(0,M.__)("Icon Name","vk-blocks")})),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(E," ").concat(g),style:C},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(N),style:B}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(T),style:w}),(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{content:r}]]})))))},save:function(e){var t=e.attributes,n=t.balloonName,o=t.balloonType,a=t.balloonBorder,r=t.balloonFullWidth,l=t.balloonImageBorder,c=t.balloonBorderColor,i=t.balloonBgColor,s=t.balloonAlign,u=t.IconImage,m=t.balloonImageType,p=t.balloonAnimation,v="",f="",b="",d={},k={},_="",h="",g={},y={},E={};E&&(k=E,d=E),"background"in d&&delete d.background,!0===a?(v+="vk_balloon_content-border-true",!0===l?f+="vk_balloon_icon_image-border-true":f="",void 0!==c&&(f+=" has-text-color",v+=" has-text-color",pe(c)||(f+=" has-".concat(c,"-color"),v+=" has-".concat(c,"-color"))),pe(c)&&!pe(i)?(k={borderColor:"".concat(c)},d={borderColor:"".concat(c)}):!pe(c)&&pe(i)?k={background:"".concat(i)}:pe(c)&&pe(i)&&(k={borderColor:"".concat(c),background:"".concat(i)},d={borderColor:"".concat(c)}),"position-left"===s?("type-speech"===o?(void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))):"type-think"===o&&(void 0!==c&&(_+=" has-text-color",pe(c)||(_+=" has-".concat(c,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))),pe(c)&&(y={borderColor:"transparent transparent transparent ".concat(i)}),pe(i)&&(g={borderColor:"transparent ".concat(i," transparent transparent")})):"position-right"===s&&("type-speech"===o?(void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))):"type-think"===o&&void 0!==c&&(_+=" has-text-color",h+=" has-text-color",pe(c)||(_+=" has-".concat(c,"-color"),h+=" has-".concat(c,"-color"))),pe(c)&&(y={borderColor:"transparent ".concat(c," transparent transparent")}),pe(i)&&(g={borderColor:"transparent transparent transparent ".concat(i)}))):void 0!==i&&(f="",void 0!==i&&pe(i)&&(k={background:"".concat(i)}),"position-left"===s?("type-speech"===o&&void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),pe(c)&&(y={borderColor:"transparent transparent transparent ".concat(i)}),pe(i)&&(g={borderColor:"transparent ".concat(i," transparent transparent")})):"position-right"===s&&("type-speech"===o&&void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),pe(i)&&(g={borderColor:"transparent transparent transparent ".concat(i)}))),void 0!==i&&(b+=" has-background-color",pe(i)||(b+=" has-".concat(i,"-background-color"))),r&&(v+=" vk_balloon_content_fullwidth");var x=Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(s," vk_balloon-").concat(o," vk_balloon-animation-").concat(p)});return(0,P.createElement)("div",x,(0,P.createElement)("div",{className:"vk_balloon_icon"},u?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(m," ").concat(f),style:d,src:u,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(b," ").concat(v),style:k},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(_),style:g}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(h),style:y}),(0,P.createElement)(Q.InnerBlocks.Content,null))))},deprecated:xe};function He(){return He=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},He.apply(this,arguments)}var Le=JSON.parse('{"apiVersion":2,"name":"vk-blocks/border-box","title":"Border Box","category":"vk-blocks-cat","attributes":{"heading":{"type":"string","source":"html","selector":"h4"},"color":{"type":"string"},"borderColor":{"type":"string"},"bgColor":{"type":"string","default":"transparent"},"faIcon":{"type":"string","default":""},"bodyAlign":{"type":"string"}},"description":"This is a border box where you can place headings to attract attention.","textdomain":"vk-blocks","supports":{"className":true}}'),Ue=n(184),De=n.n(Ue);function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(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 We(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Je(e,t){return Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Je(e,t)}function Ze(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}function Ge(e){return Ge="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},Ge(e)}function Ye(e,t){if(t&&("object"===Ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var $e=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(e){var t;return Ve(this,a),(t=o.call(this,e)).state={open:!1},t.buttonRef=(0,P.createRef)(),t}return We(a,[{key:"render",value:function(){var e=this,t="apc-icon-btn components-button is-secondary is-small";return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"components-base-control"},(0,P.createElement)("div",{className:"vk-blocks-button-icon-control__wrapper components-base-control__field"},(0,P.createElement)(ne.Button,{isTertiary:!0,className:"".concat(t," mb-1"),onClick:function(){e.setState({open:!e.state.open})},ref:this.buttonRef},this.props.label),this.state.open&&this.buttonRef.current&&(0,P.createElement)(ne.Popover,{anchorRect:this.buttonRef.current.getBoundingClientRect(),children:this.props.renderComp,onFocusOutside:function(n){n.relatedTarget&&!n.relatedTarget.closest(".".concat(t))&&n.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"vk-blocks-advanced-popover-control"}))))}}]),a}(P.Component),Ke=function(e){var t=e.attributeName,n=e.attributes,o=e.setAttributes,a=vkFontAwesome.iconsUrl,r=vkFontAwesome.iconFamily,l=vkFontAwesome.versions,c=vkFontAwesome.currentVersion,i=we((0,P.useState)(!1),2),s=i[0],u=i[1],m=we((0,P.useState)(),2),p=m[0],v=m[1];(0,P.useEffect)((function(){v(c)}),[]);var f=(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.BaseControl,{className:"components-base-control__label",id:"vk_fa_icon_list",label:(0,M.__)("Icon","vk-blocks")+" ( "+r+" ) "},(0,P.createElement)(ne.RadioControl,{className:"vk_icon_list",selected:n[t],options:[{label:(0,P.createElement)("i",{className:"fas fa-arrow-right"}),value:'<i class="fas fa-arrow-right"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-down"}),value:'<i class="fas fa-arrow-down"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-left"}),value:'<i class="fas fa-arrow-left"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-right"}),value:'<i class="fas fa-arrow-circle-right"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-down"}),value:'<i class="fas fa-arrow-circle-down"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-left"}),value:'<i class="fas fa-arrow-circle-left"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-right"}),value:'<i class="far fa-arrow-alt-circle-right"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-down"}),value:'<i class="far fa-arrow-alt-circle-down"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-left"}),value:'<i class="far fa-arrow-alt-circle-left"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-external-link-square-alt"}),value:'<i class="fas fa-external-link-square-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-external-link-alt"}),value:'<i class="fas fa-external-link-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-download"}),value:'<i class="fas fa-download"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation-triangle"}),value:'<i class="fas fa-exclamation-triangle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation-circle"}),value:'<i class="fas fa-exclamation-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation"}),value:'<i class="fas fa-exclamation"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-question"}),value:'<i class="fas fa-question"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-question-circle"}),value:'<i class="fas fa-question-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-info-circle"}),value:'<i class="fas fa-info-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-info"}),value:'<i class="fas fa-info"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check"}),value:'<i class="fas fa-check"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check-square"}),value:'<i class="fas fa-check-square"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check-circle"}),value:'<i class="fas fa-check-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-phone"}),value:'<i class="fas fa-phone"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-phone-square"}),value:'<i class="fas fa-phone-square"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-mobile-alt"}),value:'<i class="fas fa-mobile-alt"></i>'},{label:(0,P.createElement)("i",{className:"far fa-envelope"}),value:'<i class="far fa-envelope"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-user"}),value:'<i class="fas fa-user"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-users"}),value:'<i class="fas fa-users"></i>'},{label:(0,P.createElement)("i",{className:"far fa-file-alt"}),value:'<i class="far fa-file-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file-alt"}),value:'<i class="fas fa-file-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file"}),value:'<i class="fas fa-file"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file-pdf"}),value:'<i class="fas fa-file-pdf"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-building"}),value:'<i class="fas fa-building"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-twitter"}),value:'<i class="fab fa-twitter"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-facebook-square"}),value:'<i class="fab fa-facebook-square"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-line"}),value:'<i class="fab fa-line"></i>'}],onChange:function(e){return o(h({},t,e))}})),(0,P.createElement)("hr",null),(0,P.createElement)(ne.ExternalLink,{href:a,className:"components-button is-primary mt-1"},(0,M.__)("Font Awesome icon list","vk-blocks")),(0,P.createElement)("p",{className:"mt-1"},(0,M.__)("If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.","vk-blocks"),(0,P.createElement)("br",null),(0,M.__)('Ex) <i class="fas fa-arrow-circle-right"></i>',"vk-blocks")),(0,P.createElement)("hr",null),(0,P.createElement)(ne.SelectControl,{label:"Font Awesome Version",value:p,options:l,onChange:function(e){return v(e)},className:"mt-1"}),(0,P.createElement)("p",{className:"mt-1"},(0,M.__)("When you click save button, the window will be reloaded and this setting will be applied.","vk-blocks")),(0,P.createElement)(ne.Button,{isPrimary:!0,disabled:s,onClick:function(){u(!0),Oe()({path:"/vk-blocks/v1/options/vk_font_awesome_version/",method:"POST",data:p}).then((function(){u(!1),window.location.reload()})).catch((function(){u(!1)}))}},(0,M.__)("Save","vk-blocks")));return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.TextControl,{value:n[t],onChange:function(e){return o(h({},t,e))},placeholder:'<i class="fas fa-arrow-circle-right"></i>',className:"mb-0"}),(0,P.createElement)($e,{label:(0,M.__)("Select Icon","vk-blocks"),renderComp:f,setAttributes:o}))},Qe=n(488),et=(Qe.domToReact,Qe.htmlToDOM,Qe.attributesToProps,Qe.Element,Qe),tt=function(e){var t,n,o=e.setAttributes,a=e.attributes,r=e.for_,l=e.className,c=a.heading,i=a.color,s=a.faIcon;"edit"===r?(t=(0,P.createElement)(Q.InnerBlocks,null),n=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return o({heading:e})},value:c,placeholder:(0,M.__)("Please enter a title.","vk-blocks")})):(t=(0,P.createElement)(Q.InnerBlocks.Content,null),n=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:c}));var u=l;return-1===l.indexOf("is-style-")&&(u=De()(l,"is-style-vk_borderBox-style-solid-kado-tit-tab")),(0,P.createElement)("div",{className:"vk_borderBox vk_borderBox-color-".concat(i," ").concat(u)},(0,P.createElement)("div",{className:"vk_borderBox_title_container"},(0,P.createElement)("i",{className:"".concat(s)}),n),(0,P.createElement)("div",{className:"vk_borderBox_body"},t))},nt=function(e){var t,n,o=e.setAttributes,a=e.attributes,r=e.for_,l=e.className,c=a.heading,i=a.color,s=a.faIcon,u=a.bgColor;"edit"===r?(t=(0,P.createElement)(Q.InnerBlocks,null),n=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return o({heading:e})},value:c,placeholder:(0,M.__)("Please enter a title.","vk-blocks")})):(t=(0,P.createElement)(Q.InnerBlocks.Content,null),n=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:c}));var m,p=l;return-1===l.indexOf("is-style-")&&(p=De()(l,"is-style-vk_borderBox-style-solid-kado-tit-tab")),m=-1===s.indexOf('<i class="')?'<i class="'.concat(s,'"></i>'):s,(0,P.createElement)("div",{className:"vk_borderBox vk_borderBox-color-".concat(i," vk_borderBox-background-").concat(u," ").concat(p)},(0,P.createElement)("div",{className:"vk_borderBox_title_container"},et(m),n),(0,P.createElement)("div",{className:"vk_borderBox_body"},t))};function ot(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rt,lt,ct,it={heading:{type:"string",source:"html",selector:"h4"},color:{type:"string",default:"red"},faIcon:{type:"string",default:""}},st=at(at({},it),{},{bgColor:{type:"string",default:"transparent"}}),ut=at(at({},st),{},{borderColor:{type:"string"}}),mt=[{attributes:at(at({},ut),{},{color:{type:"string"}}),save:function(e){var t,n,o=e.attributes,a=o.heading,r=o.faIcon,l=o.color,c=o.bgColor,i=o.borderColor,s=(0,P.createElement)(Q.InnerBlocks.Content,null),u=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:a,"ß":!0}),m=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(l),!!l),h(t,"vk_borderBox-background-".concat(c),!!c),h(t,"has-text-color",!!i),h(t,"has-".concat(i,"-color"),!!i&&!pe(i)),t)),p={};void 0!==i&&pe(i)&&(p={color:"".concat(i)});var v=Q.useBlockProps.save({className:m,style:p});-1===v.className.indexOf("is-style-")&&(v.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var f=!1;(-1<v.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<v.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<v.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(f=!0);var b,d=De()("vk_borderBox_title_container",(h(n={},"has-background",f&&!!i),h(n,"has-".concat(i,"-background-color"),f&&!!i&&!pe(i)),n)),k={};if(f&&void 0!==i&&pe(i)&&(k={backgroundColor:"".concat(i)}),-1<v.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!l){var _,g="",y=De()("vk_borderBox_icon_border",(h(_={},"has-background",!!i),h(_,"has-".concat(i,"-background-color"),!!i&&!pe(i)),_));void 0!==i&&pe(i)&&(g="background-color: ".concat(i,";")),b='<div class="'.concat(De()(y),'" style="').concat(g,'">').concat(r,"</div>")}else b=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;return(0,P.createElement)("div",v,(0,P.createElement)("div",{className:d,style:k},et(b),u),(0,P.createElement)("div",{className:"vk_borderBox_body"},s))}},{attributes:ut,save:function(e){var t,n=e.attributes,o=n.heading,a=n.color,r=n.faIcon,l=n.bgColor,c=(0,P.createElement)(Q.InnerBlocks.Content,null),i=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:o}),s=Q.useBlockProps.save({className:"vk_borderBox vk_borderBox-color-".concat(a," vk_borderBox-background-").concat(l)});return-1===s.className.indexOf("is-style-")&&(s.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab"),t=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r,(0,P.createElement)("div",s,(0,P.createElement)("div",{className:"vk_borderBox_title_container"},et(t),i),(0,P.createElement)("div",{className:"vk_borderBox_body"},c))}},{attributes:st,save:function(e){return(0,P.createElement)(nt,Ne({for_:"save"},e))}},{attributes:it,save:function(e){return(0,P.createElement)(tt,Ne({for_:"save"},e))}}],pt=mt,vt=Le.name,ft={icon:(0,P.createElement)((function(e){return G.createElement("svg",He({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Se||(Se=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1a1 1 0 0 0-1 1v11.28h1.5V7.5h21v13H10.2l.46 1.5H23a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-9V2a1 1 0 0 0-1-1H1zm9 3.75H4v-1.5h6v1.5z",fill:"#000"})),Ie||(Ie=G.createElement("path",{d:"M.87 22 0 19.47V21c0 .5.38.93.87 1zm9.76-4.5H20v-1h-8.42l-.95 1zm1.82-3H20v-1h-8.29c.38.22.64.59.74 1zm7.55-3v-1H4v1h16zm-9.11 3.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Re||(Re=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),category:"vk-blocks-cat",example:{attributes:{heading:F,faIcon:L},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},styles:[{name:"vk_borderBox-style-solid-kado-tit-tab",label:(0,M.__)("Solid Angle Tab","vk-blocks"),isDefault:!0},{name:"vk_borderBox-style-solid-round-tit-tab",label:(0,M.__)("Solid Round Tab","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-banner",label:(0,M.__)("Solid Angle Banner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-onborder",label:(0,M.__)("Solid Angle Onborder","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-inner",label:(0,M.__)("Solid Angle Inner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-iconFeature",label:(0,M.__)("Solid Angle iconFeature","vk-blocks")}],edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.heading,l=o.faIcon,c=o.color,i=o.bgColor,s=o.borderColor,u=o.bodyAlign,m=vkFontAwesome.iconFamily,p=(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}),v=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return a({heading:e})},value:r,placeholder:(0,M.__)("Please enter a title.","vk-blocks")}),f=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(c),!!c),h(t,"vk_borderBox-background-".concat(i),!!i),h(t,"has-text-color",!!s),h(t,"has-".concat(s,"-color"),!!s&&!pe(s)),t)),b={};void 0!==s&&pe(s)&&(b={color:"".concat(s)});var d=(0,Q.useBlockProps)({className:De()(f),style:b});-1===d.className.indexOf("is-style-")&&(d.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var k={red:"#dc3545",orange:"#ffa536",blue:"#4267b2",green:"#28a745",black:"#222222"};if(c)a({borderColor:k[c]}),a({color:""});else if(o.className&&o.className.match(/vk_borderBox-color-\w*/)){var _=o.className.split(" ").filter((function(e){return!e.match(/vk_borderBox-color-\w*/)}));a({className:De()(_)}),a({borderColor:k.red})}var g=!1;(-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(g=!0);var y,E=De()("vk_borderBox_title_container",(h(n={},"has-background",g&&!!s),h(n,"has-".concat(s,"-background-color"),g&&!!s&&!pe(s)),n)),x={};if(g&&void 0!==s&&pe(s)&&(x={backgroundColor:"".concat(s)}),-1<d.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!c){var C,N="",T=De()("vk_borderBox_icon_border",(h(C={},"has-background",!!s),h(C,"has-".concat(s,"-background-color"),!!s&&!pe(s)),C));void 0!==s&&pe(s)&&(N="background-color: ".concat(s,";")),y='<div class="'.concat(De()(T),'" style="').concat(N,'">').concat(l,"</div>")}else y=-1===l.indexOf('<i class="')?'<i class="'.concat(l,'"></i>'):l;var B=De()("vk_borderBox_body",h({},"vk_borderBox_body-align-".concat(u),!!u));return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.BlockAlignmentControl,{value:u,onChange:function(e){return a({bodyAlign:e})},controls:["left","center","right"]})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Margin","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",null,(0,M.__)("The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.","vk-blocks")))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:"border-color",label:(0,M.__)("Border Color","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"borderColor"},e))),(0,P.createElement)(ne.BaseControl,{id:"background-color",label:(0,M.__)("Background Color","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:i,onChange:function(e){return a({bgColor:e})},options:[{value:"transparent",label:(0,M.__)("Transparent","vk-blocks")},{value:"white",label:(0,M.__)("White","vk-blocks")}]}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:"dot-fa",label:(0,M.__)("Icon","vk-blocks")+" ( "+m+" )"},(0,P.createElement)(Ke,{attributeName:"faIcon",attributes:o,setAttributes:a})))),(0,P.createElement)("div",d,(0,P.createElement)("div",{className:De()(E),style:x},et(y),v),(0,P.createElement)("div",{className:B},p)))},save:function(e){var t,n,o=e.attributes,a=o.heading,r=o.faIcon,l=o.color,c=o.bgColor,i=o.borderColor,s=o.bodyAlign,u=(0,P.createElement)(Q.InnerBlocks.Content,null),m=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:a,"ß":!0}),p=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(l),!!l),h(t,"vk_borderBox-background-".concat(c),!!c),h(t,"has-text-color",!!i),h(t,"has-".concat(i,"-color"),!!i&&!pe(i)),t)),v={};void 0!==i&&pe(i)&&(v={color:"".concat(i)});var f=Q.useBlockProps.save({className:p,style:v});-1===f.className.indexOf("is-style-")&&(f.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var b=!1;(-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(b=!0);var d,k=De()("vk_borderBox_title_container",(h(n={},"has-background",b&&!!i),h(n,"has-".concat(i,"-background-color"),b&&!!i&&!pe(i)),n)),_={};if(b&&void 0!==i&&pe(i)&&(_={backgroundColor:"".concat(i)}),-1<f.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!l){var g,y="",E=De()("vk_borderBox_icon_border",(h(g={},"has-background",!!i),h(g,"has-".concat(i,"-background-color"),!!i&&!pe(i)),g));void 0!==i&&pe(i)&&(y="background-color: ".concat(i,";")),d='<div class="'.concat(De()(E),'" style="').concat(y,'">').concat(r,"</div>")}else d=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;var x=De()("vk_borderBox_body",h({},"vk_borderBox_body-align-".concat(s),!!s));return(0,P.createElement)("div",f,(0,P.createElement)("div",{className:k,style:_},et(d),m),(0,P.createElement)("div",{className:x},u))},deprecated:pt};function bt(){return bt=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},bt.apply(this,arguments)}var dt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,m=this.props.lbIconSizeAfter,p=this.props.lbRichtext,v=this.props.lbsubCaption,f="",b="",d="";if(f="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",pe(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",pe(e)||(f+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",pe(t)||(f+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",pe(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(r),"block"===a&&(f="".concat(f," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var k=i.match(/class="(.*?)"/)[1];k+=" vk_button_link_before";var _=u?" style='font-size: ".concat(u,"'"):"";b='<i class="'.concat(k,'"').concat(_,"></i>")}if(s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_after";var g=m?" style='font-size: ".concat(m,"'"):"";d='<i class="'.concat(h,'"').concat(g,"></i>")}return(0,P.createElement)("a",{href:l,style:null,className:f,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},(0,P.createElement)("div",{className:"vk_button_link_caption"},et(b),p,et(d)),v&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},v))}}]),a}(P.Component),kt=window.wp.primitives,_t=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(kt.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),ht=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(kt.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),gt=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,P.createElement)(kt.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),yt=JSON.parse('{"apiVersion":2,"name":"vk-blocks/button","title":"Button","category":"vk-blocks-cat","attributes":{"content":{"type":"string","source":"html","selector":"span"},"subCaption":{"type":"string"},"buttonUrl":{"type":"string"},"buttonTarget":{"type":"Boolean","default":false},"buttonSize":{"type":"string","default":"md"},"buttonType":{"type":"string","default":"0"},"buttonColor":{"type":"string","default":"primary"},"buttonTextColorCustom":{"type":"string"},"buttonColorCustom":{"type":"string"},"buttonAlign":{"type":"string","default":"left"},"buttonWidthMobile":{"type":"number","default":0},"buttonWidthTablet":{"type":"number","default":0},"buttonWidth":{"type":"number","default":0},"outerGap":{"type":"string","default":null},"fontAwesomeIconBefore":{"type":"string"},"fontAwesomeIconAfter":{"type":"string"},"iconSizeBefore":{"type":"string","default":null},"iconSizeAfter":{"type":"string","default":null},"clientId":{"type":"string"},"blockId":{"type":"string"},"old_1_31_0":{"type":"string","default":true}},"description":"A button link that can display icons before and after.","textdomain":"vk-blocks","supports":{"className":true,"anchor":true}}');var Et=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p={},v="",f="";if(p=null,m="".concat(m="vk_button_link","0"===n||null===n||"1"===n?" btn":" vk_button_link-type-text"),"0"===n||null===n?"undefined"===e||null==e?(m="".concat(m," btn-").concat(t),p=null):p={backgroundColor:"".concat(e),border:"1px solid ".concat(e),color:"#fff"}:"1"===n?"undefined"===e||null==e?(m="".concat(m," btn-outline-").concat(t),p=null):p={backgroundColor:"transparent",border:"1px solid ".concat(e),color:"".concat(e)}:"2"===n&&("undefined"===e||null==e?(m="".concat(m," btn-outline-").concat(t),p=null):p={color:"".concat(e)}),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var b=(c=c.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(i){var d=(i=i.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:r,style:p,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(v),s,et(f),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var xt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"!==n&&null!==n&&"1"!==n&&(m+=" vk_button_link-type-text"),"0"===n||null===n?"custom"!==t&&void 0===e?m+=" vk_button_btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" has-background",pe(e)?m+=" vk_button_btn":m+=" vk_button_btn has-".concat(e,"-background-color")):"1"===n?"custom"!==t&&void 0===e?m+=" vk_button_btn has-text-color has-vk-color-".concat(t,"-color is-style-outline"):(m+=" has-text-color",pe(e)?m+=" vk_button_btn":m+=" vk_button_btn has-".concat(e,"-color is-style-outline")):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color has-vk-color-".concat(t,"-color"):(m+=" has-text-color",pe(e)?m+="":m+=" has-".concat(e,"-color"))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Ct=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?m+=" btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" btn has-background",pe(e)||(m+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?m+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(m+=" btn has-text-color is-style-outline",pe(e)||(m+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(m+=" has-text-color vk_button_link-type-text",pe(e)||(m+=" has-".concat(e,"-color")))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Nt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?m+=" btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" btn has-background",pe(e)||(m+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?m+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(m+=" btn has-text-color is-style-outline",pe(e)||(m+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(m+=" has-text-color vk_button_link-type-text",pe(e)||(m+=" has-".concat(e,"-color")))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Tt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(s){var d=(s=s.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var Bt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(s){var d=(s=s.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var wt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=i.match(/class="(.*?)"/)[1];v='<i class="'.concat(b+=" vk_button_link_before",'"></i>')}if(s){var d=s.match(/class="(.*?)"/)[1];f='<i class="'.concat(d+=" vk_button_link_after",'"></i>')}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var St=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=i.match(/class="(.*?)"/)[1];v='<i class="'.concat(b+=" vk_button_link_before",'"></i>')}if(s){var d=s.match(/class="(.*?)"/)[1];f='<i class="'.concat(d+=" vk_button_link_after",'"></i>')}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);function It(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=Rt(Rt({},{content:{type:"string",source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}}),{},{subCaption:{type:"string",default:""}}),Ot=Rt(Rt({},At),{},{buttonUrl:{type:"string"},buttonColorCustom:{type:"string"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},subCaption:{type:"string"},clientId:{type:"string"}}),zt=Rt(Rt({},Ot),{},{blockId:{type:"string"}}),Pt=Rt(Rt({},zt),{},{buttonTextColorCustom:{type:"string"}}),Mt=Rt(Rt({},Pt),{},{buttonWidth:{type:"number",default:0}}),Ft=Rt(Rt({},Mt),{},{buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0}}),jt=Rt(Rt({},Ft),{},{old_1_31_0:{type:"string",default:!0}}),Ht=[{attributes:Rt(Rt({},jt),{},{outerGap:{type:"string",default:null}}),save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.outerGap,d=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,_=t.blockId,h="";h=void 0!==u&&pe(u)||b?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",p||v||f?(p&&(h+=" vk_button-width-mobile-".concat(p)),v&&(h+=" vk_button-width-tablet-".concat(v)),f&&(h+=" vk_button-width-".concat(f))):h+=" vk_button-align-".concat(m);var g=Q.useBlockProps.save({className:h});return(0,P.createElement)("div",g,(0,P.createElement)(St,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:d,lbFontAwesomeIconAfter:k,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:jt,save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=t.blockId,_="";_=void 0!==s&&pe(s)||void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-".concat(k):"vk_button vk_button-color-custom",p||v||f?(p&&(_+=" vk_button-width-mobile-".concat(p)),v&&(_+=" vk_button-width-tablet-".concat(v)),f&&(_+=" vk_button-width-".concat(f))):_+=" vk_button-align-".concat(m);var h=Q.useBlockProps.save({className:_});return(0,P.createElement)("div",h,(0,P.createElement)(wt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:d,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:Ft,save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidth,v=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,b=t.blockId,d="";d=void 0!==s&&pe(s)||void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-".concat(b):"vk_button vk_button-color-custom",d+=p?" vk_button-width-".concat(p):" vk_button-align-".concat(m);var k=Q.useBlockProps.save({className:d});return(0,P.createElement)("div",k,(0,P.createElement)(Bt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:f,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:Mt,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonTextColorCustom,m=n.buttonColorCustom,p=n.buttonAlign,v=n.fontAwesomeIconBefore,f=n.fontAwesomeIconAfter,b=n.blockId;t=void 0!==u&&pe(u)||void 0!==m&&pe(m)?"vk_button vk_button-color-custom vk_button-align-".concat(p," vk_button-").concat(b):"vk_button vk_button-color-custom vk_button-align-".concat(p);var d=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",d,(0,P.createElement)(Tt,{lbTextColorCustom:u,lbColorCustom:m,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:f,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:zt,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.blockId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(Nt,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:Ot,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(Ct,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:Ot,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(xt,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:At,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter;t=u&&"undefined"!==u?"vk_button vk_button-color-custom vk_button-align-".concat(m):"vk_button vk_button-align-".concat(m);var f=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",f,(0,P.createElement)(Et,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}}];function Lt(e){var t,n,o,a,r,l=e.el,c=(t=e.attributes,n=t.buttonColorCustom,o=t.buttonType,a=t.clientId,r="",void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.vk_button_link-type-text:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}"))),r);return""!==c?(0,P.createElement)(P.Fragment,null,l,(0,P.createElement)("style",{type:"text/css"},c)):(0,P.createElement)(P.Fragment,null,l)}function Ut(e){var t,n,o,a,r,l,c=e.el,i=(t=e.attributes,n=t.buttonTextColorCustom,o=t.buttonColorCustom,a=t.buttonType,r=t.blockId,l="",void 0!==o&&pe(o)&&("0"!==a&&null!==a||(l+=".vk_button-".concat(r," .has-background {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t}")),"1"===a&&(l+=".vk_button-".concat(r," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t.vk_button-").concat(r," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===a&&(l=".vk_button-".concat(r," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}"))),void 0!==n&&pe(n)&&("0"!==a&&null!==a||(l+=" .vk_button-".concat(r," .has-text-color {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),l);return""!==i?(0,P.createElement)(P.Fragment,null,c,(0,P.createElement)("style",{type:"text/css"},i)):(0,P.createElement)(P.Fragment,null,c)}var Dt,Vt,qt,Wt=[function(e){var t=e.el,n=e.attributes,o=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,o=e.buttonType,a=e.blockId,r="";return void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&pe(t)&&("0"!==o&&null!==o||(r+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),r}(n),a=function(e,t){var n=e.buttonWidthMobile,o=e.buttonWidthTablet,a=e.buttonWidth,r=e.outerGap,l=e.blockId,c="",i=".vk_button";return r&&(n&&(c+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(c+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(o,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),a&&(c+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(a,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(a,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),c}(n);return""!==o||""!==a?(0,P.createElement)(P.Fragment,null,t,(0,P.createElement)("style",{type:"text/css"},o," ",a)):(0,P.createElement)(P.Fragment,null,t)},Ut,Ut,Ut,Lt,Lt,function(e){var t,n,o,a,r,l=e.el,c=(t=e.attributes,n=t.clientId,o=t.buttonType,a=t.buttonColorCustom,r="",void 0!==a&&pe(a)&&("0"!==o&&null!==o||(r="\n\t\t\t.vk_button-".concat(n," .has-background {\n\t\t\t\tbackground-color: ").concat(a,";\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"1"===o&&(r="\n\t\t\t.vk_button-".concat(n," .has-text-color {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: ").concat(a,";\n\t\t\t}\n\t\t\t.vk_button-").concat(n," .has-text-color:hover {\n\t\t\t\tbackground-color: ").concat(a,";\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"2"===o&&(r="\n\t\t\t.vk_button-".concat(n," .vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(a,";\n\t\t\t}\n\t\t\t"))),r);return""!==c?(0,P.createElement)(P.Fragment,null,l,(0,P.createElement)("style",{type:"text/css"},c)):(0,P.createElement)(P.Fragment,null,l)},function(e){return e.el}],Jt={from:[{type:"block",isMultiBlock:!1,blocks:["core/paragraph"],transform:function(e){var t=e.content,n=document.createElement("div");n.innerHTML=t;var o=n.innerText||"",a=n.querySelector("a"),r=null==a?void 0:a.getAttribute("href"),l=!(null==a||!a.getAttribute("target"));return(0,g.createBlock)(yt.name,{content:o,buttonUrl:r,buttonTarget:l})},isMatch:function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}}]},Zt=Jt,Gt=window.wp.hooks,Yt=window.wp.compose,Xt=yt.name,$t={icon:(0,P.createElement)((function(e){return G.createElement("svg",bt({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),rt||(rt=G.createElement("path",{d:"M5 8h14c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-6.94l-1.43 1.5H19a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4.78h.27l.24-.69c.17-.47.54-.83.99-1V8.5c0-.28.22-.5.5-.5z",fill:"#000"})),lt||(lt=G.createElement("path",{d:"M8.5 12.5a1.6 1.6 0 0 0-.5-.68v-.32h8v1H8.5zm2.39 2.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),ct||(ct=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{content:H,subCaption:F,buttonUrl:V,buttonTarget:!1,buttonSize:"md",buttonType:"0",buttonColor:"primary",buttonTextColorCustom:"undefined",buttonColorCustom:"undefined",buttonAlign:"left",buttonWidthMobile:0,buttonWidthTablet:0,outerGap:null,buttonWidth:0,fontAwesomeIconBefore:L,fontAwesomeIconAfter:L,iconSizeBefore:null,iconSizeAfter:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.content,r=t.subCaption,l=t.buttonUrl,c=t.buttonTarget,i=t.buttonSize,s=t.buttonType,u=t.buttonColor,m=t.buttonTextColorCustom,p=t.buttonColorCustom,v=t.buttonAlign,f=t.buttonWidthMobile,b=t.buttonWidthTablet,d=t.buttonWidth,k=t.outerGap,_=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.iconSizeBefore,y=t.iconSizeAfter,E=t.blockId,x=t.old_1_31_0,C=vkFontAwesome.iconFamily;(0,P.useEffect)((function(){void 0!==t.clientId&&n({clientId:void 0}),void 0!==E&&!1!==function(e){return!!(0,ze.select)("core/block-editor").getBlockParentsByBlockName(e,["core/block"]).length}(o)||n({blockId:o}),null!==l&&"null"!==l&&"undefined"!==l&&""!==l||n({buttonUrl:void 0}),void 0===p&&n({buttonTextColorCustom:void 0}),null!==p&&"null"!==p&&"undefined"!==p&&""!==p||n({buttonColorCustom:void 0}),null!==_&&"null"!==_&&"undefined"!==_&&""!==_||n({fontAwesomeIconBefore:void 0}),null!==h&&"null"!==h&&"undefined"!==h&&""!==h||n({fontAwesomeIconAfter:void 0}),null!==r&&"null"!==r&&"undefined"!==r&&""!==r||n({subCaption:void 0}),void 0===x&&(void 0===f&&n({buttonWidthMobile:d}),void 0===b&&n({buttonWidthTablet:d}),n({old_1_31_0:!0}))}),[o]);var N=(0,ze.dispatch)("core/block-editor").updateBlockAttributes;(0,P.useEffect)((function(){"custom"!==u?(N(o,{buttonTextColorCustom:void 0}),N(o,{buttonColorCustom:void 0})):void 0===p&&"custom"===u&&(N(o,{buttonColor:"primary"}),N(o,{buttonTextColorCustom:void 0}))}),[u]),(0,P.useEffect)((function(){void 0!==p&&N(o,{buttonColor:"custom"})}),[p]);var T,B=!!(0,ze.select)("core/block-editor").getBlockParentsByBlockName(o,["vk-blocks/button-outer"]).length;T=void 0!==p&&pe(p)||void 0!==m&&pe(m)||k?"vk_button vk_button-color-custom vk_button-".concat(E):"vk_button vk_button-color-custom",B?(f&&(T+=" vk_button-width-mobile-".concat(f)),b&&(T+=" vk_button-width-tablet-".concat(b)),d&&(T+=" vk_button-width-".concat(d))):(T+=" vk_button-align-".concat(v),n({buttonWidth:0}));var w=[{value:"px",label:"px",default:16},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}],S=(0,Q.useBlockProps)({className:T});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,null,(0,P.createElement)(ne.ToolbarGroup,null,(0,P.createElement)(ne.Dropdown,{renderToggle:function(e){var t=e.isOpen,o=e.onToggle;return(0,P.createElement)(ne.ToolbarButton,{"aria-expanded":t,icon:""!==l&&t?_t:ht,isActive:!(""===l||!t),label:""!==l&&t?(0,M.__)("Unlink"):(0,M.__)("Input Link URL","vk-blocks"),onClick:function(){t&&""!==l&&n({buttonUrl:""}),o()}})},renderContent:function(e){return(0,P.createElement)("div",{className:"block-editor-url-input__button block-editor-link-control"},(0,P.createElement)("form",{className:"block-editor-link-control__search-input-wrapper",onSubmit:function(){e.onClose()}},(0,P.createElement)("div",{className:"block-editor-link-control__search-input"},(0,P.createElement)(Q.URLInput,{value:l,onChange:function(e){n({buttonUrl:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:c,onChange:function(e){return n({buttonTarget:e})}}),(0,P.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,P.createElement)(ne.Button,{icon:gt,label:(0,M.__)("Submit"),type:"submit"})))))}}))),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Button setting","vk-blocks")},(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Sub Caption","vk-blocks"),value:r,className:"mt-0 mb-3",onChange:function(e){return n({subCaption:e})},placeholder:"Sub Caption"}),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Size:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"lg"===i,isSecondary:"lg"!==i,onClick:function(){return n({buttonSize:"lg"})}},(0,M.__)("Large","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"md"===i,isSecondary:"md"!==i,onClick:function(){return n({buttonSize:"md"})}},(0,M.__)("Normal","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"sm"===i,isSecondary:"sm"!==i,onClick:function(){return n({buttonSize:"sm"})}},(0,M.__)("Small","vk-blocks"))),!B&&(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Position:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"left"===v,isSecondary:"left"!==v,onClick:function(){return n({buttonAlign:"left"})}},(0,M.__)("Left","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"center"===v,isSecondary:"center"!==v,onClick:function(){return n({buttonAlign:"center"})}},(0,M.__)("Center","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"right"===v,isSecondary:"right"!==v,onClick:function(){return n({buttonAlign:"right"})}},(0,M.__)("Right","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"wide"===v,isSecondary:"wide"!==v,onClick:function(){return n({buttonAlign:"wide"})}},(0,M.__)("Wide","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"block"===v,isSecondary:"block"!==v,onClick:function(){return n({buttonAlign:"block"})}},(0,M.__)("Block","vk-blocks")))),B&&(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Width:","vk-blocks")),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Mobile","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===f,isSecondary:25!==f,onClick:function(){return n({buttonWidthMobile:25===f?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===f,isSecondary:50!==f,onClick:function(){return n({buttonWidthMobile:50===f?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===f,isSecondary:75!==f,onClick:function(){return n({buttonWidthMobile:75===f?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===f,isSecondary:100!==f,onClick:function(){return n({buttonWidthMobile:100===f?0:100})}},(0,M.__)("100%","vk-blocks"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Tablet","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===b,isSecondary:25!==b,onClick:function(){return n({buttonWidthTablet:25===b?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===b,isSecondary:50!==b,onClick:function(){return n({buttonWidthTablet:50===b?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===b,isSecondary:75!==b,onClick:function(){return n({buttonWidthTablet:75===b?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===b,isSecondary:100!==b,onClick:function(){return n({buttonWidthTablet:100===b?0:100})}},(0,M.__)("100%","vk-blocks"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("PC","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===d,isSecondary:25!==d,onClick:function(){return n({buttonWidth:25===d?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===d,isSecondary:50!==d,onClick:function(){return n({buttonWidth:50===d?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===d,isSecondary:75!==d,onClick:function(){return n({buttonWidth:75===d?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===d,isSecondary:100!==d,onClick:function(){return n({buttonWidth:100===d?0:100})}},(0,M.__)("100%","vk-blocks")))),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Style:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-2"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===s,isSecondary:"0"!==s,onClick:function(){return n({buttonType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===s,isSecondary:"1"!==s,onClick:function(){n({buttonType:"1"}),n({buttonTextColorCustom:void 0})}},(0,M.__)("No background","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===s,isSecondary:"2"!==s,onClick:function(){n({buttonType:"2"}),n({buttonTextColorCustom:void 0})}},(0,M.__)("Text only","vk-blocks"))),(0,P.createElement)("p",{className:"mb-3"},(0,M.__)('If you select "No background", that you need to select a Custom Color.',"vk-blocks")),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Color","vk-blocks")),(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Default Color (Bootstrap)","vk-blocks"),value:u,options:[{label:(0,M.__)("Primary","vk-blocks"),value:"primary"},{label:(0,M.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"},{label:(0,M.__)("Light","vk-blocks"),value:"light"},{label:(0,M.__)("Dark","vk-blocks"),value:"dark"},{label:(0,M.__)("Custom Color","vk-blocks"),value:"custom"}],onChange:function(e){return n({buttonColor:e})}}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Custom Color","vk-blocks"),id:"vk_block_button_custom_color"},(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_custom_background_color",label:"0"===s||null===s?(0,M.__)("Background Color","vk-blocks"):(0,M.__)("Button Color","vk-blocks"),help:(0,M.__)("This color palette overrides the default color. If you want to use the default color, click the clear button.","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"buttonColorCustom"},e))),("0"===s||null===s)&&void 0!==p&&(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_custom_text_color",label:(0,M.__)("Text Color","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"buttonTextColorCustom"},e)))),(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Icon","vk-blocks")+" ( "+C+" )"),(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_fa_before_text",label:(0,M.__)("Before text","vk-blocks")},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconBefore"},e)),(0,P.createElement)(ne.__experimentalUnitControl,{label:(0,M.__)("Size","vk-blocks"),value:g,units:w,onChange:function(e){n({iconSizeBefore:parseFloat(e)?e:null})}})),(0,P.createElement)("hr",null),(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_fa_after_text",label:(0,M.__)("After text","vk-blocks")},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconAfter"},e)),(0,P.createElement)(ne.__experimentalUnitControl,{label:(0,M.__)("Size","vk-blocks"),value:y,units:w,onChange:function(e){n({iconSizeAfter:parseFloat(e)?e:null})}}))))),(0,P.createElement)("div",S,(0,P.createElement)(dt,{lbTextColorCustom:m,lbColorCustom:p,lbColor:u,lbType:s,lbAlign:v,lbSize:i,lbFontAwesomeIconBefore:_,lbFontAwesomeIconAfter:h,lbIconSizeBefore:g,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,P.createElement)(Q.RichText,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return n({content:e})},value:a,placeholder:(0,M.__)("Input text","vk-blocks"),allowedFormats:["core/bold","core/italic","core/strikethrough","core/superscript","core/subscript","vk-blocks/responsive-br","vk-blocks/nowrap","vk-blocks/inline-font-size"],isSelected:!0})})))},save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.outerGap,d=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,_=t.iconSizeBefore,h=t.iconSizeAfter,g=t.blockId,y="";y=void 0!==u&&pe(u)||void 0!==s&&pe(s)||b?"vk_button vk_button-color-custom vk_button-".concat(g):"vk_button vk_button-color-custom",p||v||f?(p&&(y+=" vk_button-width-mobile-".concat(p)),v&&(y+=" vk_button-width-tablet-".concat(v)),f&&(y+=" vk_button-width-".concat(f))):y+=" vk_button-align-".concat(m);var E=Q.useBlockProps.save({className:y});return(0,P.createElement)("div",E,(0,P.createElement)(dt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:d,lbFontAwesomeIconAfter:k,lbIconSizeBefore:_,lbIconSizeAfter:h,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))},deprecated:Ht,transforms:Zt},Kt=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,o=e.buttonType,a=e.blockId,r="";return void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&pe(t)&&("0"!==o&&null!==o||(r+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),r},Qt=function(e,t){var n=e.buttonWidthMobile,o=e.buttonWidthTablet,a=e.buttonWidth,r=e.outerGap,l=e.blockId,c="",i=t?".vk_button":".vk_buttons .vk_buttons_col .block-editor-block-list__layout .vk_button";return r&&(n&&(c+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(c+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(o,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),a&&(c+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(a,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(a,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),c},en=(0,Yt.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes;if("vk-blocks/button"===t.name){var o=Kt(n),a=Qt(n,!1);return""!==o||""!==a?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,t),(0,P.createElement)("style",{type:"text/css"},o," ",a)):(0,P.createElement)(e,t)}return(0,P.createElement)(e,t)}}),"VKButtonInlineEditorCss");function tn(){return tn=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},tn.apply(this,arguments)}function nn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/button",en),(0,Gt.addFilter)("blocks.getSaveElement","vk-blocks/button",(function(e,t,n){if("vk-blocks/button"===t.name){var o=Ht.findIndex((function(e){return e.save===t.save}));if(-1===o){var a=Kt(n),r=Qt(n,!0);return""!==a||""!==r?(0,P.createElement)(P.Fragment,null,e,(0,P.createElement)("style",{type:"text/css"},a," ",r)):e}var l=Wt[o];return(0,P.createElement)(l,{el:e,attributes:n})}return e}),11);var an,rn,ln,cn,sn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},un=[{attributes:sn,save:function(e){var t=e.attributes,n=e.className,o=t.heading,a=t.content;return(0,P.createElement)("dl",{className:"".concat(n," vk_faq")},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:o}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_faq_content",value:a}))}},{attributes:sn,save:function(e){var t=e.attributes,n=t.heading,o=t.content;return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_faq_content",value:o}))}},{attributes:on({},sn),save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))}},{attributes:on({},sn),save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",{className:"vk_faq [accordion_trigger_switch]"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))}}],mn=un,pn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq","title":"Classic FAQ","category":"vk-blocks-cat","description":"Displays a combination of questions and answers.","textdomain":"vk-blocks","attributes":{"heading":{"type":"string","source":"html","selector":"dt"}},"supports":{"anchor":true}}'),vn=pn.name,fn={icon:(0,P.createElement)((function(e){return G.createElement("svg",tn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Dt||(Dt=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Vt||(Vt=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),qt||(qt=G.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0zM3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74zM13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62zM13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02zm-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10h-2.92zm1.45 3.35h.03l.87 3.08h-1.83l.93-3.08z",fill:"#000"})))}),null),styles:[{name:"vk_faq-normal",label:(0,M.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,M.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,M.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,M.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,M.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,M.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,M.__)("Border Rounded","vk-blocks")}],example:{attributes:{heading:F},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"}),(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))},edit:function(e){var t,n=e.attributes,o=e.setAttributes;t=vk_blocks_check.is_pro?(0,M.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,M.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks");var a=n.heading,r=[["core/paragraph",{content:n.content}]],l=(0,Q.useBlockProps)({className:"vk_faq [accordion_trigger_switch]"});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Accordion Setting","vk-blocks")},(0,P.createElement)(ne.PanelRow,null,t))),(0,P.createElement)("dl",l,(0,P.createElement)(Q.RichText,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return o({heading:e})},value:a,placeholder:(0,M.__)("Please enter a question.","vk-blocks")}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks,{template:r}))))},deprecated:mn};function bn(){return bn=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},bn.apply(this,arguments)}var dn,kn,hn,gn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string"}},yn=[{attributes:gn,save:function(){return(0,P.createElement)("dl",Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"}),(0,P.createElement)(Q.InnerBlocks.Content,null))}},{attributes:gn,save:function(){return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],En=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2","category":"vk-blocks-cat","title":"New FAQ","description":"It displays a combination of questions and answers. You can freely add blocks to the question area as well.","textdomain":"vk-blocks","supports":{"anchor":true,"className":true}}'),xn=En.name,Cn={icon:(0,P.createElement)((function(e){return G.createElement("svg",bn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),an||(an=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),rn||(rn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),ln||(ln=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 0h-8v8h8V0zm-4.75 1v2.25H17v1.5h2.25V7h1.5V4.75H23v-1.5h-2.25V1h-1.5z",fill:"#000"})),cn||(cn=G.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0zM3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74zM13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62zM13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02zm-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10h-2.92zm1.45 3.35h.03l.87 3.08h-1.83l.93-3.08z",fill:"#000"})))}),null),styles:[{name:"vk_faq-normal",label:(0,M.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,M.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,M.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,M.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,M.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,M.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,M.__)("Border Rounded","vk-blocks")}],example:{innerBlocks:[{name:"vk-blocks/faq2-q",innerBlocks:[{name:"core/paragraph",attributes:{content:F}}]},{name:"vk-blocks/faq2-a",innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]}]},edit:function(){var e,t=(0,Q.useBlockProps)({className:"vk_faq"});return e=vk_blocks_check.is_pro?(0,M.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,M.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks"),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Accordion Setting","vk-blocks")},(0,P.createElement)(ne.PanelRow,null,e))),(0,P.createElement)("div",t,(0,P.createElement)("div",{className:"vk_faq-header"}),(0,P.createElement)("dl",{className:"vk_faq-body"},(0,P.createElement)(Q.InnerBlocks,{allowedBlocks:["vk-blocks/faq2-q","vk-blocks/faq2-a"],template:[["vk-blocks/faq2-q"],["vk-blocks/faq2-a"]],templateLock:"all"})),(0,P.createElement)("div",{className:"vk_faq-footer"})))},save:function(){var e=Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,P.createElement)("div",e,(0,P.createElement)("div",{className:"vk_faq-header"}),(0,P.createElement)("dl",{className:"vk_faq-body"},(0,P.createElement)(Q.InnerBlocks.Content,null)),(0,P.createElement)("div",{className:"vk_faq-footer"}))},deprecated:yn};function Nn(){return Nn=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},Nn.apply(this,arguments)}var Tn,Bn,wn,Sn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2-a","category":"vk-blocks-cat","title":"FAQ Answer","parent":["vk-blocks/faq2"],"description":"Answer area where you can add blocks freely.","textdomain":"vk-blocks","supports":{"anchor":true,"reusable":false}}'),In=[{attributes:{},save:function(){return(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],Rn=Sn.name,An={icon:(0,P.createElement)((function(e){return G.createElement("svg",Nn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),dn||(dn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),kn||(kn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),hn||(hn=G.createElement("path",{d:"M14.99 0 10 14h4.17l.63-2h4.3l.57 2H24L19.07 0h-4.08zm2.03 4.69h.04L18.27 9h-2.56l1.3-4.31z",fill:"#000"})))}),null),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},edit:function(){var e=(0,Q.useBlockProps)({className:"vk_faq_content"});return(0,P.createElement)("dd",e,(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}))},save:function(){return(0,P.createElement)("dd",Q.useBlockProps.save({className:"vk_faq_content"}),(0,P.createElement)(Q.InnerBlocks.Content,null))},deprecated:In};function On(){return On=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},On.apply(this,arguments)}var zn,Pn,Mn,Fn,jn,Hn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2-q","title":"FAQ Question","category":"vk-blocks-cat","parent":["vk-blocks/faq2"],"description":"Question area where you can freely add blocks.","textdomain":"vk-blocks","supports":{"anchor":true,"className":true,"reusable":false}}'),Ln=[{attributes:{},save:function(){return(0,P.createElement)("dt",{className:"vk_faq_title"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],Un=Hn.name,Dn={icon:(0,P.createElement)((function(e){return G.createElement("svg",On({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Tn||(Tn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Bn||(Bn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),wn||(wn=G.createElement("path",{d:"M16.98 0c-2.06 0-3.74.7-5.03 2.08A7.44 7.44 0 0 0 10 7.4a7.5 7.5 0 0 0 1.97 5.36 6.62 6.62 0 0 0 5.01 2.03c1.37 0 2.55-.3 3.26-.75L22.09 16 24 14.06l-1.64-1.72c1-1.26 1.6-2.97 1.6-4.94 0-2.18-.65-3.98-1.95-5.34A6.67 6.67 0 0 0 16.98 0zm-2.74 7.4c0-2.3 1-3.88 2.72-3.88 1.54 0 2.76 1.27 2.76 3.88 0 .73-.1 1.32-.27 1.88l-1.16-1.21-1.9 1.9 1.15 1.22c-.2.06-.37.08-.56.08-1.6 0-2.74-1.34-2.74-3.87z",fill:"#000"})))}),null),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:F}}]},edit:function(){var e=(0,Q.useBlockProps)({className:"vk_faq_title"});return(0,P.createElement)("dt",e,(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}))},save:function(){return(0,P.createElement)("dt",Q.useBlockProps.save({className:"vk_faq_title"}),(0,P.createElement)(Q.InnerBlocks.Content,null))},deprecated:Ln},Vn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},qn=[{attributes:Vn,save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.arrowFlag;return(0,P.createElement)("div",Q.useBlockProps.save({className:"".concat(r," vk_flow")}),(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a&&(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:""}))))}},{attributes:Vn,save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.arrowFlag;return(0,P.createElement)("div",{className:"".concat(r," vk_flow")},(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a?(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:""})):""))}}],Wn=qn;function Jn(){return Jn=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},Jn.apply(this,arguments)}var Zn,Gn,Yn,Xn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/flow","category":"vk-blocks-cat","title":"Flow","attributes":{"heading":{"type":"string","source":"html","selector":"dt"},"content":{"type":"string","source":"html","selector":"dd"},"arrowFlag":{"type":"string","default":"vk_flow-arrow-on"},"insertImage":{"type":"string","default":null},"insertImageAlt":{"type":"string","default":null}},"description":"Displays a sequential description in time series.","textdomain":"vk-blocks","supports":{"className":true}}'),$n=Xn.name,Kn={icon:(0,P.createElement)((function(e){return G.createElement("svg",Jn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),zn||(zn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Pn||(Pn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),Mn||(Mn=G.createElement("path",{d:"M12.5 14 9 10h7l-3.5 4z",fill:"#000"})),Fn||(Fn=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 1H1v6h22V1zM0 0v8h24V0H0z",fill:"#000"})),jn||(jn=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4.5H4v-1h16v1z",fill:"#000"})))}),null),example:{attributes:{heading:F,content:j,arrowFlag:"vk_flow-arrow-on",insertImage:U}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.heading,r=t.content,l=t.insertImage,c=t.arrowFlag,i=t.insertImageAlt,s=(0,Q.useBlockProps)({className:"".concat(c," vk_flow")});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Display of arrow","vk-blocks")},(0,P.createElement)(ne.RadioControl,{selected:c,options:[{label:(0,M.__)("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:(0,M.__)("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}}))),(0,P.createElement)("div",s,(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText,{key:"".concat(o,"2"),tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:a,placeholder:(0,M.__)("Input title","vk-blocks")}),(0,P.createElement)(Q.RichText,{key:"".concat(o,"3"),tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:r,placeholder:(0,M.__)("Input content","vk-blocks")})),(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){n({insertImage:e.url}),n({insertImageAlt:e.alt})},type:"image",className:"vk_flow_frame_image",value:l,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:l?"image-button":"button button-large"},l?(0,P.createElement)("img",{className:"icon-image",src:l,alt:i}):(0,M.__)("Select image","vk-blocks"))}})))))},save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.insertImageAlt,l=t.arrowFlag;return(0,P.createElement)("div",Q.useBlockProps.save({className:"".concat(l," vk_flow")}),(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a&&(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:r}))))},deprecated:Wn};function Qn(){return Qn=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},Qn.apply(this,arguments)}var eo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var to=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.className,k=De()(d,"vk_heading vk_heading-style-".concat(p)),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}())}}]),a}(P.Component);var no=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var oo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var ao,ro=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component),lo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},co=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},lo(l,I,n,E),S)}if("save"===r){var R;R=0<(i.match(/span/g)||[]).length?et(i):(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i});var A,O=(0,P.createElement)(P.Fragment,null,et(N),R,et(T));return"on"===p&&(A=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},lo(l,O,n,E),A)}},io=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},so=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},io(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},io(l,A,n,E),R)}},uo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},mo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=null!=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},uo(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},uo(l,A,n,E),R)}},po=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},vo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},po(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},po(l,A,n,E),R)}},fo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},bo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=null!=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},fo(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},fo(l,A,n,E),R)}};function ko(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 _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ho={level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number"},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2},titleMarginBottom:{type:"number",default:1},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.2}},go=_o(_o({},ho),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),yo=_o(_o({},go),{},{title:{type:"string",source:"html",selector:"span",default:""},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""},fontAwesomeIconColor:{type:"string",default:"#000000"}}),Eo=_o(_o({},yo),{},{subTextFlag:{type:"string",default:"off"}}),xo=_o(_o({},Eo),{},{outerMarginBottom:{type:"number",default:0},titleMarginBottom:{type:"number",default:1},titleColor:{type:"string",default:"#000000"},subTextColor:{type:"string",default:"#000000"}}),Co=_o(_o({},xo),{},{outerMarginBottom:{type:"number",default:null},titleMarginBottom:{type:"number",default:null},titleColor:{type:"string",default:null},subTextColor:{type:"string",default:null},fontAwesomeIconColor:{type:"string",default:"#000000"}}),No=_o(_o({},Co),{},(h(ao={titleSize:{type:"number",default:2},subTextSize:{type:"number",default:1.2},subTextColor:{type:"string"}},"subTextSize",{type:"number"}),h(ao,"fontAwesomeIconColor",{type:"string"}),ao)),To=_o(_o({},No),{},{titleColor:{type:"string"},titleSize:{type:"number"}}),Bo=[{attributes:To,save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,g="vk_heading vk_heading-style-".concat(v),y={marginBottom:null!=b?b+"rem":void 0},E="";void 0!==c&&(E+="has-text-color",pe(c)||(E+=" has-".concat(c,"-color")));var x=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(v),!!v),h(t,"".concat(E),!!E),t)),C={color:null!=c&&pe(c)?c:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=f?f+"rem":void 0,textAlign:null!=r?r:void 0},N="";void 0!==m&&(N+="has-text-color",pe(m)||(N+=" has-".concat(m,"-color")));var T=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(v),!!v),h(n,"".concat(N),!!N),n)),B={color:null!=m&&pe(m)?m:void 0,fontSize:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},w="";void 0!==_&&(w+="has-text-color",pe(_)||(w+=" has-".concat(_,"-color")));var S=_&&pe(_)?'style="color:'.concat(_,';"'):"",I=d,R=k;if(I&&w){var A=I.split('<i class="');A[0]=A[0]+'<i class="'.concat(w," "),I=A.join("")}if(R&&w){var O=R.split('<i class="');O[0]=O[0]+'<i class="'.concat(w," "),R=O.join("")}if(I&&S){var z=I.split("<i");z[0]=z[0]+"<i ".concat(S," "),I=z.join("")}if(R&&S){var M=R.split("<i");M[0]=M[0]+"<i ".concat(S," "),R=M.join("")}var F,j=(0,P.createElement)(P.Fragment,null,et(I),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(R));"on"===u&&(F=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:B,className:T}));var H=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",H,(0,P.createElement)("div",{className:g,style:y},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,j,C,x),F))}},{attributes:To,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="",N=d?'style="color:'.concat(d,';"'):"";if(f){var T=f.split("<i");T[0]=T[0]+"<i ".concat(N," "),x=T.join("")}if(b){var B=b.split("<i");B[0]=B[0]+"<i ".concat(N," "),C=B.join("")}var w,S=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(w=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var I=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",I,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,S,h,g),w))}},{attributes:No,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="",N=d?'style="color:'.concat(d,';"'):"";if(f){var T=f.split("<i");T[0]=T[0]+"<i ".concat(N," "),x=T.join("")}if(b){var B=b.split("<i");B[0]=B[0]+"<i ".concat(N," "),C=B.join("")}var w,S=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(w=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var I=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",I,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,S,h,g),w))}},{attributes:Co,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="";if(f){d=d||"#000000";var N=f.split("<i");N[0]=N[0]+'<i style="color:'.concat(d,';" '),x=N.join("")}if(b){d=d||"#000000";var T=b.split("<i");T[0]=T[0]+'<i style="color:'.concat(d,';" '),C=T.join("")}var B,w=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(B=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var S=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",S,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,w,h,g),B))}},{attributes:xo,save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(v);b&&(t={marginBottom:b+"rem"}),n=null!=f?{color:c,fontSize:i+"rem",marginBottom:f+"rem",textAlign:r}:{color:c,fontSize:i+"rem",textAlign:r};var g="vk_heading_title vk_heading_title-style-".concat(v),y={color:m,fontSize:p+"rem",textAlign:r},E="vk_heading_subtext vk_heading_subtext-style-".concat(v),x="",C="";if(d){_=_||"#000000";var N=d.split("<i");N[0]=N[0]+'<i style="color:'.concat(_,';" '),x=N.join("")}if(k){_=_||"#000000";var T=k.split("<i");T[0]=T[0]+'<i style="color:'.concat(_,';" '),C=T.join("")}var B,w=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(C));"on"===u&&(B=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:y,className:E}));var S=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",S,(0,P.createElement)("div",{className:h,style:t},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,w,n,g),B))}},{attributes:Eo,save:function(e){return(0,P.createElement)("div",null,(0,P.createElement)(bo,Ne({},e,{for_:"save"})))}},{attributes:Eo,save:function(e){return(0,P.createElement)("div",null,(0,P.createElement)(vo,Ne({},e,{for_:"save"})))}},{attributes:yo,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(mo,Ne({},e,{for_:"save"})))}},{attributes:yo,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(so,{attributes:t,for_:"save"}))}},{attributes:yo,save:function(e){return(0,P.createElement)("div",{id:e.attributes.anchor},(0,P.createElement)(co,Ne({},e,{for_:"save"})))}},{attributes:go,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(ro,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n,id:"vk-htags-a181b726-7749-4bd8-9887-0306c0bc7bd5"},(0,P.createElement)(oo,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n,id:"vk-htags--1"},(0,P.createElement)(no,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(to,{attributes:t,className:n,for_:"save"})}},{attributes:go,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f="h"+n;return(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:v+"rem"}},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o,marginBottom:p+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}())}},{attributes:go,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f="h"+n;return(0,P.createElement)(P.Fragment,null,null===v?(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m)},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()):(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:v+"rem"}},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o,marginBottom:p+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()))}},{attributes:ho,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n},(0,P.createElement)(eo,{attributes:t,for_:"save"}))}}],wo=Bo;function So(e){var t=e.level,n=e.isPressed,o=void 0!==n&&n,a={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return a.hasOwnProperty(t)?(0,P.createElement)(ne.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:o},(0,P.createElement)(ne.Path,{d:a[t]})):null}var Io=[1,2,3,4,5,6],Ro={className:"block-library-heading-level-dropdown vk-blocks-heading-level-dropdown"};function Ao(e){var t=e.selectedLevel,n=e.onChange;return(0,P.createElement)(ne.ToolbarDropdownMenu,{popoverProps:Ro,icon:(0,P.createElement)(So,{level:t}),label:(0,M.__)("Change heading level"),controls:Io.map((function(e){var o=e===t;return{icon:(0,P.createElement)(So,{level:e,isPressed:o}),label:(0,M.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
2 |
-
(0,M.__)("Heading %d"),e),isActive:o,onClick:function(){n(e)}}}))})}var Oo,zo,Po,Mo=JSON.parse('{"apiVersion":2,"name":"vk-blocks/heading","category":"vk-blocks-cat","title":"Heading","attributes":{"anchor":{"type":"string","source":"attribute","attribute":"id","selector":"*"},"level":{"type":"number","default":2},"align":{"type":"string"},"titleStyle":{"type":"string","default":"default"},"outerMarginBottom":{"type":"number","default":null},"title":{"type":"string","source":"html","selector":"span","default":""},"titleColor":{"type":"string"},"titleSize":{"type":"number"},"titleMarginBottom":{"type":"number","default":null},"subText":{"source":"html","selector":"p","default":""},"subTextFlag":{"type":"string","default":"off"},"subTextColor":{"type":"string"},"subTextSize":{"type":"number"},"fontAwesomeIconBefore":{"type":"string","default":""},"fontAwesomeIconAfter":{"type":"string","default":""},"fontAwesomeIconColor":{"type":"string"}},"description":"This is a heading that allows you to set text size, subtext, icon, and margin.","textdomain":"vk-blocks","supports":{"className":true,"customClassName":true,"anchor":true}}'),Fo={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t={title:e.content};return(0,g.createBlock)("vk-blocks/heading",t)}}]},jo=Mo.name,Ho={icon:(0,P.createElement)((function(e){return G.createElement("svg",Qn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Zn||(Zn=G.createElement("path",{d:"M20 10V4h3v15h-3v-6h-6v6h-3v-1.89l1.06-1.1c.95-1 .28-2.64-1.06-2.73V4h3v6h6z",fill:"#000"})),Gn||(Gn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Yn||(Yn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),category:"vk-blocks-cat",example:{attributes:{anchor:"",level:2,align:"center",titleStyle:"default",outerMarginBottom:0,title:F,titleColor:D,titleSize:2,titleMarginBottom:1,subText:F,subTextFlag:"on",subTextColor:D,subTextSize:1.2,fontAwesomeIconBefore:L,fontAwesomeIconAfter:"",fontAwesomeIconColor:D}},edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.level,l=o.align,c=o.title,i=o.titleColor,s=o.titleSize,u=o.subText,m=o.subTextFlag,p=o.subTextColor,v=o.subTextSize,f=o.titleStyle,b=o.titleMarginBottom,d=o.outerMarginBottom,k=o.fontAwesomeIconBefore,_=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y=vkFontAwesome.iconFamily,E="vk_heading vk_heading-style-".concat(f),x={marginBottom:null!=d?d+"rem":void 0},C="";void 0!==i&&(C+="has-text-color",pe(i)||(C+=" has-".concat(i,"-color")));var N=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(f),!!f),h(t,"".concat(C),!!C),t)),T={color:null!=i&&pe(i)?i:void 0,fontSize:null!=s?s+"rem":void 0,marginBottom:null!=b?b+"rem":void 0,textAlign:null!=l?l:void 0},B="";void 0!==p&&(B+="has-text-color",pe(p)||(B+=" has-".concat(p,"-color")));var w=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(f),!!f),h(n,"".concat(B),!!B),n)),S={color:null!=p&&pe(p)?p:void 0,fontSize:null!=v?v+"rem":void 0,textAlign:null!=l?l:void 0},I="";void 0!==g&&(I+="has-text-color",pe(g)||(I+=" has-".concat(g,"-color")));var R=g&&pe(g)?'style="color:'.concat(g,';"'):"",A=k,O=_;if(A&&I){var z=A.split('<i class="');z[0]=z[0]+'<i class="'.concat(I," "),A=z.join("")}if(O&&I){var F=O.split('<i class="');F[0]=F[0]+'<i class="'.concat(I," "),O=F.join("")}if(A&&R){var j=A.split("<i");j[0]=j[0]+"<i ".concat(R," "),A=j.join("")}if(O&&R){var H=O.split("<i");H[0]=H[0]+"<i ".concat(R," "),O=H.join("")}var L,U=(0,P.createElement)(P.Fragment,null,et(A),(0,P.createElement)(Q.RichText,{tagName:"span",value:c,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(O));"on"===m&&(L=(0,P.createElement)(Q.RichText,{tagName:"p",value:u,onChange:function(e){return a({subText:e})},style:S,className:w,placeholder:(0,M.__)("Input sub text…","vk-blocks")}));var D=(0,Q.useBlockProps)({className:""});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(ne.ToolbarGroup,null,(0,P.createElement)(Ao,{selectedLevel:r,onChange:function(e){a({level:e})}})),(0,P.createElement)(Q.AlignmentToolbar,{value:l,onChange:function(e){a({align:e})}})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Style Settings","vk-blocks")},(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Heading style","vk-blocks"),value:f,onChange:function(e){return a({titleStyle:e})},options:[{label:(0,M.__)("Default","vk-blocks"),value:"default"},{label:(0,M.__)("Plain","vk-blocks"),value:"plain"}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Margin Setting","vk-blocks")},(0,P.createElement)("p",null,(0,M.__)("Margin between Heading and sub text (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:b,onChange:function(e){a({titleMarginBottom:e})},min:-1,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)("p",null,(0,M.__)("Margin bottom size of after this block (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:d,onChange:function(e){a({outerMarginBottom:e})},min:-1,max:8,step:.1,allowReset:!0,resetFallbackValue:null})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Heading Settings","vk-blocks")},(0,P.createElement)(ne.RangeControl,{label:(0,M.__)("Text size (rem)","vk-blocks"),value:s,onChange:function(e){a({titleSize:e})},min:.5,max:4,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Text Color","vk-blocks"),id:"vk_heading_textColor"},(0,P.createElement)(Pe,Ne({schema:"titleColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon","vk-blocks")+" ( "+y+" )"},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Before text","vk-blocks"),id:"vk_heading_beforeText"},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconBefore"},e))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("After text","vk-blocks"),id:"vk_heading_afterText"},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconAfter"},e))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon Color","vk-blocks"),id:"vk_heading_iconColor"},(0,P.createElement)(Pe,Ne({schema:"fontAwesomeIconColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Sub Text Settings","vk-blocks")},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Position","vk-blocks"),selected:m,options:[{label:(0,M.__)("Display","vk-blocks"),value:"on"},{label:(0,M.__)("Hide","vk-blocks"),value:"off"}],onChange:function(e){return a({subTextFlag:e})}}),(0,P.createElement)("p",null,(0,M.__)("Text size (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:v,onChange:function(e){a({subTextSize:e})},min:.5,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)(Pe,Ne({schema:"subTextColor"},e)))),(0,P.createElement)("div",D,(0,P.createElement)("div",{className:E,style:x},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(r,U,T,N),L)))},save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,g="vk_heading vk_heading-style-".concat(v),y={marginBottom:null!=b?b+"rem":void 0},E="";void 0!==c&&(E+="has-text-color",pe(c)||(E+=" has-".concat(c,"-color")));var x=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(v),!!v),h(t,"".concat(E),!!E),t)),C={color:null!=c&&pe(c)?c:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=f?f+"rem":void 0,textAlign:null!=r?r:void 0},N="";void 0!==m&&(N+="has-text-color",pe(m)||(N+=" has-".concat(m,"-color")));var T=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(v),!!v),h(n,"".concat(N),!!N),n)),B={color:null!=m&&pe(m)?m:void 0,fontSize:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},w="";void 0!==_&&(w+="has-text-color",pe(_)||(w+=" has-".concat(_,"-color")));var S=_&&pe(_)?'style="color:'.concat(_,';"'):"",I=d,R=k;if(I&&w){var A=I.split('<i class="');A[0]=A[0]+'<i class="'.concat(w," "),I=A.join("")}if(R&&w){var O=R.split('<i class="');O[0]=O[0]+'<i class="'.concat(w," "),R=O.join("")}if(I&&S){var z=I.split("<i");z[0]=z[0]+"<i ".concat(S," "),I=z.join("")}if(R&&S){var M=R.split("<i");M[0]=M[0]+"<i ".concat(S," "),R=M.join("")}var F,j=(0,P.createElement)(P.Fragment,null,et(I),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(R));"on"===u&&(F=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:B,className:T}));var H=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",H,(0,P.createElement)("div",{className:g,style:y},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,j,C,x),F))},transforms:Fo,deprecated:wo};function Lo(){return Lo=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},Lo.apply(this,arguments)}var Uo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_frame";"center"===l?m+=" text-center":"right"===l&&(m+=" text-right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&null!=i&&(p+=" has-background",pe(i)?v={backgroundColor:"".concat(i)}:p+=" has-".concat(i,"-background-color")):("undefined"!==i&&null!=i&&(p+=" has-text-color",pe(i)?v={color:"".concat(i)}:p+=" has-".concat(i,"-color")),m+="1"===c?" is-style-outline":" is-style-noline"),36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;36===t&&"px"===n||(b=" font-size:".concat(t).concat(n));var d=e.split(" ");d[0]=d[0]+' style="'.concat(b,';"'),d[1]=" "+d[1]+" vk_icon_font ",f=d.join("")}var k,_=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return k=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},_):_,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},k))}}]),a}(P.Component),Do=JSON.parse('{"apiVersion":2,"name":"vk-blocks/icon","category":"vk-blocks-cat","title":"Icon","attributes":{"faIcon":{"type":"string","default":"<i class=\\"fas fa-user\\"></i>"},"iconSize":{"type":"number","default":36},"iconSizeUnit":{"type":"string","default":"px"},"iconMargin":{"type":"number","default":22},"iconMarginUnit":{"type":"string","default":"px"},"iconRadius":{"type":"number","default":50},"iconAlign":{"type":"string","default":"left"},"iconType":{"type":"string","default":"0"},"iconColor":{"type":"string"},"iconUrl":{"type":"string"},"iconTarget":{"type":"Boolean","default":false}},"description":"Display icons with Font Awesome.","textdomain":"vk-blocks","supports":{"className":true,"anchor":true}}');var Vo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_outer";"center"===l?m+=" vk_icon_align_center":"right"===l&&(m+=" vk_icon_align_right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&(v={backgroundColor:"".concat(i),borderColor:"".concat(i)}):"1"===c?(p+=" vk_icon_border_frame","undefined"!==i&&(v={borderColor:"".concat(i)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;"0"!==c&&"undefined"!==i&&(b="color:".concat(i));var d=null;36===t&&"px"===n||(d=" font-size:".concat(t).concat(n));var k=e.split(" ");k[0]=k[0]+' style="'.concat(b,"; ").concat(d,';"'),k[1]=" "+k[1]+" vk_icon_font ",f=k.join("")}var _,h=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return _=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},h):h,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},_))}}]),a}(P.Component);var qo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_frame";"center"===l?m+=" vk_icon_align_center":"right"===l&&(m+=" vk_icon_align_right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&null!=i&&(v={backgroundColor:"".concat(i),borderColor:"".concat(i)}):"1"===c?(p+=" vk_icon_border_frame","undefined"!==i&&null!=i&&(v={borderColor:"".concat(i)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;"0"!==c&&"undefined"!==i&&null!=i&&(b="color:".concat(i));var d=null;36===t&&"px"===n||(d=" font-size:".concat(t).concat(n));var k=e.split(" ");k[0]=k[0]+' style="'.concat(b,"; ").concat(d,';"'),k[1]=" "+k[1]+" vk_icon_font ",f=k.join("")}var _,h=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return _=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},h):h,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},_))}}]),a}(P.Component);function Wo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zo,Go,Yo,Xo={faIcon:{type:"string",default:'<i class="fas fa-user"></i>'},iconSize:{type:"number",default:36},iconSizeUnit:{type:"string",default:"px"},iconMargin:{type:"number",default:22},iconMarginUnit:{type:"string",default:"px"},iconRadius:{type:"number",default:50},iconAlign:{type:"string",default:"left"},iconType:{type:"string",default:"0"},iconColor:{type:"string",default:"undefined"},iconUrl:{type:"string",default:""},iconTarget:{type:"Boolean",default:!1}},$o=[{attributes:Jo(Jo({},Xo),{},{iconColor:{type:"string"},iconUrl:{type:"string"}}),save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(qo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))}},{attributes:Xo,save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(Vo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))}}],Ko=Do.name,Qo={icon:(0,P.createElement)((function(e){return G.createElement("svg",Lo({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Oo||(Oo=G.createElement("path",{d:"M10.9 14.8H7.6a.1.1 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1L6 19.8c0-.1-.2-.1-.2 0L5.4 21v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 18.3v-.1l3-3.2c0-.1 0-.2-.1-.2Z",fill:"#000"})),zo||(zo=G.createElement("path",{d:"M7 13H5a.1.1 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0L1.4 16c0-.1 0-.2.1-.2h.9a.1.1 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.31.31 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8A.1.1 0 0 0 7 13Z",fill:"#D8141C"})),Po||(Po=G.createElement("path",{d:"M15.5 0a8.5 8.5 0 0 0-7.92 11.59 1.64 1.64 0 0 1 1 1.69h2.27A1.61 1.61 0 0 1 12.06 16l-.18.19A8.5 8.5 0 1 0 15.5 0Zm1.7 13.6h-3.4V6.8h3.4v6.8Zm0-8.3h-3.4V3.4h3.4v1.9Z",fill:"#0B0C0C"})))}),null),example:{attributes:{faIcon:L,iconSize:36,iconSizeUnit:"px",iconMargin:22,iconMarginUnit:"px",iconRadius:50,iconType:"0",iconAlign:"left",iconColor:"undefined",iconUrl:V,iconTarget:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.faIcon,r=t.iconSize,l=t.iconSizeUnit,c=t.iconMargin,i=t.iconMarginUnit,s=t.iconRadius,u=t.iconAlign,m=t.iconType,p=t.iconColor,v=t.iconUrl,f=t.iconTarget,b=vkFontAwesome.iconFamily,d=(0,ze.select)("core/block-editor").getBlockParentsByBlockName(o,["vk-blocks/icon-outer"]),k="";d.length||(k=(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.BlockAlignmentControl,{value:u,onChange:function(e){n({iconAlign:e})},controls:["left","center","right"]})));var _="px"===l?36:1,h="px"===i?22:1,g="";d.length||(g=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Size","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:r,step:"px"===l?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):_;"px"===l&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:l,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(r)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Margin","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:c,step:"px"===i?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):h;"px"===i&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:i,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(c)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Border radius","vk-blocks"),id:"vk_icon-radius"},(0,P.createElement)(ne.RangeControl,{value:s,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===m,isSecondary:"0"!==m,onClick:function(){return n({iconType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===m,isSecondary:"1"!==m,onClick:function(){return n({iconType:"1"})}},(0,M.__)("Icon & Frame","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===m,isSecondary:"2"!==m,onClick:function(){return n({iconType:"2"})}},(0,M.__)("Icon only","vk-blocks"))))),a&&!a.match(/<i/)&&(a='<i class="'.concat(a,'"></i>')),(0,P.useEffect)((function(){"undefined"===p&&n({iconColor:void 0})}),[o]);var y=(0,Q.useBlockProps)({className:"vk_icon"});return(0,P.createElement)(P.Fragment,null,k,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon","vk-blocks")+" ( "+b+" )",id:"vk_icon-font"},(0,P.createElement)(Ke,Ne({attributeName:"faIcon"},e))),g,(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Link URL","vk-blocks"),value:v,onChange:function(e){return n({iconUrl:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:f,onChange:function(e){n({iconTarget:e})}})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)(Pe,Ne({schema:"iconColor"},e))))),(0,P.createElement)("div",y,(0,P.createElement)(Uo,{lbFontAwesomeIcon:a,lbSize:r,lbSizeUnit:l,lbMargin:c,lbMarginUnit:i,lbRadius:s,lbAlign:u,lbType:m,lbColor:p})))},save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(Uo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))},deprecated:$o};function ea(){return ea=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},ea.apply(this,arguments)}var ta,na,oa,aa=JSON.parse('{"apiVersion":2,"name":"vk-blocks/icon-outer","category":"vk-blocks-cat","title":"Icon Outer","attributes":{"iconSize":{"type":"number","default":36},"iconSizeUnit":{"type":"string","default":"px"},"iconMargin":{"type":"number","default":22},"iconMarginUnit":{"type":"string","default":"px"},"iconRadius":{"type":"number","default":50},"iconsJustify":{"type":"string","default":"left"},"iconType":{"type":"string","default":"0"}},"description":"Display the Font Awesome icons horizontally.","textdomain":"vk-blocks","supports":{"className":true}}'),ra=aa.name,la={icon:(0,P.createElement)((function(e){return G.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23.91 17.64"},e),Zo||(Zo=G.createElement("defs",null,G.createElement("style",null,".icon_svg__cls-1{fill-rule:evenodd}"))),">",Go||(Go=G.createElement("path",{className:"icon_svg__cls-1",d:"M1.15 6.21a3.67 3.67 0 0 0 1.57 1 3.57 3.57 0 0 0 1 .15H4l.33-.06a.37.37 0 0 1 0-.11l.32-.75a.11.11 0 0 1 .11-.11h1.53A3.65 3.65 0 1 0 .1 3.6a3.66 3.66 0 0 0 1 2.56ZM3 1.46h1.48v.81H3Zm0 1.46h1.48v2.93H3ZM11 7.16a3.65 3.65 0 0 1-1.58-1 3.63 3.63 0 0 1-1.07-2.51 3.66 3.66 0 1 1 3.93 3.7H12a3.47 3.47 0 0 1-1-.19Zm.3-4.89v-.81h1.46v.81Zm0 3.58V2.92h1.46v2.93ZM19.23 7.16a3.65 3.65 0 0 1-1.58-1 3.62 3.62 0 0 1-1-2.56 3.65 3.65 0 1 1 3.93 3.7h-.28a3.52 3.52 0 0 1-1.07-.14Zm.3-4.89v-.81H21v.81Zm0 3.58V2.92H21v2.93Z"})),Yo||(Yo=G.createElement("path",{d:"M10.9 8.47H7.6a.09.09 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1l-.6-1.8c0-.1-.2-.1-.2 0l-.4 1.2v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 12v-.1l3-3.2c0-.13 0-.23-.1-.23Z"})),G.createElement("path",{d:"M7 6.67H5a.09.09 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0l-1.6-4.9c0-.1 0-.2.1-.2h.9a.09.09 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.3.3 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8a.09.09 0 0 0-.1-.1Z",style:{fill:"#d8141c"}}))}),null),styles:[],example:{innerBlocks:[{name:"vk-blocks/icon"},{name:"vk-blocks/icon"}]},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.iconSize,r=t.iconSizeUnit,l=t.iconMargin,c=t.iconMarginUnit,i=t.iconRadius,s=t.iconsJustify,u=t.iconType,m=(0,ze.select)("core/block-editor").getBlocksByClientId,p=(0,ze.dispatch)("core/block-editor").updateBlockAttributes,v=m(o);(0,P.useEffect)((function(){v&&v[0]&&v[0].innerBlocks&&v[0].innerBlocks.forEach((function(e){p(e.clientId,{iconSize:a}),p(e.clientId,{iconSizeUnit:r}),p(e.clientId,{iconMargin:l}),p(e.clientId,{iconMarginUnit:c}),p(e.clientId,{iconRadius:i}),p(e.clientId,{iconType:u})}))}),[v,t,o]);var f=(0,Q.useBlockProps)({className:"vk_icons"}),b="px"===r?36:1,d="px"===c?22:1;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.JustifyContentControl,{allowedControls:["left","center","right","space-between"],value:s,onChange:function(e){return n({iconsJustify:e})},popoverProps:{position:"bottom right",isAlternate:!0}})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon Common Setting","vk-blocks")},(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Size","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:a,step:"px"===r?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):b;"px"===r&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:r,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(a)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Margin","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:l,step:"px"===c?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):d;"px"===c&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:c,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(l)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Border radius","vk-blocks"),id:"vk_icon-radius"},(0,P.createElement)(ne.RangeControl,{value:i,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===u,isSecondary:"0"!==u,onClick:function(){return n({iconType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===u,isSecondary:"1"!==u,onClick:function(){return n({iconType:"1"})}},(0,M.__)("Icon & Frame","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===u,isSecondary:"2"!==u,onClick:function(){return n({iconType:"2"})}},(0,M.__)("Icon only","vk-blocks"))))),(0,P.createElement)("div",f,(0,P.createElement)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(s)},(0,P.createElement)(Q.InnerBlocks,{allowedBlocks:["vk-blocks/icon"],template:[["vk-blocks/icon"],["vk-blocks/icon"]],templateLock:!1,orientation:"horizontal"}))))},save:function(e){var t=e.attributes.iconsJustify,n=Q.useBlockProps.save({className:"vk_icons"});return(0,P.createElement)("div",n,(0,P.createElement)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(t)},(0,P.createElement)(Q.InnerBlocks.Content,null)))}};function ca(){return ca=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},ca.apply(this,arguments)}var ia,sa,ua,ma=JSON.parse('{"apiVersion":2,"name":"vk-blocks/page-content","title":"Page Content","category":"vk-blocks-cat","attributes":{"TargetPost":{"type":"number","default":-1}},"description":"Displays the body content of the specified parent page.","textdomain":"vk-blocks","supports":{"className":true}}'),pa=ma.name,va={icon:(0,P.createElement)((function(e){return G.createElement("svg",ca({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ta||(ta=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 5.5H7a.5.5 0 0 0-.5.5v5.502l-1.467.006H5V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.964l-.438-1.41.086-.09H17a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5Zm-4.745 10.25H14v-1.5h-1.634c.203.468.191 1.028-.11 1.5ZM8.502 12.5H16V11H8v.821c.23.179.398.418.502.679ZM8 7.75h8v1.5H8v-1.5Z",fill:"#1E1E1E"})),na||(na=G.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z",fill:"#000"})),oa||(oa=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))}),null),edit:function(e){var t,n,o,a=e.attributes,r=e.setAttributes,l=a.TargetPost,c=function(e){var t=[{label:(0,M.__)("Unspecified","vk-blocks"),value:-1}],n=e.map((function(e){return{label:e.title.rendered,value:e.id}}));return t.concat(n)}((t={slug:"page"},n={per_page:-1,status:"private,publish"},(0,ze.useSelect)((function(e){return e("core").getEntityRecords("postType",t.slug,n)||[]}),[t,n])));o=-1===l?(0,P.createElement)("div",{className:"alert alert-warning text-center"},(0,M.__)("Because no post is selected, The block Will not render","vk-blocks")):(0,P.createElement)(se(),{block:"vk-blocks/page-content",attributes:a});var i=(0,Q.useBlockProps)();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Page Setting","vk-blocks"),initialOpen:!0},(0,P.createElement)(ne.BaseControl,{id:"vb-call-01"},(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Select Page","vk-blocks"),value:l,options:c,onChange:function(e){return r({TargetPost:parseInt(e,10)})}})))),(0,P.createElement)("div",i,o))}};function fa(){return fa=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},fa.apply(this,arguments)}var ba=JSON.parse('{"apiVersion":2,"name":"vk-blocks/pr-blocks","title":"PR Blocks (not recommended)","category":"vk-blocks-cat","attributes":{"heading1":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-1"},"heading2":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-2"},"heading3":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-3"},"heading4":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-4"},"content1":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-1"},"content2":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-2"},"content3":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-3"},"content4":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-4"},"url1":{"type":"string","default":""},"url2":{"type":"string","default":""},"url3":{"type":"string","default":""},"url4":{"type":"string","default":""},"urlOpenType1":{"type":"Boolean","default":false},"urlOpenType2":{"type":"Boolean","default":false},"urlOpenType3":{"type":"Boolean","default":false},"urlOpenType4":{"type":"Boolean","default":false},"icon1":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon2":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon3":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon4":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"color1":{"type":"string"},"color2":{"type":"string"},"color3":{"type":"string"},"color4":{"type":"string"},"bgType1":{"type":"string","default":"0"},"bgType2":{"type":"string","default":"0"},"bgType3":{"type":"string","default":"0"},"bgType4":{"type":"string","default":"0"},"insertImage1":{"type":"string","default":""},"insertImage2":{"type":"string","default":""},"insertImage3":{"type":"string","default":""},"insertImage4":{"type":"string","default":""}},"description":"This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.","textdomain":"vk-blocks","supports":{"className":true}}'),da=function(e){if("string"==typeof e){try{JSON.parse(e)}catch(e){return!0}return!1}return"object"!==Ge(e)||Array.isArray(e)},ka=((0,ze.select)("core/block-editor")?(0,ze.select)("core/block-editor"):(0,ze.select)("core/editor"),(0,ze.dispatch)("core/block-editor")?(0,ze.dispatch)("core/block-editor"):(0,ze.dispatch)("core/editor"),function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e});var _a=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.icon1,s=t.icon2,u=t.icon3,m=t.color1,p=t.color2,v=t.color3,f=t.bgType1,b=t.bgType2,d=t.bgType3,k=t.insertImage1,_=t.insertImage2,h=t.insertImage3,g=this.props.blockNum,y=this.props.blockNum-1,E=[i,s,u],x=[m,p,v],C=[f,b,d],N=[k,_,h],T="",B="",w=function(e){var t=e[y];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},S=function(){if(N[y])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:w(N)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(N[y]));var e="",t={},n="";void 0!==x[y]&&("0"===C[y]?pe(x[y])?(e="has-background ",t={backgroundColor:"".concat(x[y])}):e="has-background has-".concat(x[y],"-background-color"):"1"===C[y]&&(pe(x[y])?(e="has-text-color",t={border:"1px solid ".concat(x[y])},n=x[y]):e="has-text-color has-".concat(x[y],"-color")));var o=E[y];o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>'));var a=o.split(" ");a[0]=""!==n?a[0]+' style="color:'.concat(n,'" '):a[0]+" ",a[1]=a[1]+" vk_prBlocks_item_icon ";var r=a.join("");return(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t},et(r))}(),I="";return"1"===C[y]&&(I="is-style-outline"),1===g?(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===g?(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===g&&(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(I)},S,T,B)}}]),a}(P.Component);var ha=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e="",t={},n="";void 0!==z[w]&&("0"===M[w]?pe(z[w])?(e="has-background ",t={backgroundColor:"".concat(z[w])}):e="has-background has-".concat(z[w],"-background-color"):"1"===M[w]&&(pe(z[w])?(e="has-text-color",t={border:"1px solid ".concat(z[w])},n=z[w]):e="has-text-color has-".concat(z[w],"-color")));var o=O[w];o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>'));var a=o.split(" ");a[0]=""!==n?a[0]+' style="color:'.concat(n,'" '):a[0]+" ",a[1]=a[1]+" vk_prBlocks_item_icon ";var r=a.join("");return(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t},et(r))}(),L="";return"1"===M[w]&&(L="is-style-outline"),e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),R[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(L)},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(L)},H,e,t)}}]),a}(P.Component);var ga=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=j[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(j[w],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:j[w],alt:""})):(z[w]||(z[w]="#0693e3"),"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:z[w]}})));return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h1",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],target:A[w]?"_blank":"_self",className:"vk_prBlocks_item_link",rel:"noopener noreferrer"},U,H,L))}}]),a}(P.Component);var ya=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=j[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}}(j)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(j[w])):(z[w]||(z[w]="#0693e3"),"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:z[w]}})));return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),R[w]&&"save"===T?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},U,H,L)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},U,H,L)}}]),a}(P.Component);var Ea=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},D=function(){if(j[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:U(j)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(j[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===F[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),R[w]&&"save"===T?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},D,H,L)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},D,H,L)}}]),a}(P.Component);var xa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===M[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===M[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t))}}]),a}(P.Component);var Ca,Na,Ta,Ba,wa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===M[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===M[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),R[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},H,e,t)}}]),a}(P.Component),Sa=[{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(wa,{attributes:t,blockNum:1}),(0,P.createElement)(wa,{attributes:t,blockNum:2}),(0,P.createElement)(wa,{attributes:t,blockNum:3}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(xa,{attributes:t,blockNum:1}),(0,P.createElement)(xa,{attributes:t,blockNum:2}),(0,P.createElement)(xa,{attributes:t,blockNum:3}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",(0,P.createElement)("div",{className:t},(0,P.createElement)(Ea,{attributes:n,blockNum:1,for_:"save"}),(0,P.createElement)(Ea,{attributes:n,blockNum:2,for_:"save"}),(0,P.createElement)(Ea,{attributes:n,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",(0,P.createElement)("div",{className:t},(0,P.createElement)(ya,{attributes:n,blockNum:1,for_:"save"}),(0,P.createElement)(ya,{attributes:n,blockNum:2,for_:"save"}),(0,P.createElement)(ya,{attributes:n,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t=e.attributes;return(0,P.createElement)("div",{className:"vk_prBlocks row"},(0,P.createElement)(ga,{attributes:t,blockNum:1,for_:"save"}),(0,P.createElement)(ga,{attributes:t,blockNum:2,for_:"save"}),(0,P.createElement)(ga,{attributes:t,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3;return(0,P.createElement)("div",{className:"vk_prBlocks row"},(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:i,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},x?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:x,alt:""})):(k||(k="#0693e3",g="0"),"0"===g?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:k,border:"1px solid ".concat(k)}},(0,P.createElement)("i",{className:"".concat(f," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+k}},(0,P.createElement)("i",{className:"".concat(f," vk_prBlocks_item_icon"),style:{color:k}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:r}))),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:s,target:p?"_blank":"_self",className:"vk_prBlocks_item_link"},C?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+C+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:C,alt:""})):(_||(_="#0693e3",y="0"),"0"===y?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:_,border:"1px solid ".concat(_)}},(0,P.createElement)("i",{className:"".concat(b," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+_}},(0,P.createElement)("i",{className:"".concat(b," vk_prBlocks_item_icon"),style:{color:_}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:l}))),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:u,target:v?"_blank":"_self",className:"vk_prBlocks_item_link"},N?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:N,alt:""})):(h||(h="#0693e3",E="0"),"0"===E?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:h,border:"1px solid ".concat(h)}},(0,P.createElement)("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+h}},(0,P.createElement)("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:h}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:c}))))}}],Ia=ba.name,Ra={icon:(0,P.createElement)((function(e){return G.createElement("svg",fa({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ia||(ia=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.15 7.88A3 3 0 0 1 3 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67H2.4zm0 2.93V4.4h1.2v2.4H2.4zm8.75 1.08A3 3 0 0 1 12 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67h-1.2zm0 2.93V4.4h1.2v2.4h-1.2zm8.75 1.08A3 3 0 0 1 21 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67h-1.2zm0 2.93V4.4h1.2v2.4h-1.2z",fill:"#000"})),sa||(sa=G.createElement("path",{d:"M24 10v1h-6v-1h6zm0 2v1h-6v-1h6zm0 2v1h-6v-1h6zm-9-3v-1H9v1h6zm0 2v-1H9v1h6zm0 2v-1h-2.77c.2.3.3.65.27 1H15zm-9-5v1H0v-1h6zm-2.63 3 .14-.41c.08-.23.2-.43.37-.59H0v1h3.37zm7.52 1.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),ua||(ua=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{heading1:H,heading2:H,heading3:H,content1:F,content2:F,content3:F,url1:V,url2:V,url3:V,urlOpenType1:!1,urlOpenType2:!1,urlOpenType3:!1,icon1:L,icon2:L,icon3:L,color1:D,color2:D,color3:D,bgType1:"0",bgType2:"0",bgType3:"0",insertImage1:"",insertImage2:"",insertImage3:""},edit:function(e){var t=e.attributes,n=e.setAttributes,o=t.url1,a=t.url2,r=t.url3,l=t.urlOpenType1,c=t.urlOpenType2,i=t.urlOpenType3,s=t.bgType1,u=t.bgType2,m=t.bgType3,p=t.insertImage1,v=t.insertImage2,f=t.insertImage3,b=vkFontAwesome.iconFamily,d=(0,Q.useBlockProps)({className:"vk_prBlocks row"}),k=function(e){if(da(e))return e?(0,P.createElement)("img",{className:"icon-image",src:e,alt:(0,M.__)("Upload image","vk-blocks")}):(0,M.__)("Select image","vk-blocks");var t=JSON.parse(ka(e));return e?(0,P.createElement)("img",{className:"icon-image",src:t.sizes.full.url,alt:t.alt}):(0,M.__)("Select image","vk-blocks")};return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block1 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl1"},(0,P.createElement)(ne.TextControl,{value:o,onChange:function(e){return n({url1:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:l,onChange:function(e){return n({urlOpenType1:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 1","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon1"},(0,P.createElement)(Ke,Ne({attributeName:"icon1"},e)),(0,P.createElement)(Pe,Ne({schema:"color1"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:s,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType1:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 1","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage1:e.url}):n({insertImage1:JSON.stringify(e)})},type:"image",value:p,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:p?"image-button":"button button-large"},k(p))}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block2 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl2"},(0,P.createElement)(ne.TextControl,{value:a,onChange:function(e){return n({url2:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:c,onChange:function(e){return n({urlOpenType2:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 2","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon2"},(0,P.createElement)(Ke,Ne({attributeName:"icon2"},e)),(0,P.createElement)(Pe,Ne({schema:"color2"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:u,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType2:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority.","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 2","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage2:e.url}):n({insertImage2:JSON.stringify(e)})},type:"image",value:v,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:v?"image-button":"button button-large"},k(v))}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block3 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl3"},(0,P.createElement)(ne.TextControl,{value:r,onChange:function(e){return n({url3:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:i,onChange:function(e){return n({urlOpenType3:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 3","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon3"},(0,P.createElement)(Ke,Ne({attributeName:"icon3"},e)),(0,P.createElement)(Pe,Ne({schema:"color3"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:m,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType3:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority.","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 3","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage3:e.url}):n({insertImage3:JSON.stringify(e)})},type:"image",value:f,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:f?"image-button":"button button-large"},k(f))}})))),(0,P.createElement)("div",d,(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:1}),(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:2}),(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:3})))},save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(ha,{attributes:t,blockNum:1}),(0,P.createElement)(ha,{attributes:t,blockNum:2}),(0,P.createElement)(ha,{attributes:t,blockNum:3}))},deprecated:Sa};function Aa(){return Aa=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},Aa.apply(this,arguments)}var Oa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",r="";return n&&(a=(0,P.createElement)("i",{className:"".concat(n," vk_button_link_before")})),o&&(r=(0,P.createElement)("i",{className:"".concat(o," vk_button_link_after")})),(0,P.createElement)(P.Fragment,null,a,(0,P.createElement)("span",{className:"vk_button_link_txt"},t),r)}}]),a}(P.Component);var za=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=this.props.setAttributes,d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};return _="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=null==v?"none":"1px solid ".concat(v),(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===k?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}}):p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(Oa,{attributes:t})))}()))}}]),a}(P.Component);var Pa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,r=e.url,l=e.buttonType,c=e.buttonColor,i=e.buttonColorCustom,s=e.buttonText,u=e.buttonTarget,m=e.Image,p=e.ImageBorderColor,v=e.layout,f=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),b=this.props.for_,d="vk_prContent",k="vk_button",_="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={};return d="".concat(d,"right"===v?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),i?(k="".concat(k," vk_button-color-custom"),_="".concat(_," btn-primary"),"0"===l?h={backgroundColor:i,border:"1px solid ".concat(i)}:"1"===l&&(h={backgroundColor:"transparent",border:"1px solid "+i,color:i})):i||("0"===l?(_="".concat(_," btn-").concat(c),h=null):"1"===l&&(_="".concat(_," btn-outline-").concat(c),h=null)),(0,P.createElement)("div",{className:d},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===b?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return f({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:m?"image-button":"button button-large"},m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks"))}}):m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===b?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return f({title:e})},value:t,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:n}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return f({content:e})},value:o,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:a}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==s&&void 0!==s)return(0,P.createElement)("div",{className:k},(0,P.createElement)("a",{href:r,className:_,target:u?"_blank":null,style:h,rel:"noopener noreferrer"},(0,P.createElement)(Oa,{attributes:e})))}()))}}]),a}(P.Component),Ma=function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e};function Fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Xe(e);if(t){var a=Xe(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Ye(this,n)}}var ja=function(e){Ze(n,e);var t=Fa(n);function n(){return Ve(this,n),t.apply(this,arguments)}return We(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",r="";return n&&(a=(0,P.createElement)("i",{className:"".concat(n," vk_button_link_before")})),o&&(r=(0,P.createElement)("i",{className:"".concat(o," vk_button_link_after")})),(0,P.createElement)(P.Fragment,null,a,(0,P.createElement)("span",{className:"vk_button_link_txt"},t),r)}}]),n}(P.Component),Ha=function(e){Ze(n,e);var t=Fa(n);function n(){return Ve(this,n),t.apply(this,arguments)}return We(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(ja,{attributes:t})))}()))}}]),n}(P.Component);var La=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.buttonText,o=t.fontAwesomeIconAfter,a="";return o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>')),o&&((e=o.split(" "))[1]=" "+e[1]+" vk_button_link_after ",a=e.join("")),(0,P.createElement)(P.Fragment,null,(0,P.createElement)("span",{className:"vk_button_link_txt"},n),et(a))}}]),a}(P.Component);var Ua=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=this.props.setAttributes,d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={},E={};o&&""!==o&&(E={color:o});var x={};r&&""!==r&&(x={color:r}),_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var C=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:C,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:E}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:x})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:E}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:x})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m&&"_blank",style:y,rel:m&&"noopener"},(0,P.createElement)(La,{attributes:t})))}()))}}]),a}(P.Component);var Da=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,r=e.url,l=e.buttonType,c=e.buttonColor,i=e.buttonColorCustom,s=e.buttonText,u=e.buttonTarget,m=e.Image,p=e.ImageBorderColor,v=e.layout,f=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),b=this.props.for_,d="vk_prContent",k="vk_button",_="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={};return d="".concat(d,"right"===v?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),i?(k="".concat(k," vk_button-color-custom"),_="".concat(_," btn-primary"),"0"===l?h={backgroundColor:i,border:"1px solid ".concat(i)}:"1"===l&&(h={backgroundColor:"transparent",border:"1px solid "+i,color:i})):i||("0"===l?(_="".concat(_," btn-").concat(c),h=null):"1"===l&&(_="".concat(_," btn-outline-").concat(c),h=null)),(0,P.createElement)("article",{className:d},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===b?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return f({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:m?"image-button":"button button-large"},m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks"))}}):m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===b?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return f({title:e})},value:t,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:n}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return f({content:e})},value:o,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:a}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==s&&void 0!==s)return(0,P.createElement)("div",{className:k},(0,P.createElement)("a",{href:r,className:_,target:u?"_blank":null,rel:"noopener noreferrer",style:h},(0,P.createElement)(Oa,{attributes:e})))}()))}}]),a}(P.Component);var Va=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.buttonText,a=n.fontAwesomeIconBefore,r=n.fontAwesomeIconAfter,l="",c="";return a&&!a.match(/<i/)&&(a='<i class="'.concat(a,'"></i>')),r&&!r.match(/<i/)&&(r='<i class="'.concat(r,'"></i>')),a&&((e=a.split(" "))[1]=" "+e[1]+" vk_button_link_before ",l=e.join("")),r&&((t=r.split(" "))[1]=" "+t[1]+" vk_button_link_after ",c=t.join("")),(0,P.createElement)(P.Fragment,null,et(l),(0,P.createElement)("span",{className:"vk_button_link_txt"},o),et(c))}}]),a}(P.Component);var qa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Wa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Ja=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Za=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m&&"_blank",style:y,rel:m&&"noopener"},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component),Ga=function(e){var t,n="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((t=e.split(" "))[1]=" "+t[1]+" vk_button_link_before ",n=t.join("")),n},Ya=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,M.__)("Select Image","vk-blocks");var o=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t}(n);if(t&&-1===t.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:o}});var a=JSON.parse(Ma(t));return a&&void 0!==a.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:a.sizes.full.url,alt:a.alt,style:{border:o}}):void 0};function Xa(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 $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ka,Qa,er,tr={title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},nr=$a($a({},tr),{},{titleColor:{type:"string",default:""},contentColor:{type:"string",default:""},url:{type:"string",default:""},buttonColorCustom:{type:"string",default:""},Image:{type:"string",default:"{}"},ImageBorderColor:{type:"string",default:""},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""}}),or=$a($a({},nr),{},{fontAwesomeIconBefore:{type:"string",default:'<i class="fas fa-user"></i>'},fontAwesomeIconAfter:{type:"string",default:'<i class="fas fa-user"></i>'}}),ar=[{attributes:or,save:function(e){var t=e.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")}(f),_=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t}(s),h=function(e,t,n){var o="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?o="".concat(o," btn-primary"):t||("0"===n?o="".concat(o," btn-").concat(e):"1"===n&&(o="".concat(o," btn-outline-").concat(e))),o}(i,s,c),g=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n}(s,c),y=Ga(b),E=Ga(d);return(0,P.createElement)("div",Q.useBlockProps.save({className:k}),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(Ya,{Image:p,ImageBorderColor:v})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}}),u&&(0,P.createElement)("div",{className:_},(0,P.createElement)("a",{href:l,className:h,rel:m?"noopener noreferrer":void 0,style:g,target:m?"_blank":void 0},et(y),(0,P.createElement)("span",{className:"vk_button_link_txt"},u),et(E)))))}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ua,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Za,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ja,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Wa,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(qa,{attributes:t,className:n,for_:"save"})}},{attributes:nr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Da,{attributes:t,className:n,for_:"save"})}},{attributes:nr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ha,{attributes:t,className:n,for_:"save"})}},{attributes:tr,save:function(e){var t=e.attributes;return e.className,(0,P.createElement)(Pa,{attributes:t,for_:"save"})}},{attributes:tr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(za,{attributes:t,className:n,for_:"save"})}}],rr=ar,lr=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")},cr=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t},ir=function(e,t,n){var o="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?o="".concat(o," btn-primary"):t||("0"===n?o="".concat(o," btn-").concat(e):"1"===n&&(o="".concat(o," btn-outline-").concat(e))),o},sr=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n},ur=function(e,t){var n,o="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((n=e.split(" "))[1]=" "+n[1]+" "+t+" ",o=n.join("")),o},mr=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t},pr=function(e){var t,n=e.ImageBorderColor,o=e.setAttributes,a=e.Image,r=mr(n),l={};(t=a)&&-1===t.indexOf("{")?(l.setImage=function(e){return o({Image:e.sizes.full.url})},l.value=a,l.alt=(0,M.__)("Upload image","vk-blocks"),l.getImagePlaceHolder=function(e,t){return e?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:e,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:t}}):(0,M.__)("Select image","vk-blocks")}):(l.setImage=function(e){if(e){var t={alt:e.alt,sizes:{full:{url:e.sizes.full.url}}};o({Image:JSON.stringify(t)})}},l.value=JSON.parse(Ma(a)),l.alt=l.value.alt,l.getImagePlaceHolder=function(e,t){return null===(e=JSON.parse(Ma(e)))||void 0===e.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:e.sizes.full.url,alt:e.alt,style:{border:t}})});var c=null!=a&&""!==a&&"{}"!==a;return(0,P.createElement)(Q.MediaUpload,{onSelect:l.setImage,type:"image",value:l.value,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:c?"image-button":"button button-large"},l.getImagePlaceHolder(a,r))}})},vr=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,M.__)("Select Image","vk-blocks");var o=mr(n);if(t&&-1===t.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:o}});var a=JSON.parse(Ma(t));return a&&void 0!==a.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:a.sizes.full.url,alt:a.alt,style:{border:o}}):void 0},fr=JSON.parse('{"apiVersion":2,"name":"vk-blocks/pr-content","title":"PR Content","description":"This is PR content where you can place images, headlines, text, and buttons.","category":"vk-blocks-cat","attributes":{"title":{"source":"html","selector":".vk_prContent_colTxt_title"},"titleColor":{"type":"string","default":""},"content":{"source":"html","selector":".vk_prContent_colTxt_text"},"contentColor":{"type":"string","default":""},"url":{"type":"string","default":""},"buttonType":{"type":"string","default":"0"},"buttonColor":{"type":"string","default":"primary"},"buttonColorCustom":{"type":"string","default":""},"buttonText":{"source":"html","selector":".vk_button_link_txt","default":""},"buttonTarget":{"type":"Boolean","default":false},"Image":{"type":"string","default":"{}"},"ImageBorderColor":{"type":"string","default":""},"layout":{"type":"string","default":"left"},"fontAwesomeIconBefore":{"type":"string","default":"<i class=\'fas fa-user\'></i>"},"fontAwesomeIconAfter":{"type":"string","default":"<i class=\'fas fa-user\'></i>"}},"textdomain":"vk-blocks","supports":{"className":true}}'),br=fr.name,dr={icon:(0,P.createElement)((function(e){return G.createElement("svg",Aa({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ca||(Ca=G.createElement("path",{d:"M12 3H1v9.5h2.55a1.6 1.6 0 0 0-.04.09l-.24.69H0V2h13v11.5h-1.29a1.6 1.6 0 0 0-.82-.22H8.62c.02-.26-.02-.53-.12-.78H12V3zm3 1.5h9v1h-9v-1zM24 7h-9v1h9V7zm0-5h-9v1h9V2zm-6.5 9h4v1h-4v-1z",fill:"#000"})),Na||(Na=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 10.7c0-.32.13-.62.37-.85.23-.22.55-.35.88-.35h6.5c.33 0 .65.13.88.35.24.23.37.53.37.85v1.6c0 .32-.13.62-.37.85-.23.22-.55.35-.88.35h-6.5c-.33 0-.65-.13-.88-.35a1.18 1.18 0 0 1-.37-.85v-1.6zm1.25-.4a.43.43 0 0 0-.3.12.4.4 0 0 0-.12.28v1.6a.43.43 0 0 0 .42.4h6.5c.11 0 .22-.04.3-.12a.4.4 0 0 0 .12-.28v-1.6a.4.4 0 0 0-.13-.28.43.43 0 0 0-.29-.12h-6.5z",fill:"#000"})),Ta||(Ta=G.createElement("path",{d:"M5.62 6a1 1 0 0 1-1 .99 1 1 0 0 1-1-1 1 1 0 0 1 2 0zm5.48 4.83H2.15c-.42 0-.67-.52-.43-.9l1.44-2.2a.5.5 0 0 1 .85 0l.95 1.43c.2.3.6.33.82.04l2.2-2.8a.5.5 0 0 1 .79 0l2.73 3.5c.29.36.05.93-.4.93zm-.21 3.95H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Ba||(Ba=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{title:F,titleColor:D,content:j,contentColor:D,url:V,buttonType:"0",buttonColor:"primary",buttonColorCustom:"",buttonText:H,buttonTarget:!1,Image:U,ImageBorderColor:D,layout:"left",fontAwesomeIconBefore:L,fontAwesomeIconAfter:L}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.title,r=t.titleColor,l=t.content,c=t.contentColor,i=t.url,s=t.buttonType,u=t.buttonColor,m=t.buttonColorCustom,p=t.buttonText,v=t.buttonTarget,f=t.Image,b=t.ImageBorderColor,d=t.layout,k=t.fontAwesomeIconBefore,_=t.fontAwesomeIconAfter,h=vkFontAwesome.iconFamily,g=lr(d),y=cr(m),E=ir(u,m,s),x=sr(m,s),C=ur(k,"vk_button_link_before"),N=ur(_,"vk_button_link_after"),T=(0,Q.useBlockProps)({className:g});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_titleColor-".concat(o),label:(0,M.__)("Title Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:r,onChange:function(e){return n({titleColor:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_contentColor-".concat(o),label:(0,M.__)("Content Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:c,onChange:function(e){return n({contentColor:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_image-borderColor-".concat(o),label:(0,M.__)("Image Border Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:b,onChange:function(e){return n({ImageBorderColor:e})}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Button Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonText-".concat(o),label:(0,M.__)("Button Text","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:p,onChange:function(e){return n({buttonText:e})},placeholder:"Input button text."})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_linkUrl-".concat(o),label:(0,M.__)("Link URL","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:i,onChange:function(e){return n({url:e})},placeholder:"https://vektor-inc.co.jp/"})),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:v,onChange:function(e){return n({buttonTarget:e})}}),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonType-".concat(o),label:(0,M.__)("Button Type","vk-blocks")},(0,P.createElement)(ne.RadioControl,{selected:s,options:[{label:(0,M.__)("Solid","vk-blocks"),value:"0"},{label:(0,M.__)("Ghost","vk-blocks"),value:"1"}],onChange:function(e){return n({buttonType:e})}})),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Default Color:","vk-blocks"),selected:u,options:[{label:(0,M.__)("Primary","vk-blocks"),value:"primary"},{label:(0,M.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"},{label:(0,M.__)("Light","vk-blocks"),value:"light"},{label:(0,M.__)("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return n({buttonColor:e})}}),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonColor-".concat(o),label:(0,M.__)("Button Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:m,onChange:function(e){return n({buttonColorCustom:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon-".concat(o)},(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Icon","vk-blocks")+" ( "+h+" )"),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon_beforeText".concat(o),label:(0,M.__)("Before text","vk-blocks")},(0,P.createElement)(Ke,{attributeName:"fontAwesomeIconBefore",attributes:t,setAttributes:n})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon_afterText-".concat(o),label:(0,M.__)("After text","vk-blocks")},(0,P.createElement)(Ke,{attributeName:"fontAwesomeIconAfter",attributes:t,setAttributes:n})))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Layout Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Layout Type","vk-blocks"),selected:d,options:[{label:(0,M.__)("Right","vk-blocks"),value:"right"},{label:(0,M.__)("Left","vk-blocks"),value:"left"}],onChange:function(e){return n({layout:e})}}))),(0,P.createElement)("div",T,(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(pr,{ImageBorderColor:b,setAttributes:n,Image:f})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return n({title:e})},value:a,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:r}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return n({content:e})},value:l,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:c}}),p&&(0,P.createElement)("div",{className:y},(0,P.createElement)("a",{href:i,className:E,target:v?"_blank":void 0,style:x,rel:v?"noopener noreferrer":void 0},et(C),(0,P.createElement)("span",{className:"vk_button_link_txt"},p),et(N))))))},save:function(e){var t=e.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=lr(f),_=cr(s),h=ir(i,s,c),g=sr(s,c),y=ur(b,"vk_button_link_before"),E=ur(d,"vk_button_link_after");return(0,P.createElement)("div",Q.useBlockProps.save({className:k}),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(vr,{Image:p,ImageBorderColor:v})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}}),u&&(0,P.createElement)("div",{className:_},(0,P.createElement)("a",{href:l,className:h,rel:m?"noopener noreferrer":void 0,style:g,target:m?"_blank":void 0},et(y),(0,P.createElement)("span",{className:"vk_button_link_txt"},u),et(E)))))},deprecated:rr};function kr(){return kr=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},kr.apply(this,arguments)}var _r=JSON.parse('{"apiVersion":2,"name":"vk-blocks/spacer","title":"Responsive Spacer","description":"Use responsive spacers to get the margins right.","category":"vk-blocks-cat","attributes":{"anchor":{"type":"string","default":null},"spaceType":{"type":"string","default":"margin-top"},"unit":{"type":"string","default":"px"},"pc":{"type":"number","default":40},"tablet":{"type":"number","default":30},"mobile":{"type":"number","default":20},"spaceSize":{"type":"string","default":"medium"}},"textdomain":"vk-blocks","supports":{"anchor":true}}');var hr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile;return(0,P.createElement)("div",{className:"vk_spacer"},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}]),a}(P.Component);var gr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile,r=this.props.className;return(0,P.createElement)("div",{className:"".concat(r," vk_spacer")},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}]),a}(P.Component);var yr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.anchor,n=e.unit,o=e.pc,a=e.tablet,r=e.mobile,l=this.props.className;return(0,P.createElement)("div",{id:t,className:De()("vk_spacer",l)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:o+n}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:a+n}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:r+n}}))}}]),a}(P.Component);var Er=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.anchor,n=e.spaceType,o=e.unit,a=e.pc,r=e.tablet,l=e.mobile,c=this.props.className;return"height"===n?(0,P.createElement)("div",{id:t,className:De()("vk_spacer",c)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:a+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:r+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:l+o}})):"margin-top"===n?(0,P.createElement)("div",{id:t,className:De()("vk_spacer",c)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{marginTop:a+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{marginTop:r+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{marginTop:l+o}})):void 0}}]),a}(P.Component),xr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Cr(e){var t=e.type,n=e.pcSize,o=e.tabletSize,a=e.mobileSize,r=e.unit;return"margin-top"===t?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(xr,{viewPort:"pc",style:{marginTop:n+r}}),(0,P.createElement)(xr,{viewPort:"tablet",style:{marginTop:o+r}}),(0,P.createElement)(xr,{viewPort:"mobile",style:{marginTop:a+r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(xr,{viewPort:"pc",style:{height:n+r}}),(0,P.createElement)(xr,{viewPort:"tablet",style:{height:o+r}}),(0,P.createElement)(xr,{viewPort:"mobile",style:{height:a+r}}))}var Nr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Tr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?(0,P.createElement)("div",{className:c[t]}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Nr,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(Nr,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(Nr,{viewPort:"mobile",style:{marginTop:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Nr,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(Nr,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(Nr,{viewPort:"mobile",style:{height:r+l}}))}var Br=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function wr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?(0,P.createElement)("div",{className:c[t]}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Br,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(Br,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(Br,{viewPort:"mobile",style:{marginTop:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Br,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(Br,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(Br,{viewPort:"mobile",style:{height:r+l}}))}function Sr(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 Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr={unit:{type:"string",default:"px"},pc:{type:"number",default:50},tablet:{type:"number",default:10},mobile:{type:"number",default:10},spaceType:{type:"string",default:"height"}},Ar=Ir(Ir({},Rr),{},{pc:{type:"number",default:40},tablet:{type:"number",default:30},mobile:{type:"number",default:20},anchor:{type:"string",default:null}}),Or=Ir(Ir({},Ar),{},{spaceSize:{type:"string",default:"medium"}}),zr=[{attributes:Or,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize,s="vk_spacer";return"custom"!==i&&(s+=" vk_spacer-type-".concat(o)),(0,P.createElement)("div",Q.useBlockProps.save({className:s,id:n}),(0,P.createElement)(wr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Or,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize;return(0,P.createElement)("div",Q.useBlockProps.save({className:De()("vk_spacer"),id:n}),(0,P.createElement)(Tr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Ar,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile;return(0,P.createElement)("div",Q.useBlockProps.save({className:De()("vk_spacer"),id:n}),(0,P.createElement)(Cr,{type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Ar,save:function(e){var t=e.attributes;return(0,P.createElement)(Er,{attributes:t})}},{attributes:Ar,save:function(e){var t=e.attributes;return(0,P.createElement)(yr,{attributes:t})}},{attributes:Rr,save:function(e){var t=e.attributes;return(0,P.createElement)(gr,{attributes:t})}},{attributes:Rr,save:function(e){var t=e.attributes;return(0,P.createElement)(hr,{attributes:t})}}],Pr=function(e){var t=e.attributes,n=e.setAttributes,o=e.initial,a=t.pc,r=t.tablet,l=t.mobile,c=o.iPc,i=o.iTablet,s=o.iMobile;return a||(a=c),r||(r=i),l||(l=s),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.TextControl,{label:(0,M.__)("PC","vk-blocks"),value:a,onChange:function(e){return n({pc:parseFloat(e)})},type:"number"}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Tablet","vk-blocks"),value:r,onChange:function(e){return n({tablet:parseFloat(e)})},type:"number"}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Mobile","vk-blocks"),value:l,onChange:function(e){return n({mobile:parseFloat(e)})},type:"number"}))},Mr=function(e){var t=e.attributes,n=e.setAttributes,o=t.unit;return(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Unit Type","vk-blocks"),value:o,onChange:function(e){return n({unit:e})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]})},Fr=function(e){var t=e.attributes,n=e.setAttributes,o=t.spaceType;return(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Space Type","vk-blocks"),value:o,onChange:function(e){return n({spaceType:e})},options:[{value:"height",label:(0,M.__)("height","vk-blocks")},{value:"margin-top",label:(0,M.__)("margin-top","vk-blocks")},{value:"margin-bottom",label:(0,M.__)("margin-bottom","vk-blocks")}]})},jr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Hr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?"margin-top"===n?(0,P.createElement)("div",{className:c[t]+"--margin-top"}):"margin-bottom"===n?(0,P.createElement)("div",{className:c[t]+"--margin-bottom"}):(0,P.createElement)("div",{className:c[t]+"--height"}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{marginTop:r+l}})):"margin-bottom"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{marginBottom:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{marginBottom:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{marginBottom:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{height:r+l}}))}var Lr,Ur,Dr,Vr=_r.name,qr={icon:(0,P.createElement)((function(e){return G.createElement("svg",kr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ka||(Ka=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0h16v1.5H8V0zm2.76 22.5H24V24H9.9c.55-.29.88-.89.86-1.5zm.75-5.92L15.93 21l5.3-5.3-1.03-1.03-3.55 3.55V5.78l3.21 3.2 1.03-1.02-2.48-2.48L15.93 3l-4.96 4.96L11.99 9l3.21-3.21v12.44l-2.79-2.79c-.07.2-.19.4-.35.57l-.55.58z",fill:"#000"})),Qa||(Qa=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),er||(er=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{anchor:null,spaceType:"height",unit:"px",pc:40,tablet:30,mobile:20,spaceSize:"custom"},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=e.clientId,r=e.anchor,l=t.spaceType,c=t.unit,i=t.pc,s=t.tablet,u=t.mobile,m=t.spaceSize,p="vk_spacer";"custom"!==m&&(p+=" vk_spacer-type-".concat(l)),(0,P.useEffect)((function(){void 0===m&&n({spaceSize:"custom"})}),[a]);var v=(0,Q.useBlockProps)({className:p,id:r}),f="custom"===m?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Mr,{attributes:t,setAttributes:n,className:o}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Height for each device.","vk-blocks"),id:"vk_spacer-viewPort-".concat(a)},(0,P.createElement)(Pr,{attributes:t,setAttributes:n,className:o,initial:{iPc:40,iTablet:30,iMobile:20},id:"vk_spacer-viewPort-".concat(a)}))):"";return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Spacer Settings","vk-blocks")},(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"small"===m,isSecondary:"small"!==m,onClick:function(){return n({spaceSize:"small"})}},(0,M.__)("Small","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"medium"===m,isSecondary:"medium"!==m,onClick:function(){return n({spaceSize:"medium"})}},(0,M.__)("Medium","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"large"===m,isSecondary:"large"!==m,onClick:function(){return n({spaceSize:"large"})}},(0,M.__)("Large","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"custom"===m,isSecondary:"custom"!==m,onClick:function(){return n({spaceSize:"custom"})}},(0,M.__)("Custom","vk-blocks"))),(0,P.createElement)("p",null,(0,M.__)("You can change each common margin size from Setting > VK Blocks","vk-blocks")),(0,P.createElement)(Fr,{attributes:t,setAttributes:n,className:o}),f)),(0,P.createElement)("div",v,(0,P.createElement)(Hr,{spaceSize:m,type:l,pcSize:i,tabletSize:s,mobileSize:u,unit:c})))},save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize,s="vk_spacer";return"custom"!==i&&(s+=" vk_spacer-type-".concat(o)),(0,P.createElement)("div",Q.useBlockProps.save({className:s,id:n}),(0,P.createElement)(Hr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))},deprecated:zr};function Wr(){return Wr=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},Wr.apply(this,arguments)}var Jr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.vk_staff_text_name,n=e.vk_staff_text_caption,o=e.vk_staff_text_role,a=e.vk_staff_text_profileTitle,r=e.vk_staff_text_profileText,l=e.vk_staff_photo_image,c=e.vk_staff_photo_image_alt,i=e.vk_staff_layout,s=e.vk_staff_nameColor,u=e.vk_staff_captionColor,m=e.vk_staff_positionColor,p=e.vk_staff_profileTitleColor,v=e.vk_staff_profileTextColor,f=e.vk_staff_photoBorder,b=e.vk_staff_fontFamily,d=this.props.setAttributes,k=this.props.className,_=this.props.for_,h="",g="vk_staff_text";return"1"===b&&(g=classnames(g,"vk_staff-headingFont-serif")),"edit"===_?h=(0,P.createElement)("div",{className:"".concat(k," vk_staff vk_staff-layout-").concat(i)},(0,P.createElement)("div",{className:g},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_staff_text_name",style:{color:s},onChange:function(e){return d({vk_staff_text_name:e})},value:t,placeholder:(0,M.__)("Your Name","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_caption",style:{color:u},onChange:function(e){return d({vk_staff_text_caption:e})},value:n,placeholder:(0,M.__)("Caption","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_role",style:{color:m},onChange:function(e){return d({vk_staff_text_role:e})},value:o,placeholder:(0,M.__)("Role position","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:p},onChange:function(e){return d({vk_staff_text_profileTitle:e})},value:a,placeholder:(0,M.__)("Profile title","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_profileText",style:{color:v},onChange:function(e){return d({vk_staff_text_profileText:e})},value:r,placeholder:(0,M.__)("Profile text","vk-blocks")})),(0,P.createElement)("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(f)},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return d({vk_staff_photo_image:e.sizes.full.url})},type:"image",className:"vk_staff_photo_image",value:l,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:l?"image-button":"button button-large"},l?(0,P.createElement)("img",{className:"vk_staff_photo_image",src:l,alt:(0,M.__)(c,"vk-blocks")}):(0,M.__)("Select image","vk-blocks"))}}))):"save"===_&&(h=(0,P.createElement)("div",{className:"".concat(k," vk_staff vk_staff-layout-").concat(i)},(0,P.createElement)("div",{className:g},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:s},value:t}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:u},value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:m},value:o}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:p},value:a}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:v},value:r})),l?(0,P.createElement)("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(f)},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:l,alt:c?(0,M.__)(c,"vk-blocks"):""})):"")),h}}]),a}(P.Component);function Zr(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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yr={vk_staff_text_name:{type:"string",source:"html",selector:"h3"},vk_staff_text_caption:{type:"string",source:"html",selector:"p.vk_staff_text_caption"},vk_staff_text_role:{type:"string",source:"html",selector:"p.vk_staff_text_role"},vk_staff_text_profileTitle:{type:"string",source:"html",selector:"h4"},vk_staff_text_profileText:{type:"string",source:"html",selector:"p.vk_staff_text_profileText"},vk_staff_photo_image:{type:"string",default:""},vk_staff_photo_image_alt:{type:"string",default:"Profile Picture"},vk_staff_layout:{type:"string",default:"default"},vk_staff_nameColor:{type:"string",default:"inherit"},vk_staff_captionColor:{type:"string",default:"inherit"},vk_staff_positionColor:{type:"string",default:"inherit"},vk_staff_profileTitleColor:{type:"string",default:"inherit"},vk_staff_profileTextColor:{type:"string",default:"inherit"},vk_staff_photoBorder:{type:"string",default:"default"}},Xr=Gr(Gr({},Yr),{},{vk_staff_fontFamily:{type:"string",default:"0"}}),$r=[{attributes:Xr,save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=n.vk_staff_fontFamily,g=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),y=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k)),E=De();return E="1"===_?De()("vk_staff_text",E,"vk_staff-headingFont-serif"):De()("vk_staff_text",E),(0,P.createElement)("div",Q.useBlockProps.save({className:g}),(0,P.createElement)("div",{className:E},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:m},value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:p},value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:v},value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:f},value:s})),b&&(0,P.createElement)("div",{className:y},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))}},{attributes:Xr,save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),g=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k));return(0,P.createElement)("div",Q.useBlockProps.save({className:_}),(0,P.createElement)("div",{className:"vk_staff_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:m},value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:p},value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:v},value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:f},value:s})),b&&(0,P.createElement)("div",{className:g},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))}},{attributes:Yr,save:function(e){var t=e.attributes;return(0,P.createElement)(Jr,{attributes:t,setAttributes:"",className:"",for_:"save"})}}],Kr=JSON.parse('{"apiVersion":2,"name":"vk-blocks/staff","category":"vk-blocks-cat","title":"Staff","description":"Used for staff introduction, company introduction, school introduction, menu, etc.","textdomain":"vk-blocks","attributes":{"vk_staff_text_name":{"type":"string","source":"html","selector":"h3"},"vk_staff_text_caption":{"type":"string","source":"html","selector":"p.vk_staff_text_caption"},"vk_staff_text_role":{"type":"string","source":"html","selector":"p.vk_staff_text_role"},"vk_staff_text_profileTitle":{"type":"string","source":"html","selector":"h4"},"vk_staff_text_profileText":{"type":"string","source":"html","selector":"p.vk_staff_text_profileText"},"vk_staff_photo_image":{"type":"string","default":""},"vk_staff_photo_image_alt":{"type":"string","default":"Profile Picture"},"vk_staff_layout":{"type":"string","default":"default"},"vk_staff_nameColor":{"type":"string"},"vk_staff_captionColor":{"type":"string"},"vk_staff_positionColor":{"type":"string"},"vk_staff_profileTitleColor":{"type":"string"},"vk_staff_profileTextColor":{"type":"string"},"vk_staff_photoBorder":{"type":"string","default":"default"},"vk_staff_fontFamily":{"type":"string","default":"0"}},"supports":{"className":true}}'),Qr=Kr.name,el={icon:(0,P.createElement)((function(e){return G.createElement("svg",Wr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Lr||(Lr=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 4.5H2a.5.5 0 0 0-.5.5v8.28H0V5c0-1.1.9-2 2-2h20a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H10.04l-.44-1.41.08-.09H22a.5.5 0 0 0 .5-.5V5a.5.5 0 0 0-.5-.5zM8.1 11.9H12v1.2H8.62a1.7 1.7 0 0 0-.53-1.2zm-4.12 0c-.2.18-.37.42-.47.69l-.18.51H3v-1.2h.98zM12 10.6H3V9.4h9v1.2zM3 8h2V6H3v2zm6 0H7V6h2v2zm2 0h2V6h-2v2zm6.5 4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.5 3.4c0 .33-.31.6-.7.6h-5.6c-.39 0-.7-.27-.7-.6v-.6c0-1 .94-1.8 2.1-1.8.14 0 .26.04.4.09.22.07.5.16 1 .16s.79-.1 1-.16c.15-.05.27-.09.4-.09 1.16 0 2.1.8 2.1 1.8v.6z",fill:"#000"})),Ur||(Ur=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Dr||(Dr=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{vk_staff_text_name:J,vk_staff_text_caption:Z,vk_staff_text_role:q,vk_staff_text_profileTitle:W,vk_staff_text_profileText:j,vk_staff_photo_image:U,vk_staff_layout:"default",vk_staff_nameColor:"inherit",vk_staff_captionColor:"inherit",vk_staff_positionColor:"inherit",vk_staff_profileTitleColor:"inherit",vk_staff_profileTextColor:"inherit",vk_staff_photoBorder:"default"}},edit:function(e){var t,n=e.attributes,o=e.setAttributes,a=e.className,r=e.clientId,l="vk_staff_name-color-".concat(r),c="vk_staff_caption-color-".concat(r),i="vk_staff_position-color-".concat(r),s="vk_staff_profileTitle-color-".concat(r),u="vk_staff_profileText-color-".concat(r),m=n.vk_staff_layout,p=n.vk_staff_nameColor,v=n.vk_staff_captionColor,f=n.vk_staff_positionColor,b=n.vk_staff_profileTitleColor,d=n.vk_staff_profileTextColor,k=n.vk_staff_photo_image_alt,_=n.vk_staff_photoBorder,g=n.vk_staff_text_name,y=n.vk_staff_text_caption,E=n.vk_staff_text_role,x=n.vk_staff_text_profileTitle,C=n.vk_staff_text_profileText,N=n.vk_staff_photo_image,T=n.vk_staff_fontFamily,B=De()("vk_staff",(h(t={},a,!!a),h(t,"vk_staff-layout-".concat(m),!!m),t)),w=(0,Q.useBlockProps)({className:B}),S=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(_),!!_)),I=De();I="1"===T?De()("vk_staff_text",I,"vk_staff-headingFont-serif"):De()("vk_staff_text",I);var R={},A="";void 0!==p&&(A+=" has-text-color",pe(p)?R={color:"".concat(p)}:A+=" has-".concat(p,"-color"));var O={},z="";void 0!==v&&(z+=" has-text-color",pe(v)?O={color:"".concat(v)}:z+=" has-".concat(v,"-color"));var F={},j="";void 0!==f&&(j+=" has-text-color",pe(f)?F={color:"".concat(f)}:j+=" has-".concat(f,"-color"));var H={},L="";void 0!==b&&(L+=" has-text-color",pe(b)?H={color:"".concat(b)}:L+=" has-".concat(b,"-color"));var U={},D="";return void 0!==d&&(D+=" has-text-color",pe(d)?U={color:"".concat(d)}:D+=" has-".concat(d,"-color")),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Layout","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:m,onChange:function(e){return o({vk_staff_layout:e})},options:[{value:"default",label:(0,M.__)("Default","vk-blocks")},{value:"imageLeft",label:(0,M.__)("Image left","vk-blocks")}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Image border","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:_,onChange:function(e){return o({vk_staff_photoBorder:e})},options:[{value:"default",label:(0,M.__)("Default","vk-blocks")},{value:"none",label:(0,M.__)("None","vk-blocks")}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Alt text","vk-blocks")},(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("Set the alt text for profile image","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:k,onChange:function(e){return o({vk_staff_photo_image_alt:e})}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:l,label:(0,M.__)("Staff name","vk-blocks")},(0,P.createElement)(Pe,Ne({id:l,schema:"vk_staff_nameColor"},e))),(0,P.createElement)(ne.BaseControl,{id:c,label:(0,M.__)("Name caption","vk-blocks")},(0,P.createElement)(Pe,Ne({id:c,schema:"vk_staff_captionColor"},e))),(0,P.createElement)(ne.BaseControl,{id:i,label:(0,M.__)("Role position","vk-blocks")},(0,P.createElement)(Pe,Ne({id:i,schema:"vk_staff_positionColor"},e))),(0,P.createElement)(ne.BaseControl,{id:s,label:(0,M.__)("Profile title","vk-blocks")},(0,P.createElement)(Pe,Ne({id:s,schema:"vk_staff_profileTitleColor"},e))),(0,P.createElement)(ne.BaseControl,{id:u,label:(0,M.__)("Profile text","vk-blocks")},(0,P.createElement)(Pe,Ne({id:u,schema:"vk_staff_profileTextColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Heading Font","vk-blocks")},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Font","vk-blocks"),selected:T,options:[{label:(0,M.__)("Unspecified","vk-blocks"),value:"0"},{label:(0,M.__)("minchoBody","vk-blocks"),value:"1"}],onChange:function(e){return o({vk_staff_fontFamily:e})}}))),(0,P.createElement)("div",w,(0,P.createElement)("div",{className:I},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_staff_text_name"+A,style:R,onChange:function(e){return o({vk_staff_text_name:e})},value:g,placeholder:(0,M.__)("Your Name","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_caption"+z,style:O,onChange:function(e){return o({vk_staff_text_caption:e})},value:y,placeholder:(0,M.__)("Caption","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_role"+j,style:F,onChange:function(e){return o({vk_staff_text_role:e})},value:E,placeholder:(0,M.__)("Role position","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_staff_text_profileTitle"+L,style:H,onChange:function(e){return o({vk_staff_text_profileTitle:e})},value:x,placeholder:(0,M.__)("Profile title","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_profileText"+D,style:U,onChange:function(e){return o({vk_staff_text_profileText:e})},value:C,placeholder:(0,M.__)("Profile text","vk-blocks")})),(0,P.createElement)("div",{className:S},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return o({vk_staff_photo_image:e.sizes.full.url})},type:"image",value:N,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:N?"image-button":"button button-large"},N?(0,P.createElement)("img",{className:"vk_staff_photo_image",src:N,alt:k}):(0,M.__)("Select image","vk-blocks"))}}))))},save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=n.vk_staff_fontFamily,g=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),y=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k)),E=De();E="1"===_?De()("vk_staff_text",E,"vk_staff-headingFont-serif"):De()("vk_staff_text",E);var x={},C="";void 0!==u&&(C+=" has-text-color",pe(u)?x={color:"".concat(u)}:C+=" has-".concat(u,"-color"));var N={},T="";void 0!==m&&(T+=" has-text-color",pe(m)?N={color:"".concat(m)}:T+=" has-".concat(m,"-color"));var B={},w="";void 0!==p&&(w+=" has-text-color",pe(p)?B={color:"".concat(p)}:w+=" has-".concat(p,"-color"));var S={},I="";void 0!==v&&(I+=" has-text-color",pe(v)?S={color:"".concat(v)}:I+=" has-".concat(v,"-color"));var R={},A="";return void 0!==f&&(A+=" has-text-color",pe(f)?R={color:"".concat(f)}:A+=" has-".concat(f,"-color")),(0,P.createElement)("div",Q.useBlockProps.save({className:g}),(0,P.createElement)("div",{className:E},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name"+C,style:x,value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption"+T,style:N,value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role"+w,style:B,value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle"+I,style:S,value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText"+A,style:R,value:s})),b&&(0,P.createElement)("div",{className:y},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))},deprecated:$r},tl=window.lodash;(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/heading-style",(function(e){var t;return t=e.name,["core/heading"].includes(t)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e})),(0,g.registerBlockStyle)("core/heading",[{name:"vk-heading-default",label:(0,M.__)("Default","vk-blocks"),isDefault:!0},{name:"vk-heading-plain",label:(0,M.__)("Plain","vk-blocks")},{name:"vk-heading-background_fill_lightgray",label:(0,M.__)("Background fill lightgray","vk-blocks")},{name:"vk-heading-double_black",label:(0,M.__)("Double border top and bottom black","vk-blocks")},{name:"vk-heading-double_bottomborder_black",label:(0,M.__)("Double border bottom black","vk-blocks")},{name:"vk-heading-solid_black",label:(0,M.__)("Solid border top and bottom black","vk-blocks")},{name:"vk-heading-solid_bottomborder_black",label:(0,M.__)("Solid border bottom black","vk-blocks")},{name:"vk-heading-dotted_bottomborder_black",label:(0,M.__)("Dotted border bottom black","vk-blocks")},{name:"vk-heading-both_ends",label:(0,M.__)("Both ends","vk-blocks")},{name:"vk-heading-brackets_black",label:(0,M.__)("Brackets black","vk-blocks")}]);var nl=function(e){return["core/group"].includes(e)};(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/group-style",(function(e){return nl(e.name)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e}));var ol=(0,Yt.createHigherOrderComponent)((function(e){var t="";return function(n){return nl(n.name)&&n.isSelected?(t=n.attributes.color?n.attributes.color:"#fffd6b",(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,n),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Border Color","vk-blocks"),initialOpen:!1,className:"group-border-color-controle"},(0,P.createElement)(Q.ColorPalette,{value:t,disableCustomColors:!0,onChange:function(e){var o=function(e){switch(e){case"#f78da7":return"vk-has-pale-pink-color";case"#cf2e2e":return"vk-has-vivid-red-color";case"#ff6900":return"vk-has-luminous-vivid-orange-color";case"#fcb900":return"vk-has-luminous-vivid-amber-color";case"#7bdcb5":return"vk-has-light-green-cyan-color";case"#00d084":return"vk-has-vivid-green-cyan-color";case"#8ed1fc":return"vk-has-pale-cyan-blue-color";case"#0693e3":return"vk-has-vivid-cyan-blue-color";case"#9b51e0":return"vk-has-vivid-purple-color";case"#eee":return"vk-has-very-light-gray-color";case"#abb8c3":return"vk-has-cyan-bluish-gray-color";case"#313131":return"vk-has-very-dark-gray-color";case"#ffffff":return"vk-has-white-color"}}(e);if(n.attributes.className){var a=n.attributes.className,r=(a=a.split(" ")).filter((function(e){return-1===e.indexOf("vk-has-")}));r.push(o),o=r.join(" ")}t=e,n.setAttributes({className:o,color:e})}}))))):(0,P.createElement)(e,n)}}),"addMyCustomBlockControls");(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/group-style",ol),(0,g.registerBlockStyle)("core/group",[{name:"vk-group-solid",label:(0,M.__)("Solid","vk-blocks")},{name:"vk-group-solid-roundcorner",label:(0,M.__)("Solid Roundcorner","vk-blocks")},{name:"vk-group-dotted",label:(0,M.__)("Dotted","vk-blocks")},{name:"vk-group-dashed",label:(0,M.__)("Dashed","vk-blocks")},{name:"vk-group-double",label:(0,M.__)("Double","vk-blocks")},{name:"vk-group-stitch",label:(0,M.__)("Stitch","vk-blocks")},{name:"vk-group-top-bottom-border",label:(0,M.__)("Border Top Bottom","vk-blocks")},{name:"vk-group-shadow",label:(0,M.__)("Shadow","vk-blocks")},{name:"vk-group-alert-info",label:(0,M.__)("Info","vk-blocks")},{name:"vk-group-alert-success",label:(0,M.__)("Success","vk-blocks")},{name:"vk-group-alert-warning",label:(0,M.__)("Warning","vk-blocks")},{name:"vk-group-alert-danger",label:(0,M.__)("Danger","vk-blocks")}]);var al=function(e){return["core/list"].includes(e)};(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/list-style",(function(e){return al(e.name)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e}));var rl=(0,Yt.createHigherOrderComponent)((function(e){var t="";return function(n){var o=(0,ze.select)("core/block-editor").getSettings().colors;return function(e){var t=[];return e.forEach((function(e){t.push(e.slug)})),!!["black","cyan-bluish-gray","white","pale-pink","vivid-red","luminous-vivid-orange","luminous-vivid-amber","light-green-cyan","pale-cyan-blue","vivid-cyan-blue","vivid-purple"].every((function(e){return-1!==t.indexOf(e)}))}(o)&&al(n.name)&&n.isSelected?(t=n.attributes.color?n.attributes.color:"#fffd6b",(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,n),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("List Icon Color","vk-blocks"),initialOpen:!1,className:"list-color-controle"},(0,P.createElement)(Q.ColorPalette,{value:t,disableCustomColors:!0,onChange:function(e){var a=(0,Q.getColorObjectByColorValue)(o,e),r=n.attributes.className&&n.attributes.className.split(" "),l=r||[];r&&(l=r.filter((function(e){return!e.match(/vk-has-(.*)-color/)}))),void 0!==e&&l.push("vk-has-".concat(a.slug,"-color"));var c=l.join(" ");t=e,n.setAttributes({className:c,color:e})}}))))):(0,P.createElement)(e,n)}}),"addMyCustomBlockControls");(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/list-style",rl),(0,g.registerBlockStyle)("core/list",[{name:"vk-default",label:(0,M.__)("Default","vk-blocks"),isDefault:!0},{name:"vk-arrow-mark",label:(0,M.__)("Arrow","vk-blocks")},{name:"vk-triangle-mark",label:(0,M.__)("Triangle","vk-blocks")},{name:"vk-check-mark",label:(0,M.__)("Check","vk-blocks")},{name:"vk-check-square-mark",label:(0,M.__)("Check Square","vk-blocks")},{name:"vk-check-circle-mark",label:(0,M.__)("Check Circle","vk-blocks")},{name:"vk-handpoint-mark",label:(0,M.__)("Handpoint","vk-blocks")},{name:"vk-pencil-mark",label:(0,M.__)("Pencil","vk-blocks")},{name:"vk-smile-mark",label:(0,M.__)("Smile","vk-blocks")},{name:"vk-frown-mark",label:(0,M.__)("Frown","vk-blocks")},{name:"vk-numbered-circle-mark",label:(0,M.__)("Numbered Circle","vk-blocks")},{name:"vk-numbered-square-mark",label:(0,M.__)("Numbered Square","vk-blocks")}]),(0,g.registerBlockStyle)("core/image",[{name:"vk-image-rounded",label:(0,M.__)("Rounded02","vk-blocks")},{name:"vk-image-rounded",label:(0,M.__)("Rounded02","vk-blocks")},{name:"vk-image-border",label:(0,M.__)("Border","vk-blocks")},{name:"vk-image-photoFrame",label:(0,M.__)("Photo frame","vk-blocks")},{name:"vk-image-photoFrame-tilt-right",label:(0,M.__)("Photo frame Tilt Right","vk-blocks")},{name:"vk-image-photoFrame-tilt-left",label:(0,M.__)("Photo frame Tilt Left","vk-blocks")},{name:"vk-image-shadow",label:(0,M.__)("Shadow","vk-blocks")},{name:"vk-image-wave01",label:(0,M.__)("Wave01","vk-blocks")},{name:"vk-image-wave02",label:(0,M.__)("Wave02","vk-blocks")},{name:"vk-image-wave03",label:(0,M.__)("Wave03","vk-blocks")},{name:"vk-image-wave04",label:(0,M.__)("Wave04","vk-blocks")}]),(0,g.registerBlockStyle)("core/table",[{name:"vk-table-border-top-bottom",label:(0,M.__)("Border Top Bottom","vk-blocks")},{name:"vk-table-border",label:(0,M.__)("Border","vk-blocks")},{name:"vk-table-border-stripes",label:(0,M.__)("Border / Stripes","vk-blocks")}]);var ll=function(e,t){return-1!==e.indexOf(t)},cl=["vk-blocks/breadcrumb","vk-blocks/child-page","vk-blocks/post-list","vk-blocks/page-content","vk-blocks/ancestor-page-list","vk-blocks/share-button","vk-blocks/child-page-index","vk-blocks/contact-section","vk-blocks/page-list-ancestor","vk-blocks/sitemap"];(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/hidden-extension",(0,Yt.createHigherOrderComponent)((function(e){return function(t){if(k=t.name,_=void 0!==["core","vk-blocks"].find((function(e){return ll(k,e)})),void 0!==["vk-blocks/card-item","vk-blocks/icon-card-item","vk-blocks/icon","vk-blocks/select-post-list-item"].find((function(e){return ll(k,e)}))&&(_=!1),(0,g.hasBlockSupport)(k,"customClassName",!0)||(_=!1),_){t.attributes.vkb_hidden_xl&&!t.attributes.vkb_hidden_xxl&&(t.attributes.vkb_hidden_xxl=!0,t.attributes.vkb_hidden_xl_v2=!0,t.attributes.vkb_hidden_xl=!1);var n=t.name,o=t.attributes,a=t.setAttributes,r=o.vkb_hidden,l=o.vkb_hidden_xxl,c=o.vkb_hidden_xl_v2,i=o.vkb_hidden_xl,s=o.vkb_hidden_lg,u=o.vkb_hidden_md,m=o.vkb_hidden_sm,p=o.vkb_hidden_xs,v=o.className;(0,P.useEffect)((function(){var e;cl.includes(n)&&(r||l||c||i||s||u||m||p)&&a({className:De()((e={},h(e,v,v),h(e,"vk_hidden",r),h(e,"vk_hidden-xxl",l),h(e,"vk_hidden-xl-v2",c),h(e,"vk_hidden-xl",i),h(e,"vk_hidden-lg",s),h(e,"vk_hidden-md",u),h(e,"vk_hidden-sm",m),h(e,"vk_hidden-xs",p),e)),vkb_hidden:void 0,vkb_hidden_xxl:void 0,vkb_hidden_xl_v2:void 0,vkb_hidden_xl:void 0,vkb_hidden_lg:void 0,vkb_hidden_md:void 0,vkb_hidden_sm:void 0,vkb_hidden_xs:void 0}),/vk_hidden-xl_v2/.test(v)&&a({className:v.replace(/vk_hidden-xl_v2/,"vk_hidden-xl-v2")})}),[]);var f=v?v.split(" "):[],b=function(e){var t=[];return f.forEach((function(n){n===e&&t.push(e)})),t[0]===e},d=function(e,t){if(e)f.push(t);else{var n=f.indexOf(t);f.splice(n,1)}a({className:f.join(" ")})};return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,t),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Hidden Settings","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Hidden at screen size","vk-blocks"),id:"vk_hiddenControl-hiddenScreenSize"},(0,P.createElement)("p",null,(0,M.__)("Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : all )","vk-blocks"),checked:b("vk_hidden"),onChange:function(e){d(e,"vk_hidden")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xs )","vk-blocks"),checked:b("vk_hidden-xs"),onChange:function(e){d(e,"vk_hidden-xs")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : sm )","vk-blocks"),checked:b("vk_hidden-sm"),onChange:function(e){d(e,"vk_hidden-sm")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : md )","vk-blocks"),checked:b("vk_hidden-md"),onChange:function(e){d(e,"vk_hidden-md")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : lg )","vk-blocks"),checked:b("vk_hidden-lg"),onChange:function(e){d(e,"vk_hidden-lg")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xl )","vk-blocks"),checked:b("vk_hidden-xl-v2"),onChange:function(e){d(e,"vk_hidden-xl-v2")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xxl )","vk-blocks"),checked:b("vk_hidden-xxl"),onChange:function(e){d(e,"vk_hidden-xxl")}}),(0,P.createElement)("p",null,(0,M.__)("If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.","vk-blocks"))))))}var k,_;return(0,P.createElement)(e,t)}}),"addHiddenSection")),(0,Gt.addFilter)("editor.BlockListBlock","vk-blocks/hidden-extension",(0,Yt.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes.className,o=n?n.split(" "):[],a=/vk_hidden/.test(o)?"vk_edit_hidden_warning":"",r=-1!==o.indexOf("vk_hidden")?a+" vk_edit_hidden_all":a,l=De()(r,t.className);return(0,P.createElement)(e,Ne({},t,{className:l}))}}),"addHiddenWarning"));var il,sl,ul=window.wp.richText;function ml(){return ml=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},ml.apply(this,arguments)}var pl=function(e){return G.createElement("svg",ml({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),il||(il=G.createElement("path",{d:"M20 4.804c-.001-.443-.435-.803-.971-.804H12.58c-.187 0-.36.043-.508.118-.277.142-.463.395-.463.685V12.5L20 12.5V4.804ZM19.955 15.32v-1.56H12.04c.504.521.64 1.368.19 2.028.761.625 1.903 1.869 1.902 3.712l3.254.001c0-2.765 2.57-4.182 2.57-4.182ZM17.098 22.015l-2.403 1.04-.097-2.555h2.5v1.515ZM10.89 14.778l-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),sl||(sl=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))};function vl(e,t){var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map((function(e){return parseInt(e,16)}))),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map((function(e){return 17*parseInt(e,16)}))),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var fl,bl,dl,kl="vk-blocks/highlighter",_l=function(e){var t=e.color,n=e.value,o=e.onChange;t=function(e){return void 0===e&&(e="#fffd6b"),e}(t),o((0,ul.applyFormat)(n,{type:kl,attributes:{data:t,style:"background: linear-gradient(transparent 60%,".concat(vl(t,.7)," 0);")}}))};function hl(){return hl=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},hl.apply(this,arguments)}(0,ul.registerFormatType)(kl,{title:(0,M.__)("Highlighter","vk-blocks"),tagName:"span",className:"vk_highlighter",attributes:{data:"data-color",style:"style"},edit:function(e){var t,n=e.value,o=e.isActive,a=e.onChange,r=e.contentRef,l="primary";if(o){var c=(0,ul.getActiveFormat)(n,kl);t=c.attributes.data}var i={};if(t){var s=vl(t,.7);i={color:"initial",background:"linear-gradient(transparent 60%, ".concat(s," 0)")}}var u=(0,ul.useAnchorRef)({ref:r,value:n}),m=we((0,P.useState)(!1),2),p=m[0],v=m[1],f=(0,P.useCallback)((function(){return v(!0)}),[v]),b=(0,P.useCallback)((function(){return v(!1)}),[v]);return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichTextShortcut,{type:l,character:"h",onUse:function(){return v(!0)}}),(0,P.createElement)(Q.RichTextToolbarButton,{title:(0,M.__)("Highlighter","vk-blocks"),onClick:function(){void 0===t&&_l({heightlightColor:t,value:n,onChange:a}),v(!0),f(!0)},shortcutType:l,shortcutCharacter:"h",className:"format-library-text-color-button",isActive:o,icon:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.Icon,{icon:pl,style:i}))}),p&&(0,P.createElement)(ne.Popover,{value:n,className:"vk-blocks-format-popover components-inline-color-popover",anchorRef:u,onClose:b},(0,P.createElement)(Q.ColorPalette,{value:t,onChange:function(e){e?_l({color:e,value:n,onChange:a}):a((0,ul.removeFormat)(n,kl)),v(!1)}})))}});var gl,yl,El,xl=function(e){return G.createElement("svg",hl({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),fl||(fl=G.createElement("path",{clipRule:"evenodd",d:"M9.303 12.137c.242.334.35.755.315 1.146l2.271-.005c1.006 0 1.663.859 1.61 1.722h3.121l1.12 3h2.25L14.5 4h-2l-3.197 8.137zM11.12 13l2.38-6.33L15.88 13h-4.76z"})),bl||(bl=G.createElement("path",{d:"m11.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L7 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19z"})),dl||(dl=G.createElement("path",{d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152z",fill:"#D8141C"})))},Cl="vk-blocks/inline-font-size";function Nl(){return Nl=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},Nl.apply(this,arguments)}(0,ul.registerFormatType)(Cl,{title:(0,M.__)("Inline font size","vk-blocks"),tagName:"span",className:"vk_inline-font-size",attributes:{data:"data-fontSize",style:"style"},edit:function(e){var t,n,o=e.value,a=e.isActive,r=e.onChange,l=e.contentRef;if(a){var c=(0,ul.getActiveFormat)(o,Cl);t=c.attributes.data,n=c.attributes.style.replace("font-size:",""),void 0===t&&n&&(t=n)}var i=(0,ul.useAnchorRef)({ref:l,value:o}),s=we((0,P.useState)(!1),2),u=s[0],m=s[1],p=(0,P.useCallback)((function(){return m(!0)}),[m]),v=(0,P.useCallback)((function(){return m(!1)}),[m]),f=!(0,tl.isEmpty)(o)||!t;if(!f&&!a)return null;var b=[{name:(0,M.__)("Small","vk-blocks"),slug:"small",size:"12px"},{name:(0,M.__)("Normal","vk-blocks"),slug:"normal",size:"16px"},{name:(0,M.__)("Big","vk-blocks"),slug:"big",size:"18px"},{name:(0,M.__)("Extra big","vk-blocks"),slug:"extra-big",size:"21px"}],d=parseInt(n)||16;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichTextToolbarButton,{title:(0,M.__)("Inline Font Size","vk-blocks"),onClick:f?p:function(){return r((0,ul.removeFormat)(o,Cl))},shortcutType:"primary",shortcutCharacter:"h",className:"format-library-text-color-button",isActive:a,icon:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.Icon,{icon:xl,style:{width:"24px",height:"24px"}}))}),u&&(0,P.createElement)(ne.Popover,{className:"vk-blocks-format-popover components-inline-color-popover",anchorRef:i,onClose:v},(0,P.createElement)("div",{style:{width:"200px"}},(0,P.createElement)(ne.FontSizePicker,{fontSizes:b,value:t,fallbackFontSize:void 0!==window.wpVersion&&null!==window.wpVersion&&y(window.wpVersion,"5.9")<0&&d,withSlider:void 0!==window.wpVersion&&null!==window.wpVersion&&y(window.wpVersion,"5.9")<0,onChange:function(e){r(e?(0,ul.applyFormat)(o,{type:Cl,attributes:{data:"".concat(e),style:"font-size: ".concat(e,";")}}):(0,ul.removeFormat)(o,Cl))}}),(0,P.createElement)(ne.Button,{onClick:function(){m(!1)},isSmall:!0,isSecondary:!0,style:{marginTop:"16px",padding:"0 16px",height:"30px"}},(0,M.__)("Apply","vk-blocks")))))}});var Tl,Bl,wl=function(e){return G.createElement("svg",Nl({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),gl||(gl=G.createElement("path",{d:"M4 11.884V4h1.5v7.506l-.467.002h-.005A1.609 1.609 0 0 0 4 11.884ZM11.947 16.117l.818.818 4.96-4.962-4.96-4.961-1.027 1.026 3.21 3.21H6.725v.253l.296-.001c.847 0 1.378.563 1.545 1.2h6.38l-2.466 2.465c-.05.297-.187.588-.426.838l-.108.114ZM20.08 4v16h-1.5V4h1.5Z"})),yl||(yl=G.createElement("path",{d:"m10.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),El||(El=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))};function Sl(){return Sl=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},Sl.apply(this,arguments)}(0,ul.registerFormatType)("vk-blocks/nowrap",{title:(0,M.__)("No wrap","vk-blocks"),tagName:"span",className:"text-nowrap",edit:function(e){var t=e.value,n=e.isActive;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichTextToolbarButton,{icon:wl,title:(0,M.__)("No wrap","vk-blocks"),onClick:function(){e.onChange((0,ul.toggleFormat)(t,{type:"vk-blocks/nowrap"}))},isActive:n}))}});var Il=function(e){return G.createElement("svg",Sl({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Tl||(Tl=G.createElement("path",{d:"M20 2v7.59H6.78l3.2 3.2-.48.5h-.88c.07-.83-.5-1.79-1.6-1.79h-.38L4 8.86 8.96 3.9 10 4.93l-3.21 3.2H18.5V2H20zm-9.11 12.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Bl||(Bl=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))},Rl=["xs","sm","md","lg","xl","xxl"];(0,ul.registerFormatType)("vk-blocks/responsive-br",{title:(0,M.__)("Responsive Br","vk-blocks"),tagName:"br",className:null,edit:function(e){var t=e.onChange,n=e.value;return(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(ne.ToolbarGroup,null,(0,P.createElement)(ne.ToolbarItem,null,(function(e){return(0,P.createElement)(ne.DropdownMenu,{icon:(0,P.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)("path",{d:"M20 2v7.59H6.78l3.2 3.2-.48.5h-.88c.07-.83-.5-1.79-1.6-1.79h-.38L4 8.86 8.96 3.9 10 4.93l-3.21 3.2H18.5V2H20zM10.89 14.78H7.62a.11.11 0 00-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 01-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 000 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"}),(0,P.createElement)("path",{d:"M7.02 13H5.03a.11.11 0 00-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 01-.2 0l-1.7-4.85a.11.11 0 01.1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 00-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),toggleProps:e,label:(0,M.__)("Responsive BR","vk-blocks"),controls:Rl.map((function(e){return{title:(0,M.__)("Responsive BR ","vk-blocks")+"( ".concat(e," )"),icon:(0,P.createElement)(Il,null),onClick:function(){!function(e,t,n){t((0,ul.insert)(e,"[br-".concat(n,"]"),e.start,e.end))}(n,t,e)}}}))})}))))}});var Al=(0,P.createElement)(ne.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)(ne.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0h16v1.5H8V0zm2.76 22.5H24V24H9.9c.55-.29.88-.89.86-1.5zm.75-5.92L15.93 21l5.3-5.3-1.03-1.03-3.55 3.55V5.78l3.21 3.2 1.03-1.02-2.48-2.48L15.93 3l-4.96 4.96L11.99 9l3.21-3.21v12.44l-2.79-2.79c-.07.2-.19.4-.35.57l-.55.58z"}),(0,P.createElement)(ne.Path,{d:"M10.89 14.78H7.62a.11.11 0 00-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 01-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 000 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z"}),(0,P.createElement)(ne.Path,{d:"M7.02 13H5.03a.11.11 0 00-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 01-.2 0l-1.7-4.85a.11.11 0 01.1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 00-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),Ol=(0,P.createElement)(ne.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)(ne.Path,{d:"M23.5 22h-12v-1.5h12V22ZM18.3 2.779l3.55 3.551 1.027-1.026L17.573 0 12.27 5.304l1.027 1.026 3.55-3.55V17.5H18.3V2.78ZM11.39 14.778l-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.2 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6.5 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.65c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"}),(0,P.createElement)(ne.Path,{d:"m7.522 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.608c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})),zl=(0,P.createElement)(ne.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)(ne.Path,{d:"m11.39 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.2 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6.5 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.65c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"}),(0,P.createElement)(ne.Path,{d:"m7.522 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.608c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"}),(0,P.createElement)(ne.Path,{d:"M11.5 0h12v1.5h-12V0ZM16.7 19.221l-3.55-3.551-1.027 1.026L17.427 22l5.303-5.304-1.027-1.026-3.55 3.551V4.5H16.7v14.721Z"}));function Pl(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Be(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.")}()}var Ml=function(e,t){return-1!==e.indexOf(t)};function Fl(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 jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hl=[{title:(0,M.__)("Top lg","vk-blocks"),marginClass:"vk_block-margin-lg--margin-top",flag:"top"},{title:(0,M.__)("Top md","vk-blocks"),marginClass:"vk_block-margin-md--margin-top",flag:"top"},{title:(0,M.__)("Top sm","vk-blocks"),marginClass:"vk_block-margin-sm--margin-top",flag:"top"},{title:(0,M.__)("Top 0","vk-blocks"),marginClass:"vk_block-margin-0--margin-top",flag:"top"}],Ll=[{title:(0,M.__)("Bottom 0","vk-blocks"),marginClass:"vk_block-margin-0--margin-bottom",flag:"bottom"},{title:(0,M.__)("Bottom sm","vk-blocks"),marginClass:"vk_block-margin-sm--margin-bottom",flag:"bottom"},{title:(0,M.__)("Bottom md","vk-blocks"),marginClass:"vk_block-margin-md--margin-bottom",flag:"bottom"},{title:(0,M.__)("Bottom lg","vk-blocks"),marginClass:"vk_block-margin-lg--margin-bottom",flag:"bottom"}],Ul=[].concat(Hl,Ll),Dl=["vk-blocks/breadcrumb","vk-blocks/child-page","vk-blocks/post-list","vk-blocks/page-content","vk-blocks/share-button","vk-blocks/child-page-index","vk-blocks/contact-section","vk-blocks/page-list-ancestor","vk-blocks/sitemap"];function Vl(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 ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/margin-extension",(function(e){return Dl.includes(e.name)&&(e.attributes=jl(jl({},e.attributes),{marginTop:{type:"string"},marginBottom:{type:"string"}})),e})),(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/margin-extension",(0,Yt.createHigherOrderComponent)((function(e){return function(t){var n=t.name,o=t.attributes,a=t.setAttributes,r=o.marginTop,l=o.marginBottom,c=o.className,i=Hl,s=Ll,u=Ul,m=c||"",p=/vk_block-margin-(0|sm|md|lg)--margin-top/,v=/vk_block-margin-(0|sm|md|lg)--margin-bottom/,f=Dl,b=p.test(r),d=v.test(l);(0,P.useEffect)((function(){var e;f.includes(n)&&(b||d)&&(a({className:De()((e={},h(e,m,m),h(e,r,b),h(e,l,d),e))}),a({marginTop:void 0}),a({marginBottom:void 0}))}),[]);var k=m?m.split(" "):[],_=k.filter((function(e){return e.match(p)})),y=k.filter((function(e){return e.match(v)})),E=_.slice(-1)[0],x=y.slice(-1)[0],C=(0,tl.find)(i,(function(e){return e.marginClass===E})),N=(0,tl.find)(s,(function(e){return e.marginClass===x}));return function(e){for(var t=e.blockName,n=e.addExclude,o=void 0!==["core","vk-blocks"].find((function(e){return Ml(t,e)})),a=(0,g.getBlockTypes)(),r=a.filter((function(e){return!1===e.supports.customClassName})).map((function(e){return e.name})),l=[],c=0;c<a.length;c++)a[c].name.match(/core/)&&"save"===a[c].save.name&&l.push(a[c]);return void 0!==[].concat(["core/archives","core/audio","core/calendar","core/categories","core/latest-comments","core/latest-posts","core/page-list","core/pattern","core/block","core/rss","core/search","core/social-link","core/tag-cloud","core/site-logo","core/site-title","core/site-tagline","core/template-part","core/post-title","core/post-excerpt","core/post-featured-image","core/post-content","core/post-author","core/post-date","core/post-terms","core/post-navigation-link","core/query-pagination-next","core/query-pagination-numbers","core/query-pagination-previous","core/post-comments","core/loginout","core/term-description","core/query-title"],Pl(r),Pl(n)).find((function(e){return Ml(t,e)}))&&(o=!1),o}({blockName:n,addExclude:["vk-blocks/slider-item","vk-blocks/card-item","vk-blocks/icon-card-item","vk-blocks/select-post-list-item"]})?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,t),(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(ne.ToolbarDropdownMenu,{icon:(0,P.createElement)(P.Fragment,null,C&&!N&&Ol,!C&&N&&zl,C&&N&&Al,!C&&!N&&Al,C||N?(0,P.createElement)("span",{style:{marginLeft:"8px"}},C&&C.title,C&&N&&(0,P.createElement)("br",null),N&&N.title):null),label:(0,M.__)("Margin the block","vk-blocks"),controls:u.map((function(e){var t=e.marginClass,n=e.flag,o=E===t||x===t;return jl(jl({},e),{},{isActive:o,icon:"top"===n?Ol:zl,onClick:function(){var e=function(e,t,n){if(void 0===n)return e.push(t),e;if(e.includes(t)){var o=e.indexOf(t);return e.splice(o,1),e}var a=e.indexOf(n);return e.splice(a,1),e.push(t),e}(k,t,"top"===n?E:x);a({className:e.join(" ")})}})}))}))):(0,P.createElement)(e,t)}}),"addMarginSection"));var Wl=[],Jl=[e,o,a,r,l,c,i,s,u,m,p,v,f,b,d,k,_,t],Zl=function(){return Jl.concat(Wl)},Gl=function(e){if(e){var t=e.metadata,n=e.settings,o=e.name;void 0!==window.wpVersion&&null!==window.wpVersion&&y(window.wpVersion,"5.5")<0?(delete t.name,n=ql(ql({},n),t)):t&&(0,g.unstable__bootstrapServerSideBlockDefinitions)(h({},o,t)),"function"!=typeof getBlockSettingsFromMetadata?(0,g.registerBlockType)(o,n):t&&(0,g.registerBlockType)(t,n)}};!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();e.forEach(Gl)}()}()}();
|
1 |
+
!function(){var e={184:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var c in n)o.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},790:function(e,t,n){"use strict";var o,a=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var l=n(960),c=new Map([[l.ElementType.Tag,1],[l.ElementType.Script,1],[l.ElementType.Style,1],[l.ElementType.Directive,1],[l.ElementType.Text,3],[l.ElementType.CDATA,4],[l.ElementType.Comment,8],[l.ElementType.Root,9]]),i=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=c.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=i;var s=function(e){function t(t,n){var o=e.call(this,t)||this;return o.data=n,o}return a(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(i);t.DataNode=s;var u=function(e){function t(t){return e.call(this,l.ElementType.Text,t)||this}return a(t,e),t}(s);t.Text=u;var m=function(e){function t(t){return e.call(this,l.ElementType.Comment,t)||this}return a(t,e),t}(s);t.Comment=m;var p=function(e){function t(t,n){var o=e.call(this,l.ElementType.Directive,n)||this;return o.name=t,o}return a(t,e),t}(s);t.ProcessingInstruction=p;var v=function(e){function t(t,n){var o=e.call(this,t)||this;return o.children=n,o}return a(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(i);t.NodeWithChildren=v;var f=function(e){function t(t){return e.call(this,l.ElementType.Root,t)||this}return a(t,e),t}(v);t.Document=f;var b=function(e){function t(t,n,o,a){void 0===o&&(o=[]),void 0===a&&(a="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var r=e.call(this,a,o)||this;return r.name=t,r.attribs=n,r}return a(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(v);function d(e){return(0,l.isTag)(e)}function k(e){return e.type===l.ElementType.CDATA}function _(e){return e.type===l.ElementType.Text}function h(e){return e.type===l.ElementType.Comment}function g(e){return e.type===l.ElementType.Directive}function y(e){return e.type===l.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),_(e))n=new u(e.data);else if(h(e))n=new m(e.data);else if(d(e)){var o=t?x(e.children):[],a=new b(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=a}else if(k(e)){o=t?x(e.children):[];var c=new v(l.ElementType.CDATA,o);o.forEach((function(e){return e.parent=c})),n=c}else if(y(e)){o=t?x(e.children):[];var i=new f(o);o.forEach((function(e){return e.parent=i})),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!g(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new p(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=b,t.isTag=d,t.isCDATA=k,t.isText=_,t.isComment=h,t.isDirective=g,t.isDocument=y,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},885:function(e){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},276:function(e,t,n){var o="html",a="head",r="body",l=/<([a-zA-Z]+[0-9]?)/,c=/<head.*>/i,i=/<body.*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var m=new window.DOMParser;s=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),m.parseFromString(e,"text/html")}}if(document.implementation){var p=n(507).isIE,v=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);s=function(e,t){return t?(v.documentElement.getElementsByTagName(t)[0].innerHTML=e,v):(v.documentElement.innerHTML=e,v)}}var f,b=document.createElement("template");b.content&&(f=function(e){return b.innerHTML=e,b.content.childNodes}),e.exports=function(e){var t,n,m,p,v=e.match(l);switch(v&&v[1]&&(t=v[1].toLowerCase()),t){case o:return n=u(e),c.test(e)||(m=n.getElementsByTagName(a)[0])&&m.parentNode.removeChild(m),i.test(e)||(m=n.getElementsByTagName(r)[0])&&m.parentNode.removeChild(m),n.getElementsByTagName(o);case a:case r:return p=s(e).getElementsByTagName(t),i.test(e)&&c.test(e)?p[0].parentNode.childNodes:p;default:return f?f(e):s(e,r).getElementsByTagName(r)[0].childNodes}}},152:function(e,t,n){var o=n(276),a=n(507).formatDOM,r=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(r);return n&&n[1]&&(t=n[1]),a(o(e),null,t)}},507:function(e,t,n){for(var o,a=n(885),r=n(790),l=a.CASE_SENSITIVE_TAG_NAMES,c=r.Comment,i=r.Element,s=r.ProcessingInstruction,u=r.Text,m={},p=0,v=l.length;p<v;p++)o=l[p],m[o.toLowerCase()]=o;function f(e){for(var t,n={},o=0,a=e.length;o<a;o++)n[(t=e[o]).name]=t.value;return n}function b(e){return function(e){return m[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:f,formatDOM:function e(t,n,o){n=n||null;for(var a=[],r=0,l=t.length;r<l;r++){var m,p=t[r];switch(p.nodeType){case 1:(m=new i(b(p.nodeName),f(p.attributes))).children=e(p.childNodes,m);break;case 3:m=new u(p.nodeValue);break;case 8:m=new c(p.nodeValue);break;default:continue}var v=a[r-1]||null;v&&(v.next=m),m.parent=n,m.prev=v,m.next=null,a.push(m)}return o&&((m=new s(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=a[0]||null,m.parent=n,a.unshift(m),a[1]&&(a[1].prev=a[0])),a},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},488:function(e,t,n){var o=n(670),a=n(484),r=n(152);r="function"==typeof r.default?r.default:r;var l={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:o(r(e,(t=t||{}).htmlparser2||l),t)}c.domToReact=o,c.htmlToDOM=r,c.attributesToProps=a,c.Element=n(790).Element,e.exports=c,e.exports.default=c},484:function(e,t,n){var o=n(726),a=n(606);function r(e){return o.possibleStandardNames[e]}e.exports=function(e){var t,n,l,c,i,s={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(l=e[t],o.isCustomAttribute(t))s[t]=l;else if(c=r(n=t.toLowerCase()))switch(i=o.getPropertyInfo(c),"checked"!==c&&"value"!==c||u||(c=r("default"+n)),s[c]=l,i&&i.type){case o.BOOLEAN:s[c]=!0;break;case o.OVERLOADED_BOOLEAN:""===l&&(s[c]=!0)}else a.PRESERVE_CUSTOM_ATTRIBUTES&&(s[t]=l);return a.setStyleProp(e.style,s),s}},670:function(e,t,n){var o=n(196),a=n(484),r=n(606),l=r.setStyleProp,c=r.canTextBeChildOfNode;function i(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&r.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var r,s,u,m,p,v=(n=n||{}).library||o,f=v.cloneElement,b=v.createElement,d=v.isValidElement,k=[],_="function"==typeof n.replace,h=n.trim,g=0,y=t.length;g<y;g++)if(r=t[g],_&&d(u=n.replace(r)))y>1&&(u=f(u,{key:u.key||g})),k.push(u);else if("text"!==r.type){switch(m=r.attribs,i(r)?l(m.style,m):m&&(m=a(m)),p=null,r.type){case"script":case"style":r.children[0]&&(m.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?m.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}y>1&&(m.key=g),k.push(b(r.name,m,p))}else{if((s=!r.data.trim().length)&&r.parent&&!c(r.parent))continue;if(h&&s)continue;k.push(r.data)}return 1===k.length?k[0]:k}},606:function(e,t,n){var o=n(196),a=n(476).default,r={reactCompat:!0},l=o.version.split(".")[0]>=16,c=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:l,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,o,a="function"==typeof t,r={},l={};for(n in e)o=e[n],a&&(r=t(n,o))&&2===r.length?l[r[0]]=r[1]:"string"==typeof o&&(l[o]=n);return l},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=a(e,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!c.has(e.name)},elementsWithNoTextChildren:c}},139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,i=/^\s+|\s+$/g,s="";function u(e){return e?e.replace(i,s):s}e.exports=function(e,i){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];i=i||{};var m=1,p=1;function v(e){var t=e.match(n);t&&(m+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function f(){var e={line:m,column:p};return function(t){return t.position=new b(e),h(),t}}function b(e){this.start=e,this.end={line:m,column:p},this.source=i.source}b.prototype.content=e;var d=[];function k(t){var n=new Error(i.source+":"+m+":"+p+": "+t);if(n.reason=t,n.filename=i.source,n.line=m,n.column=p,n.source=e,!i.silent)throw n;d.push(n)}function _(t){var n=t.exec(e);if(n){var o=n[0];return v(o),e=e.slice(o.length),n}}function h(){_(o)}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return k("End of comment missing");var o=e.slice(2,n-2);return p+=2,v(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=f(),n=_(a);if(n){if(y(),!_(r))return k("property missing ':'");var o=_(l),i=e({type:"declaration",property:u(n[0].replace(t,s)),value:o?u(o[0].replace(t,s)):s});return _(c),i}}return h(),function(){var e,t=[];for(g(t);e=E();)!1!==e&&(t.push(e),g(t));return t}()}},726:function(e,t,n){"use strict";function o(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}function a(e,t,n,o,a,r,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=l}Object.defineProperty(t,"__esModule",{value:!0});var r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){r[e]=new a(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,l=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);_n=!0);}catch(e){l=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw a}}return r}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t,n)||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.")}()),c=l[0],i=l[1];r[c]=new a(c,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){r[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){r[e]=new a(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){r[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){r[e]=new a(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){r[e]=new a(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){r[e]=new a(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){r[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)}));var l=/[\-\:]([a-z])/g,c=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(l,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){r[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){r[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)}));var i=n(229),s=i.CAMELCASE,u=i.SAME,m=i.possibleStandardNames,p=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),v=Object.keys(m).reduce((function(e,t){var n=m[t];return n===u?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=v},229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},476:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var a=o(n(848)),r=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?(a.default(e,(function(e,o){e&&o&&(n[r.camelCase(e,t)]=o)})),n):n}},678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,a=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||a.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(r,c)),e.replace(o,l))}},848:function(e,t,n){var o=n(139);e.exports=function(e,t){var n,a=null;if(!e||"string"!=typeof e)return a;for(var r,l,c=o(e),i="function"==typeof t,s=0,u=c.length;s<u;s++)r=(n=c[s]).property,l=n.value,i?t(r,l,n):l&&(a||(a={}),a[r]=l);return a}},196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{metadata:function(){return oe},name:function(){return ae},settings:function(){return re}});var t={};n.r(t),n.d(t,{metadata:function(){return ce},name:function(){return ue},settings:function(){return me}});var o={};n.r(o),n.d(o,{metadata:function(){return Me},name:function(){return Fe},settings:function(){return je}});var a={};n.r(a),n.d(a,{metadata:function(){return Le},name:function(){return vt},settings:function(){return ft}});var r={};n.r(r),n.d(r,{metadata:function(){return yt},name:function(){return Xt},settings:function(){return $t}});var l={};n.r(l),n.d(l,{metadata:function(){return pn},name:function(){return vn},settings:function(){return fn}});var c={};n.r(c),n.d(c,{metadata:function(){return En},name:function(){return xn},settings:function(){return Cn}});var i={};n.r(i),n.d(i,{metadata:function(){return Sn},name:function(){return Rn},settings:function(){return An}});var s={};n.r(s),n.d(s,{metadata:function(){return Hn},name:function(){return Un},settings:function(){return Dn}});var u={};n.r(u),n.d(u,{metadata:function(){return Xn},name:function(){return $n},settings:function(){return Kn}});var m={};n.r(m),n.d(m,{metadata:function(){return Mo},name:function(){return jo},settings:function(){return Ho}});var p={};n.r(p),n.d(p,{metadata:function(){return Do},name:function(){return Ko},settings:function(){return Qo}});var v={};n.r(v),n.d(v,{metadata:function(){return aa},name:function(){return ra},settings:function(){return la}});var f={};n.r(f),n.d(f,{metadata:function(){return ma},name:function(){return pa},settings:function(){return va}});var b={};n.r(b),n.d(b,{metadata:function(){return ba},name:function(){return Ia},settings:function(){return Ra}});var d={};n.r(d),n.d(d,{metadata:function(){return fr},name:function(){return br},settings:function(){return dr}});var k={};n.r(k),n.d(k,{metadata:function(){return _r},name:function(){return Vr},settings:function(){return qr}});var _={};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}n.r(_),n.d(_,{metadata:function(){return Kr},name:function(){return Qr},settings:function(){return el}}),window.wp.coreData,window.wp.notices;var g=window.wp.blocks;function y(e,t){const n=C(e),o=C(t),a=n.pop(),r=o.pop(),l=w(n,o);return 0!==l?l:a&&r?w(a.split("."),r.split(".")):a||r?a?-1:1:0}const E=(e,t,n)=>{R(n);const o=y(e,t);return S[n].includes(o)};y.validate=e=>"string"==typeof e&&/^[v\d]/.test(e)&&x.test(e),y.compare=E,y.sastisfies=(e,t)=>{const n=t.match(/^([<>=~^]+)/),o=n?n[1]:"=";if("^"!==o&&"~"!==o)return E(e,t,o);const[a,r,l]=C(e),[c,i,s]=C(t);return 0===B(a,c)&&("^"===o?w([r,l],[i,s])>=0:0===B(r,i)&&B(l,s)>=0)};const x=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,C=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(x);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},N=e=>"*"===e||"x"===e||"X"===e,T=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},B=(e,t)=>{if(N(e)||N(t))return 0;const[n,o]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(T(e),T(t));return n>o?1:n<o?-1:0},w=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const o=B(e[n]||0,t[n]||0);if(0!==o)return o}return 0},S={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},I=Object.keys(S),R=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===I.indexOf(e))throw new Error(`Invalid operator, expected one of ${I.join("|")}`)};var A,O,z,P=window.wp.element,M=window.wp.i18n,F=(0,M.__)("Lorem ipsum dolor","vk-blocks"),j=(0,M.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ","vk-blocks"),H=(0,M.__)("Lorem ipsum","vk-blocks"),L='<i class="fas fa-user"></i>',U="https://demo.dev3.biz/lightning-pro/wp-content/uploads/2018/02/agent-18762_1920-200x300.jpg",D="#8ed1fc",V="https://example.com",q=('{"alt":"Example Image","sizes":{"full":{"url":"'.concat(U,'"}}}'),(0,M.__)("Theoretical Physicist","vk-blocks")),W=(0,M.__)("Profile","vk-blocks"),J=(0,M.__)("Albert Einstein","vk-blocks"),Z=(0,M.__)("14 March 1879 – 18 April 1955","vk-blocks"),G=n(196);function Y(){return Y=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},Y.apply(this,arguments)}var X,$,K,Q=window.wp.blockEditor,ee=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return(0,P.createElement)("div",{className:"alert alert-".concat(n)},(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:o}))}}],te=ee,ne=window.wp.components,oe=JSON.parse('{"apiVersion":2,"name":"vk-blocks/alert","category":"vk-blocks-cat","title":"Alert","description":"A colored box with four statuses, including annotations and alerts.","textdomain":"vk-blocks","attributes":{"style":{"type":"string","default":"info"},"content":{"type":"string","source":"html","selector":"p"}},"supports":{"className":true}}'),ae=oe.name,re={icon:(0,P.createElement)((function(e){return G.createElement("svg",Y({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A||(A=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),O||(O=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),z||(z=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 8.5a8.5 8.5 0 0 1-12.12 7.7l.18-.2a1.61 1.61 0 0 0-1.17-2.72H8.62c.06-.67-.3-1.43-1.04-1.69A8.5 8.5 0 1 1 24 8.5zm-7.86.7H14.9L14 6.27V4h3v2.28l-.86 2.91zm.86 1.29V13h-3v-2.51h3z",fill:"#000"})))}),null),example:{attributes:{style:"info",content:j}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return(0,P.createElement)("div",Q.useBlockProps.save({className:"alert alert-".concat(n)}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:o}))},edit:function(e){var t=e.attributes,n=e.setAttributes,o=t.style,a=t.content,r=(0,Q.useBlockProps)({className:"alert alert-".concat(o)});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Style Settings","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:o,onChange:function(e){return n({style:e})},options:[{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"}]}))),(0,P.createElement)("div",r,(0,P.createElement)(Q.RichText,{tagName:"p",onChange:function(e){return n({content:e})},value:a})))},deprecated:te};function le(){return le=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},le.apply(this,arguments)}var ce=JSON.parse('{"apiVersion":2,"name":"vk-blocks/ancestor-page-list","category":"vk-blocks-cat","title":"Page list from ancestor","attributes":{"ancestorTitleDisplay":{"type":"boolean","default":true},"ancestorTitleTagName":{"type":"string","default":"h4"},"ancestorTitleClassName":{"type":"string","default":null},"ancestorTitleLink":{"type":"boolean","default":false},"displayHasChildOnly":{"type":"boolean","default":false},"hiddenGrandChild":{"type":"boolean","default":false}},"description":"Display Page list from ancestor page","textdomain":"vk-blocks","supports":{"className":true}}'),ie=window.wp.serverSideRender,se=n.n(ie),ue=ce.name,me={icon:(0,P.createElement)((function(e){return G.createElement("svg",le({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),X||(X=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8 6.32 8 7 7.33 7 6.5 7 5.68 6.32 5 5.5 5 4.67 5 4 5.68 4 6.5ZM20 6H9v1h11V6ZM7 11.5l-1.967.008h-.005c-.364 0-.71.126-.987.343A1.504 1.504 0 0 1 5.5 10c.82-.001 1.5.679 1.5 1.499Zm4.109 5.5.946-.997A.056.056 0 0 0 12.06 16H20v1h-8.891ZM20 11H9v1h11v-1Z",fill:"#000"})),$||($=G.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z",fill:"#000"})),K||(K=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))}),null),example:{attributes:{hiddenGrandChild:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.name,a=t.ancestorTitleDisplay,r=t.ancestorTitleTagName,l=t.ancestorTitleClassName,c=t.ancestorTitleLink,i=t.displayHasChildOnly,s=t.hiddenGrandChild;t.name=o;var u=(0,Q.useBlockProps)();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Ancestor Page List Setting","vk-blocks")},(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Display Ancestor Page Title","vk-blocks"),checked:a,onChange:function(e){return n({ancestorTitleDisplay:e})}}),(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Archive title tag","vk-blocks"),value:r,onChange:function(e){return n({ancestorTitleTagName:e})},options:[{value:"h2",label:(0,M.__)("h2","vk-blocks")},{value:"h3",label:(0,M.__)("h3","vk-blocks")},{value:"h4",label:(0,M.__)("h4","vk-blocks")},{value:"h5",label:(0,M.__)("h5","vk-blocks")},{value:"h6",label:(0,M.__)("h6","vk-blocks")}]}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Ancestor page title class name","vk-blocks"),value:l,className:"mt-0 mb-3",onChange:function(e){return n({ancestorTitleClassName:e})}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add link to ancestor page title","vk-blocks"),checked:c,onChange:function(e){return n({ancestorTitleLink:e})}}),(0,P.createElement)("hr",null),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("If there is no child page, the block itself is not displayed","vk-blocks"),checked:i,onChange:function(e){return n({displayHasChildOnly:e})}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Don't display inactive grand child pages","vk-blocks"),checked:s,onChange:function(e){return n({hiddenGrandChild:e})}}))),(0,P.createElement)("div",u,(0,P.createElement)(se(),{block:"vk-blocks/ancestor-page-list",attributes:t})))}},pe=function(e){var t=!1;return e&&null!==e.match(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)&&(t=!0),t};function ve(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 fe(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){h(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}var be,de,ke,_e,he=fe(fe({},{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}}),{},{balloonImageType:{type:"string",default:"normal"}}),ge=fe(fe({},he),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"}}),ye=fe(fe({},ge),{},{balloonImageType:{type:"string",default:"normal"},balloonAnimation:{type:"string",default:"none"},balloonBorder:{type:"boolean",default:!1},balloonImageBorder:{type:"boolean",default:!1},balloonBorderWidth:{type:"string",default:"thin"},balloonBorderColor:{type:"string",default:null},balloonType:{type:"string",default:"type-speech"}}),Ee=fe(fe({},ye),{},{balloonBorderColor:{type:"string",default:"#cccccc"},balloonBgColor:{type:"string",default:"#f5f5f5"}}),xe=[{attributes:Ee,save:function(e){var t=e.attributes,n=t.balloonName,o=t.balloonType,a=t.balloonBorder,r=t.balloonImageBorder,l=t.balloonBorderColor,c=t.balloonBgColor,i=t.balloonAlign,s=t.IconImage,u=t.balloonImageType,m=t.balloonAnimation,p="",v="",f="",b={},d="",k="",_={},h={};!0===a?(p+="vk_balloon_content-border-true",!0===r?v+="vk_balloon_icon_image-border-true":v="",void 0!==l&&(v+=" has-text-color",p+=" has-text-color",pe(l)||(v+=" has-".concat(l,"-color"),p+=" has-".concat(l,"-color"))),pe(l)&&!pe(c)?b={borderColor:"".concat(l)}:!pe(l)&&pe(c)?b={background:"".concat(c)}:pe(l)&&pe(c)&&(b={borderColor:"".concat(l),background:"".concat(c)}),"position-left"===i?("type-speech"===o?(void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))):"type-think"===o&&(void 0!==l&&(d+=" has-text-color",pe(l)||(d+=" has-".concat(l,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))),pe(l)&&(h={borderColor:"transparent transparent transparent ".concat(c)}),pe(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===i&&("type-speech"===o?(void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),void 0!==l&&(k+=" has-text-color",pe(l)||(k+=" has-".concat(l,"-color")))):"type-think"===o&&void 0!==l&&(d+=" has-text-color",k+=" has-text-color",pe(l)||(d+=" has-".concat(l,"-color"),k+=" has-".concat(l,"-color"))),pe(l)&&(h={borderColor:"transparent ".concat(l," transparent transparent")}),pe(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))):void 0!==c&&(v="",void 0!==c&&pe(c)&&(b={background:"".concat(c)}),"position-left"===i?("type-speech"===o&&void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),pe(l)&&(h={borderColor:"transparent transparent transparent ".concat(c)}),pe(c)&&(_={borderColor:"transparent ".concat(c," transparent transparent")})):"position-right"===i&&("type-speech"===o&&void 0!==c&&(d+=" has-text-color",pe(c)||(d+=" has-".concat(c,"-color"))),pe(c)&&(_={borderColor:"transparent transparent transparent ".concat(c)}))),void 0!==c&&(f+=" has-background-color",pe(c)||(f+=" has-".concat(c,"-background-color")));var g=Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(i," vk_balloon-").concat(o," vk_balloon-animation-").concat(m)});return(0,P.createElement)("div",g,(0,P.createElement)("div",{className:"vk_balloon_icon"},s?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(u," ").concat(v),style:b,src:s,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(f," ").concat(p),style:b},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(d),style:_}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(k),style:h}),(0,P.createElement)(Q.InnerBlocks.Content,null))))}},{attributes:Ee,save:function(e){var t,n,o,a,r,l=e.attributes,c=l.balloonName,i=l.balloonType,s=l.balloonBorder,u=l.balloonImageBorder,m=l.balloonBorderColor,p=l.balloonBgColor,v=l.balloonAlign,f=l.IconImage,b=l.balloonImageType,d=l.balloonAnimation;return!0===s?(t="vk_balloon_content-border-true",n=!0===u?"vk_balloon_icon_image-border-true":"",o=m,a=p):(t="",n="",o=p,a=p),r="position-right"===v?"transparent transparent transparent ".concat(a):"transparent ".concat(a," transparent transparent"),(0,P.createElement)("div",Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(v," vk_balloon-").concat(i," vk_balloon-animation-").concat(d)}),(0,P.createElement)("div",{className:"vk_balloon_icon"},f?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(n),style:{borderColor:o},src:f,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:c})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(t),style:{backgroundColor:a,borderColor:o}},(0,P.createElement)("span",{className:"vk_balloon_content_before",style:{borderColor:r}}),(0,P.createElement)("span",{className:"vk_balloon_content_after",style:{borderColor:r}}),(0,P.createElement)(Q.InnerBlocks.Content,null))))}}];function Ce(){return Ce=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},Ce.apply(this,arguments)}function Ne(){return Ne=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},Ne.apply(this,arguments)}function Te(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}function Be(e,t){if(e){if("string"==typeof e)return Te(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)?Te(e,t):void 0}}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);_n=!0);}catch(e){l=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw a}}return r}}(e,t)||Be(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.")}()}var Se,Ie,Re,Ae=window.wp.apiFetch,Oe=n.n(Ae),ze=window.wp.data,Pe=function(e){var t=e.schema,n=e.setAttributes,o=function(e){var t;if(e){var n=(0,ze.select)("core/block-editor").getSettings().colors,o=(0,Q.getColorObjectByAttributeValues)(n,e);t=void 0!==o.color?o.color:e}return t}(e.attributes[t]);return(0,P.createElement)(Q.ColorPalette,{value:o,onChange:function(e){var o=(0,ze.select)("core/block-editor").getSettings().colors,a=(0,Q.getColorObjectByColorValue)(o,e);n(h({},t,void 0!==a?a.slug:e))}})},Me=JSON.parse('{"apiVersion":2,"name":"vk-blocks/balloon","title":"Ballon","description":"These speech balloons are perfect for recreating conversations.","category":"vk-blocks-cat","attributes":{"content":{"source":"html","selector":"p"},"balloonName":{"source":"html","selector":"figcaption"},"balloonType":{"type":"string","default":"type-speech"},"balloonFullWidth":{"type":"boolean","default":false},"balloonBorder":{"type":"boolean","default":false},"balloonImageBorder":{"type":"boolean","default":false},"balloonBorderWidth":{"type":"string","default":"thin"},"balloonBorderColor":{"type":"string"},"balloonBgColor":{"type":"string"},"balloonAlign":{"type":"string","default":"position-left"},"IconImage":{"type":"string","defaul":null},"balloonImageType":{"type":"string","default":"normal"},"balloonAnimation":{"type":"string","default":"none"}},"textdomain":"vk-blocks","supports":{"className":true}}'),Fe=Me.name,je={icon:(0,P.createElement)((function(e){return G.createElement("svg",Ce({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),be||(be=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 1.2H8.71c-.99 0-1.8.8-1.8 1.8v.27c0 .96-.62 1.8-1.53 2.1l-.93.3 1.15.48c.8.34 1.31 1.12 1.31 1.98 0 .92.75 1.67 1.67 1.67H18c1 0 1.8-.8 1.8-1.8V3c0-1-.8-1.8-1.8-1.8zM5.13 7.25c.35.15.58.5.58.88A2.87 2.87 0 0 0 8.58 11H18a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H8.71a3 3 0 0 0-3 3v.27a1 1 0 0 1-.7.95L1 5.5l4.13 1.75z",fill:"#000"})),de||(de=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.89 6.1H9V4.9h.89v1.2zm2.67 0h-1.78V4.9h1.78v1.2zm2.66 0h-1.78V4.9h1.78v1.2zm1.78 0h-.89V4.9H17v1.2zm4.21 10.6c0 .3.16.58.41.75L24 19l-2.23 1.09a1 1 0 0 0-.56.9 3 3 0 0 1-3 3.01H14a3 3 0 0 1-3-3v-3.89l1.06-1.1c.43-.46.53-1.05.38-1.57.45-.28.99-.44 1.56-.44h4.52a2.7 2.7 0 0 1 2.7 2.7zm-3 6.1H14c-1 0-1.8-.8-1.8-1.8v-4c0-1 .8-1.8 1.8-1.8h4.52c.82 0 1.5.67 1.5 1.5 0 .7.35 1.37.95 1.75l.6.4-.32.16A2.2 2.2 0 0 0 20 21c0 1-.8 1.81-1.8 1.81z",fill:"#000"})),ke||(ke=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),_e||(_e=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{balloonName:H,balloonType:"type-speech",balloonBgColor:"#f5f5f5",balloonAlign:"position-left",IconImage:U,balloonImageType:"normal"},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.content,l=o.balloonName,c=o.balloonType,i=o.balloonBorder,s=o.balloonFullWidth,u=o.balloonImageBorder,m=o.balloonBorderColor,p=o.balloonBgColor,v=o.balloonAlign,f=o.IconImage,b=o.balloonImageType,d=o.balloonAnimation,k=we((0,P.useState)(null),2),_=k[0],h=k[1];(0,P.useEffect)((function(){Oe()({path:"/vk-blocks/v1/block-meta/balloon/",method:"GET",parse:!0}).then((function(e){h(e)}))}),[]),_&&_.default_icons&&(t=Object.keys(_.default_icons).map((function(e){var t=_.default_icons[e],n="";return t.src&&(n=(0,P.createElement)("div",{key:e},(0,P.createElement)(ne.Button,{onClick:function(){a({IconImage:t.src}),a({balloonName:t.name})},className:"button button-large components-button"},(0,P.createElement)("img",{className:"icon-image",src:t.src,alt:t.name})))),n}))),"type-serif"===c&&a({balloonType:"type-speech"}),null==b&&a({balloonImageType:"normal"}),null==d&&a({balloonAnimation:"none"}),null==i&&a({balloonBorder:!1}),null==u&&a({balloonImageBorder:!1});var g="",y="",E="",x={},C={},N="",T="",B={},w={},S={};S&&(C=S,x=S),"background"in x&&delete x.background,!0===i?(n=(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border","vk-blocks")," "),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to balloon","vk-blocks"),checked:i,onChange:function(e){return a({balloonBorder:e})}}),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)(" Image Border","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to image","vk-blocks"),className:"mb-1",checked:u,onChange:function(e){return a({balloonImageBorder:e})}}),(0,P.createElement)("p",null,(0,M.__)("* You can change border width on Setting > VK Blocks","vk-blocks")," "),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border color of speech balloon","vk-blocks")),(0,P.createElement)(Pe,Ne({schema:"balloonBorderColor"},e))),g+="vk_balloon_content-border-true",!0===u?y+="vk_balloon_icon_image-border-true":y="",void 0!==m&&(y+=" has-text-color",g+=" has-text-color",pe(m)||(y+=" has-".concat(m,"-color"),g+=" has-".concat(m,"-color"))),pe(m)&&!pe(p)?(C={borderColor:"".concat(m)},x={borderColor:"".concat(m)}):!pe(m)&&pe(p)?C={background:"".concat(p)}:pe(m)&&pe(p)&&(C={borderColor:"".concat(m),background:"".concat(p)},x={borderColor:"".concat(m)}),"position-left"===v?("type-speech"===c?(void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))):"type-think"===c&&(void 0!==m&&(N+=" has-text-color",pe(m)||(N+=" has-".concat(m,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))),pe(m)&&(w={borderColor:"transparent transparent transparent ".concat(p)}),pe(p)&&(B={borderColor:"transparent ".concat(p," transparent transparent")})):"position-right"===v&&("type-speech"===c?(void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),void 0!==m&&(T+=" has-text-color",pe(m)||(T+=" has-".concat(m,"-color")))):"type-think"===c&&void 0!==m&&(N+=" has-text-color",T+=" has-text-color",pe(m)||(N+=" has-".concat(m,"-color"),T+=" has-".concat(m,"-color"))),pe(m)&&(w={borderColor:"transparent ".concat(m," transparent transparent")}),pe(p)&&(B={borderColor:"transparent transparent transparent ".concat(p)}))):(n=(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Border","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Add border to balloon","vk-blocks"),checked:i,onChange:function(e){return a({balloonBorder:e})}})),y="",void 0!==p&&pe(p)&&(C={background:"".concat(p)}),"position-left"===v?("type-speech"===c&&void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),pe(m)&&(w={borderColor:"transparent transparent transparent ".concat(p)}),pe(p)&&(B={borderColor:"transparent ".concat(p," transparent transparent")})):"position-right"===v&&("type-speech"===c&&void 0!==p&&(N+=" has-text-color",pe(p)||(N+=" has-".concat(p,"-color"))),pe(p)&&(B={borderColor:"transparent transparent transparent ".concat(p)}))),void 0!==p&&(E+=" has-background-color",pe(p)||(E+=" has-".concat(p,"-background-color"))),s&&(g+=" vk_balloon_content_fullwidth");var I=(0,Q.useBlockProps)({className:"vk_balloon vk_balloon-".concat(v," vk_balloon-").concat(c," vk_balloon-animation-").concat(d)});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Balloon setting","vk-blocks")},(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Position","vk-blocks")),(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please specify the layout of the balloon.","vk-blocks")," "),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"position-left"===v,isSecondary:"position-left"!==v,onClick:function(){return a({balloonAlign:"position-left"})}},(0,M.__)("Left","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"position-right"===v,isSecondary:"position-right"!==v,onClick:function(){return a({balloonAlign:"position-right"})}},(0,M.__)("Right","vk-blocks"))),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Type","vk-blocks")),(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please select the type of balloon.","vk-blocks")," "),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"type-speech"===c,isSecondary:"type-speech"!==c,onClick:function(){return a({balloonType:"type-speech"})}},(0,M.__)("Speech","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"type-think"===c,isSecondary:"type-think"!==c,onClick:function(){return a({balloonType:"type-think"})}},(0,M.__)("Thinking","vk-blocks"))),(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Image Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"normal"===b,isSecondary:"normal"!==b,onClick:function(){return a({balloonImageType:"normal"})}},(0,M.__)("Normal","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"rounded"===b,isSecondary:"rounded"!==b,onClick:function(){return a({balloonImageType:"rounded"})}},(0,M.__)("Rounded","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"circle"===b,isSecondary:"circle"!==b,onClick:function(){return a({balloonImageType:"circle"})}},(0,M.__)("Circle","vk-blocks"))),(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Width","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("100%","vk-blocks"),checked:s,onChange:function(e){return a({balloonFullWidth:e})}})),n,(0,P.createElement)("p",{className:"mb-1 block-prop-title"},(0,M.__)("Background color of speech balloon","vk-blocks")),(0,P.createElement)(Pe,Ne({schema:"balloonBgColor"},e))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Default Icon Setting","vk-blocks")},(0,P.createElement)("div",{className:"icon-image-list mb-2"},t),(0,P.createElement)("div",null,(0,M.__)("You can register default icons from Settings > VK Blocks in Admin.","vk-blocks"))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Animation setting","vk-blocks")},(0,P.createElement)("p",{className:"mb-1"},(0,M.__)("Please select the type of animation.","vk-blocks")," "),(0,P.createElement)(ne.SelectControl,{value:d,onChange:function(e){return a({balloonAnimation:e})},options:[{value:"none",label:(0,M.__)("None","vk-blocks")},{value:"trembling",label:(0,M.__)("Trembling","vk-blocks")},{value:"trembling-x",label:(0,M.__)("Trembling X","vk-blocks")},{value:"pounding",label:(0,M.__)("Pounding","vk-blocks")},{value:"shaking",label:(0,M.__)("Shaking","vk-blocks")}]}))),(0,P.createElement)("div",I,(0,P.createElement)("div",{className:"vk_balloon_icon"},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return a({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(y),value:f,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:f?"image-button":"button button-large"},f?(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(b," ").concat(y),style:x,src:f,alt:(0,M.__)("Upload image","vk-blocks")}):(0,M.__)("Select image","vk-blocks"))}}),(0,P.createElement)(Q.RichText,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return a({balloonName:e})},value:l,placeholder:(0,M.__)("Icon Name","vk-blocks")})),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(E," ").concat(g),style:C},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(N),style:B}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(T),style:w}),(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{content:r}]]})))))},save:function(e){var t=e.attributes,n=t.balloonName,o=t.balloonType,a=t.balloonBorder,r=t.balloonFullWidth,l=t.balloonImageBorder,c=t.balloonBorderColor,i=t.balloonBgColor,s=t.balloonAlign,u=t.IconImage,m=t.balloonImageType,p=t.balloonAnimation,v="",f="",b="",d={},k={},_="",h="",g={},y={},E={};E&&(k=E,d=E),"background"in d&&delete d.background,!0===a?(v+="vk_balloon_content-border-true",!0===l?f+="vk_balloon_icon_image-border-true":f="",void 0!==c&&(f+=" has-text-color",v+=" has-text-color",pe(c)||(f+=" has-".concat(c,"-color"),v+=" has-".concat(c,"-color"))),pe(c)&&!pe(i)?(k={borderColor:"".concat(c)},d={borderColor:"".concat(c)}):!pe(c)&&pe(i)?k={background:"".concat(i)}:pe(c)&&pe(i)&&(k={borderColor:"".concat(c),background:"".concat(i)},d={borderColor:"".concat(c)}),"position-left"===s?("type-speech"===o?(void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))):"type-think"===o&&(void 0!==c&&(_+=" has-text-color",pe(c)||(_+=" has-".concat(c,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))),pe(c)&&(y={borderColor:"transparent transparent transparent ".concat(i)}),pe(i)&&(g={borderColor:"transparent ".concat(i," transparent transparent")})):"position-right"===s&&("type-speech"===o?(void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),void 0!==c&&(h+=" has-text-color",pe(c)||(h+=" has-".concat(c,"-color")))):"type-think"===o&&void 0!==c&&(_+=" has-text-color",h+=" has-text-color",pe(c)||(_+=" has-".concat(c,"-color"),h+=" has-".concat(c,"-color"))),pe(c)&&(y={borderColor:"transparent ".concat(c," transparent transparent")}),pe(i)&&(g={borderColor:"transparent transparent transparent ".concat(i)}))):void 0!==i&&(f="",void 0!==i&&pe(i)&&(k={background:"".concat(i)}),"position-left"===s?("type-speech"===o&&void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),pe(c)&&(y={borderColor:"transparent transparent transparent ".concat(i)}),pe(i)&&(g={borderColor:"transparent ".concat(i," transparent transparent")})):"position-right"===s&&("type-speech"===o&&void 0!==i&&(_+=" has-text-color",pe(i)||(_+=" has-".concat(i,"-color"))),pe(i)&&(g={borderColor:"transparent transparent transparent ".concat(i)}))),void 0!==i&&(b+=" has-background-color",pe(i)||(b+=" has-".concat(i,"-background-color"))),r&&(v+=" vk_balloon_content_fullwidth");var x=Q.useBlockProps.save({className:"vk_balloon vk_balloon-".concat(s," vk_balloon-").concat(o," vk_balloon-animation-").concat(p)});return(0,P.createElement)("div",x,(0,P.createElement)("div",{className:"vk_balloon_icon"},u?(0,P.createElement)("figure",null,(0,P.createElement)("img",{className:"vk_balloon_icon_image vk_balloon_icon_image-type-".concat(m," ").concat(f),style:d,src:u,alt:""}),(0,P.createElement)(Q.RichText.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:n})):""),(0,P.createElement)("div",{className:"vk_balloon_content_outer"},(0,P.createElement)("div",{className:"vk_balloon_content ".concat(b," ").concat(v),style:k},(0,P.createElement)("span",{className:"vk_balloon_content_before ".concat(_),style:g}),(0,P.createElement)("span",{className:"vk_balloon_content_after ".concat(h),style:y}),(0,P.createElement)(Q.InnerBlocks.Content,null))))},deprecated:xe};function He(){return He=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},He.apply(this,arguments)}var Le=JSON.parse('{"apiVersion":2,"name":"vk-blocks/border-box","title":"Border Box","category":"vk-blocks-cat","attributes":{"heading":{"type":"string","source":"html","selector":"h4"},"color":{"type":"string"},"borderColor":{"type":"string"},"bgColor":{"type":"string","default":"transparent"},"faIcon":{"type":"string","default":""},"bodyAlign":{"type":"string"}},"description":"This is a border box where you can place headings to attract attention.","textdomain":"vk-blocks","supports":{"className":true}}'),Ue=n(184),De=n.n(Ue);function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(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 We(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Je(e,t){return Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Je(e,t)}function Ze(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}function Ge(e){return Ge="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},Ge(e)}function Ye(e,t){if(t&&("object"===Ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var $e=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(e){var t;return Ve(this,a),(t=o.call(this,e)).state={open:!1},t.buttonRef=(0,P.createRef)(),t}return We(a,[{key:"render",value:function(){var e=this,t="apc-icon-btn components-button is-secondary is-small";return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"components-base-control"},(0,P.createElement)("div",{className:"vk-blocks-button-icon-control__wrapper components-base-control__field"},(0,P.createElement)(ne.Button,{isTertiary:!0,className:"".concat(t," mb-1"),onClick:function(){e.setState({open:!e.state.open})},ref:this.buttonRef},this.props.label),this.state.open&&this.buttonRef.current&&(0,P.createElement)(ne.Popover,{anchorRect:this.buttonRef.current.getBoundingClientRect(),children:this.props.renderComp,onFocusOutside:function(n){n.relatedTarget&&!n.relatedTarget.closest(".".concat(t))&&n.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"vk-blocks-advanced-popover-control"}))))}}]),a}(P.Component),Ke=function(e){var t=e.attributeName,n=e.attributes,o=e.setAttributes,a=vkFontAwesome.iconsUrl,r=vkFontAwesome.iconFamily,l=vkFontAwesome.versions,c=vkFontAwesome.currentVersion,i=we((0,P.useState)(!1),2),s=i[0],u=i[1],m=we((0,P.useState)(),2),p=m[0],v=m[1];(0,P.useEffect)((function(){v(c)}),[]);var f=(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.BaseControl,{className:"components-base-control__label",id:"vk_fa_icon_list",label:(0,M.__)("Icon","vk-blocks")+" ( "+r+" ) "},(0,P.createElement)(ne.RadioControl,{className:"vk_icon_list",selected:n[t],options:[{label:(0,P.createElement)("i",{className:"fas fa-arrow-right"}),value:'<i class="fas fa-arrow-right"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-down"}),value:'<i class="fas fa-arrow-down"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-left"}),value:'<i class="fas fa-arrow-left"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-right"}),value:'<i class="fas fa-arrow-circle-right"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-down"}),value:'<i class="fas fa-arrow-circle-down"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-arrow-circle-left"}),value:'<i class="fas fa-arrow-circle-left"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-right"}),value:'<i class="far fa-arrow-alt-circle-right"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-down"}),value:'<i class="far fa-arrow-alt-circle-down"></i>'},{label:(0,P.createElement)("i",{className:"far fa-arrow-alt-circle-left"}),value:'<i class="far fa-arrow-alt-circle-left"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-external-link-square-alt"}),value:'<i class="fas fa-external-link-square-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-external-link-alt"}),value:'<i class="fas fa-external-link-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-download"}),value:'<i class="fas fa-download"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation-triangle"}),value:'<i class="fas fa-exclamation-triangle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation-circle"}),value:'<i class="fas fa-exclamation-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-exclamation"}),value:'<i class="fas fa-exclamation"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-question"}),value:'<i class="fas fa-question"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-question-circle"}),value:'<i class="fas fa-question-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-info-circle"}),value:'<i class="fas fa-info-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-info"}),value:'<i class="fas fa-info"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check"}),value:'<i class="fas fa-check"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check-square"}),value:'<i class="fas fa-check-square"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-check-circle"}),value:'<i class="fas fa-check-circle"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-phone"}),value:'<i class="fas fa-phone"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-phone-square"}),value:'<i class="fas fa-phone-square"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-mobile-alt"}),value:'<i class="fas fa-mobile-alt"></i>'},{label:(0,P.createElement)("i",{className:"far fa-envelope"}),value:'<i class="far fa-envelope"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-user"}),value:'<i class="fas fa-user"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-users"}),value:'<i class="fas fa-users"></i>'},{label:(0,P.createElement)("i",{className:"far fa-file-alt"}),value:'<i class="far fa-file-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file-alt"}),value:'<i class="fas fa-file-alt"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file"}),value:'<i class="fas fa-file"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-file-pdf"}),value:'<i class="fas fa-file-pdf"></i>'},{label:(0,P.createElement)("i",{className:"fas fa-building"}),value:'<i class="fas fa-building"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-twitter"}),value:'<i class="fab fa-twitter"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-facebook-square"}),value:'<i class="fab fa-facebook-square"></i>'},{label:(0,P.createElement)("i",{className:"fab fa-line"}),value:'<i class="fab fa-line"></i>'}],onChange:function(e){return o(h({},t,e))}})),(0,P.createElement)("hr",null),(0,P.createElement)(ne.ExternalLink,{href:a,className:"components-button is-primary mt-1"},(0,M.__)("Font Awesome icon list","vk-blocks")),(0,P.createElement)("p",{className:"mt-1"},(0,M.__)("If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.","vk-blocks"),(0,P.createElement)("br",null),(0,M.__)('Ex) <i class="fas fa-arrow-circle-right"></i>',"vk-blocks")),(0,P.createElement)("hr",null),(0,P.createElement)(ne.SelectControl,{label:"Font Awesome Version",value:p,options:l,onChange:function(e){return v(e)},className:"mt-1"}),(0,P.createElement)("p",{className:"mt-1"},(0,M.__)("When you click save button, the window will be reloaded and this setting will be applied.","vk-blocks")),(0,P.createElement)(ne.Button,{isPrimary:!0,disabled:s,onClick:function(){u(!0),Oe()({path:"/vk-blocks/v1/options/vk_font_awesome_version/",method:"POST",data:p}).then((function(){u(!1),window.location.reload()})).catch((function(){u(!1)}))}},(0,M.__)("Save","vk-blocks")));return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.TextControl,{value:n[t],onChange:function(e){return o(h({},t,e))},placeholder:'<i class="fas fa-arrow-circle-right"></i>',className:"mb-0"}),(0,P.createElement)($e,{label:(0,M.__)("Select Icon","vk-blocks"),renderComp:f,setAttributes:o}))},Qe=n(488),et=(Qe.domToReact,Qe.htmlToDOM,Qe.attributesToProps,Qe.Element,Qe),tt=function(e){var t,n,o=e.setAttributes,a=e.attributes,r=e.for_,l=e.className,c=a.heading,i=a.color,s=a.faIcon;"edit"===r?(t=(0,P.createElement)(Q.InnerBlocks,null),n=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return o({heading:e})},value:c,placeholder:(0,M.__)("Please enter a title.","vk-blocks")})):(t=(0,P.createElement)(Q.InnerBlocks.Content,null),n=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:c}));var u=l;return-1===l.indexOf("is-style-")&&(u=De()(l,"is-style-vk_borderBox-style-solid-kado-tit-tab")),(0,P.createElement)("div",{className:"vk_borderBox vk_borderBox-color-".concat(i," ").concat(u)},(0,P.createElement)("div",{className:"vk_borderBox_title_container"},(0,P.createElement)("i",{className:"".concat(s)}),n),(0,P.createElement)("div",{className:"vk_borderBox_body"},t))},nt=function(e){var t,n,o=e.setAttributes,a=e.attributes,r=e.for_,l=e.className,c=a.heading,i=a.color,s=a.faIcon,u=a.bgColor;"edit"===r?(t=(0,P.createElement)(Q.InnerBlocks,null),n=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return o({heading:e})},value:c,placeholder:(0,M.__)("Please enter a title.","vk-blocks")})):(t=(0,P.createElement)(Q.InnerBlocks.Content,null),n=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:c}));var m,p=l;return-1===l.indexOf("is-style-")&&(p=De()(l,"is-style-vk_borderBox-style-solid-kado-tit-tab")),m=-1===s.indexOf('<i class="')?'<i class="'.concat(s,'"></i>'):s,(0,P.createElement)("div",{className:"vk_borderBox vk_borderBox-color-".concat(i," vk_borderBox-background-").concat(u," ").concat(p)},(0,P.createElement)("div",{className:"vk_borderBox_title_container"},et(m),n),(0,P.createElement)("div",{className:"vk_borderBox_body"},t))};function ot(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rt,lt,ct,it={heading:{type:"string",source:"html",selector:"h4"},color:{type:"string",default:"red"},faIcon:{type:"string",default:""}},st=at(at({},it),{},{bgColor:{type:"string",default:"transparent"}}),ut=at(at({},st),{},{borderColor:{type:"string"}}),mt=[{attributes:at(at({},ut),{},{color:{type:"string"}}),save:function(e){var t,n,o=e.attributes,a=o.heading,r=o.faIcon,l=o.color,c=o.bgColor,i=o.borderColor,s=(0,P.createElement)(Q.InnerBlocks.Content,null),u=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:a,"ß":!0}),m=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(l),!!l),h(t,"vk_borderBox-background-".concat(c),!!c),h(t,"has-text-color",!!i),h(t,"has-".concat(i,"-color"),!!i&&!pe(i)),t)),p={};void 0!==i&&pe(i)&&(p={color:"".concat(i)});var v=Q.useBlockProps.save({className:m,style:p});-1===v.className.indexOf("is-style-")&&(v.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var f=!1;(-1<v.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<v.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<v.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(f=!0);var b,d=De()("vk_borderBox_title_container",(h(n={},"has-background",f&&!!i),h(n,"has-".concat(i,"-background-color"),f&&!!i&&!pe(i)),n)),k={};if(f&&void 0!==i&&pe(i)&&(k={backgroundColor:"".concat(i)}),-1<v.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!l){var _,g="",y=De()("vk_borderBox_icon_border",(h(_={},"has-background",!!i),h(_,"has-".concat(i,"-background-color"),!!i&&!pe(i)),_));void 0!==i&&pe(i)&&(g="background-color: ".concat(i,";")),b='<div class="'.concat(De()(y),'" style="').concat(g,'">').concat(r,"</div>")}else b=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;return(0,P.createElement)("div",v,(0,P.createElement)("div",{className:d,style:k},et(b),u),(0,P.createElement)("div",{className:"vk_borderBox_body"},s))}},{attributes:ut,save:function(e){var t,n=e.attributes,o=n.heading,a=n.color,r=n.faIcon,l=n.bgColor,c=(0,P.createElement)(Q.InnerBlocks.Content,null),i=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:o}),s=Q.useBlockProps.save({className:"vk_borderBox vk_borderBox-color-".concat(a," vk_borderBox-background-").concat(l)});return-1===s.className.indexOf("is-style-")&&(s.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab"),t=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r,(0,P.createElement)("div",s,(0,P.createElement)("div",{className:"vk_borderBox_title_container"},et(t),i),(0,P.createElement)("div",{className:"vk_borderBox_body"},c))}},{attributes:st,save:function(e){return(0,P.createElement)(nt,Ne({for_:"save"},e))}},{attributes:it,save:function(e){return(0,P.createElement)(tt,Ne({for_:"save"},e))}}],pt=mt,vt=Le.name,ft={icon:(0,P.createElement)((function(e){return G.createElement("svg",He({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Se||(Se=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1a1 1 0 0 0-1 1v11.28h1.5V7.5h21v13H10.2l.46 1.5H23a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-9V2a1 1 0 0 0-1-1H1zm9 3.75H4v-1.5h6v1.5z",fill:"#000"})),Ie||(Ie=G.createElement("path",{d:"M.87 22 0 19.47V21c0 .5.38.93.87 1zm9.76-4.5H20v-1h-8.42l-.95 1zm1.82-3H20v-1h-8.29c.38.22.64.59.74 1zm7.55-3v-1H4v1h16zm-9.11 3.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Re||(Re=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),category:"vk-blocks-cat",example:{attributes:{heading:F,faIcon:L},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},styles:[{name:"vk_borderBox-style-solid-kado-tit-tab",label:(0,M.__)("Solid Angle Tab","vk-blocks"),isDefault:!0},{name:"vk_borderBox-style-solid-round-tit-tab",label:(0,M.__)("Solid Round Tab","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-banner",label:(0,M.__)("Solid Angle Banner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-onborder",label:(0,M.__)("Solid Angle Onborder","vk-blocks")},{name:"vk_borderBox-style-solid-kado-tit-inner",label:(0,M.__)("Solid Angle Inner","vk-blocks")},{name:"vk_borderBox-style-solid-kado-iconFeature",label:(0,M.__)("Solid Angle iconFeature","vk-blocks")}],edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.heading,l=o.faIcon,c=o.color,i=o.bgColor,s=o.borderColor,u=o.bodyAlign,m=vkFontAwesome.iconFamily,p=(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}),v=(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_borderBox_title",onChange:function(e){return a({heading:e})},value:r,placeholder:(0,M.__)("Please enter a title.","vk-blocks")}),f=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(c),!!c),h(t,"vk_borderBox-background-".concat(i),!!i),h(t,"has-text-color",!!s),h(t,"has-".concat(s,"-color"),!!s&&!pe(s)),t)),b={};void 0!==s&&pe(s)&&(b={color:"".concat(s)});var d=(0,Q.useBlockProps)({className:De()(f),style:b});-1===d.className.indexOf("is-style-")&&(d.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var k={red:"#dc3545",orange:"#ffa536",blue:"#4267b2",green:"#28a745",black:"#222222"};if(c)a({borderColor:k[c]}),a({color:""});else if(o.className&&o.className.match(/vk_borderBox-color-\w*/)){var _=o.className.split(" ").filter((function(e){return!e.match(/vk_borderBox-color-\w*/)}));a({className:De()(_)}),a({borderColor:k.red})}var g=!1;(-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<d.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(g=!0);var y,E=De()("vk_borderBox_title_container",(h(n={},"has-background",g&&!!s),h(n,"has-".concat(s,"-background-color"),g&&!!s&&!pe(s)),n)),x={};if(g&&void 0!==s&&pe(s)&&(x={backgroundColor:"".concat(s)}),-1<d.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!c){var C,N="",T=De()("vk_borderBox_icon_border",(h(C={},"has-background",!!s),h(C,"has-".concat(s,"-background-color"),!!s&&!pe(s)),C));void 0!==s&&pe(s)&&(N="background-color: ".concat(s,";")),y='<div class="'.concat(De()(T),'" style="').concat(N,'">').concat(l,"</div>")}else y=-1===l.indexOf('<i class="')?'<i class="'.concat(l,'"></i>'):l;var B=De()("vk_borderBox_body",h({},"vk_borderBox_body-align-".concat(u),!!u));return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.BlockAlignmentControl,{value:u,onChange:function(e){return a({bodyAlign:e})},controls:["left","center","right"]})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Margin","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("p",null,(0,M.__)("The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.","vk-blocks")))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:"border-color",label:(0,M.__)("Border Color","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"borderColor"},e))),(0,P.createElement)(ne.BaseControl,{id:"background-color",label:(0,M.__)("Background Color","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:i,onChange:function(e){return a({bgColor:e})},options:[{value:"transparent",label:(0,M.__)("Transparent","vk-blocks")},{value:"white",label:(0,M.__)("White","vk-blocks")}]}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:"dot-fa",label:(0,M.__)("Icon","vk-blocks")+" ( "+m+" )"},(0,P.createElement)(Ke,{attributeName:"faIcon",attributes:o,setAttributes:a})))),(0,P.createElement)("div",d,(0,P.createElement)("div",{className:De()(E),style:x},et(y),v),(0,P.createElement)("div",{className:B},p)))},save:function(e){var t,n,o=e.attributes,a=o.heading,r=o.faIcon,l=o.color,c=o.bgColor,i=o.borderColor,s=o.bodyAlign,u=(0,P.createElement)(Q.InnerBlocks.Content,null),m=(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_borderBox_title",value:a,"ß":!0}),p=De()("vk_borderBox",(h(t={},"vk_borderBox-color-".concat(l),!!l),h(t,"vk_borderBox-background-".concat(c),!!c),h(t,"has-text-color",!!i),h(t,"has-".concat(i,"-color"),!!i&&!pe(i)),t)),v={};void 0!==i&&pe(i)&&(v={color:"".concat(i)});var f=Q.useBlockProps.save({className:p,style:v});-1===f.className.indexOf("is-style-")&&(f.className+=" is-style-vk_borderBox-style-solid-kado-tit-tab");var b=!1;(-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-tab")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-kado-tit-banner")||-1<f.className.indexOf("is-style-vk_borderBox-style-solid-round-tit-tab"))&&(b=!0);var d,k=De()("vk_borderBox_title_container",(h(n={},"has-background",b&&!!i),h(n,"has-".concat(i,"-background-color"),b&&!!i&&!pe(i)),n)),_={};if(b&&void 0!==i&&pe(i)&&(_={backgroundColor:"".concat(i)}),-1<f.className.indexOf("vk_borderBox-style-solid-kado-iconFeature")&&!l){var g,y="",E=De()("vk_borderBox_icon_border",(h(g={},"has-background",!!i),h(g,"has-".concat(i,"-background-color"),!!i&&!pe(i)),g));void 0!==i&&pe(i)&&(y="background-color: ".concat(i,";")),d='<div class="'.concat(De()(E),'" style="').concat(y,'">').concat(r,"</div>")}else d=-1===r.indexOf('<i class="')?'<i class="'.concat(r,'"></i>'):r;var x=De()("vk_borderBox_body",h({},"vk_borderBox_body-align-".concat(s),!!s));return(0,P.createElement)("div",f,(0,P.createElement)("div",{className:k,style:_},et(d),m),(0,P.createElement)("div",{className:x},u))},deprecated:pt};function bt(){return bt=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},bt.apply(this,arguments)}var dt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbIconSizeBefore,m=this.props.lbIconSizeAfter,p=this.props.lbRichtext,v=this.props.lbsubCaption,f="",b="",d="";if(f="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?f+=" btn has-background has-vk-color-".concat(n,"-background-color"):(f+=" btn has-background",pe(t)||(f+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(f+=" btn has-text-color",pe(e)||(f+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?f+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(f+=" btn has-text-color is-style-outline",pe(t)||(f+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?f+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(f+=" has-text-color vk_button_link-type-text",pe(t)||(f+=" has-".concat(t,"-color")))),f="".concat(f," btn-").concat(r),"block"===a&&(f="".concat(f," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var k=i.match(/class="(.*?)"/)[1];k+=" vk_button_link_before";var _=u?" style='font-size: ".concat(u,"'"):"";b='<i class="'.concat(k,'"').concat(_,"></i>")}if(s){var h=s.match(/class="(.*?)"/)[1];h+=" vk_button_link_after";var g=m?" style='font-size: ".concat(m,"'"):"";d='<i class="'.concat(h,'"').concat(g,"></i>")}return(0,P.createElement)("a",{href:l,style:null,className:f,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},(0,P.createElement)("div",{className:"vk_button_link_caption"},et(b),p,et(d)),v&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},v))}}]),a}(P.Component),kt=window.wp.primitives,_t=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(kt.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),ht=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(kt.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),gt=(0,P.createElement)(kt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,P.createElement)(kt.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),yt=JSON.parse('{"apiVersion":2,"name":"vk-blocks/button","title":"Button","category":"vk-blocks-cat","attributes":{"content":{"type":"string","source":"html","selector":"span"},"subCaption":{"type":"string"},"buttonUrl":{"type":"string"},"buttonTarget":{"type":"Boolean","default":false},"buttonSize":{"type":"string","default":"md"},"buttonType":{"type":"string","default":"0"},"buttonColor":{"type":"string","default":"primary"},"buttonTextColorCustom":{"type":"string"},"buttonColorCustom":{"type":"string"},"buttonAlign":{"type":"string","default":"left"},"buttonWidthMobile":{"type":"number","default":0},"buttonWidthTablet":{"type":"number","default":0},"buttonWidth":{"type":"number","default":0},"outerGap":{"type":"string","default":null},"fontAwesomeIconBefore":{"type":"string"},"fontAwesomeIconAfter":{"type":"string"},"iconSizeBefore":{"type":"string","default":null},"iconSizeAfter":{"type":"string","default":null},"clientId":{"type":"string"},"blockId":{"type":"string"},"old_1_31_0":{"type":"string","default":true}},"description":"A button link that can display icons before and after.","textdomain":"vk-blocks","supports":{"className":true,"anchor":true}}');var Et=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p={},v="",f="";if(p=null,m="".concat(m="vk_button_link","0"===n||null===n||"1"===n?" btn":" vk_button_link-type-text"),"0"===n||null===n?"undefined"===e||null==e?(m="".concat(m," btn-").concat(t),p=null):p={backgroundColor:"".concat(e),border:"1px solid ".concat(e),color:"#fff"}:"1"===n?"undefined"===e||null==e?(m="".concat(m," btn-outline-").concat(t),p=null):p={backgroundColor:"transparent",border:"1px solid ".concat(e),color:"".concat(e)}:"2"===n&&("undefined"===e||null==e?(m="".concat(m," btn-outline-").concat(t),p=null):p={color:"".concat(e)}),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var b=(c=c.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(i){var d=(i=i.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:r,style:p,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(v),s,et(f),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var xt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"!==n&&null!==n&&"1"!==n&&(m+=" vk_button_link-type-text"),"0"===n||null===n?"custom"!==t&&void 0===e?m+=" vk_button_btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" has-background",pe(e)?m+=" vk_button_btn":m+=" vk_button_btn has-".concat(e,"-background-color")):"1"===n?"custom"!==t&&void 0===e?m+=" vk_button_btn has-text-color has-vk-color-".concat(t,"-color is-style-outline"):(m+=" has-text-color",pe(e)?m+=" vk_button_btn":m+=" vk_button_btn has-".concat(e,"-color is-style-outline")):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color has-vk-color-".concat(t,"-color"):(m+=" has-text-color",pe(e)?m+="":m+=" has-".concat(e,"-color"))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Ct=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?m+=" btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" btn has-background",pe(e)||(m+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?m+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(m+=" btn has-text-color is-style-outline",pe(e)||(m+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(m+=" has-text-color vk_button_link-type-text",pe(e)||(m+=" has-".concat(e,"-color")))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Nt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,r=this.props.lbUrl,l=this.props.lbTarget,c=this.props.lbFontAwesomeIconBefore,i=this.props.lbFontAwesomeIconAfter,s=this.props.lbRichtext,u=this.props.lbsubCaption,m="",p="",v="";if(m="vk_button_link","0"===n||null===n?"custom"!==t&&void 0===e?m+=" btn has-background has-vk-color-".concat(t,"-background-color"):(m+=" btn has-background",pe(e)||(m+=" has-".concat(e,"-background-color"))):"1"===n?"custom"!==t&&void 0===e?m+=" btn has-text-color is-style-outline has-vk-color-".concat(t,"-color"):(m+=" btn has-text-color is-style-outline",pe(e)||(m+=" has-".concat(e,"-color"))):"2"===n&&("custom"!==t&&void 0===e?m+=" has-text-color vk_button_link-type-text has-vk-color-".concat(t,"-color"):(m+=" has-text-color vk_button_link-type-text",pe(e)||(m+=" has-".concat(e,"-color")))),m="".concat(m," btn-").concat(a),"block"===o&&(m="".concat(m," btn-block")),c&&!c.match(/<i/)&&(c='<i class="'.concat(c,'"></i>')),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),c){var f=(c=c.replace(/ fas/g,"fas")).split(" ");f[1]=" "+f[1]+" vk_button_link_before ",p=f.join("")}if(i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_after ",v=b.join("")}return(0,P.createElement)("a",{href:r,style:null,className:m,role:"button","aria-pressed":!0,target:l?"_blank":null,rel:"noopener"},et(p),s,et(v),u&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},u))}}]),a}(P.Component);var Tt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(s){var d=(s=s.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var Bt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=(i=i.replace(/ fas/g,"fas")).split(" ");b[1]=" "+b[1]+" vk_button_link_before ",v=b.join("")}if(s){var d=(s=s.replace(/ fas/g,"fas")).split(" ");d[1]=" "+d[1]+" vk_button_link_after ",f=d.join("")}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var wt=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=i.match(/class="(.*?)"/)[1];v='<i class="'.concat(b+=" vk_button_link_before",'"></i>')}if(s){var d=s.match(/class="(.*?)"/)[1];f='<i class="'.concat(d+=" vk_button_link_after",'"></i>')}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);var St=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbTextColorCustom,t=this.props.lbColorCustom,n=this.props.lbColor,o=this.props.lbType,a=this.props.lbAlign,r=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,m=this.props.lbsubCaption,p="",v="",f="";if(p="vk_button_link","0"===o||null===o?("custom"!==n&&void 0===t?p+=" btn has-background has-vk-color-".concat(n,"-background-color"):(p+=" btn has-background",pe(t)||(p+=" has-".concat(t,"-background-color"))),"custom"===n&&void 0!==e&&(p+=" btn has-text-color",pe(e)||(p+=" has-".concat(e,"-color")))):"1"===o?"custom"!==n&&void 0===t?p+=" btn has-text-color is-style-outline has-vk-color-".concat(n,"-color"):(p+=" btn has-text-color is-style-outline",pe(t)||(p+=" has-".concat(t,"-color"))):"2"===o&&("custom"!==n&&void 0===t?p+=" has-text-color vk_button_link-type-text has-vk-color-".concat(n,"-color"):(p+=" has-text-color vk_button_link-type-text",pe(t)||(p+=" has-".concat(t,"-color")))),p="".concat(p," btn-").concat(r),"block"===a&&(p="".concat(p," btn-block")),i&&!i.match(/<i/)&&(i='<i class="'.concat(i,'"></i>')),s&&!s.match(/<i/)&&(s='<i class="'.concat(s,'"></i>')),i){var b=i.match(/class="(.*?)"/)[1];v='<i class="'.concat(b+=" vk_button_link_before",'"></i>')}if(s){var d=s.match(/class="(.*?)"/)[1];f='<i class="'.concat(d+=" vk_button_link_after",'"></i>')}return(0,P.createElement)("a",{href:l,style:null,className:p,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener"},et(v),u,et(f),m&&(0,P.createElement)("p",{className:"vk_button_link_subCaption"},m))}}]),a}(P.Component);function It(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=Rt(Rt({},{content:{type:"string",source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}}),{},{subCaption:{type:"string",default:""}}),Ot=Rt(Rt({},At),{},{buttonUrl:{type:"string"},buttonColorCustom:{type:"string"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"},subCaption:{type:"string"},clientId:{type:"string"}}),zt=Rt(Rt({},Ot),{},{blockId:{type:"string"}}),Pt=Rt(Rt({},zt),{},{buttonTextColorCustom:{type:"string"}}),Mt=Rt(Rt({},Pt),{},{buttonWidth:{type:"number",default:0}}),Ft=Rt(Rt({},Mt),{},{buttonWidthMobile:{type:"number",default:0},buttonWidthTablet:{type:"number",default:0},buttonWidth:{type:"number",default:0}}),jt=Rt(Rt({},Ft),{},{old_1_31_0:{type:"string",default:!0}}),Ht=[{attributes:Rt(Rt({},jt),{},{outerGap:{type:"string",default:null}}),save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.outerGap,d=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,_=t.blockId,h="";h=void 0!==u&&pe(u)||b?"vk_button vk_button-color-custom vk_button-".concat(_):"vk_button vk_button-color-custom",p||v||f?(p&&(h+=" vk_button-width-mobile-".concat(p)),v&&(h+=" vk_button-width-tablet-".concat(v)),f&&(h+=" vk_button-width-".concat(f))):h+=" vk_button-align-".concat(m);var g=Q.useBlockProps.save({className:h});return(0,P.createElement)("div",g,(0,P.createElement)(St,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:d,lbFontAwesomeIconAfter:k,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:jt,save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=t.blockId,_="";_=void 0!==s&&pe(s)||void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-".concat(k):"vk_button vk_button-color-custom",p||v||f?(p&&(_+=" vk_button-width-mobile-".concat(p)),v&&(_+=" vk_button-width-tablet-".concat(v)),f&&(_+=" vk_button-width-".concat(f))):_+=" vk_button-align-".concat(m);var h=Q.useBlockProps.save({className:_});return(0,P.createElement)("div",h,(0,P.createElement)(wt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:d,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:Ft,save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidth,v=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,b=t.blockId,d="";d=void 0!==s&&pe(s)||void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-".concat(b):"vk_button vk_button-color-custom",d+=p?" vk_button-width-".concat(p):" vk_button-align-".concat(m);var k=Q.useBlockProps.save({className:d});return(0,P.createElement)("div",k,(0,P.createElement)(Bt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:f,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:Mt,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonTextColorCustom,m=n.buttonColorCustom,p=n.buttonAlign,v=n.fontAwesomeIconBefore,f=n.fontAwesomeIconAfter,b=n.blockId;t=void 0!==u&&pe(u)||void 0!==m&&pe(m)?"vk_button vk_button-color-custom vk_button-align-".concat(p," vk_button-").concat(b):"vk_button vk_button-color-custom vk_button-align-".concat(p);var d=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",d,(0,P.createElement)(Tt,{lbTextColorCustom:u,lbColorCustom:m,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:v,lbFontAwesomeIconAfter:f,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:zt,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.blockId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(Nt,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:Ot,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(Ct,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:Ot,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter,f=n.clientId;t=void 0!==u&&pe(u)?"vk_button vk_button-color-custom vk_button-align-".concat(m," vk_button-").concat(f):"vk_button vk_button-color-custom vk_button-align-".concat(m);var b=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",b,(0,P.createElement)(xt,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}},{attributes:At,save:function(e){var t,n=e.attributes,o=n.content,a=n.subCaption,r=n.buttonUrl,l=n.buttonTarget,c=n.buttonSize,i=n.buttonType,s=n.buttonColor,u=n.buttonColorCustom,m=n.buttonAlign,p=n.fontAwesomeIconBefore,v=n.fontAwesomeIconAfter;t=u&&"undefined"!==u?"vk_button vk_button-color-custom vk_button-align-".concat(m):"vk_button vk_button-align-".concat(m);var f=Q.useBlockProps.save({className:t});return(0,P.createElement)("div",f,(0,P.createElement)(Et,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:m,lbSize:c,lbUrl:r,lbTarget:l,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:v,lbsubCaption:a,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))}}];function Lt(e){var t,n,o,a,r,l=e.el,c=(t=e.attributes,n=t.buttonColorCustom,o=t.buttonType,a=t.clientId,r="",void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.vk_button_link-type-text:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}"))),r);return""!==c?(0,P.createElement)(P.Fragment,null,l,(0,P.createElement)("style",{type:"text/css"},c)):(0,P.createElement)(P.Fragment,null,l)}function Ut(e){var t,n,o,a,r,l,c=e.el,i=(t=e.attributes,n=t.buttonTextColorCustom,o=t.buttonColorCustom,a=t.buttonType,r=t.blockId,l="",void 0!==o&&pe(o)&&("0"!==a&&null!==a||(l+=".vk_button-".concat(r," .has-background {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t}")),"1"===a&&(l+=".vk_button-".concat(r," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}\n\t\t\t.vk_button-").concat(r," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\tborder: 1px solid ").concat(o,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===a&&(l=".vk_button-".concat(r," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(o,";\n\t\t\t}"))),void 0!==n&&pe(n)&&("0"!==a&&null!==a||(l+=" .vk_button-".concat(r," .has-text-color {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),l);return""!==i?(0,P.createElement)(P.Fragment,null,c,(0,P.createElement)("style",{type:"text/css"},i)):(0,P.createElement)(P.Fragment,null,c)}var Dt,Vt,qt,Wt=[function(e){var t=e.el,n=e.attributes,o=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,o=e.buttonType,a=e.blockId,r="";return void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&pe(t)&&("0"!==o&&null!==o||(r+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),r}(n),a=function(e,t){var n=e.buttonWidthMobile,o=e.buttonWidthTablet,a=e.buttonWidth,r=e.outerGap,l=e.blockId,c="",i=".vk_button";return r&&(n&&(c+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(c+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(o,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),a&&(c+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(a,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(a,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),c}(n);return""!==o||""!==a?(0,P.createElement)(P.Fragment,null,t,(0,P.createElement)("style",{type:"text/css"},o," ",a)):(0,P.createElement)(P.Fragment,null,t)},Ut,Ut,Ut,Lt,Lt,function(e){var t,n,o,a,r,l=e.el,c=(t=e.attributes,n=t.clientId,o=t.buttonType,a=t.buttonColorCustom,r="",void 0!==a&&pe(a)&&("0"!==o&&null!==o||(r="\n\t\t\t.vk_button-".concat(n," .has-background {\n\t\t\t\tbackground-color: ").concat(a,";\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"1"===o&&(r="\n\t\t\t.vk_button-".concat(n," .has-text-color {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: ").concat(a,";\n\t\t\t}\n\t\t\t.vk_button-").concat(n," .has-text-color:hover {\n\t\t\t\tbackground-color: ").concat(a,";\n\t\t\t\tborder: 1px solid ").concat(a,";\n\t\t\t\tcolor: #fff;\n\t\t\t}\n\t\t\t")),"2"===o&&(r="\n\t\t\t.vk_button-".concat(n," .vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(a,";\n\t\t\t}\n\t\t\t"))),r);return""!==c?(0,P.createElement)(P.Fragment,null,l,(0,P.createElement)("style",{type:"text/css"},c)):(0,P.createElement)(P.Fragment,null,l)},function(e){return e.el}],Jt={from:[{type:"block",isMultiBlock:!1,blocks:["core/paragraph"],transform:function(e){var t=e.content,n=document.createElement("div");n.innerHTML=t;var o=n.innerText||"",a=n.querySelector("a"),r=null==a?void 0:a.getAttribute("href"),l=!(null==a||!a.getAttribute("target"));return(0,g.createBlock)(yt.name,{content:o,buttonUrl:r,buttonTarget:l})},isMatch:function(e){var t=document.createElement("div");t.innerHTML=e.content;var n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}}]},Zt=Jt,Gt=window.wp.hooks,Yt=window.wp.compose,Xt=yt.name,$t={icon:(0,P.createElement)((function(e){return G.createElement("svg",bt({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),rt||(rt=G.createElement("path",{d:"M5 8h14c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-6.94l-1.43 1.5H19a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4.78h.27l.24-.69c.17-.47.54-.83.99-1V8.5c0-.28.22-.5.5-.5z",fill:"#000"})),lt||(lt=G.createElement("path",{d:"M8.5 12.5a1.6 1.6 0 0 0-.5-.68v-.32h8v1H8.5zm2.39 2.28H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),ct||(ct=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{content:H,subCaption:F,buttonUrl:V,buttonTarget:!1,buttonSize:"md",buttonType:"0",buttonColor:"primary",buttonTextColorCustom:"undefined",buttonColorCustom:"undefined",buttonAlign:"left",buttonWidthMobile:0,buttonWidthTablet:0,outerGap:null,buttonWidth:0,fontAwesomeIconBefore:L,fontAwesomeIconAfter:L,iconSizeBefore:null,iconSizeAfter:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.content,r=t.subCaption,l=t.buttonUrl,c=t.buttonTarget,i=t.buttonSize,s=t.buttonType,u=t.buttonColor,m=t.buttonTextColorCustom,p=t.buttonColorCustom,v=t.buttonAlign,f=t.buttonWidthMobile,b=t.buttonWidthTablet,d=t.buttonWidth,k=t.outerGap,_=t.fontAwesomeIconBefore,h=t.fontAwesomeIconAfter,g=t.iconSizeBefore,y=t.iconSizeAfter,E=t.blockId,x=t.old_1_31_0,C=vkFontAwesome.iconFamily;(0,P.useEffect)((function(){void 0!==t.clientId&&n({clientId:void 0}),void 0!==E&&!1!==function(e){return!!(0,ze.select)("core/block-editor").getBlockParentsByBlockName(e,["core/block"]).length}(o)||n({blockId:o}),null!==l&&"null"!==l&&"undefined"!==l&&""!==l||n({buttonUrl:void 0}),void 0===p&&n({buttonTextColorCustom:void 0}),null!==p&&"null"!==p&&"undefined"!==p&&""!==p||n({buttonColorCustom:void 0}),null!==_&&"null"!==_&&"undefined"!==_&&""!==_||n({fontAwesomeIconBefore:void 0}),null!==h&&"null"!==h&&"undefined"!==h&&""!==h||n({fontAwesomeIconAfter:void 0}),null!==r&&"null"!==r&&"undefined"!==r&&""!==r||n({subCaption:void 0}),void 0===x&&(void 0===f&&n({buttonWidthMobile:d}),void 0===b&&n({buttonWidthTablet:d}),n({old_1_31_0:!0}))}),[o]);var N=(0,ze.dispatch)("core/block-editor").updateBlockAttributes;(0,P.useEffect)((function(){"custom"!==u?(N(o,{buttonTextColorCustom:void 0}),N(o,{buttonColorCustom:void 0})):void 0===p&&"custom"===u&&(N(o,{buttonColor:"primary"}),N(o,{buttonTextColorCustom:void 0}))}),[u]),(0,P.useEffect)((function(){void 0!==p?N(o,{buttonColor:"custom"}):"custom"===u&&N(o,{buttonColor:"primary"})}),[p]);var T,B=!!(0,ze.select)("core/block-editor").getBlockParentsByBlockName(o,["vk-blocks/button-outer"]).length;T=void 0!==p&&pe(p)||void 0!==m&&pe(m)||k?"vk_button vk_button-color-custom vk_button-".concat(E):"vk_button vk_button-color-custom",B?(f&&(T+=" vk_button-width-mobile-".concat(f)),b&&(T+=" vk_button-width-tablet-".concat(b)),d&&(T+=" vk_button-width-".concat(d))):(T+=" vk_button-align-".concat(v),n({buttonWidth:0}));var w=[{value:"px",label:"px",default:16},{value:"em",label:"em",default:1},{value:"rem",label:"rem",default:1}],S=(0,Q.useBlockProps)({className:T});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,null,(0,P.createElement)(ne.ToolbarGroup,null,(0,P.createElement)(ne.Dropdown,{renderToggle:function(e){var t=e.isOpen,o=e.onToggle;return(0,P.createElement)(ne.ToolbarButton,{"aria-expanded":t,icon:""!==l&&t?_t:ht,isActive:!(""===l||!t),label:""!==l&&t?(0,M.__)("Unlink"):(0,M.__)("Input Link URL","vk-blocks"),onClick:function(){t&&""!==l&&n({buttonUrl:""}),o()}})},renderContent:function(e){return(0,P.createElement)("div",{className:"block-editor-url-input__button block-editor-link-control"},(0,P.createElement)("form",{className:"block-editor-link-control__search-input-wrapper",onSubmit:function(){e.onClose()}},(0,P.createElement)("div",{className:"block-editor-link-control__search-input"},(0,P.createElement)(Q.URLInput,{value:l,onChange:function(e){n({buttonUrl:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:c,onChange:function(e){return n({buttonTarget:e})}}),(0,P.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,P.createElement)(ne.Button,{icon:gt,label:(0,M.__)("Submit"),type:"submit"})))))}}))),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Button setting","vk-blocks")},(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Sub Caption","vk-blocks"),value:r,className:"mt-0 mb-3",onChange:function(e){return n({subCaption:e})},placeholder:"Sub Caption"}),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Size:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"lg"===i,isSecondary:"lg"!==i,onClick:function(){return n({buttonSize:"lg"})}},(0,M.__)("Large","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"md"===i,isSecondary:"md"!==i,onClick:function(){return n({buttonSize:"md"})}},(0,M.__)("Normal","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"sm"===i,isSecondary:"sm"!==i,onClick:function(){return n({buttonSize:"sm"})}},(0,M.__)("Small","vk-blocks"))),!B&&(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Position:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"left"===v,isSecondary:"left"!==v,onClick:function(){return n({buttonAlign:"left"})}},(0,M.__)("Left","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"center"===v,isSecondary:"center"!==v,onClick:function(){return n({buttonAlign:"center"})}},(0,M.__)("Center","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"right"===v,isSecondary:"right"!==v,onClick:function(){return n({buttonAlign:"right"})}},(0,M.__)("Right","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"wide"===v,isSecondary:"wide"!==v,onClick:function(){return n({buttonAlign:"wide"})}},(0,M.__)("Wide","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"block"===v,isSecondary:"block"!==v,onClick:function(){return n({buttonAlign:"block"})}},(0,M.__)("Block","vk-blocks")))),B&&(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Width:","vk-blocks")),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Mobile","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===f,isSecondary:25!==f,onClick:function(){return n({buttonWidthMobile:25===f?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===f,isSecondary:50!==f,onClick:function(){return n({buttonWidthMobile:50===f?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===f,isSecondary:75!==f,onClick:function(){return n({buttonWidthMobile:75===f?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===f,isSecondary:100!==f,onClick:function(){return n({buttonWidthMobile:100===f?0:100})}},(0,M.__)("100%","vk-blocks"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Tablet","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===b,isSecondary:25!==b,onClick:function(){return n({buttonWidthTablet:25===b?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===b,isSecondary:50!==b,onClick:function(){return n({buttonWidthTablet:50===b?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===b,isSecondary:75!==b,onClick:function(){return n({buttonWidthTablet:75===b?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===b,isSecondary:100!==b,onClick:function(){return n({buttonWidthTablet:100===b?0:100})}},(0,M.__)("100%","vk-blocks"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("PC","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:25===d,isSecondary:25!==d,onClick:function(){return n({buttonWidth:25===d?0:25})}},(0,M.__)("25%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:50===d,isSecondary:50!==d,onClick:function(){return n({buttonWidth:50===d?0:50})}},(0,M.__)("50%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:75===d,isSecondary:75!==d,onClick:function(){return n({buttonWidth:75===d?0:75})}},(0,M.__)("75%","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:100===d,isSecondary:100!==d,onClick:function(){return n({buttonWidth:100===d?0:100})}},(0,M.__)("100%","vk-blocks")))),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Button Style:","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-2"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===s,isSecondary:"0"!==s,onClick:function(){return n({buttonType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===s,isSecondary:"1"!==s,onClick:function(){n({buttonType:"1"}),n({buttonTextColorCustom:void 0})}},(0,M.__)("No background","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===s,isSecondary:"2"!==s,onClick:function(){n({buttonType:"2"}),n({buttonTextColorCustom:void 0})}},(0,M.__)("Text only","vk-blocks"))),(0,P.createElement)("p",{className:"mb-3"},(0,M.__)('If you select "No background", that you need to select a Custom Color.',"vk-blocks")),(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Color","vk-blocks")),(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Default Color (Bootstrap)","vk-blocks"),value:u,options:[{label:(0,M.__)("Primary","vk-blocks"),value:"primary"},{label:(0,M.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"},{label:(0,M.__)("Light","vk-blocks"),value:"light"},{label:(0,M.__)("Dark","vk-blocks"),value:"dark"},{label:(0,M.__)("Custom Color","vk-blocks"),value:"custom"}],onChange:function(e){return n({buttonColor:e})}}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Custom Color","vk-blocks"),id:"vk_block_button_custom_color"},(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_custom_background_color",label:"0"===s||null===s?(0,M.__)("Background Color","vk-blocks"):(0,M.__)("Button Color","vk-blocks"),help:(0,M.__)("This color palette overrides the default color. If you want to use the default color, click the clear button.","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"buttonColorCustom"},e))),("0"===s||null===s)&&void 0!==p&&(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_custom_text_color",label:(0,M.__)("Text Color","vk-blocks")},(0,P.createElement)(Pe,Ne({schema:"buttonTextColorCustom"},e)))),(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Icon","vk-blocks")+" ( "+C+" )"),(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_fa_before_text",label:(0,M.__)("Before text","vk-blocks")},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconBefore"},e)),(0,P.createElement)(ne.__experimentalUnitControl,{label:(0,M.__)("Size","vk-blocks"),value:g,units:w,onChange:function(e){n({iconSizeBefore:parseFloat(e)?e:null})}})),(0,P.createElement)("hr",null),(0,P.createElement)(ne.BaseControl,{id:"vk_block_button_fa_after_text",label:(0,M.__)("After text","vk-blocks")},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconAfter"},e)),(0,P.createElement)(ne.__experimentalUnitControl,{label:(0,M.__)("Size","vk-blocks"),value:y,units:w,onChange:function(e){n({iconSizeAfter:parseFloat(e)?e:null})}}))))),(0,P.createElement)("div",S,(0,P.createElement)(dt,{lbTextColorCustom:m,lbColorCustom:p,lbColor:u,lbType:s,lbAlign:v,lbSize:i,lbFontAwesomeIconBefore:_,lbFontAwesomeIconAfter:h,lbIconSizeBefore:g,lbIconSizeAfter:y,lbsubCaption:r,lbRichtext:(0,P.createElement)(Q.RichText,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return n({content:e})},value:a,placeholder:(0,M.__)("Input text","vk-blocks"),allowedFormats:["core/bold","core/italic","core/strikethrough","core/superscript","core/subscript","vk-blocks/responsive-br","vk-blocks/nowrap","vk-blocks/inline-font-size"],isSelected:!0})})))},save:function(e){var t=e.attributes,n=t.content,o=t.subCaption,a=t.buttonUrl,r=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonTextColorCustom,u=t.buttonColorCustom,m=t.buttonAlign,p=t.buttonWidthMobile,v=t.buttonWidthTablet,f=t.buttonWidth,b=t.outerGap,d=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter,_=t.iconSizeBefore,h=t.iconSizeAfter,g=t.blockId,y="";y=void 0!==u&&pe(u)||void 0!==s&&pe(s)||b?"vk_button vk_button-color-custom vk_button-".concat(g):"vk_button vk_button-color-custom",p||v||f?(p&&(y+=" vk_button-width-mobile-".concat(p)),v&&(y+=" vk_button-width-tablet-".concat(v)),f&&(y+=" vk_button-width-".concat(f))):y+=" vk_button-align-".concat(m);var E=Q.useBlockProps.save({className:y});return(0,P.createElement)("div",E,(0,P.createElement)(dt,{lbTextColorCustom:s,lbColorCustom:u,lbColor:i,lbType:c,lbAlign:m,lbSize:l,lbUrl:a,lbTarget:r,lbFontAwesomeIconBefore:d,lbFontAwesomeIconAfter:k,lbIconSizeBefore:_,lbIconSizeAfter:h,lbsubCaption:o,lbRichtext:(0,P.createElement)(Q.RichText.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))},deprecated:Ht,transforms:Zt},Kt=function(e){var t=e.buttonTextColorCustom,n=e.buttonColorCustom,o=e.buttonType,a=e.blockId,r="";return void 0!==n&&pe(n)&&("0"!==o&&null!==o||(r+=".vk_button-".concat(a," .has-background {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t}")),"1"===o&&(r+=".vk_button-".concat(a," .has-text-color.is-style-outline {\n\t\t\t\tbackground-color: transparent;\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}\n\t\t\t.vk_button-").concat(a," .has-text-color.is-style-outline:hover {\n\t\t\t\tbackground-color: ").concat(n,";\n\t\t\t\tborder: 1px solid ").concat(n,";\n\t\t\t\tcolor: #fff;\n\t\t\t}")),"2"===o&&(r=".vk_button-".concat(a," .has-text-color.vk_button_link-type-text {\n\t\t\t\tcolor: ").concat(n,";\n\t\t\t}"))),void 0!==t&&pe(t)&&("0"!==o&&null!==o||(r+=" .vk_button-".concat(a," .has-text-color {\n\t\t\t\tcolor: ").concat(t,";\n\t\t\t}"))),r},Qt=function(e,t){var n=e.buttonWidthMobile,o=e.buttonWidthTablet,a=e.buttonWidth,r=e.outerGap,l=e.blockId,c="",i=t?".vk_button":".vk_buttons .vk_buttons_col .block-editor-block-list__layout .vk_button";return r&&(n&&(c+="@media (max-width: 575.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(n,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(n,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),o&&(c+="@media(min-width: 576px) and (max-width: 991.98px) {\n\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(o,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(o,"))) - 1px);\n\t\t\t\t}\n\t\t\t}")),a&&(c+="@media (min-width: 992px) {\n\t\t\t\t\t".concat(i,".vk_button-").concat(l," {\n\t\t\t\t\twidth: calc(").concat(a,"% - calc(").concat(r," - calc(").concat(r," / (100 / ").concat(a,"))) - 1px );\n\t\t\t\t}\n\t\t\t}"))),c},en=(0,Yt.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes;if("vk-blocks/button"===t.name){var o=Kt(n),a=Qt(n,!1);return""!==o||""!==a?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,t),(0,P.createElement)("style",{type:"text/css"},o," ",a)):(0,P.createElement)(e,t)}return(0,P.createElement)(e,t)}}),"VKButtonInlineEditorCss");function tn(){return tn=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},tn.apply(this,arguments)}function nn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/button",en),(0,Gt.addFilter)("blocks.getSaveElement","vk-blocks/button",(function(e,t,n){if("vk-blocks/button"===t.name){var o=Ht.findIndex((function(e){return e.save===t.save}));if(-1===o){var a=Kt(n),r=Qt(n,!0);return""!==a||""!==r?(0,P.createElement)(P.Fragment,null,e,(0,P.createElement)("style",{type:"text/css"},a," ",r)):e}var l=Wt[o];return(0,P.createElement)(l,{el:e,attributes:n})}return e}),11);var an,rn,ln,cn,sn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},un=[{attributes:sn,save:function(e){var t=e.attributes,n=e.className,o=t.heading,a=t.content;return(0,P.createElement)("dl",{className:"".concat(n," vk_faq")},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:o}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_faq_content",value:a}))}},{attributes:sn,save:function(e){var t=e.attributes,n=t.heading,o=t.content;return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_faq_content",value:o}))}},{attributes:on({},sn),save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))}},{attributes:on({},sn),save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",{className:"vk_faq [accordion_trigger_switch]"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))}}],mn=un,pn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq","title":"Classic FAQ","category":"vk-blocks-cat","description":"Displays a combination of questions and answers.","textdomain":"vk-blocks","attributes":{"heading":{"type":"string","source":"html","selector":"dt"}},"supports":{"anchor":true}}'),vn=pn.name,fn={icon:(0,P.createElement)((function(e){return G.createElement("svg",tn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Dt||(Dt=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Vt||(Vt=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),qt||(qt=G.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0zM3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74zM13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62zM13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02zm-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10h-2.92zm1.45 3.35h.03l.87 3.08h-1.83l.93-3.08z",fill:"#000"})))}),null),styles:[{name:"vk_faq-normal",label:(0,M.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,M.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,M.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,M.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,M.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,M.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,M.__)("Border Rounded","vk-blocks")}],example:{attributes:{heading:F},innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},save:function(e){var t=e.attributes.heading;return(0,P.createElement)("dl",Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"}),(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_faq_title",value:t}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null)))},edit:function(e){var t,n=e.attributes,o=e.setAttributes;t=vk_blocks_check.is_pro?(0,M.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,M.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks");var a=n.heading,r=[["core/paragraph",{content:n.content}]],l=(0,Q.useBlockProps)({className:"vk_faq [accordion_trigger_switch]"});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Accordion Setting","vk-blocks")},(0,P.createElement)(ne.PanelRow,null,t))),(0,P.createElement)("dl",l,(0,P.createElement)(Q.RichText,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return o({heading:e})},value:a,placeholder:(0,M.__)("Please enter a question.","vk-blocks")}),(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks,{template:r}))))},deprecated:mn};function bn(){return bn=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},bn.apply(this,arguments)}var dn,kn,hn,gn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string"}},yn=[{attributes:gn,save:function(){return(0,P.createElement)("dl",Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"}),(0,P.createElement)(Q.InnerBlocks.Content,null))}},{attributes:gn,save:function(){return(0,P.createElement)("dl",{className:"vk_faq"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],En=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2","category":"vk-blocks-cat","title":"New FAQ","description":"It displays a combination of questions and answers. You can freely add blocks to the question area as well.","textdomain":"vk-blocks","supports":{"anchor":true,"className":true}}'),xn=En.name,Cn={icon:(0,P.createElement)((function(e){return G.createElement("svg",bn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),an||(an=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),rn||(rn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),ln||(ln=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 0h-8v8h8V0zm-4.75 1v2.25H17v1.5h2.25V7h1.5V4.75H23v-1.5h-2.25V1h-1.5z",fill:"#000"})),cn||(cn=G.createElement("path",{d:"M5.07 0C3.57 0 2.35.49 1.4 1.47A5.2 5.2 0 0 0 0 5.24c0 1.54.48 2.81 1.43 3.79a4.87 4.87 0 0 0 3.64 1.44c1 0 1.85-.2 2.36-.53l1.35 1.39 1.38-1.38-1.19-1.21c.73-.9 1.17-2.1 1.17-3.5A4.9 4.9 0 0 0 5.07 0zM3.08 5.24c0-1.63.73-2.75 1.97-2.75 1.12 0 2 .9 2 2.75 0 .51-.06.93-.19 1.33l-.84-.86-1.39 1.35.84.86c-.14.05-.26.06-.4.06-1.16 0-1.99-.95-1.99-2.74zM13.52 7c-.91 0-1.69.64-1.69 1.55 0 .45.14.86.62 1.45-.96.47-1.45 1.17-1.45 1.96 0 1.25.89 2.04 2.09 2.04.73 0 1.3-.28 1.81-.8l.53.67H17l-1.31-1.61c.32-.43.55-.98.62-1.67h-1.1c-.04.3-.13.59-.24.8l-.83-1.07c.75-.43 1.14-.99 1.14-1.7 0-1.07-.81-1.62-1.76-1.62zM13 8.5c0-.36.27-.6.57-.6.33 0 .6.3.6.65 0 .42-.2.68-.67.97-.41-.5-.5-.73-.5-1.02zm-.78 3.5c0-.48.33-.87.9-1.13l1.1 1.42c-.36.44-.7.6-1.08.6a.93.93 0 0 1-.92-.9zm5.34 2L14 24h2.98l.45-1.43h3.07l.41 1.43H24l-3.52-10h-2.92zm1.45 3.35h.03l.87 3.08h-1.83l.93-3.08z",fill:"#000"})))}),null),styles:[{name:"vk_faq-normal",label:(0,M.__)("Normal","vk-blocks"),isDefault:!0},{name:"vk_faq-bgfill-circle",label:(0,M.__)("Bgfill Circle","vk-blocks")},{name:"vk_faq-bgfill-square",label:(0,M.__)("Bgfill Square","vk-blocks")},{name:"vk_faq-bgfill-rounded",label:(0,M.__)("Bgfill Rounded","vk-blocks")},{name:"vk_faq-border-circle",label:(0,M.__)("Border Circle","vk-blocks")},{name:"vk_faq-border-square",label:(0,M.__)("Border Square","vk-blocks")},{name:"vk_faq-border-rounded",label:(0,M.__)("Border Rounded","vk-blocks")}],example:{innerBlocks:[{name:"vk-blocks/faq2-q",innerBlocks:[{name:"core/paragraph",attributes:{content:F}}]},{name:"vk-blocks/faq2-a",innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]}]},edit:function(){var e,t=(0,Q.useBlockProps)({className:"vk_faq"});return e=vk_blocks_check.is_pro?(0,M.__)("If you want to be collapsing this block, you can set it at Setting > VK Blocks","vk-blocks"):(0,M.__)("You can be collapsing this block at VK Blocks Pro","vk-blocks"),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Accordion Setting","vk-blocks")},(0,P.createElement)(ne.PanelRow,null,e))),(0,P.createElement)("div",t,(0,P.createElement)("div",{className:"vk_faq-header"}),(0,P.createElement)("dl",{className:"vk_faq-body"},(0,P.createElement)(Q.InnerBlocks,{allowedBlocks:["vk-blocks/faq2-q","vk-blocks/faq2-a"],template:[["vk-blocks/faq2-q"],["vk-blocks/faq2-a"]],templateLock:"all"})),(0,P.createElement)("div",{className:"vk_faq-footer"})))},save:function(){var e=Q.useBlockProps.save({className:"vk_faq [accordion_trigger_switch]"});return(0,P.createElement)("div",e,(0,P.createElement)("div",{className:"vk_faq-header"}),(0,P.createElement)("dl",{className:"vk_faq-body"},(0,P.createElement)(Q.InnerBlocks.Content,null)),(0,P.createElement)("div",{className:"vk_faq-footer"}))},deprecated:yn};function Nn(){return Nn=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},Nn.apply(this,arguments)}var Tn,Bn,wn,Sn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2-a","category":"vk-blocks-cat","title":"FAQ Answer","parent":["vk-blocks/faq2"],"description":"Answer area where you can add blocks freely.","textdomain":"vk-blocks","supports":{"anchor":true,"reusable":false}}'),In=[{attributes:{},save:function(){return(0,P.createElement)("dd",{className:"vk_faq_content"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],Rn=Sn.name,An={icon:(0,P.createElement)((function(e){return G.createElement("svg",Nn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),dn||(dn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),kn||(kn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),hn||(hn=G.createElement("path",{d:"M14.99 0 10 14h4.17l.63-2h4.3l.57 2H24L19.07 0h-4.08zm2.03 4.69h.04L18.27 9h-2.56l1.3-4.31z",fill:"#000"})))}),null),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:j}}]},edit:function(){var e=(0,Q.useBlockProps)({className:"vk_faq_content"});return(0,P.createElement)("dd",e,(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}))},save:function(){return(0,P.createElement)("dd",Q.useBlockProps.save({className:"vk_faq_content"}),(0,P.createElement)(Q.InnerBlocks.Content,null))},deprecated:In};function On(){return On=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},On.apply(this,arguments)}var zn,Pn,Mn,Fn,jn,Hn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/faq2-q","title":"FAQ Question","category":"vk-blocks-cat","parent":["vk-blocks/faq2"],"description":"Question area where you can freely add blocks.","textdomain":"vk-blocks","supports":{"anchor":true,"className":true,"reusable":false}}'),Ln=[{attributes:{},save:function(){return(0,P.createElement)("dt",{className:"vk_faq_title"},(0,P.createElement)(Q.InnerBlocks.Content,null))}}],Un=Hn.name,Dn={icon:(0,P.createElement)((function(e){return G.createElement("svg",On({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Tn||(Tn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Bn||(Bn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),wn||(wn=G.createElement("path",{d:"M16.98 0c-2.06 0-3.74.7-5.03 2.08A7.44 7.44 0 0 0 10 7.4a7.5 7.5 0 0 0 1.97 5.36 6.62 6.62 0 0 0 5.01 2.03c1.37 0 2.55-.3 3.26-.75L22.09 16 24 14.06l-1.64-1.72c1-1.26 1.6-2.97 1.6-4.94 0-2.18-.65-3.98-1.95-5.34A6.67 6.67 0 0 0 16.98 0zm-2.74 7.4c0-2.3 1-3.88 2.72-3.88 1.54 0 2.76 1.27 2.76 3.88 0 .73-.1 1.32-.27 1.88l-1.16-1.21-1.9 1.9 1.15 1.22c-.2.06-.37.08-.56.08-1.6 0-2.74-1.34-2.74-3.87z",fill:"#000"})))}),null),example:{innerBlocks:[{name:"core/paragraph",attributes:{content:F}}]},edit:function(){var e=(0,Q.useBlockProps)({className:"vk_faq_title"});return(0,P.createElement)("dt",e,(0,P.createElement)(Q.InnerBlocks,{templateLock:!1,template:[["core/paragraph"]]}))},save:function(){return(0,P.createElement)("dt",Q.useBlockProps.save({className:"vk_faq_title"}),(0,P.createElement)(Q.InnerBlocks.Content,null))},deprecated:Ln},Vn={heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},qn=[{attributes:Vn,save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.arrowFlag;return(0,P.createElement)("div",Q.useBlockProps.save({className:"".concat(r," vk_flow")}),(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a&&(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:""}))))}},{attributes:Vn,save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.arrowFlag;return(0,P.createElement)("div",{className:"".concat(r," vk_flow")},(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a?(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:""})):""))}}],Wn=qn;function Jn(){return Jn=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},Jn.apply(this,arguments)}var Zn,Gn,Yn,Xn=JSON.parse('{"apiVersion":2,"name":"vk-blocks/flow","category":"vk-blocks-cat","title":"Flow","attributes":{"heading":{"type":"string","source":"html","selector":"dt"},"content":{"type":"string","source":"html","selector":"dd"},"arrowFlag":{"type":"string","default":"vk_flow-arrow-on"},"insertImage":{"type":"string","default":null},"insertImageAlt":{"type":"string","default":null}},"description":"Displays a sequential description in time series.","textdomain":"vk-blocks","supports":{"className":true}}'),$n=Xn.name,Kn={icon:(0,P.createElement)((function(e){return G.createElement("svg",Jn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),zn||(zn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Pn||(Pn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})),Mn||(Mn=G.createElement("path",{d:"M12.5 14 9 10h7l-3.5 4z",fill:"#000"})),Fn||(Fn=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 1H1v6h22V1zM0 0v8h24V0H0z",fill:"#000"})),jn||(jn=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4.5H4v-1h16v1z",fill:"#000"})))}),null),example:{attributes:{heading:F,content:j,arrowFlag:"vk_flow-arrow-on",insertImage:U}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.heading,r=t.content,l=t.insertImage,c=t.arrowFlag,i=t.insertImageAlt,s=(0,Q.useBlockProps)({className:"".concat(c," vk_flow")});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Display of arrow","vk-blocks")},(0,P.createElement)(ne.RadioControl,{selected:c,options:[{label:(0,M.__)("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:(0,M.__)("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}}))),(0,P.createElement)("div",s,(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText,{key:"".concat(o,"2"),tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:a,placeholder:(0,M.__)("Input title","vk-blocks")}),(0,P.createElement)(Q.RichText,{key:"".concat(o,"3"),tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:r,placeholder:(0,M.__)("Input content","vk-blocks")})),(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){n({insertImage:e.url}),n({insertImageAlt:e.alt})},type:"image",className:"vk_flow_frame_image",value:l,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:l?"image-button":"button button-large"},l?(0,P.createElement)("img",{className:"icon-image",src:l,alt:i}):(0,M.__)("Select image","vk-blocks"))}})))))},save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,r=t.insertImageAlt,l=t.arrowFlag;return(0,P.createElement)("div",Q.useBlockProps.save({className:"".concat(l," vk_flow")}),(0,P.createElement)("div",{className:"vk_flow_frame"},(0,P.createElement)("dl",{className:"vk_flow_frame_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a&&(0,P.createElement)("div",{className:"vk_flow_frame_image"},(0,P.createElement)("img",{src:a,alt:r}))))},deprecated:Wn};function Qn(){return Qn=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},Qn.apply(this,arguments)}var eo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var to=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.className,k=De()(d,"vk_heading vk_heading-style-".concat(p)),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}())}}]),a}(P.Component);var no=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var oo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component);var ao,ro=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,r=n.title,l=n.titleColor,c=n.titleSize,i=n.subText,s=n.subTextFlag,u=n.subTextColor,m=n.subTextSize,p=n.titleStyle,v=n.titleMarginBottom,f=n.outerMarginBottom,b=this.props.setAttributes,d=this.props.for_,k="vk_heading vk_heading-style-".concat(p),_="h"+o;return null!==f&&(e={marginBottom:f+"rem"}),t=null!==v?{color:l,fontSize:c+"rem",marginBottom:v+"rem",textAlign:a}:{color:l,fontSize:c+"rem",textAlign:a},"edit"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):"save"===d?(0,P.createElement)("div",{className:k,style:e},(0,P.createElement)(Q.RichText.Content,{tagName:_,value:r,onChange:function(e){return b({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(p),placeholder:(0,M.__)("Input title…","vk-blocks")}),function(){if("on"===s)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:i,onChange:function(e){return b({subText:e})},style:{color:u,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(p),placeholder:(0,M.__)("Input sub text…","vk-blocks")})}()):void 0}}]),a}(P.Component),lo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},co=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},lo(l,I,n,E),S)}if("save"===r){var R;R=0<(i.match(/span/g)||[]).length?et(i):(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i});var A,O=(0,P.createElement)(P.Fragment,null,et(N),R,et(T));return"on"===p&&(A=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},lo(l,O,n,E),A)}},io=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},so=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},io(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},io(l,A,n,E),R)}},uo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},mo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=null!=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},uo(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},uo(l,A,n,E),R)}},po=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},vo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},po(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},po(l,A,n,E),R)}},fo=function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}},bo=function(e){var t,n,o=e.attributes,a=e.setAttributes,r=e.for_,l=o.level,c=o.align,i=o.title,s=o.titleColor,u=o.titleSize,m=o.subText,p=o.subTextFlag,v=o.subTextColor,f=o.subTextSize,b=o.titleStyle,d=o.titleMarginBottom,k=o.outerMarginBottom,_=o.fontAwesomeIconBefore,h=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y="vk_heading vk_heading-style-".concat(b);k&&(t={marginBottom:k+"rem"}),n=null!=d?{color:s,fontSize:u+"rem",marginBottom:d+"rem",textAlign:c}:{color:s,fontSize:u+"rem",textAlign:c};var E="vk_heading_title vk_heading_title-style-".concat(b),x={color:v,fontSize:f+"rem",textAlign:c},C="vk_heading_subtext vk_heading_subtext-style-".concat(b),N="",T="";if(_){g=g||"#000000";var B=_.split("<i");B[0]=B[0]+'<i style="color:'.concat(g,';" '),N=B.join("")}if(h){g=g||"#000000";var w=h.split("<i");w[0]=w[0]+'<i style="color:'.concat(g,';" '),T=w.join("")}if("edit"===r){var S,I=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText,{tagName:"span",value:i,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(T));return"on"===p&&(S=(0,P.createElement)(Q.RichText,{tagName:"p",value:m,onChange:function(e){return a({subText:e})},style:x,className:C,placeholder:(0,M.__)("Input sub text…","vk-blocks")})),(0,P.createElement)("div",{className:y,style:t},fo(l,I,n,E),S)}if("save"===r){var R,A=(0,P.createElement)(P.Fragment,null,et(N),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:i}),et(T));return"on"===p&&(R=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:m,style:x,className:C})),(0,P.createElement)("div",{className:y,style:t},fo(l,A,n,E),R)}};function ko(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 _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ho={level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number"},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2},titleMarginBottom:{type:"number",default:1},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.2}},go=_o(_o({},ho),{},{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),yo=_o(_o({},go),{},{title:{type:"string",source:"html",selector:"span",default:""},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""},fontAwesomeIconColor:{type:"string",default:"#000000"}}),Eo=_o(_o({},yo),{},{subTextFlag:{type:"string",default:"off"}}),xo=_o(_o({},Eo),{},{outerMarginBottom:{type:"number",default:0},titleMarginBottom:{type:"number",default:1},titleColor:{type:"string",default:"#000000"},subTextColor:{type:"string",default:"#000000"}}),Co=_o(_o({},xo),{},{outerMarginBottom:{type:"number",default:null},titleMarginBottom:{type:"number",default:null},titleColor:{type:"string",default:null},subTextColor:{type:"string",default:null},fontAwesomeIconColor:{type:"string",default:"#000000"}}),No=_o(_o({},Co),{},(h(ao={titleSize:{type:"number",default:2},subTextSize:{type:"number",default:1.2},subTextColor:{type:"string"}},"subTextSize",{type:"number"}),h(ao,"fontAwesomeIconColor",{type:"string"}),ao)),To=_o(_o({},No),{},{titleColor:{type:"string"},titleSize:{type:"number"}}),Bo=[{attributes:To,save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,g="vk_heading vk_heading-style-".concat(v),y={marginBottom:null!=b?b+"rem":void 0},E="";void 0!==c&&(E+="has-text-color",pe(c)||(E+=" has-".concat(c,"-color")));var x=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(v),!!v),h(t,"".concat(E),!!E),t)),C={color:null!=c&&pe(c)?c:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=f?f+"rem":void 0,textAlign:null!=r?r:void 0},N="";void 0!==m&&(N+="has-text-color",pe(m)||(N+=" has-".concat(m,"-color")));var T=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(v),!!v),h(n,"".concat(N),!!N),n)),B={color:null!=m&&pe(m)?m:void 0,fontSize:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},w="";void 0!==_&&(w+="has-text-color",pe(_)||(w+=" has-".concat(_,"-color")));var S=_&&pe(_)?'style="color:'.concat(_,';"'):"",I=d,R=k;if(I&&w){var A=I.split('<i class="');A[0]=A[0]+'<i class="'.concat(w," "),I=A.join("")}if(R&&w){var O=R.split('<i class="');O[0]=O[0]+'<i class="'.concat(w," "),R=O.join("")}if(I&&S){var z=I.split("<i");z[0]=z[0]+"<i ".concat(S," "),I=z.join("")}if(R&&S){var M=R.split("<i");M[0]=M[0]+"<i ".concat(S," "),R=M.join("")}var F,j=(0,P.createElement)(P.Fragment,null,et(I),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(R));"on"===u&&(F=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:B,className:T}));var H=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",H,(0,P.createElement)("div",{className:g,style:y},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,j,C,x),F))}},{attributes:To,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="",N=d?'style="color:'.concat(d,';"'):"";if(f){var T=f.split("<i");T[0]=T[0]+"<i ".concat(N," "),x=T.join("")}if(b){var B=b.split("<i");B[0]=B[0]+"<i ".concat(N," "),C=B.join("")}var w,S=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(w=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var I=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",I,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,S,h,g),w))}},{attributes:No,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="",N=d?'style="color:'.concat(d,';"'):"";if(f){var T=f.split("<i");T[0]=T[0]+"<i ".concat(N," "),x=T.join("")}if(b){var B=b.split("<i");B[0]=B[0]+"<i ".concat(N," "),C=B.join("")}var w,S=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(w=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var I=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",I,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,S,h,g),w))}},{attributes:Co,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,d=t.fontAwesomeIconColor,k="vk_heading vk_heading-style-".concat(m),_={marginBottom:null!=v?v+"rem":void 0},h={color:null!=r?r:void 0,fontSize:null!=l?l+"rem":void 0,marginBottom:null!=p?p+"rem":void 0,textAlign:null!=o?o:void 0},g="vk_heading_title vk_heading_title-style-".concat(m),y={color:null!=s?s:void 0,fontSize:null!=u?u+"rem":void 0,textAlign:null!=o?o:void 0},E="vk_heading_subtext vk_heading_subtext-style-".concat(m),x="",C="";if(f){d=d||"#000000";var N=f.split("<i");N[0]=N[0]+'<i style="color:'.concat(d,';" '),x=N.join("")}if(b){d=d||"#000000";var T=b.split("<i");T[0]=T[0]+'<i style="color:'.concat(d,';" '),C=T.join("")}var B,w=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:a}),et(C));"on"===i&&(B=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:y,className:E}));var S=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",S,(0,P.createElement)("div",{className:k,style:_},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(n,w,h,g),B))}},{attributes:xo,save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,h="vk_heading vk_heading-style-".concat(v);b&&(t={marginBottom:b+"rem"}),n=null!=f?{color:c,fontSize:i+"rem",marginBottom:f+"rem",textAlign:r}:{color:c,fontSize:i+"rem",textAlign:r};var g="vk_heading_title vk_heading_title-style-".concat(v),y={color:m,fontSize:p+"rem",textAlign:r},E="vk_heading_subtext vk_heading_subtext-style-".concat(v),x="",C="";if(d){_=_||"#000000";var N=d.split("<i");N[0]=N[0]+'<i style="color:'.concat(_,';" '),x=N.join("")}if(k){_=_||"#000000";var T=k.split("<i");T[0]=T[0]+'<i style="color:'.concat(_,';" '),C=T.join("")}var B,w=(0,P.createElement)(P.Fragment,null,et(x),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(C));"on"===u&&(B=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:y,className:E}));var S=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",S,(0,P.createElement)("div",{className:h,style:t},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,w,n,g),B))}},{attributes:Eo,save:function(e){return(0,P.createElement)("div",null,(0,P.createElement)(bo,Ne({},e,{for_:"save"})))}},{attributes:Eo,save:function(e){return(0,P.createElement)("div",null,(0,P.createElement)(vo,Ne({},e,{for_:"save"})))}},{attributes:yo,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(mo,Ne({},e,{for_:"save"})))}},{attributes:yo,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(so,{attributes:t,for_:"save"}))}},{attributes:yo,save:function(e){return(0,P.createElement)("div",{id:e.attributes.anchor},(0,P.createElement)(co,Ne({},e,{for_:"save"})))}},{attributes:go,save:function(e){var t=e.attributes;return(0,P.createElement)("div",{id:t.anchor},(0,P.createElement)(ro,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n,id:"vk-htags-a181b726-7749-4bd8-9887-0306c0bc7bd5"},(0,P.createElement)(oo,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n,id:"vk-htags--1"},(0,P.createElement)(no,{attributes:t,for_:"save"}))}},{attributes:go,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(to,{attributes:t,className:n,for_:"save"})}},{attributes:go,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f="h"+n;return(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:v+"rem"}},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o,marginBottom:p+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}())}},{attributes:go,save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,r=t.titleColor,l=t.titleSize,c=t.subText,i=t.subTextFlag,s=t.subTextColor,u=t.subTextSize,m=t.titleStyle,p=t.titleMarginBottom,v=t.outerMarginBottom,f="h"+n;return(0,P.createElement)(P.Fragment,null,null===v?(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m)},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()):(0,P.createElement)("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:v+"rem"}},(0,P.createElement)(Q.RichText.Content,{tagName:f,value:a,style:{color:r,fontSize:l+"rem",textAlign:o,marginBottom:p+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===i)return(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:c,style:{color:s,fontSize:u+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()))}},{attributes:ho,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)("div",{className:n},(0,P.createElement)(eo,{attributes:t,for_:"save"}))}}],wo=Bo;function So(e){var t=e.level,n=e.isPressed,o=void 0!==n&&n,a={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return a.hasOwnProperty(t)?(0,P.createElement)(ne.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:o},(0,P.createElement)(ne.Path,{d:a[t]})):null}var Io=[1,2,3,4,5,6],Ro={className:"block-library-heading-level-dropdown vk-blocks-heading-level-dropdown"};function Ao(e){var t=e.selectedLevel,n=e.onChange;return(0,P.createElement)(ne.ToolbarDropdownMenu,{popoverProps:Ro,icon:(0,P.createElement)(So,{level:t}),label:(0,M.__)("Change heading level"),controls:Io.map((function(e){var o=e===t;return{icon:(0,P.createElement)(So,{level:e,isPressed:o}),label:(0,M.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
2 |
+
(0,M.__)("Heading %d"),e),isActive:o,onClick:function(){n(e)}}}))})}var Oo,zo,Po,Mo=JSON.parse('{"apiVersion":2,"name":"vk-blocks/heading","category":"vk-blocks-cat","title":"Heading","attributes":{"anchor":{"type":"string","source":"attribute","attribute":"id","selector":"*"},"level":{"type":"number","default":2},"align":{"type":"string"},"titleStyle":{"type":"string","default":"default"},"outerMarginBottom":{"type":"number","default":null},"title":{"type":"string","source":"html","selector":"span","default":""},"titleColor":{"type":"string"},"titleSize":{"type":"number"},"titleMarginBottom":{"type":"number","default":null},"subText":{"source":"html","selector":"p","default":""},"subTextFlag":{"type":"string","default":"off"},"subTextColor":{"type":"string"},"subTextSize":{"type":"number"},"fontAwesomeIconBefore":{"type":"string","default":""},"fontAwesomeIconAfter":{"type":"string","default":""},"fontAwesomeIconColor":{"type":"string"}},"description":"This is a heading that allows you to set text size, subtext, icon, and margin.","textdomain":"vk-blocks","supports":{"className":true,"customClassName":true,"anchor":true}}'),Fo={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t={title:e.content};return(0,g.createBlock)("vk-blocks/heading",t)}}]},jo=Mo.name,Ho={icon:(0,P.createElement)((function(e){return G.createElement("svg",Qn({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Zn||(Zn=G.createElement("path",{d:"M20 10V4h3v15h-3v-6h-6v6h-3v-1.89l1.06-1.1c.95-1 .28-2.64-1.06-2.73V4h3v6h6z",fill:"#000"})),Gn||(Gn=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Yn||(Yn=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),category:"vk-blocks-cat",example:{attributes:{anchor:"",level:2,align:"center",titleStyle:"default",outerMarginBottom:0,title:F,titleColor:D,titleSize:2,titleMarginBottom:1,subText:F,subTextFlag:"on",subTextColor:D,subTextSize:1.2,fontAwesomeIconBefore:L,fontAwesomeIconAfter:"",fontAwesomeIconColor:D}},edit:function(e){var t,n,o=e.attributes,a=e.setAttributes,r=o.level,l=o.align,c=o.title,i=o.titleColor,s=o.titleSize,u=o.subText,m=o.subTextFlag,p=o.subTextColor,v=o.subTextSize,f=o.titleStyle,b=o.titleMarginBottom,d=o.outerMarginBottom,k=o.fontAwesomeIconBefore,_=o.fontAwesomeIconAfter,g=o.fontAwesomeIconColor,y=vkFontAwesome.iconFamily,E="vk_heading vk_heading-style-".concat(f),x={marginBottom:null!=d?d+"rem":void 0},C="";void 0!==i&&(C+="has-text-color",pe(i)||(C+=" has-".concat(i,"-color")));var N=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(f),!!f),h(t,"".concat(C),!!C),t)),T={color:null!=i&&pe(i)?i:void 0,fontSize:null!=s?s+"rem":void 0,marginBottom:null!=b?b+"rem":void 0,textAlign:null!=l?l:void 0},B="";void 0!==p&&(B+="has-text-color",pe(p)||(B+=" has-".concat(p,"-color")));var w=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(f),!!f),h(n,"".concat(B),!!B),n)),S={color:null!=p&&pe(p)?p:void 0,fontSize:null!=v?v+"rem":void 0,textAlign:null!=l?l:void 0},I="";void 0!==g&&(I+="has-text-color",pe(g)||(I+=" has-".concat(g,"-color")));var R=g&&pe(g)?'style="color:'.concat(g,';"'):"",A=k,O=_;if(A&&I){var z=A.split('<i class="');z[0]=z[0]+'<i class="'.concat(I," "),A=z.join("")}if(O&&I){var F=O.split('<i class="');F[0]=F[0]+'<i class="'.concat(I," "),O=F.join("")}if(A&&R){var j=A.split("<i");j[0]=j[0]+"<i ".concat(R," "),A=j.join("")}if(O&&R){var H=O.split("<i");H[0]=H[0]+"<i ".concat(R," "),O=H.join("")}var L,U=(0,P.createElement)(P.Fragment,null,et(A),(0,P.createElement)(Q.RichText,{tagName:"span",value:c,onChange:function(e){a({title:e})},placeholder:(0,M.__)("Input title…","vk-blocks")}),et(O));"on"===m&&(L=(0,P.createElement)(Q.RichText,{tagName:"p",value:u,onChange:function(e){return a({subText:e})},style:S,className:w,placeholder:(0,M.__)("Input sub text…","vk-blocks")}));var D=(0,Q.useBlockProps)({className:""});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(ne.ToolbarGroup,null,(0,P.createElement)(Ao,{selectedLevel:r,onChange:function(e){a({level:e})}})),(0,P.createElement)(Q.AlignmentToolbar,{value:l,onChange:function(e){a({align:e})}})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Style Settings","vk-blocks")},(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Heading style","vk-blocks"),value:f,onChange:function(e){return a({titleStyle:e})},options:[{label:(0,M.__)("Default","vk-blocks"),value:"default"},{label:(0,M.__)("Plain","vk-blocks"),value:"plain"}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Margin Setting","vk-blocks")},(0,P.createElement)("p",null,(0,M.__)("Margin between Heading and sub text (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:b,onChange:function(e){a({titleMarginBottom:e})},min:-1,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)("p",null,(0,M.__)("Margin bottom size of after this block (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:d,onChange:function(e){a({outerMarginBottom:e})},min:-1,max:8,step:.1,allowReset:!0,resetFallbackValue:null})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Heading Settings","vk-blocks")},(0,P.createElement)(ne.RangeControl,{label:(0,M.__)("Text size (rem)","vk-blocks"),value:s,onChange:function(e){a({titleSize:e})},min:.5,max:4,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Text Color","vk-blocks"),id:"vk_heading_textColor"},(0,P.createElement)(Pe,Ne({schema:"titleColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon","vk-blocks")+" ( "+y+" )"},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Before text","vk-blocks"),id:"vk_heading_beforeText"},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconBefore"},e))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("After text","vk-blocks"),id:"vk_heading_afterText"},(0,P.createElement)(Ke,Ne({attributeName:"fontAwesomeIconAfter"},e))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon Color","vk-blocks"),id:"vk_heading_iconColor"},(0,P.createElement)(Pe,Ne({schema:"fontAwesomeIconColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Sub Text Settings","vk-blocks")},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Position","vk-blocks"),selected:m,options:[{label:(0,M.__)("Display","vk-blocks"),value:"on"},{label:(0,M.__)("Hide","vk-blocks"),value:"off"}],onChange:function(e){return a({subTextFlag:e})}}),(0,P.createElement)("p",null,(0,M.__)("Text size (rem)","vk-blocks")),(0,P.createElement)(ne.RangeControl,{value:v,onChange:function(e){a({subTextSize:e})},min:.5,max:3,step:.1,allowReset:!0,resetFallbackValue:null}),(0,P.createElement)(Pe,Ne({schema:"subTextColor"},e)))),(0,P.createElement)("div",D,(0,P.createElement)("div",{className:E,style:x},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(r,U,T,N),L)))},save:function(e){var t,n,o=e.attributes,a=o.level,r=o.align,l=o.title,c=o.titleColor,i=o.titleSize,s=o.subText,u=o.subTextFlag,m=o.subTextColor,p=o.subTextSize,v=o.titleStyle,f=o.titleMarginBottom,b=o.outerMarginBottom,d=o.fontAwesomeIconBefore,k=o.fontAwesomeIconAfter,_=o.fontAwesomeIconColor,g="vk_heading vk_heading-style-".concat(v),y={marginBottom:null!=b?b+"rem":void 0},E="";void 0!==c&&(E+="has-text-color",pe(c)||(E+=" has-".concat(c,"-color")));var x=De()("vk_heading_title",(h(t={},"vk_heading_title-style-".concat(v),!!v),h(t,"".concat(E),!!E),t)),C={color:null!=c&&pe(c)?c:void 0,fontSize:null!=i?i+"rem":void 0,marginBottom:null!=f?f+"rem":void 0,textAlign:null!=r?r:void 0},N="";void 0!==m&&(N+="has-text-color",pe(m)||(N+=" has-".concat(m,"-color")));var T=De()("vk_heading_subtext",(h(n={},"vk_heading_subtext-style-".concat(v),!!v),h(n,"".concat(N),!!N),n)),B={color:null!=m&&pe(m)?m:void 0,fontSize:null!=p?p+"rem":void 0,textAlign:null!=r?r:void 0},w="";void 0!==_&&(w+="has-text-color",pe(_)||(w+=" has-".concat(_,"-color")));var S=_&&pe(_)?'style="color:'.concat(_,';"'):"",I=d,R=k;if(I&&w){var A=I.split('<i class="');A[0]=A[0]+'<i class="'.concat(w," "),I=A.join("")}if(R&&w){var O=R.split('<i class="');O[0]=O[0]+'<i class="'.concat(w," "),R=O.join("")}if(I&&S){var z=I.split("<i");z[0]=z[0]+"<i ".concat(S," "),I=z.join("")}if(R&&S){var M=R.split("<i");M[0]=M[0]+"<i ".concat(S," "),R=M.join("")}var F,j=(0,P.createElement)(P.Fragment,null,et(I),(0,P.createElement)(Q.RichText.Content,{tagName:"span",value:l}),et(R));"on"===u&&(F=(0,P.createElement)(Q.RichText.Content,{tagName:"p",value:s,style:B,className:T}));var H=Q.useBlockProps.save({className:""});return(0,P.createElement)("div",H,(0,P.createElement)("div",{className:g,style:y},function(e,t,n,o){switch(e){case 1:return(0,P.createElement)("h1",{style:n,className:o},t);case 2:return(0,P.createElement)("h2",{style:n,className:o},t);case 3:return(0,P.createElement)("h3",{style:n,className:o},t);case 4:return(0,P.createElement)("h4",{style:n,className:o},t);case 5:return(0,P.createElement)("h5",{style:n,className:o},t);case 6:return(0,P.createElement)("h6",{style:n,className:o},t)}}(a,j,C,x),F))},transforms:Fo,deprecated:wo};function Lo(){return Lo=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},Lo.apply(this,arguments)}var Uo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_frame";"center"===l?m+=" text-center":"right"===l&&(m+=" text-right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&null!=i&&(p+=" has-background",pe(i)?v={backgroundColor:"".concat(i)}:p+=" has-".concat(i,"-background-color")):("undefined"!==i&&null!=i&&(p+=" has-text-color",pe(i)?v={color:"".concat(i)}:p+=" has-".concat(i,"-color")),m+="1"===c?" is-style-outline":" is-style-noline"),36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;36===t&&"px"===n||(b=" font-size:".concat(t).concat(n));var d=e.split(" ");d[0]=d[0]+' style="'.concat(b,';"'),d[1]=" "+d[1]+" vk_icon_font ",f=d.join("")}var k,_=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return k=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},_):_,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},k))}}]),a}(P.Component),Do=JSON.parse('{"apiVersion":2,"name":"vk-blocks/icon","category":"vk-blocks-cat","title":"Icon","attributes":{"faIcon":{"type":"string","default":"<i class=\\"fas fa-user\\"></i>"},"iconSize":{"type":"number","default":36},"iconSizeUnit":{"type":"string","default":"px"},"iconMargin":{"type":"number","default":22},"iconMarginUnit":{"type":"string","default":"px"},"iconRadius":{"type":"number","default":50},"iconAlign":{"type":"string","default":"left"},"iconType":{"type":"string","default":"0"},"iconColor":{"type":"string"},"iconUrl":{"type":"string"},"iconTarget":{"type":"Boolean","default":false}},"description":"Display icons with Font Awesome.","textdomain":"vk-blocks","supports":{"className":true,"anchor":true}}');var Vo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_outer";"center"===l?m+=" vk_icon_align_center":"right"===l&&(m+=" vk_icon_align_right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&(v={backgroundColor:"".concat(i),borderColor:"".concat(i)}):"1"===c?(p+=" vk_icon_border_frame","undefined"!==i&&(v={borderColor:"".concat(i)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;"0"!==c&&"undefined"!==i&&(b="color:".concat(i));var d=null;36===t&&"px"===n||(d=" font-size:".concat(t).concat(n));var k=e.split(" ");k[0]=k[0]+' style="'.concat(b,"; ").concat(d,';"'),k[1]=" "+k[1]+" vk_icon_font ",f=k.join("")}var _,h=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return _=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},h):h,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},_))}}]),a}(P.Component);var qo=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.lbFontAwesomeIcon,t=this.props.lbSize,n=this.props.lbSizeUnit,o=this.props.lbMargin,a=this.props.lbMarginUnit,r=this.props.lbRadius,l=this.props.lbAlign,c=this.props.lbType,i=this.props.lbColor,s=this.props.lbUrl,u=this.props.lbTarget,m="vk_icon_frame";"center"===l?m+=" vk_icon_align_center":"right"===l&&(m+=" vk_icon_align_right");var p="vk_icon_border",v={};"0"===c?"undefined"!==i&&null!=i&&(v={backgroundColor:"".concat(i),borderColor:"".concat(i)}):"1"===c?(p+=" vk_icon_border_frame","undefined"!==i&&null!=i&&(v={borderColor:"".concat(i)})):p+=" vk_icon_border_none",36===t&&"px"===n&&22===o&&"px"===a||(v.width="calc("+(t+n)+" + "+(2*o+a)+")",v.height=v.width),50!==r&&(v.borderRadius=r+"%");var f="";if(e){e=e.replace(/ fas/g,"fas");var b=null;"0"!==c&&"undefined"!==i&&null!=i&&(b="color:".concat(i));var d=null;36===t&&"px"===n||(d=" font-size:".concat(t).concat(n));var k=e.split(" ");k[0]=k[0]+' style="'.concat(b,"; ").concat(d,';"'),k[1]=" "+k[1]+" vk_icon_font ",f=k.join("")}var _,h=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:p,style:v},et(f)));return _=null!=s&&""!==s?(0,P.createElement)("a",{href:s,className:"vk_icon_link",target:u&&"_blank",rel:u&&"noopener noreferrer"},h):h,(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:m},_))}}]),a}(P.Component);function Wo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zo,Go,Yo,Xo={faIcon:{type:"string",default:'<i class="fas fa-user"></i>'},iconSize:{type:"number",default:36},iconSizeUnit:{type:"string",default:"px"},iconMargin:{type:"number",default:22},iconMarginUnit:{type:"string",default:"px"},iconRadius:{type:"number",default:50},iconAlign:{type:"string",default:"left"},iconType:{type:"string",default:"0"},iconColor:{type:"string",default:"undefined"},iconUrl:{type:"string",default:""},iconTarget:{type:"Boolean",default:!1}},$o=[{attributes:Jo(Jo({},Xo),{},{iconColor:{type:"string"},iconUrl:{type:"string"}}),save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(qo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))}},{attributes:Xo,save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(Vo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))}}],Ko=Do.name,Qo={icon:(0,P.createElement)((function(e){return G.createElement("svg",Lo({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Oo||(Oo=G.createElement("path",{d:"M10.9 14.8H7.6a.1.1 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1L6 19.8c0-.1-.2-.1-.2 0L5.4 21v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 18.3v-.1l3-3.2c0-.1 0-.2-.1-.2Z",fill:"#000"})),zo||(zo=G.createElement("path",{d:"M7 13H5a.1.1 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0L1.4 16c0-.1 0-.2.1-.2h.9a.1.1 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.31.31 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8A.1.1 0 0 0 7 13Z",fill:"#D8141C"})),Po||(Po=G.createElement("path",{d:"M15.5 0a8.5 8.5 0 0 0-7.92 11.59 1.64 1.64 0 0 1 1 1.69h2.27A1.61 1.61 0 0 1 12.06 16l-.18.19A8.5 8.5 0 1 0 15.5 0Zm1.7 13.6h-3.4V6.8h3.4v6.8Zm0-8.3h-3.4V3.4h3.4v1.9Z",fill:"#0B0C0C"})))}),null),example:{attributes:{faIcon:L,iconSize:36,iconSizeUnit:"px",iconMargin:22,iconMarginUnit:"px",iconRadius:50,iconType:"0",iconAlign:"left",iconColor:"undefined",iconUrl:V,iconTarget:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.faIcon,r=t.iconSize,l=t.iconSizeUnit,c=t.iconMargin,i=t.iconMarginUnit,s=t.iconRadius,u=t.iconAlign,m=t.iconType,p=t.iconColor,v=t.iconUrl,f=t.iconTarget,b=vkFontAwesome.iconFamily,d=(0,ze.select)("core/block-editor").getBlockParentsByBlockName(o,["vk-blocks/icon-outer"]),k="";d.length||(k=(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.BlockAlignmentControl,{value:u,onChange:function(e){n({iconAlign:e})},controls:["left","center","right"]})));var _="px"===l?36:1,h="px"===i?22:1,g="";d.length||(g=(0,P.createElement)(P.Fragment,null,(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Size","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:r,step:"px"===l?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):_;"px"===l&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:l,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(r)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Margin","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:c,step:"px"===i?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):h;"px"===i&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:i,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(c)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Border radius","vk-blocks"),id:"vk_icon-radius"},(0,P.createElement)(ne.RangeControl,{value:s,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===m,isSecondary:"0"!==m,onClick:function(){return n({iconType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===m,isSecondary:"1"!==m,onClick:function(){return n({iconType:"1"})}},(0,M.__)("Icon & Frame","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===m,isSecondary:"2"!==m,onClick:function(){return n({iconType:"2"})}},(0,M.__)("Icon only","vk-blocks"))))),a&&!a.match(/<i/)&&(a='<i class="'.concat(a,'"></i>')),(0,P.useEffect)((function(){"undefined"===p&&n({iconColor:void 0})}),[o]);var y=(0,Q.useBlockProps)({className:"vk_icon"});return(0,P.createElement)(P.Fragment,null,k,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon","vk-blocks")+" ( "+b+" )",id:"vk_icon-font"},(0,P.createElement)(Ke,Ne({attributeName:"faIcon"},e))),g,(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Link URL","vk-blocks"),value:v,onChange:function(e){return n({iconUrl:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:f,onChange:function(e){n({iconTarget:e})}})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,null,(0,P.createElement)(Pe,Ne({schema:"iconColor"},e))))),(0,P.createElement)("div",y,(0,P.createElement)(Uo,{lbFontAwesomeIcon:a,lbSize:r,lbSizeUnit:l,lbMargin:c,lbMarginUnit:i,lbRadius:s,lbAlign:u,lbType:m,lbColor:p})))},save:function(e){var t=e.attributes,n=t.faIcon,o=t.iconSize,a=t.iconSizeUnit,r=t.iconMargin,l=t.iconMarginUnit,c=t.iconRadius,i=t.iconAlign,s=t.iconType,u=t.iconColor,m=t.iconUrl,p=t.iconTarget;n&&!n.match(/<i/)&&(n='<i class="'.concat(n,'"></i>'));var v=Q.useBlockProps.save({className:"vk_icon"});return(0,P.createElement)("div",v,(0,P.createElement)(Uo,{lbFontAwesomeIcon:n,lbSize:o,lbSizeUnit:a,lbMargin:r,lbMarginUnit:l,lbRadius:c,lbAlign:i,lbType:s,lbColor:u,lbUrl:m,lbTarget:p}))},deprecated:$o};function ea(){return ea=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},ea.apply(this,arguments)}var ta,na,oa,aa=JSON.parse('{"apiVersion":2,"name":"vk-blocks/icon-outer","category":"vk-blocks-cat","title":"Icon Outer","attributes":{"iconSize":{"type":"number","default":36},"iconSizeUnit":{"type":"string","default":"px"},"iconMargin":{"type":"number","default":22},"iconMarginUnit":{"type":"string","default":"px"},"iconRadius":{"type":"number","default":50},"iconsJustify":{"type":"string","default":"left"},"iconType":{"type":"string","default":"0"}},"description":"Display the Font Awesome icons horizontally.","textdomain":"vk-blocks","supports":{"className":true}}'),ra=aa.name,la={icon:(0,P.createElement)((function(e){return G.createElement("svg",ea({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23.91 17.64"},e),Zo||(Zo=G.createElement("defs",null,G.createElement("style",null,".icon_svg__cls-1{fill-rule:evenodd}"))),">",Go||(Go=G.createElement("path",{className:"icon_svg__cls-1",d:"M1.15 6.21a3.67 3.67 0 0 0 1.57 1 3.57 3.57 0 0 0 1 .15H4l.33-.06a.37.37 0 0 1 0-.11l.32-.75a.11.11 0 0 1 .11-.11h1.53A3.65 3.65 0 1 0 .1 3.6a3.66 3.66 0 0 0 1 2.56ZM3 1.46h1.48v.81H3Zm0 1.46h1.48v2.93H3ZM11 7.16a3.65 3.65 0 0 1-1.58-1 3.63 3.63 0 0 1-1.07-2.51 3.66 3.66 0 1 1 3.93 3.7H12a3.47 3.47 0 0 1-1-.19Zm.3-4.89v-.81h1.46v.81Zm0 3.58V2.92h1.46v2.93ZM19.23 7.16a3.65 3.65 0 0 1-1.58-1 3.62 3.62 0 0 1-1-2.56 3.65 3.65 0 1 1 3.93 3.7h-.28a3.52 3.52 0 0 1-1.07-.14Zm.3-4.89v-.81H21v.81Zm0 3.58V2.92H21v2.93Z"})),Yo||(Yo=G.createElement("path",{d:"M10.9 8.47H7.6a.09.09 0 0 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1l-.6-1.8c0-.1-.2-.1-.2 0l-.4 1.2v.1l.4 1.5.1.1h3.3a.1.1 0 0 0 .1-.1L8 12v-.1l3-3.2c0-.13 0-.23-.1-.23Z"})),G.createElement("path",{d:"M7 6.67H5a.09.09 0 0 0-.1.1l-.3.7c0 .1 0 .2.1.2h.8c.1 0 .1.1.1.2l-2.4 6.7c0 .1-.2.1-.2 0l-1.6-4.9c0-.1 0-.2.1-.2h.9a.09.09 0 0 1 .1.1l.6 1.7c0 .1.2.1.2 0l1-2.7c0-.1 0-.2-.1-.2H.1a.3.3 0 0 0-.1.2l3.1 9c0 .1.2.1.2 0l3.8-10.8a.09.09 0 0 0-.1-.1Z",style:{fill:"#d8141c"}}))}),null),styles:[],example:{innerBlocks:[{name:"vk-blocks/icon"},{name:"vk-blocks/icon"}]},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.iconSize,r=t.iconSizeUnit,l=t.iconMargin,c=t.iconMarginUnit,i=t.iconRadius,s=t.iconsJustify,u=t.iconType,m=(0,ze.select)("core/block-editor").getBlocksByClientId,p=(0,ze.dispatch)("core/block-editor").updateBlockAttributes,v=m(o);(0,P.useEffect)((function(){v&&v[0]&&v[0].innerBlocks&&v[0].innerBlocks.forEach((function(e){p(e.clientId,{iconSize:a}),p(e.clientId,{iconSizeUnit:r}),p(e.clientId,{iconMargin:l}),p(e.clientId,{iconMarginUnit:c}),p(e.clientId,{iconRadius:i}),p(e.clientId,{iconType:u})}))}),[v,t,o]);var f=(0,Q.useBlockProps)({className:"vk_icons"}),b="px"===r?36:1,d="px"===c?22:1;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.BlockControls,{group:"block"},(0,P.createElement)(Q.JustifyContentControl,{allowedControls:["left","center","right","space-between"],value:s,onChange:function(e){return n({iconsJustify:e})},popoverProps:{position:"bottom right",isAlternate:!0}})),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Icon Common Setting","vk-blocks")},(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Size","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:a,step:"px"===r?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):b;"px"===r&&(t=parseInt(t)),n({iconSize:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:r,onChange:function(e){n({iconSizeUnit:e}),"px"===e&&n({iconSize:parseInt(a)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconSize:36}),n({iconSizeUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Margin","vk-blocks")),(0,P.createElement)("div",{className:"vk_icon_custombox"},(0,P.createElement)(ne.TextControl,{className:"vk_icon_custombox_number",value:l,step:"px"===c?1:.1,min:0,onChange:function(e){var t=e?parseFloat(e):d;"px"===c&&(t=parseInt(t)),n({iconMargin:t})},type:"number"}),(0,P.createElement)(ne.SelectControl,{className:"vk_icon_custombox_unit",value:c,onChange:function(e){n({iconMarginUnit:e}),"px"===e&&n({iconMargin:parseInt(l)})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]}),(0,P.createElement)(ne.Button,{className:"vk_icon_custombox_reset",isSmall:!0,isSecondary:!0,onClick:function(){n({iconMargin:22}),n({iconMarginUnit:"px"})}},(0,M.__)("Reset"))),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Border radius","vk-blocks"),id:"vk_icon-radius"},(0,P.createElement)(ne.RangeControl,{value:i,onChange:function(e){return n({iconRadius:void 0!==e?e:50})},min:0,max:50,allowReset:!0})),(0,P.createElement)("p",{className:"mt-0 mb-2"},(0,M.__)("Style","vk-blocks")),(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"0"===u,isSecondary:"0"!==u,onClick:function(){return n({iconType:"0"})}},(0,M.__)("Solid color","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"1"===u,isSecondary:"1"!==u,onClick:function(){return n({iconType:"1"})}},(0,M.__)("Icon & Frame","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"2"===u,isSecondary:"2"!==u,onClick:function(){return n({iconType:"2"})}},(0,M.__)("Icon only","vk-blocks"))))),(0,P.createElement)("div",f,(0,P.createElement)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(s)},(0,P.createElement)(Q.InnerBlocks,{allowedBlocks:["vk-blocks/icon"],template:[["vk-blocks/icon"],["vk-blocks/icon"]],templateLock:!1,orientation:"horizontal"}))))},save:function(e){var t=e.attributes.iconsJustify,n=Q.useBlockProps.save({className:"vk_icons"});return(0,P.createElement)("div",n,(0,P.createElement)("div",{className:"vk_icons_col vk_icons_col-justify-".concat(t)},(0,P.createElement)(Q.InnerBlocks.Content,null)))}};function ca(){return ca=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},ca.apply(this,arguments)}var ia,sa,ua,ma=JSON.parse('{"apiVersion":2,"name":"vk-blocks/page-content","title":"Page Content","category":"vk-blocks-cat","attributes":{"TargetPost":{"type":"number","default":-1}},"description":"Displays the body content of the specified parent page.","textdomain":"vk-blocks","supports":{"className":true}}'),pa=ma.name,va={icon:(0,P.createElement)((function(e){return G.createElement("svg",ca({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ta||(ta=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 5.5H7a.5.5 0 0 0-.5.5v5.502l-1.467.006H5V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6.964l-.438-1.41.086-.09H17a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5Zm-4.745 10.25H14v-1.5h-1.634c.203.468.191 1.028-.11 1.5ZM8.502 12.5H16V11H8v.821c.23.179.398.418.502.679ZM8 7.75h8v1.5H8v-1.5Z",fill:"#1E1E1E"})),na||(na=G.createElement("path",{d:"m10.89 14.778-3.267.007a.11.11 0 0 0-.102.076l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.144-.103.144h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.106-.168-.106-.205-.007l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z",fill:"#000"})),oa||(oa=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))}),null),edit:function(e){var t,n,o,a=e.attributes,r=e.setAttributes,l=a.TargetPost,c=function(e){var t=[{label:(0,M.__)("Unspecified","vk-blocks"),value:-1}],n=e.map((function(e){return{label:e.title.rendered,value:e.id}}));return t.concat(n)}((t={slug:"page"},n={per_page:-1,status:"private,publish"},(0,ze.useSelect)((function(e){return e("core").getEntityRecords("postType",t.slug,n)||[]}),[t,n])));o=-1===l?(0,P.createElement)("div",{className:"alert alert-warning text-center"},(0,M.__)("Because no post is selected, The block Will not render","vk-blocks")):(0,P.createElement)(se(),{block:"vk-blocks/page-content",attributes:a});var i=(0,Q.useBlockProps)();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Page Setting","vk-blocks"),initialOpen:!0},(0,P.createElement)(ne.BaseControl,{id:"vb-call-01"},(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Select Page","vk-blocks"),value:l,options:c,onChange:function(e){return r({TargetPost:parseInt(e,10)})}})))),(0,P.createElement)("div",i,o))}};function fa(){return fa=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},fa.apply(this,arguments)}var ba=JSON.parse('{"apiVersion":2,"name":"vk-blocks/pr-blocks","title":"PR Blocks (not recommended)","category":"vk-blocks-cat","attributes":{"heading1":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-1"},"heading2":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-2"},"heading3":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-3"},"heading4":{"type":"string","source":"html","selector":".vk_prBlocks_item_title-4"},"content1":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-1"},"content2":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-2"},"content3":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-3"},"content4":{"type":"string","source":"html","selector":"p.vk_prBlocks_item_summary-4"},"url1":{"type":"string","default":""},"url2":{"type":"string","default":""},"url3":{"type":"string","default":""},"url4":{"type":"string","default":""},"urlOpenType1":{"type":"Boolean","default":false},"urlOpenType2":{"type":"Boolean","default":false},"urlOpenType3":{"type":"Boolean","default":false},"urlOpenType4":{"type":"Boolean","default":false},"icon1":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon2":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon3":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"icon4":{"type":"string","default":"<i class=\\"fas fa-file\\"></i>"},"color1":{"type":"string"},"color2":{"type":"string"},"color3":{"type":"string"},"color4":{"type":"string"},"bgType1":{"type":"string","default":"0"},"bgType2":{"type":"string","default":"0"},"bgType3":{"type":"string","default":"0"},"bgType4":{"type":"string","default":"0"},"insertImage1":{"type":"string","default":""},"insertImage2":{"type":"string","default":""},"insertImage3":{"type":"string","default":""},"insertImage4":{"type":"string","default":""}},"description":"This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.","textdomain":"vk-blocks","supports":{"className":true}}'),da=function(e){if("string"==typeof e){try{JSON.parse(e)}catch(e){return!0}return!1}return"object"!==Ge(e)||Array.isArray(e)},ka=((0,ze.select)("core/block-editor")?(0,ze.select)("core/block-editor"):(0,ze.select)("core/editor"),(0,ze.dispatch)("core/block-editor")?(0,ze.dispatch)("core/block-editor"):(0,ze.dispatch)("core/editor"),function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e});var _a=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.icon1,s=t.icon2,u=t.icon3,m=t.color1,p=t.color2,v=t.color3,f=t.bgType1,b=t.bgType2,d=t.bgType3,k=t.insertImage1,_=t.insertImage2,h=t.insertImage3,g=this.props.blockNum,y=this.props.blockNum-1,E=[i,s,u],x=[m,p,v],C=[f,b,d],N=[k,_,h],T="",B="",w=function(e){var t=e[y];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},S=function(){if(N[y])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:w(N)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(N[y]));var e="",t={},n="";void 0!==x[y]&&("0"===C[y]?pe(x[y])?(e="has-background ",t={backgroundColor:"".concat(x[y])}):e="has-background has-".concat(x[y],"-background-color"):"1"===C[y]&&(pe(x[y])?(e="has-text-color",t={border:"1px solid ".concat(x[y])},n=x[y]):e="has-text-color has-".concat(x[y],"-color")));var o=E[y];o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>'));var a=o.split(" ");a[0]=""!==n?a[0]+' style="color:'.concat(n,'" '):a[0]+" ",a[1]=a[1]+" vk_prBlocks_item_icon ";var r=a.join("");return(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t},et(r))}(),I="";return"1"===C[y]&&(I="is-style-outline"),1===g?(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===g?(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===g&&(T=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),B=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(I)},S,T,B)}}]),a}(P.Component);var ha=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e="",t={},n="";void 0!==z[w]&&("0"===M[w]?pe(z[w])?(e="has-background ",t={backgroundColor:"".concat(z[w])}):e="has-background has-".concat(z[w],"-background-color"):"1"===M[w]&&(pe(z[w])?(e="has-text-color",t={border:"1px solid ".concat(z[w])},n=z[w]):e="has-text-color has-".concat(z[w],"-color")));var o=O[w];o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>'));var a=o.split(" ");a[0]=""!==n?a[0]+' style="color:'.concat(n,'" '):a[0]+" ",a[1]=a[1]+" vk_prBlocks_item_icon ";var r=a.join("");return(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer ".concat(e),style:t},et(r))}(),L="";return"1"===M[w]&&(L="is-style-outline"),e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),R[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(L)},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4 ".concat(L)},H,e,t)}}]),a}(P.Component);var ga=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=j[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(j[w],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:j[w],alt:""})):(z[w]||(z[w]="#0693e3"),"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:z[w]}})));return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h1",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],target:A[w]?"_blank":"_self",className:"vk_prBlocks_item_link",rel:"noopener noreferrer"},U,H,L))}}]),a}(P.Component);var ya=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=j[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}}(j)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(j[w])):(z[w]||(z[w]="#0693e3"),"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},(0,P.createElement)("i",{className:"".concat(O[w]," vk_prBlocks_item_icon"),style:{color:z[w]}})));return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),R[w]&&"save"===T?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},U,H,L)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},U,H,L)}}]),a}(P.Component);var Ea=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3,T=this.props.for_,B=this.props.blockNum,w=this.props.blockNum-1,S=[n,o,a],I=[r,l,c],R=[i,s,u],A=[m,p,v],O=[f,b,d],z=[k,_,h],F=[g,y,E],j=[x,C,N],H="",L="",U=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},D=function(){if(j[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:U(j)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(j[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===F[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===F[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return"edit"===T?1===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:r,placeholder:(0,M.__)("Input Content","vk-blocks")})):2===B?(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:l,placeholder:(0,M.__)("Input Content","vk-blocks")})):3===B&&(H=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:(0,M.__)("Input Title","vk-blocks")}),L=(0,P.createElement)(Q.RichText,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:c,placeholder:(0,M.__)("Input Content","vk-blocks")})):"save"===T&&(H=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),L=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]})),R[w]&&"save"===T?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},D,H,L)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},D,H,L)}}]),a}(P.Component);var xa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===M[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===M[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t))}}]),a}(P.Component);var Ca,Na,Ta,Ba,wa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.heading1,a=n.heading2,r=n.heading3,l=n.content1,c=n.content2,i=n.content3,s=n.url1,u=n.url2,m=n.url3,p=n.urlOpenType1,v=n.urlOpenType2,f=n.urlOpenType3,b=n.icon1,d=n.icon2,k=n.icon3,_=n.color1,h=n.color2,g=n.color3,y=n.bgType1,E=n.bgType2,x=n.bgType3,C=n.insertImage1,N=n.insertImage2,T=n.insertImage3,B=this.props.blockNum,w=this.props.blockNum-1,S=[o,a,r],I=[l,c,i],R=[s,u,m],A=[p,v,f],O=[b,d,k],z=[_,h,g],M=[y,E,x],F=[C,N,T],j=function(e){var t=e[w];if(da(t))return{backgroundImage:"url(".concat(t,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"};var n=JSON.parse(ka(t));return{backgroundImage:"url(".concat(n.sizes.full.url,")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},H=function(){if(F[w])return(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:j(F)},function(e){if(da(e))return(0,P.createElement)("img",{src:e,alt:""});var t=JSON.parse(ka(e));return(0,P.createElement)("img",{src:t.sizes.full.url,alt:t.alt})}(F[w]));var e;z[w]||(z[w]="#0693e3"),e="0"===M[w]?"#fff":z[w];var t=O[w];t&&!t.match(/<i/)&&(t='<i class="'.concat(t,'"></i>'));var n=t.split(" ");n[0]=n[0]+' style="color:'.concat(e,'" '),n[1]=n[1]+" vk_prBlocks_item_icon ";var o=n.join("");return"0"===M[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:z[w],border:"1px solid ".concat(z[w])}},et(o)):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+z[w]}},et(o))}();return e=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(B),tagName:"h3",value:S[w]}),t=(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(B),tagName:"p",value:I[w]}),R[w]?(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:R[w],className:"vk_prBlocks_item_link",target:A[w]?"_blank":"_self",rel:"noopener noreferrer"},H,e,t)):(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},H,e,t)}}]),a}(P.Component),Sa=[{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(wa,{attributes:t,blockNum:1}),(0,P.createElement)(wa,{attributes:t,blockNum:2}),(0,P.createElement)(wa,{attributes:t,blockNum:3}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(xa,{attributes:t,blockNum:1}),(0,P.createElement)(xa,{attributes:t,blockNum:2}),(0,P.createElement)(xa,{attributes:t,blockNum:3}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:""},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:'<i class="fas fa-file"></i>'},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:""};return t}(),save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",(0,P.createElement)("div",{className:t},(0,P.createElement)(Ea,{attributes:n,blockNum:1,for_:"save"}),(0,P.createElement)(Ea,{attributes:n,blockNum:2,for_:"save"}),(0,P.createElement)(Ea,{attributes:n,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",(0,P.createElement)("div",{className:t},(0,P.createElement)(ya,{attributes:n,blockNum:1,for_:"save"}),(0,P.createElement)(ya,{attributes:n,blockNum:2,for_:"save"}),(0,P.createElement)(ya,{attributes:n,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t=e.attributes;return(0,P.createElement)("div",{className:"vk_prBlocks row"},(0,P.createElement)(ga,{attributes:t,blockNum:1,for_:"save"}),(0,P.createElement)(ga,{attributes:t,blockNum:2,for_:"save"}),(0,P.createElement)(ga,{attributes:t,blockNum:3,for_:"save"}))}},{attributes:function(e){for(var t={},n=1;n<=4;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,r=t.content1,l=t.content2,c=t.content3,i=t.url1,s=t.url2,u=t.url3,m=t.urlOpenType1,p=t.urlOpenType2,v=t.urlOpenType3,f=t.icon1,b=t.icon2,d=t.icon3,k=t.color1,_=t.color2,h=t.color3,g=t.bgType1,y=t.bgType2,E=t.bgType3,x=t.insertImage1,C=t.insertImage2,N=t.insertImage3;return(0,P.createElement)("div",{className:"vk_prBlocks row"},(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:i,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},x?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:x,alt:""})):(k||(k="#0693e3",g="0"),"0"===g?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:k,border:"1px solid ".concat(k)}},(0,P.createElement)("i",{className:"".concat(f," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+k}},(0,P.createElement)("i",{className:"".concat(f," vk_prBlocks_item_icon"),style:{color:k}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:r}))),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:s,target:p?"_blank":"_self",className:"vk_prBlocks_item_link"},C?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+C+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:C,alt:""})):(_||(_="#0693e3",y="0"),"0"===y?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:_,border:"1px solid ".concat(_)}},(0,P.createElement)("i",{className:"".concat(b," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+_}},(0,P.createElement)("i",{className:"".concat(b," vk_prBlocks_item_icon"),style:{color:_}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:l}))),(0,P.createElement)("div",{className:"vk_prBlocks_item col-sm-4"},(0,P.createElement)("a",{href:u,target:v?"_blank":"_self",className:"vk_prBlocks_item_link"},N?(0,P.createElement)("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},(0,P.createElement)("img",{src:N,alt:""})):(h||(h="#0693e3",E="0"),"0"===E?(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:h,border:"1px solid ".concat(h)}},(0,P.createElement)("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):(0,P.createElement)("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+h}},(0,P.createElement)("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:h}}))),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),(0,P.createElement)(Q.RichText.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:c}))))}}],Ia=ba.name,Ra={icon:(0,P.createElement)((function(e){return G.createElement("svg",fa({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ia||(ia=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.15 7.88A3 3 0 0 1 3 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67H2.4zm0 2.93V4.4h1.2v2.4H2.4zm8.75 1.08A3 3 0 0 1 12 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67h-1.2zm0 2.93V4.4h1.2v2.4h-1.2zm8.75 1.08A3 3 0 0 1 21 2a3 3 0 1 1-.85 5.88zm.25-4.01V3.2h1.2v.67h-1.2zm0 2.93V4.4h1.2v2.4h-1.2z",fill:"#000"})),sa||(sa=G.createElement("path",{d:"M24 10v1h-6v-1h6zm0 2v1h-6v-1h6zm0 2v1h-6v-1h6zm-9-3v-1H9v1h6zm0 2v-1H9v1h6zm0 2v-1h-2.77c.2.3.3.65.27 1H15zm-9-5v1H0v-1h6zm-2.63 3 .14-.41c.08-.23.2-.43.37-.59H0v1h3.37zm7.52 1.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),ua||(ua=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{heading1:H,heading2:H,heading3:H,content1:F,content2:F,content3:F,url1:V,url2:V,url3:V,urlOpenType1:!1,urlOpenType2:!1,urlOpenType3:!1,icon1:L,icon2:L,icon3:L,color1:D,color2:D,color3:D,bgType1:"0",bgType2:"0",bgType3:"0",insertImage1:"",insertImage2:"",insertImage3:""},edit:function(e){var t=e.attributes,n=e.setAttributes,o=t.url1,a=t.url2,r=t.url3,l=t.urlOpenType1,c=t.urlOpenType2,i=t.urlOpenType3,s=t.bgType1,u=t.bgType2,m=t.bgType3,p=t.insertImage1,v=t.insertImage2,f=t.insertImage3,b=vkFontAwesome.iconFamily,d=(0,Q.useBlockProps)({className:"vk_prBlocks row"}),k=function(e){if(da(e))return e?(0,P.createElement)("img",{className:"icon-image",src:e,alt:(0,M.__)("Upload image","vk-blocks")}):(0,M.__)("Select image","vk-blocks");var t=JSON.parse(ka(e));return e?(0,P.createElement)("img",{className:"icon-image",src:t.sizes.full.url,alt:t.alt}):(0,M.__)("Select image","vk-blocks")};return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block1 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl1"},(0,P.createElement)(ne.TextControl,{value:o,onChange:function(e){return n({url1:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:l,onChange:function(e){return n({urlOpenType1:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 1","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon1"},(0,P.createElement)(Ke,Ne({attributeName:"icon1"},e)),(0,P.createElement)(Pe,Ne({schema:"color1"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:s,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType1:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 1","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage1:e.url}):n({insertImage1:JSON.stringify(e)})},type:"image",value:p,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:p?"image-button":"button button-large"},k(p))}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block2 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl2"},(0,P.createElement)(ne.TextControl,{value:a,onChange:function(e){return n({url2:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:c,onChange:function(e){return n({urlOpenType2:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 2","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon2"},(0,P.createElement)(Ke,Ne({attributeName:"icon2"},e)),(0,P.createElement)(Pe,Ne({schema:"color2"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:u,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType2:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority.","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 2","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage2:e.url}):n({insertImage2:JSON.stringify(e)})},type:"image",value:v,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:v?"image-button":"button button-large"},k(v))}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("PR Block3 Setting","vk-blocks")},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Link URL:","vk-blocks"),id:"vk_prBlocks_linkUrl3"},(0,P.createElement)(ne.TextControl,{value:r,onChange:function(e){return n({url3:e})}}),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:i,onChange:function(e){return n({urlOpenType3:e})}})),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Icon 3","vk-blocks")+" ( "+b+" )",id:"vk_prBlocks_Icon3"},(0,P.createElement)(Ke,Ne({attributeName:"icon3"},e)),(0,P.createElement)(Pe,Ne({schema:"color3"},e)),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Icon Background:","vk-blocks"),selected:m,options:[{label:(0,M.__)("Solid color","vk-blocks"),value:"0"},{label:(0,M.__)("No background","vk-blocks"),value:"1"}],onChange:function(e){return n({bgType3:e})}})),(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("When you have an image. Image is displayed with priority.","vk-blocks")},(0,P.createElement)("h4",{className:"components-base-control__title"},(0,M.__)("PR Image 3","vk-blocks")),(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){da(e)?n({insertImage3:e.url}):n({insertImage3:JSON.stringify(e)})},type:"image",value:f,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:f?"image-button":"button button-large"},k(f))}})))),(0,P.createElement)("div",d,(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:1}),(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:2}),(0,P.createElement)(_a,{attributes:t,setAttributes:n,blockNum:3})))},save:function(e){var t=e.attributes,n=Q.useBlockProps.save({className:"vk_prBlocks row"});return(0,P.createElement)("div",n,(0,P.createElement)(ha,{attributes:t,blockNum:1}),(0,P.createElement)(ha,{attributes:t,blockNum:2}),(0,P.createElement)(ha,{attributes:t,blockNum:3}))},deprecated:Sa};function Aa(){return Aa=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},Aa.apply(this,arguments)}var Oa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",r="";return n&&(a=(0,P.createElement)("i",{className:"".concat(n," vk_button_link_before")})),o&&(r=(0,P.createElement)("i",{className:"".concat(o," vk_button_link_after")})),(0,P.createElement)(P.Fragment,null,a,(0,P.createElement)("span",{className:"vk_button_link_txt"},t),r)}}]),a}(P.Component);var za=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=this.props.setAttributes,d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};return _="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=null==v?"none":"1px solid ".concat(v),(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===k?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}}):p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(Oa,{attributes:t})))}()))}}]),a}(P.Component);var Pa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,r=e.url,l=e.buttonType,c=e.buttonColor,i=e.buttonColorCustom,s=e.buttonText,u=e.buttonTarget,m=e.Image,p=e.ImageBorderColor,v=e.layout,f=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),b=this.props.for_,d="vk_prContent",k="vk_button",_="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={};return d="".concat(d,"right"===v?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),i?(k="".concat(k," vk_button-color-custom"),_="".concat(_," btn-primary"),"0"===l?h={backgroundColor:i,border:"1px solid ".concat(i)}:"1"===l&&(h={backgroundColor:"transparent",border:"1px solid "+i,color:i})):i||("0"===l?(_="".concat(_," btn-").concat(c),h=null):"1"===l&&(_="".concat(_," btn-outline-").concat(c),h=null)),(0,P.createElement)("div",{className:d},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===b?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return f({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:m?"image-button":"button button-large"},m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks"))}}):m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===b?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return f({title:e})},value:t,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:n}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return f({content:e})},value:o,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:a}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==s&&void 0!==s)return(0,P.createElement)("div",{className:k},(0,P.createElement)("a",{href:r,className:_,target:u?"_blank":null,style:h,rel:"noopener noreferrer"},(0,P.createElement)(Oa,{attributes:e})))}()))}}]),a}(P.Component),Ma=function(e){return function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e)||(e=e.replace(/u0022/g,'"')),e};function Fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Xe(e);if(t){var a=Xe(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Ye(this,n)}}var ja=function(e){Ze(n,e);var t=Fa(n);function n(){return Ve(this,n),t.apply(this,arguments)}return We(n,[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",r="";return n&&(a=(0,P.createElement)("i",{className:"".concat(n," vk_button_link_before")})),o&&(r=(0,P.createElement)("i",{className:"".concat(o," vk_button_link_after")})),(0,P.createElement)(P.Fragment,null,a,(0,P.createElement)("span",{className:"vk_button_link_txt"},t),r)}}]),n}(P.Component),Ha=function(e){Ze(n,e);var t=Fa(n);function n(){return Ve(this,n),t.apply(this,arguments)}return We(n,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(ja,{attributes:t})))}()))}}]),n}(P.Component);var La=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.buttonText,o=t.fontAwesomeIconAfter,a="";return o&&!o.match(/<i/)&&(o='<i class="'.concat(o,'"></i>')),o&&((e=o.split(" "))[1]=" "+e[1]+" vk_button_link_after ",a=e.join("")),(0,P.createElement)(P.Fragment,null,(0,P.createElement)("span",{className:"vk_button_link_txt"},n),et(a))}}]),a}(P.Component);var Ua=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=this.props.setAttributes,d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={},E={};o&&""!==o&&(E={color:o});var x={};r&&""!==r&&(x={color:r}),_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var C=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:C,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:E}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:x})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:E}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:x})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m&&"_blank",style:y,rel:m&&"noopener"},(0,P.createElement)(La,{attributes:t})))}()))}}]),a}(P.Component);var Da=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,r=e.url,l=e.buttonType,c=e.buttonColor,i=e.buttonColorCustom,s=e.buttonText,u=e.buttonTarget,m=e.Image,p=e.ImageBorderColor,v=e.layout,f=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),b=this.props.for_,d="vk_prContent",k="vk_button",_="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={};return d="".concat(d,"right"===v?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),i?(k="".concat(k," vk_button-color-custom"),_="".concat(_," btn-primary"),"0"===l?h={backgroundColor:i,border:"1px solid ".concat(i)}:"1"===l&&(h={backgroundColor:"transparent",border:"1px solid "+i,color:i})):i||("0"===l?(_="".concat(_," btn-").concat(c),h=null):"1"===l&&(_="".concat(_," btn-outline-").concat(c),h=null)),(0,P.createElement)("article",{className:d},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===b?(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return f({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:m?"image-button":"button button-large"},m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks"))}}):m?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:m,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:"1px solid ".concat(p)}}):(0,M.__)("Select image","vk-blocks")),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===b?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return f({title:e})},value:t,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:n}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return f({content:e})},value:o,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:a}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==s&&void 0!==s)return(0,P.createElement)("div",{className:k},(0,P.createElement)("a",{href:r,className:_,target:u?"_blank":null,rel:"noopener noreferrer",style:h},(0,P.createElement)(Oa,{attributes:e})))}()))}}]),a}(P.Component);var Va=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.buttonText,a=n.fontAwesomeIconBefore,r=n.fontAwesomeIconAfter,l="",c="";return a&&!a.match(/<i/)&&(a='<i class="'.concat(a,'"></i>')),r&&!r.match(/<i/)&&(r='<i class="'.concat(r,'"></i>')),a&&((e=a.split(" "))[1]=" "+e[1]+" vk_button_link_before ",l=e.join("")),r&&((t=r.split(" "))[1]=" "+t[1]+" vk_button_link_after ",c=t.join("")),(0,P.createElement)(P.Fragment,null,et(l),(0,P.createElement)("span",{className:"vk_button_link_txt"},o),et(c))}}]),a}(P.Component);var qa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y,rel:"noopener noreferrer"},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Wa=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Ja=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m?"_blank":null,style:y},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component);var Za=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=(t.fontAwesomeIconBefore,t.fontAwesomeIconAfter,this.props.setAttributes),d=this.props.className,k=this.props.for_,_="vk_prContent",h="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",y={};_="right"===f?De()(d,_,"vk_prContent-layout-imageRight"):De()(d,_,"vk_prContent-layout-imageLeft"),s?(h="".concat(h," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?y={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(y={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),y=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),y=null)),e=v?"1px solid ".concat(v):"none";var E=function(e){e&&b({Image:JSON.stringify(e)})};return(0,P.createElement)("div",{className:_},(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},function(t){if("edit"===t){if(p&&-1===p.indexOf("{"))return(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return b({Image:e.sizes.full.url})},type:" image",value:p,render:function(t){var n=t.open;return(0,P.createElement)(ne.Button,{onClick:n,className:p?"image-button":"button button-large"},p?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}}):(0,M.__)("Select image","vk-blocks"))}});var n=JSON.parse(Ma(p));return(0,P.createElement)(Q.MediaUpload,{onSelect:E,type:" image",value:n,render:function(t){var o=t.open;return(0,P.createElement)(ne.Button,{onClick:o,className:n?"image-button":"button button-large"},null===p||void 0===n.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:n.sizes.full.url,alt:n.alt,style:{border:e}}))}})}if("save"===t){if(!p)return(0,M.__)("Select image","vk-blocks");if(p&&-1===p.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:p,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:e}});var o=JSON.parse(Ma(p));return o&&void 0!==o.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:o.sizes.full.url,alt:o.alt,style:{border:e}}):""}}(k)),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return b({title:e})},value:n,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:o}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return b({content:e})},value:a,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}})),function(){if(""!==u&&void 0!==u)return(0,P.createElement)("div",{className:h},(0,P.createElement)("a",{href:l,className:g,target:m&&"_blank",style:y,rel:m&&"noopener"},(0,P.createElement)(Va,{attributes:t})))}()))}}]),a}(P.Component),Ga=function(e){var t,n="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((t=e.split(" "))[1]=" "+t[1]+" vk_button_link_before ",n=t.join("")),n},Ya=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,M.__)("Select Image","vk-blocks");var o=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t}(n);if(t&&-1===t.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:o}});var a=JSON.parse(Ma(t));return a&&void 0!==a.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:a.sizes.full.url,alt:a.alt,style:{border:o}}):void 0};function Xa(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 $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ka,Qa,er,tr={title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},nr=$a($a({},tr),{},{titleColor:{type:"string",default:""},contentColor:{type:"string",default:""},url:{type:"string",default:""},buttonColorCustom:{type:"string",default:""},Image:{type:"string",default:"{}"},ImageBorderColor:{type:"string",default:""},fontAwesomeIconBefore:{type:"string",default:""},fontAwesomeIconAfter:{type:"string",default:""}}),or=$a($a({},nr),{},{fontAwesomeIconBefore:{type:"string",default:'<i class="fas fa-user"></i>'},fontAwesomeIconAfter:{type:"string",default:'<i class="fas fa-user"></i>'}}),ar=[{attributes:or,save:function(e){var t=e.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")}(f),_=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t}(s),h=function(e,t,n){var o="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?o="".concat(o," btn-primary"):t||("0"===n?o="".concat(o," btn-").concat(e):"1"===n&&(o="".concat(o," btn-outline-").concat(e))),o}(i,s,c),g=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n}(s,c),y=Ga(b),E=Ga(d);return(0,P.createElement)("div",Q.useBlockProps.save({className:k}),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(Ya,{Image:p,ImageBorderColor:v})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}}),u&&(0,P.createElement)("div",{className:_},(0,P.createElement)("a",{href:l,className:h,rel:m?"noopener noreferrer":void 0,style:g,target:m?"_blank":void 0},et(y),(0,P.createElement)("span",{className:"vk_button_link_txt"},u),et(E)))))}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ua,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Za,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ja,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Wa,{attributes:t,className:n,for_:"save"})}},{attributes:or,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(qa,{attributes:t,className:n,for_:"save"})}},{attributes:nr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Da,{attributes:t,className:n,for_:"save"})}},{attributes:nr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(Ha,{attributes:t,className:n,for_:"save"})}},{attributes:tr,save:function(e){var t=e.attributes;return e.className,(0,P.createElement)(Pa,{attributes:t,for_:"save"})}},{attributes:tr,save:function(e){var t=e.attributes,n=e.className;return(0,P.createElement)(za,{attributes:t,className:n,for_:"save"})}}],rr=ar,lr=function(e){return"vk_prContent vk_prContent-layout-image".concat("right"===e?"Right":"Left")},cr=function(e){var t="vk_button";return e&&(t="".concat(t," vk_button-color-custom")),t},ir=function(e,t,n){var o="btn btn-block vk_button_link vk_prContent_colTxt_btn";return t?o="".concat(o," btn-primary"):t||("0"===n?o="".concat(o," btn-").concat(e):"1"===n&&(o="".concat(o," btn-outline-").concat(e))),o},sr=function(e,t){var n=null;return"0"===t?n={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===t&&(n={backgroundColor:"transparent",border:"1px solid "+e,color:e}),n},ur=function(e,t){var n,o="";return e&&!e.match(/<i/)&&(e='<i class="'.concat(e,'"></i>')),e&&((n=e.split(" "))[1]=" "+n[1]+" "+t+" ",o=n.join("")),o},mr=function(e){var t="none";return e&&(t="1px solid ".concat(e)),t},pr=function(e){var t,n=e.ImageBorderColor,o=e.setAttributes,a=e.Image,r=mr(n),l={};(t=a)&&-1===t.indexOf("{")?(l.setImage=function(e){return o({Image:e.sizes.full.url})},l.value=a,l.alt=(0,M.__)("Upload image","vk-blocks"),l.getImagePlaceHolder=function(e,t){return e?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:e,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:t}}):(0,M.__)("Select image","vk-blocks")}):(l.setImage=function(e){if(e){var t={alt:e.alt,sizes:{full:{url:e.sizes.full.url}}};o({Image:JSON.stringify(t)})}},l.value=JSON.parse(Ma(a)),l.alt=l.value.alt,l.getImagePlaceHolder=function(e,t){return null===(e=JSON.parse(Ma(e)))||void 0===e.sizes?(0,M.__)("Select image","vk-blocks"):(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:e.sizes.full.url,alt:e.alt,style:{border:t}})});var c=null!=a&&""!==a&&"{}"!==a;return(0,P.createElement)(Q.MediaUpload,{onSelect:l.setImage,type:"image",value:l.value,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:c?"image-button":"button button-large"},l.getImagePlaceHolder(a,r))}})},vr=function(e){var t=e.Image,n=e.ImageBorderColor;if(!t)return(0,M.__)("Select Image","vk-blocks");var o=mr(n);if(t&&-1===t.indexOf("{"))return(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:t,alt:(0,M.__)("Upload image","vk-blocks"),style:{border:o}});var a=JSON.parse(Ma(t));return a&&void 0!==a.sizes?(0,P.createElement)("img",{className:"vk_prContent_colImg_image",src:a.sizes.full.url,alt:a.alt,style:{border:o}}):void 0},fr=JSON.parse('{"apiVersion":2,"name":"vk-blocks/pr-content","title":"PR Content","description":"This is PR content where you can place images, headlines, text, and buttons.","category":"vk-blocks-cat","attributes":{"title":{"source":"html","selector":".vk_prContent_colTxt_title"},"titleColor":{"type":"string","default":""},"content":{"source":"html","selector":".vk_prContent_colTxt_text"},"contentColor":{"type":"string","default":""},"url":{"type":"string","default":""},"buttonType":{"type":"string","default":"0"},"buttonColor":{"type":"string","default":"primary"},"buttonColorCustom":{"type":"string","default":""},"buttonText":{"source":"html","selector":".vk_button_link_txt","default":""},"buttonTarget":{"type":"Boolean","default":false},"Image":{"type":"string","default":"{}"},"ImageBorderColor":{"type":"string","default":""},"layout":{"type":"string","default":"left"},"fontAwesomeIconBefore":{"type":"string","default":"<i class=\'fas fa-user\'></i>"},"fontAwesomeIconAfter":{"type":"string","default":"<i class=\'fas fa-user\'></i>"}},"textdomain":"vk-blocks","supports":{"className":true}}'),br=fr.name,dr={icon:(0,P.createElement)((function(e){return G.createElement("svg",Aa({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ca||(Ca=G.createElement("path",{d:"M12 3H1v9.5h2.55a1.6 1.6 0 0 0-.04.09l-.24.69H0V2h13v11.5h-1.29a1.6 1.6 0 0 0-.82-.22H8.62c.02-.26-.02-.53-.12-.78H12V3zm3 1.5h9v1h-9v-1zM24 7h-9v1h9V7zm0-5h-9v1h9V2zm-6.5 9h4v1h-4v-1z",fill:"#000"})),Na||(Na=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 10.7c0-.32.13-.62.37-.85.23-.22.55-.35.88-.35h6.5c.33 0 .65.13.88.35.24.23.37.53.37.85v1.6c0 .32-.13.62-.37.85-.23.22-.55.35-.88.35h-6.5c-.33 0-.65-.13-.88-.35a1.18 1.18 0 0 1-.37-.85v-1.6zm1.25-.4a.43.43 0 0 0-.3.12.4.4 0 0 0-.12.28v1.6a.43.43 0 0 0 .42.4h6.5c.11 0 .22-.04.3-.12a.4.4 0 0 0 .12-.28v-1.6a.4.4 0 0 0-.13-.28.43.43 0 0 0-.29-.12h-6.5z",fill:"#000"})),Ta||(Ta=G.createElement("path",{d:"M5.62 6a1 1 0 0 1-1 .99 1 1 0 0 1-1-1 1 1 0 0 1 2 0zm5.48 4.83H2.15c-.42 0-.67-.52-.43-.9l1.44-2.2a.5.5 0 0 1 .85 0l.95 1.43c.2.3.6.33.82.04l2.2-2.8a.5.5 0 0 1 .79 0l2.73 3.5c.29.36.05.93-.4.93zm-.21 3.95H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Ba||(Ba=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{title:F,titleColor:D,content:j,contentColor:D,url:V,buttonType:"0",buttonColor:"primary",buttonColorCustom:"",buttonText:H,buttonTarget:!1,Image:U,ImageBorderColor:D,layout:"left",fontAwesomeIconBefore:L,fontAwesomeIconAfter:L}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.clientId,a=t.title,r=t.titleColor,l=t.content,c=t.contentColor,i=t.url,s=t.buttonType,u=t.buttonColor,m=t.buttonColorCustom,p=t.buttonText,v=t.buttonTarget,f=t.Image,b=t.ImageBorderColor,d=t.layout,k=t.fontAwesomeIconBefore,_=t.fontAwesomeIconAfter,h=vkFontAwesome.iconFamily,g=lr(d),y=cr(m),E=ir(u,m,s),x=sr(m,s),C=ur(k,"vk_button_link_before"),N=ur(_,"vk_button_link_after"),T=(0,Q.useBlockProps)({className:g});return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_titleColor-".concat(o),label:(0,M.__)("Title Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:r,onChange:function(e){return n({titleColor:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_contentColor-".concat(o),label:(0,M.__)("Content Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:c,onChange:function(e){return n({contentColor:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_image-borderColor-".concat(o),label:(0,M.__)("Image Border Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:b,onChange:function(e){return n({ImageBorderColor:e})}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Button Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonText-".concat(o),label:(0,M.__)("Button Text","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:p,onChange:function(e){return n({buttonText:e})},placeholder:"Input button text."})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_linkUrl-".concat(o),label:(0,M.__)("Link URL","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:i,onChange:function(e){return n({url:e})},placeholder:"https://vektor-inc.co.jp/"})),(0,P.createElement)(ne.CheckboxControl,{label:(0,M.__)("Open link new tab.","vk-blocks"),checked:v,onChange:function(e){return n({buttonTarget:e})}}),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonType-".concat(o),label:(0,M.__)("Button Type","vk-blocks")},(0,P.createElement)(ne.RadioControl,{selected:s,options:[{label:(0,M.__)("Solid","vk-blocks"),value:"0"},{label:(0,M.__)("Ghost","vk-blocks"),value:"1"}],onChange:function(e){return n({buttonType:e})}})),(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Default Color:","vk-blocks"),selected:u,options:[{label:(0,M.__)("Primary","vk-blocks"),value:"primary"},{label:(0,M.__)("Secondary","vk-blocks"),value:"secondary"},{label:(0,M.__)("Success","vk-blocks"),value:"success"},{label:(0,M.__)("Info","vk-blocks"),value:"info"},{label:(0,M.__)("Warning","vk-blocks"),value:"warning"},{label:(0,M.__)("Danger","vk-blocks"),value:"danger"},{label:(0,M.__)("Light","vk-blocks"),value:"light"},{label:(0,M.__)("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return n({buttonColor:e})}}),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_buttonColor-".concat(o),label:(0,M.__)("Button Color","vk-blocks")},(0,P.createElement)(Q.ColorPalette,{value:m,onChange:function(e){return n({buttonColorCustom:e})}})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon-".concat(o)},(0,P.createElement)("h4",{className:"mt-0 mb-2"},(0,M.__)("Icon","vk-blocks")+" ( "+h+" )"),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon_beforeText".concat(o),label:(0,M.__)("Before text","vk-blocks")},(0,P.createElement)(Ke,{attributeName:"fontAwesomeIconBefore",attributes:t,setAttributes:n})),(0,P.createElement)(ne.BaseControl,{id:"vk_prContent_icon_afterText-".concat(o),label:(0,M.__)("After text","vk-blocks")},(0,P.createElement)(Ke,{attributeName:"fontAwesomeIconAfter",attributes:t,setAttributes:n})))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Layout Setting","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Layout Type","vk-blocks"),selected:d,options:[{label:(0,M.__)("Right","vk-blocks"),value:"right"},{label:(0,M.__)("Left","vk-blocks"),value:"left"}],onChange:function(e){return n({layout:e})}}))),(0,P.createElement)("div",T,(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(pr,{ImageBorderColor:b,setAttributes:n,Image:f})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return n({title:e})},value:a,placeholder:(0,M.__)("Input title.","vk-blocks"),style:{color:r}}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return n({content:e})},value:l,placeholder:(0,M.__)("Input content.","vk-blocks"),style:{color:c}}),p&&(0,P.createElement)("div",{className:y},(0,P.createElement)("a",{href:i,className:E,target:v?"_blank":void 0,style:x,rel:v?"noopener noreferrer":void 0},et(C),(0,P.createElement)("span",{className:"vk_button_link_txt"},p),et(N))))))},save:function(e){var t=e.attributes,n=t.title,o=t.titleColor,a=t.content,r=t.contentColor,l=t.url,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonText,m=t.buttonTarget,p=t.Image,v=t.ImageBorderColor,f=t.layout,b=t.fontAwesomeIconBefore,d=t.fontAwesomeIconAfter,k=lr(f),_=cr(s),h=ir(i,s,c),g=sr(s,c),y=ur(b,"vk_button_link_before"),E=ur(d,"vk_button_link_after");return(0,P.createElement)("div",Q.useBlockProps.save({className:k}),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colImg"},(0,P.createElement)(vr,{Image:p,ImageBorderColor:v})),(0,P.createElement)("div",{className:"col-sm-6 vk_prContent_colTxt"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",value:n,className:"vk_prContent_colTxt_title",style:{color:o}}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:a,style:{color:r}}),u&&(0,P.createElement)("div",{className:_},(0,P.createElement)("a",{href:l,className:h,rel:m?"noopener noreferrer":void 0,style:g,target:m?"_blank":void 0},et(y),(0,P.createElement)("span",{className:"vk_button_link_txt"},u),et(E)))))},deprecated:rr};function kr(){return kr=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},kr.apply(this,arguments)}var _r=JSON.parse('{"apiVersion":2,"name":"vk-blocks/spacer","title":"Responsive Spacer","description":"Use responsive spacers to get the margins right.","category":"vk-blocks-cat","attributes":{"anchor":{"type":"string","default":null},"spaceType":{"type":"string","default":"margin-top"},"unit":{"type":"string","default":"px"},"pc":{"type":"number","default":40},"tablet":{"type":"number","default":30},"mobile":{"type":"number","default":20},"spaceSize":{"type":"string","default":"medium"}},"textdomain":"vk-blocks","supports":{"anchor":true}}');var hr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile;return(0,P.createElement)("div",{className:"vk_spacer"},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}]),a}(P.Component);var gr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile,r=this.props.className;return(0,P.createElement)("div",{className:"".concat(r," vk_spacer")},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}]),a}(P.Component);var yr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.anchor,n=e.unit,o=e.pc,a=e.tablet,r=e.mobile,l=this.props.className;return(0,P.createElement)("div",{id:t,className:De()("vk_spacer",l)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:o+n}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:a+n}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:r+n}}))}}]),a}(P.Component);var Er=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.anchor,n=e.spaceType,o=e.unit,a=e.pc,r=e.tablet,l=e.mobile,c=this.props.className;return"height"===n?(0,P.createElement)("div",{id:t,className:De()("vk_spacer",c)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{height:a+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{height:r+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{height:l+o}})):"margin-top"===n?(0,P.createElement)("div",{id:t,className:De()("vk_spacer",c)},(0,P.createElement)("div",{className:"vk_spacer-display-pc",style:{marginTop:a+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-tablet",style:{marginTop:r+o}}),(0,P.createElement)("div",{className:"vk_spacer-display-mobile",style:{marginTop:l+o}})):void 0}}]),a}(P.Component),xr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Cr(e){var t=e.type,n=e.pcSize,o=e.tabletSize,a=e.mobileSize,r=e.unit;return"margin-top"===t?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(xr,{viewPort:"pc",style:{marginTop:n+r}}),(0,P.createElement)(xr,{viewPort:"tablet",style:{marginTop:o+r}}),(0,P.createElement)(xr,{viewPort:"mobile",style:{marginTop:a+r}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(xr,{viewPort:"pc",style:{height:n+r}}),(0,P.createElement)(xr,{viewPort:"tablet",style:{height:o+r}}),(0,P.createElement)(xr,{viewPort:"mobile",style:{height:a+r}}))}var Nr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Tr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?(0,P.createElement)("div",{className:c[t]}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Nr,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(Nr,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(Nr,{viewPort:"mobile",style:{marginTop:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Nr,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(Nr,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(Nr,{viewPort:"mobile",style:{height:r+l}}))}var Br=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function wr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?(0,P.createElement)("div",{className:c[t]}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Br,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(Br,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(Br,{viewPort:"mobile",style:{marginTop:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Br,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(Br,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(Br,{viewPort:"mobile",style:{height:r+l}}))}function Sr(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 Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rr={unit:{type:"string",default:"px"},pc:{type:"number",default:50},tablet:{type:"number",default:10},mobile:{type:"number",default:10},spaceType:{type:"string",default:"height"}},Ar=Ir(Ir({},Rr),{},{pc:{type:"number",default:40},tablet:{type:"number",default:30},mobile:{type:"number",default:20},anchor:{type:"string",default:null}}),Or=Ir(Ir({},Ar),{},{spaceSize:{type:"string",default:"medium"}}),zr=[{attributes:Or,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize,s="vk_spacer";return"custom"!==i&&(s+=" vk_spacer-type-".concat(o)),(0,P.createElement)("div",Q.useBlockProps.save({className:s,id:n}),(0,P.createElement)(wr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Or,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize;return(0,P.createElement)("div",Q.useBlockProps.save({className:De()("vk_spacer"),id:n}),(0,P.createElement)(Tr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Ar,save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile;return(0,P.createElement)("div",Q.useBlockProps.save({className:De()("vk_spacer"),id:n}),(0,P.createElement)(Cr,{type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))}},{attributes:Ar,save:function(e){var t=e.attributes;return(0,P.createElement)(Er,{attributes:t})}},{attributes:Ar,save:function(e){var t=e.attributes;return(0,P.createElement)(yr,{attributes:t})}},{attributes:Rr,save:function(e){var t=e.attributes;return(0,P.createElement)(gr,{attributes:t})}},{attributes:Rr,save:function(e){var t=e.attributes;return(0,P.createElement)(hr,{attributes:t})}}],Pr=function(e){var t=e.attributes,n=e.setAttributes,o=e.initial,a=t.pc,r=t.tablet,l=t.mobile,c=o.iPc,i=o.iTablet,s=o.iMobile;return a||(a=c),r||(r=i),l||(l=s),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.TextControl,{label:(0,M.__)("PC","vk-blocks"),value:a,onChange:function(e){return n({pc:parseFloat(e)})},type:"number"}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Tablet","vk-blocks"),value:r,onChange:function(e){return n({tablet:parseFloat(e)})},type:"number"}),(0,P.createElement)(ne.TextControl,{label:(0,M.__)("Mobile","vk-blocks"),value:l,onChange:function(e){return n({mobile:parseFloat(e)})},type:"number"}))},Mr=function(e){var t=e.attributes,n=e.setAttributes,o=t.unit;return(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Unit Type","vk-blocks"),value:o,onChange:function(e){return n({unit:e})},options:[{value:"px",label:(0,M.__)("px","vk-blocks")},{value:"em",label:(0,M.__)("em","vk-blocks")},{value:"rem",label:(0,M.__)("rem","vk-blocks")},{value:"vw",label:(0,M.__)("vw","vk-blocks")}]})},Fr=function(e){var t=e.attributes,n=e.setAttributes,o=t.spaceType;return(0,P.createElement)(ne.SelectControl,{label:(0,M.__)("Space Type","vk-blocks"),value:o,onChange:function(e){return n({spaceType:e})},options:[{value:"height",label:(0,M.__)("height","vk-blocks")},{value:"margin-top",label:(0,M.__)("margin-top","vk-blocks")},{value:"margin-bottom",label:(0,M.__)("margin-bottom","vk-blocks")}]})},jr=function(e){var t=e.style,n=e.viewPort;return(0,P.createElement)("div",{className:"vk_spacer-display-".concat(n),style:t})};function Hr(e){var t=e.spaceSize,n=e.type,o=e.pcSize,a=e.tabletSize,r=e.mobileSize,l=e.unit,c={small:"vk_block-margin-sm",medium:"vk_block-margin-md",large:"vk_block-margin-lg"};return void 0!==t&&c[t]?"margin-top"===n?(0,P.createElement)("div",{className:c[t]+"--margin-top"}):"margin-bottom"===n?(0,P.createElement)("div",{className:c[t]+"--margin-bottom"}):(0,P.createElement)("div",{className:c[t]+"--height"}):"margin-top"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{marginTop:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{marginTop:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{marginTop:r+l}})):"margin-bottom"===n?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{marginBottom:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{marginBottom:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{marginBottom:r+l}})):(0,P.createElement)(P.Fragment,null,(0,P.createElement)(jr,{viewPort:"pc",style:{height:o+l}}),(0,P.createElement)(jr,{viewPort:"tablet",style:{height:a+l}}),(0,P.createElement)(jr,{viewPort:"mobile",style:{height:r+l}}))}var Lr,Ur,Dr,Vr=_r.name,qr={icon:(0,P.createElement)((function(e){return G.createElement("svg",kr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ka||(Ka=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0h16v1.5H8V0zm2.76 22.5H24V24H9.9c.55-.29.88-.89.86-1.5zm.75-5.92L15.93 21l5.3-5.3-1.03-1.03-3.55 3.55V5.78l3.21 3.2 1.03-1.02-2.48-2.48L15.93 3l-4.96 4.96L11.99 9l3.21-3.21v12.44l-2.79-2.79c-.07.2-.19.4-.35.57l-.55.58z",fill:"#000"})),Qa||(Qa=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),er||(er=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{anchor:null,spaceType:"height",unit:"px",pc:40,tablet:30,mobile:20,spaceSize:"custom"},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=e.clientId,r=e.anchor,l=t.spaceType,c=t.unit,i=t.pc,s=t.tablet,u=t.mobile,m=t.spaceSize,p="vk_spacer";"custom"!==m&&(p+=" vk_spacer-type-".concat(l)),(0,P.useEffect)((function(){void 0===m&&n({spaceSize:"custom"})}),[a]);var v=(0,Q.useBlockProps)({className:p,id:r}),f="custom"===m?(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Mr,{attributes:t,setAttributes:n,className:o}),(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Height for each device.","vk-blocks"),id:"vk_spacer-viewPort-".concat(a)},(0,P.createElement)(Pr,{attributes:t,setAttributes:n,className:o,initial:{iPc:40,iTablet:30,iMobile:20},id:"vk_spacer-viewPort-".concat(a)}))):"";return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Spacer Settings","vk-blocks")},(0,P.createElement)(ne.ButtonGroup,{className:"mb-3"},(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"small"===m,isSecondary:"small"!==m,onClick:function(){return n({spaceSize:"small"})}},(0,M.__)("Small","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"medium"===m,isSecondary:"medium"!==m,onClick:function(){return n({spaceSize:"medium"})}},(0,M.__)("Medium","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"large"===m,isSecondary:"large"!==m,onClick:function(){return n({spaceSize:"large"})}},(0,M.__)("Large","vk-blocks")),(0,P.createElement)(ne.Button,{isSmall:!0,isPrimary:"custom"===m,isSecondary:"custom"!==m,onClick:function(){return n({spaceSize:"custom"})}},(0,M.__)("Custom","vk-blocks"))),(0,P.createElement)("p",null,(0,M.__)("You can change each common margin size from Setting > VK Blocks","vk-blocks")),(0,P.createElement)(Fr,{attributes:t,setAttributes:n,className:o}),f)),(0,P.createElement)("div",v,(0,P.createElement)(Hr,{spaceSize:m,type:l,pcSize:i,tabletSize:s,mobileSize:u,unit:c})))},save:function(e){var t=e.attributes,n=e.anchor,o=t.spaceType,a=t.unit,r=t.pc,l=t.tablet,c=t.mobile,i=t.spaceSize,s="vk_spacer";return"custom"!==i&&(s+=" vk_spacer-type-".concat(o)),(0,P.createElement)("div",Q.useBlockProps.save({className:s,id:n}),(0,P.createElement)(Hr,{spaceSize:i,type:o,pcSize:r,tabletSize:l,mobileSize:c,unit:a}))},deprecated:zr};function Wr(){return Wr=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},Wr.apply(this,arguments)}var Jr=function(e){Ze(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Xe(t);if(n){var a=Xe(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return Ye(this,e)});function a(){return Ve(this,a),o.apply(this,arguments)}return We(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.vk_staff_text_name,n=e.vk_staff_text_caption,o=e.vk_staff_text_role,a=e.vk_staff_text_profileTitle,r=e.vk_staff_text_profileText,l=e.vk_staff_photo_image,c=e.vk_staff_photo_image_alt,i=e.vk_staff_layout,s=e.vk_staff_nameColor,u=e.vk_staff_captionColor,m=e.vk_staff_positionColor,p=e.vk_staff_profileTitleColor,v=e.vk_staff_profileTextColor,f=e.vk_staff_photoBorder,b=e.vk_staff_fontFamily,d=this.props.setAttributes,k=this.props.className,_=this.props.for_,h="",g="vk_staff_text";return"1"===b&&(g=classnames(g,"vk_staff-headingFont-serif")),"edit"===_?h=(0,P.createElement)("div",{className:"".concat(k," vk_staff vk_staff-layout-").concat(i)},(0,P.createElement)("div",{className:g},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_staff_text_name",style:{color:s},onChange:function(e){return d({vk_staff_text_name:e})},value:t,placeholder:(0,M.__)("Your Name","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_caption",style:{color:u},onChange:function(e){return d({vk_staff_text_caption:e})},value:n,placeholder:(0,M.__)("Caption","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_role",style:{color:m},onChange:function(e){return d({vk_staff_text_role:e})},value:o,placeholder:(0,M.__)("Role position","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:p},onChange:function(e){return d({vk_staff_text_profileTitle:e})},value:a,placeholder:(0,M.__)("Profile title","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_profileText",style:{color:v},onChange:function(e){return d({vk_staff_text_profileText:e})},value:r,placeholder:(0,M.__)("Profile text","vk-blocks")})),(0,P.createElement)("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(f)},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return d({vk_staff_photo_image:e.sizes.full.url})},type:"image",className:"vk_staff_photo_image",value:l,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:l?"image-button":"button button-large"},l?(0,P.createElement)("img",{className:"vk_staff_photo_image",src:l,alt:(0,M.__)(c,"vk-blocks")}):(0,M.__)("Select image","vk-blocks"))}}))):"save"===_&&(h=(0,P.createElement)("div",{className:"".concat(k," vk_staff vk_staff-layout-").concat(i)},(0,P.createElement)("div",{className:g},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:s},value:t}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:u},value:n}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:m},value:o}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:p},value:a}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:v},value:r})),l?(0,P.createElement)("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(f)},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:l,alt:c?(0,M.__)(c,"vk-blocks"):""})):"")),h}}]),a}(P.Component);function Zr(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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yr={vk_staff_text_name:{type:"string",source:"html",selector:"h3"},vk_staff_text_caption:{type:"string",source:"html",selector:"p.vk_staff_text_caption"},vk_staff_text_role:{type:"string",source:"html",selector:"p.vk_staff_text_role"},vk_staff_text_profileTitle:{type:"string",source:"html",selector:"h4"},vk_staff_text_profileText:{type:"string",source:"html",selector:"p.vk_staff_text_profileText"},vk_staff_photo_image:{type:"string",default:""},vk_staff_photo_image_alt:{type:"string",default:"Profile Picture"},vk_staff_layout:{type:"string",default:"default"},vk_staff_nameColor:{type:"string",default:"inherit"},vk_staff_captionColor:{type:"string",default:"inherit"},vk_staff_positionColor:{type:"string",default:"inherit"},vk_staff_profileTitleColor:{type:"string",default:"inherit"},vk_staff_profileTextColor:{type:"string",default:"inherit"},vk_staff_photoBorder:{type:"string",default:"default"}},Xr=Gr(Gr({},Yr),{},{vk_staff_fontFamily:{type:"string",default:"0"}}),$r=[{attributes:Xr,save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=n.vk_staff_fontFamily,g=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),y=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k)),E=De();return E="1"===_?De()("vk_staff_text",E,"vk_staff-headingFont-serif"):De()("vk_staff_text",E),(0,P.createElement)("div",Q.useBlockProps.save({className:g}),(0,P.createElement)("div",{className:E},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:m},value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:p},value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:v},value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:f},value:s})),b&&(0,P.createElement)("div",{className:y},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))}},{attributes:Xr,save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),g=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k));return(0,P.createElement)("div",Q.useBlockProps.save({className:_}),(0,P.createElement)("div",{className:"vk_staff_text"},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:m},value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:p},value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:v},value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:f},value:s})),b&&(0,P.createElement)("div",{className:g},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))}},{attributes:Yr,save:function(e){var t=e.attributes;return(0,P.createElement)(Jr,{attributes:t,setAttributes:"",className:"",for_:"save"})}}],Kr=JSON.parse('{"apiVersion":2,"name":"vk-blocks/staff","category":"vk-blocks-cat","title":"Staff","description":"Used for staff introduction, company introduction, school introduction, menu, etc.","textdomain":"vk-blocks","attributes":{"vk_staff_text_name":{"type":"string","source":"html","selector":"h3"},"vk_staff_text_caption":{"type":"string","source":"html","selector":"p.vk_staff_text_caption"},"vk_staff_text_role":{"type":"string","source":"html","selector":"p.vk_staff_text_role"},"vk_staff_text_profileTitle":{"type":"string","source":"html","selector":"h4"},"vk_staff_text_profileText":{"type":"string","source":"html","selector":"p.vk_staff_text_profileText"},"vk_staff_photo_image":{"type":"string","default":""},"vk_staff_photo_image_alt":{"type":"string","default":"Profile Picture"},"vk_staff_layout":{"type":"string","default":"default"},"vk_staff_nameColor":{"type":"string"},"vk_staff_captionColor":{"type":"string"},"vk_staff_positionColor":{"type":"string"},"vk_staff_profileTitleColor":{"type":"string"},"vk_staff_profileTextColor":{"type":"string"},"vk_staff_photoBorder":{"type":"string","default":"default"},"vk_staff_fontFamily":{"type":"string","default":"0"}},"supports":{"className":true}}'),Qr=Kr.name,el={icon:(0,P.createElement)((function(e){return G.createElement("svg",Wr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Lr||(Lr=G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 4.5H2a.5.5 0 0 0-.5.5v8.28H0V5c0-1.1.9-2 2-2h20a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H10.04l-.44-1.41.08-.09H22a.5.5 0 0 0 .5-.5V5a.5.5 0 0 0-.5-.5zM8.1 11.9H12v1.2H8.62a1.7 1.7 0 0 0-.53-1.2zm-4.12 0c-.2.18-.37.42-.47.69l-.18.51H3v-1.2h.98zM12 10.6H3V9.4h9v1.2zM3 8h2V6H3v2zm6 0H7V6h2v2zm2 0h2V6h-2v2zm6.5 4a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.5 3.4c0 .33-.31.6-.7.6h-5.6c-.39 0-.7-.27-.7-.6v-.6c0-1 .94-1.8 2.1-1.8.14 0 .26.04.4.09.22.07.5.16 1 .16s.79-.1 1-.16c.15-.05.27-.09.4-.09 1.16 0 2.1.8 2.1 1.8v.6z",fill:"#000"})),Ur||(Ur=G.createElement("path",{d:"M10.89 14.78H7.62a.11.11 0 0 0-.1.08l-.25.72c-.02.08.03.16.1.16h1.27c.1 0 .15.12.08.19L6.7 18.1l1.05 3.4c.02.07-.03.14-.1.14H6.63a.1.1 0 0 1-.1-.08L6 19.83c-.03-.1-.17-.1-.2 0l-.43 1.22a.1.1 0 0 0 0 .06l.39 1.49c.01.04.06.08.1.08h3.29c.07 0 .12-.08.1-.14l-1.33-4.28c-.01-.04 0-.09.03-.12l3.02-3.17c.07-.07.01-.2-.08-.2z",fill:"#000"})),Dr||(Dr=G.createElement("path",{d:"M7.02 13H5.03a.11.11 0 0 0-.1.08l-.26.73c-.03.07.03.15.1.15h.84c.08 0 .13.07.1.15l-2.37 6.72a.1.1 0 0 1-.2 0l-1.7-4.85a.11.11 0 0 1 .1-.15h.86c.04 0 .09.03.1.07l.62 1.75c.03.1.17.1.2 0l.96-2.72a.11.11 0 0 0-.1-.15H.1c-.08 0-.13.07-.1.15l3.12 9c.04.1.17.1.2 0l3.8-10.78c.02-.07-.03-.15-.1-.15z",fill:"#D8141C"})))}),null),example:{attributes:{vk_staff_text_name:J,vk_staff_text_caption:Z,vk_staff_text_role:q,vk_staff_text_profileTitle:W,vk_staff_text_profileText:j,vk_staff_photo_image:U,vk_staff_layout:"default",vk_staff_nameColor:"inherit",vk_staff_captionColor:"inherit",vk_staff_positionColor:"inherit",vk_staff_profileTitleColor:"inherit",vk_staff_profileTextColor:"inherit",vk_staff_photoBorder:"default"}},edit:function(e){var t,n=e.attributes,o=e.setAttributes,a=e.className,r=e.clientId,l="vk_staff_name-color-".concat(r),c="vk_staff_caption-color-".concat(r),i="vk_staff_position-color-".concat(r),s="vk_staff_profileTitle-color-".concat(r),u="vk_staff_profileText-color-".concat(r),m=n.vk_staff_layout,p=n.vk_staff_nameColor,v=n.vk_staff_captionColor,f=n.vk_staff_positionColor,b=n.vk_staff_profileTitleColor,d=n.vk_staff_profileTextColor,k=n.vk_staff_photo_image_alt,_=n.vk_staff_photoBorder,g=n.vk_staff_text_name,y=n.vk_staff_text_caption,E=n.vk_staff_text_role,x=n.vk_staff_text_profileTitle,C=n.vk_staff_text_profileText,N=n.vk_staff_photo_image,T=n.vk_staff_fontFamily,B=De()("vk_staff",(h(t={},a,!!a),h(t,"vk_staff-layout-".concat(m),!!m),t)),w=(0,Q.useBlockProps)({className:B}),S=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(_),!!_)),I=De();I="1"===T?De()("vk_staff_text",I,"vk_staff-headingFont-serif"):De()("vk_staff_text",I);var R={},A="";void 0!==p&&(A+=" has-text-color",pe(p)?R={color:"".concat(p)}:A+=" has-".concat(p,"-color"));var O={},z="";void 0!==v&&(z+=" has-text-color",pe(v)?O={color:"".concat(v)}:z+=" has-".concat(v,"-color"));var F={},j="";void 0!==f&&(j+=" has-text-color",pe(f)?F={color:"".concat(f)}:j+=" has-".concat(f,"-color"));var H={},L="";void 0!==b&&(L+=" has-text-color",pe(b)?H={color:"".concat(b)}:L+=" has-".concat(b,"-color"));var U={},D="";return void 0!==d&&(D+=" has-text-color",pe(d)?U={color:"".concat(d)}:D+=" has-".concat(d,"-color")),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Layout","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:m,onChange:function(e){return o({vk_staff_layout:e})},options:[{value:"default",label:(0,M.__)("Default","vk-blocks")},{value:"imageLeft",label:(0,M.__)("Image left","vk-blocks")}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Image border","vk-blocks")},(0,P.createElement)(ne.SelectControl,{value:_,onChange:function(e){return o({vk_staff_photoBorder:e})},options:[{value:"default",label:(0,M.__)("Default","vk-blocks")},{value:"none",label:(0,M.__)("None","vk-blocks")}]})),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Alt text","vk-blocks")},(0,P.createElement)(ne.BaseControl,{help:(0,M.__)("Set the alt text for profile image","vk-blocks")},(0,P.createElement)(ne.TextControl,{value:k,onChange:function(e){return o({vk_staff_photo_image_alt:e})}}))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Color","vk-blocks")},(0,P.createElement)(ne.BaseControl,{id:l,label:(0,M.__)("Staff name","vk-blocks")},(0,P.createElement)(Pe,Ne({id:l,schema:"vk_staff_nameColor"},e))),(0,P.createElement)(ne.BaseControl,{id:c,label:(0,M.__)("Name caption","vk-blocks")},(0,P.createElement)(Pe,Ne({id:c,schema:"vk_staff_captionColor"},e))),(0,P.createElement)(ne.BaseControl,{id:i,label:(0,M.__)("Role position","vk-blocks")},(0,P.createElement)(Pe,Ne({id:i,schema:"vk_staff_positionColor"},e))),(0,P.createElement)(ne.BaseControl,{id:s,label:(0,M.__)("Profile title","vk-blocks")},(0,P.createElement)(Pe,Ne({id:s,schema:"vk_staff_profileTitleColor"},e))),(0,P.createElement)(ne.BaseControl,{id:u,label:(0,M.__)("Profile text","vk-blocks")},(0,P.createElement)(Pe,Ne({id:u,schema:"vk_staff_profileTextColor"},e)))),(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Heading Font","vk-blocks")},(0,P.createElement)(ne.RadioControl,{label:(0,M.__)("Font","vk-blocks"),selected:T,options:[{label:(0,M.__)("Unspecified","vk-blocks"),value:"0"},{label:(0,M.__)("minchoBody","vk-blocks"),value:"1"}],onChange:function(e){return o({vk_staff_fontFamily:e})}}))),(0,P.createElement)("div",w,(0,P.createElement)("div",{className:I},(0,P.createElement)(Q.RichText,{tagName:"h3",className:"vk_staff_text_name"+A,style:R,onChange:function(e){return o({vk_staff_text_name:e})},value:g,placeholder:(0,M.__)("Your Name","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_caption"+z,style:O,onChange:function(e){return o({vk_staff_text_caption:e})},value:y,placeholder:(0,M.__)("Caption","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_role"+j,style:F,onChange:function(e){return o({vk_staff_text_role:e})},value:E,placeholder:(0,M.__)("Role position","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"h4",className:"vk_staff_text_profileTitle"+L,style:H,onChange:function(e){return o({vk_staff_text_profileTitle:e})},value:x,placeholder:(0,M.__)("Profile title","vk-blocks")}),(0,P.createElement)(Q.RichText,{tagName:"p",className:"vk_staff_text_profileText"+D,style:U,onChange:function(e){return o({vk_staff_text_profileText:e})},value:C,placeholder:(0,M.__)("Profile text","vk-blocks")})),(0,P.createElement)("div",{className:S},(0,P.createElement)(Q.MediaUpload,{onSelect:function(e){return o({vk_staff_photo_image:e.sizes.full.url})},type:"image",value:N,render:function(e){var t=e.open;return(0,P.createElement)(ne.Button,{onClick:t,className:N?"image-button":"button button-large"},N?(0,P.createElement)("img",{className:"vk_staff_photo_image",src:N,alt:k}):(0,M.__)("Select image","vk-blocks"))}}))))},save:function(e){var t,n=e.attributes,o=e.className,a=n.vk_staff_layout,r=n.vk_staff_text_name,l=n.vk_staff_text_caption,c=n.vk_staff_text_role,i=n.vk_staff_text_profileTitle,s=n.vk_staff_text_profileText,u=n.vk_staff_nameColor,m=n.vk_staff_captionColor,p=n.vk_staff_positionColor,v=n.vk_staff_profileTitleColor,f=n.vk_staff_profileTextColor,b=n.vk_staff_photo_image,d=n.vk_staff_photo_image_alt,k=n.vk_staff_photoBorder,_=n.vk_staff_fontFamily,g=De()("vk_staff",(h(t={},o,!!o),h(t,"vk_staff-layout-".concat(a),!!a),t)),y=De()("vk_staff_photo",h({},"vk_staff_photo-border-".concat(k),!!k)),E=De();E="1"===_?De()("vk_staff_text",E,"vk_staff-headingFont-serif"):De()("vk_staff_text",E);var x={},C="";void 0!==u&&(C+=" has-text-color",pe(u)?x={color:"".concat(u)}:C+=" has-".concat(u,"-color"));var N={},T="";void 0!==m&&(T+=" has-text-color",pe(m)?N={color:"".concat(m)}:T+=" has-".concat(m,"-color"));var B={},w="";void 0!==p&&(w+=" has-text-color",pe(p)?B={color:"".concat(p)}:w+=" has-".concat(p,"-color"));var S={},I="";void 0!==v&&(I+=" has-text-color",pe(v)?S={color:"".concat(v)}:I+=" has-".concat(v,"-color"));var R={},A="";return void 0!==f&&(A+=" has-text-color",pe(f)?R={color:"".concat(f)}:A+=" has-".concat(f,"-color")),(0,P.createElement)("div",Q.useBlockProps.save({className:g}),(0,P.createElement)("div",{className:E},(0,P.createElement)(Q.RichText.Content,{tagName:"h3",className:"vk_staff_text_name"+C,style:x,value:r}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_caption"+T,style:N,value:l}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_role"+w,style:B,value:c}),(0,P.createElement)(Q.RichText.Content,{tagName:"h4",className:"vk_staff_text_profileTitle"+I,style:S,value:i}),(0,P.createElement)(Q.RichText.Content,{tagName:"p",className:"vk_staff_text_profileText"+A,style:R,value:s})),b&&(0,P.createElement)("div",{className:y},(0,P.createElement)("img",{className:"vk_staff_photo_image",src:b,alt:d})))},deprecated:$r},tl=window.lodash;(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/heading-style",(function(e){var t;return t=e.name,["core/heading"].includes(t)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e})),(0,g.registerBlockStyle)("core/heading",[{name:"vk-heading-default",label:(0,M.__)("Default","vk-blocks"),isDefault:!0},{name:"vk-heading-plain",label:(0,M.__)("Plain","vk-blocks")},{name:"vk-heading-background_fill_lightgray",label:(0,M.__)("Background fill lightgray","vk-blocks")},{name:"vk-heading-double_black",label:(0,M.__)("Double border top and bottom black","vk-blocks")},{name:"vk-heading-double_bottomborder_black",label:(0,M.__)("Double border bottom black","vk-blocks")},{name:"vk-heading-solid_black",label:(0,M.__)("Solid border top and bottom black","vk-blocks")},{name:"vk-heading-solid_bottomborder_black",label:(0,M.__)("Solid border bottom black","vk-blocks")},{name:"vk-heading-dotted_bottomborder_black",label:(0,M.__)("Dotted border bottom black","vk-blocks")},{name:"vk-heading-both_ends",label:(0,M.__)("Both ends","vk-blocks")},{name:"vk-heading-brackets_black",label:(0,M.__)("Brackets black","vk-blocks")}]);var nl=function(e){return["core/group"].includes(e)};(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/group-style",(function(e){return nl(e.name)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e}));var ol=(0,Yt.createHigherOrderComponent)((function(e){var t="";return function(n){return nl(n.name)&&n.isSelected?(t=n.attributes.color?n.attributes.color:"#fffd6b",(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,n),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Border Color","vk-blocks"),initialOpen:!1,className:"group-border-color-controle"},(0,P.createElement)(Q.ColorPalette,{value:t,disableCustomColors:!0,onChange:function(e){var o=function(e){switch(e){case"#f78da7":return"vk-has-pale-pink-color";case"#cf2e2e":return"vk-has-vivid-red-color";case"#ff6900":return"vk-has-luminous-vivid-orange-color";case"#fcb900":return"vk-has-luminous-vivid-amber-color";case"#7bdcb5":return"vk-has-light-green-cyan-color";case"#00d084":return"vk-has-vivid-green-cyan-color";case"#8ed1fc":return"vk-has-pale-cyan-blue-color";case"#0693e3":return"vk-has-vivid-cyan-blue-color";case"#9b51e0":return"vk-has-vivid-purple-color";case"#eee":return"vk-has-very-light-gray-color";case"#abb8c3":return"vk-has-cyan-bluish-gray-color";case"#313131":return"vk-has-very-dark-gray-color";case"#ffffff":return"vk-has-white-color"}}(e);if(n.attributes.className){var a=n.attributes.className,r=(a=a.split(" ")).filter((function(e){return-1===e.indexOf("vk-has-")}));r.push(o),o=r.join(" ")}t=e,n.setAttributes({className:o,color:e})}}))))):(0,P.createElement)(e,n)}}),"addMyCustomBlockControls");(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/group-style",ol),(0,g.registerBlockStyle)("core/group",[{name:"vk-group-solid",label:(0,M.__)("Solid","vk-blocks")},{name:"vk-group-solid-roundcorner",label:(0,M.__)("Solid Roundcorner","vk-blocks")},{name:"vk-group-dotted",label:(0,M.__)("Dotted","vk-blocks")},{name:"vk-group-dashed",label:(0,M.__)("Dashed","vk-blocks")},{name:"vk-group-double",label:(0,M.__)("Double","vk-blocks")},{name:"vk-group-stitch",label:(0,M.__)("Stitch","vk-blocks")},{name:"vk-group-top-bottom-border",label:(0,M.__)("Border Top Bottom","vk-blocks")},{name:"vk-group-shadow",label:(0,M.__)("Shadow","vk-blocks")},{name:"vk-group-alert-info",label:(0,M.__)("Info","vk-blocks")},{name:"vk-group-alert-success",label:(0,M.__)("Success","vk-blocks")},{name:"vk-group-alert-warning",label:(0,M.__)("Warning","vk-blocks")},{name:"vk-group-alert-danger",label:(0,M.__)("Danger","vk-blocks")}]);var al=function(e){return["core/list"].includes(e)};(0,Gt.addFilter)("blocks.registerBlockType","vk-blocks/list-style",(function(e){return al(e.name)&&(e.attributes=(0,tl.assign)(e.attributes,{color:{type:"string"}})),e}));var rl=(0,Yt.createHigherOrderComponent)((function(e){var t="";return function(n){var o=(0,ze.select)("core/block-editor").getSettings().colors;return function(e){var t=[];return e.forEach((function(e){t.push(e.slug)})),!!["black","cyan-bluish-gray","white","pale-pink","vivid-red","luminous-vivid-orange","luminous-vivid-amber","light-green-cyan","pale-cyan-blue","vivid-cyan-blue","vivid-purple"].every((function(e){return-1!==t.indexOf(e)}))}(o)&&al(n.name)&&n.isSelected?(t=n.attributes.color?n.attributes.color:"#fffd6b",(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,n),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("List Icon Color","vk-blocks"),initialOpen:!1,className:"list-color-controle"},(0,P.createElement)(Q.ColorPalette,{value:t,disableCustomColors:!0,onChange:function(e){var a=(0,Q.getColorObjectByColorValue)(o,e),r=n.attributes.className&&n.attributes.className.split(" "),l=r||[];r&&(l=r.filter((function(e){return!e.match(/vk-has-(.*)-color/)}))),void 0!==e&&l.push("vk-has-".concat(a.slug,"-color"));var c=l.join(" ");t=e,n.setAttributes({className:c,color:e})}}))))):(0,P.createElement)(e,n)}}),"addMyCustomBlockControls");(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/list-style",rl),(0,g.registerBlockStyle)("core/list",[{name:"vk-default",label:(0,M.__)("Default","vk-blocks"),isDefault:!0},{name:"vk-arrow-mark",label:(0,M.__)("Arrow","vk-blocks")},{name:"vk-triangle-mark",label:(0,M.__)("Triangle","vk-blocks")},{name:"vk-check-mark",label:(0,M.__)("Check","vk-blocks")},{name:"vk-check-square-mark",label:(0,M.__)("Check Square","vk-blocks")},{name:"vk-check-circle-mark",label:(0,M.__)("Check Circle","vk-blocks")},{name:"vk-handpoint-mark",label:(0,M.__)("Handpoint","vk-blocks")},{name:"vk-pencil-mark",label:(0,M.__)("Pencil","vk-blocks")},{name:"vk-smile-mark",label:(0,M.__)("Smile","vk-blocks")},{name:"vk-frown-mark",label:(0,M.__)("Frown","vk-blocks")},{name:"vk-numbered-circle-mark",label:(0,M.__)("Numbered Circle","vk-blocks")},{name:"vk-numbered-square-mark",label:(0,M.__)("Numbered Square","vk-blocks")}]),(0,g.registerBlockStyle)("core/image",[{name:"vk-image-rounded",label:(0,M.__)("Rounded02","vk-blocks")},{name:"vk-image-rounded",label:(0,M.__)("Rounded02","vk-blocks")},{name:"vk-image-border",label:(0,M.__)("Border","vk-blocks")},{name:"vk-image-photoFrame",label:(0,M.__)("Photo frame","vk-blocks")},{name:"vk-image-photoFrame-tilt-right",label:(0,M.__)("Photo frame Tilt Right","vk-blocks")},{name:"vk-image-photoFrame-tilt-left",label:(0,M.__)("Photo frame Tilt Left","vk-blocks")},{name:"vk-image-shadow",label:(0,M.__)("Shadow","vk-blocks")},{name:"vk-image-wave01",label:(0,M.__)("Wave01","vk-blocks")},{name:"vk-image-wave02",label:(0,M.__)("Wave02","vk-blocks")},{name:"vk-image-wave03",label:(0,M.__)("Wave03","vk-blocks")},{name:"vk-image-wave04",label:(0,M.__)("Wave04","vk-blocks")}]),(0,g.registerBlockStyle)("core/table",[{name:"vk-table-border-top-bottom",label:(0,M.__)("Border Top Bottom","vk-blocks")},{name:"vk-table-border",label:(0,M.__)("Border","vk-blocks")},{name:"vk-table-border-stripes",label:(0,M.__)("Border / Stripes","vk-blocks")}]);var ll=function(e,t){return-1!==e.indexOf(t)},cl=["vk-blocks/breadcrumb","vk-blocks/child-page","vk-blocks/post-list","vk-blocks/page-content","vk-blocks/ancestor-page-list","vk-blocks/share-button","vk-blocks/child-page-index","vk-blocks/contact-section","vk-blocks/page-list-ancestor","vk-blocks/sitemap"];(0,Gt.addFilter)("editor.BlockEdit","vk-blocks/hidden-extension",(0,Yt.createHigherOrderComponent)((function(e){return function(t){if(k=t.name,_=void 0!==["core","vk-blocks"].find((function(e){return ll(k,e)})),void 0!==["vk-blocks/card-item","vk-blocks/icon-card-item","vk-blocks/icon","vk-blocks/select-post-list-item"].find((function(e){return ll(k,e)}))&&(_=!1),(0,g.hasBlockSupport)(k,"customClassName",!0)||(_=!1),_){t.attributes.vkb_hidden_xl&&!t.attributes.vkb_hidden_xxl&&(t.attributes.vkb_hidden_xxl=!0,t.attributes.vkb_hidden_xl_v2=!0,t.attributes.vkb_hidden_xl=!1);var n=t.name,o=t.attributes,a=t.setAttributes,r=o.vkb_hidden,l=o.vkb_hidden_xxl,c=o.vkb_hidden_xl_v2,i=o.vkb_hidden_xl,s=o.vkb_hidden_lg,u=o.vkb_hidden_md,m=o.vkb_hidden_sm,p=o.vkb_hidden_xs,v=o.className;(0,P.useEffect)((function(){var e;cl.includes(n)&&(r||l||c||i||s||u||m||p)&&a({className:De()((e={},h(e,v,v),h(e,"vk_hidden",r),h(e,"vk_hidden-xxl",l),h(e,"vk_hidden-xl-v2",c),h(e,"vk_hidden-xl",i),h(e,"vk_hidden-lg",s),h(e,"vk_hidden-md",u),h(e,"vk_hidden-sm",m),h(e,"vk_hidden-xs",p),e)),vkb_hidden:void 0,vkb_hidden_xxl:void 0,vkb_hidden_xl_v2:void 0,vkb_hidden_xl:void 0,vkb_hidden_lg:void 0,vkb_hidden_md:void 0,vkb_hidden_sm:void 0,vkb_hidden_xs:void 0}),/vk_hidden-xl_v2/.test(v)&&a({className:v.replace(/vk_hidden-xl_v2/,"vk_hidden-xl-v2")})}),[]);var f=v?v.split(" "):[],b=function(e){var t=[];return f.forEach((function(n){n===e&&t.push(e)})),t[0]===e},d=function(e,t){if(e)f.push(t);else{var n=f.indexOf(t);f.splice(n,1)}a({className:f.join(" ")})};return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(e,t),(0,P.createElement)(Q.InspectorControls,null,(0,P.createElement)(ne.PanelBody,{title:(0,M.__)("Hidden Settings","vk-blocks"),initialOpen:!1},(0,P.createElement)(ne.BaseControl,{label:(0,M.__)("Hidden at screen size","vk-blocks"),id:"vk_hiddenControl-hiddenScreenSize"},(0,P.createElement)("p",null,(0,M.__)("Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.","vk-blocks")),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : all )","vk-blocks"),checked:b("vk_hidden"),onChange:function(e){d(e,"vk_hidden")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xs )","vk-blocks"),checked:b("vk_hidden-xs"),onChange:function(e){d(e,"vk_hidden-xs")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : sm )","vk-blocks"),checked:b("vk_hidden-sm"),onChange:function(e){d(e,"vk_hidden-sm")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : md )","vk-blocks"),checked:b("vk_hidden-md"),onChange:function(e){d(e,"vk_hidden-md")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : lg )","vk-blocks"),checked:b("vk_hidden-lg"),onChange:function(e){d(e,"vk_hidden-lg")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xl )","vk-blocks"),checked:b("vk_hidden-xl-v2"),onChange:function(e){d(e,"vk_hidden-xl-v2")}}),(0,P.createElement)(ne.ToggleControl,{label:(0,M.__)("Hidden ( Screen size : xxl )","vk-blocks"),checked:b("vk_hidden-xxl"),onChange:function(e){d(e,"vk_hidden-xxl")}}),(0,P.createElement)("p",null,(0,M.__)("If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.","vk-blocks"))))))}var k,_;return(0,P.createElement)(e,t)}}),"addHiddenSection")),(0,Gt.addFilter)("editor.BlockListBlock","vk-blocks/hidden-extension",(0,Yt.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes.className,o=n?n.split(" "):[],a=/vk_hidden/.test(o)?"vk_edit_hidden_warning":"",r=-1!==o.indexOf("vk_hidden")?a+" vk_edit_hidden_all":a,l=De()(r,t.className);return(0,P.createElement)(e,Ne({},t,{className:l}))}}),"addHiddenWarning"));var il,sl,ul=window.wp.richText;function ml(){return ml=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},ml.apply(this,arguments)}var pl=function(e){return G.createElement("svg",ml({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),il||(il=G.createElement("path",{d:"M20 4.804c-.001-.443-.435-.803-.971-.804H12.58c-.187 0-.36.043-.508.118-.277.142-.463.395-.463.685V12.5L20 12.5V4.804ZM19.955 15.32v-1.56H12.04c.504.521.64 1.368.19 2.028.761.625 1.903 1.869 1.902 3.712l3.254.001c0-2.765 2.57-4.182 2.57-4.182ZM17.098 22.015l-2.403 1.04-.097-2.555h2.5v1.515ZM10.89 14.778l-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),sl||(sl=G.createElement("path",{d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152Z",fill:"#D8141C"})))};function vl(e,t){if("rgba"===e.substring(0,4))return e;var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map((function(e){return parseInt(e,16)}))),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map((function(e){return 17*parseInt(e,16)}))),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var fl,bl,dl,kl="vk-blocks/highlighter",_l=function(e){var t=e.color,n=e.value,o=e.onChange;t=function(e){return void 0===e&&(e="#fffd6b"),e}(t),o((0,ul.applyFormat)(n,{type:kl,attributes:{data:t,style:"background: linear-gradient(transparent 60%,".concat(vl(t,.7)," 0);")}}))};function hl(){return hl=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},hl.apply(this,arguments)}(0,ul.registerFormatType)(kl,{title:(0,M.__)("Highlighter","vk-blocks"),tagName:"span",className:"vk_highlighter",attributes:{data:"data-color",style:"style"},edit:function(e){var t,n=e.value,o=e.isActive,a=e.onChange,r=e.contentRef,l="primary";if(o){var c=(0,ul.getActiveFormat)(n,kl);t=c.attributes.data}var i={};if(t){var s=vl(t,.7);i={color:"initial",background:"linear-gradient(transparent 60%, ".concat(s," 0)")}}var u=(0,ul.useAnchorRef)({ref:r,value:n}),m=we((0,P.useState)(!1),2),p=m[0],v=m[1],f=(0,P.useCallback)((function(){return v(!0)}),[v]),b=(0,P.useCallback)((function(){return v(!1)}),[v]);return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichTextShortcut,{type:l,character:"h",onUse:function(){return v(!0)}}),(0,P.createElement)(Q.RichTextToolbarButton,{title:(0,M.__)("Highlighter","vk-blocks"),onClick:function(){void 0===t&&_l({heightlightColor:t,value:n,onChange:a}),v(!0),f(!0)},shortcutType:l,shortcutCharacter:"h",className:"format-library-text-color-button",isActive:o,icon:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.Icon,{icon:pl,style:i}))}),p&&(0,P.createElement)(ne.Popover,{value:n,className:"vk-blocks-format-popover components-inline-color-popover",anchorRef:u,onClose:b},(0,P.createElement)(Q.ColorPalette,{value:t,onChange:function(e){e?_l({color:e,value:n,onChange:a}):a((0,ul.removeFormat)(n,kl)),v(!1)}})))}});var gl,yl,El,xl=function(e){return G.createElement("svg",hl({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),fl||(fl=G.createElement("path",{clipRule:"evenodd",d:"M9.303 12.137c.242.334.35.755.315 1.146l2.271-.005c1.006 0 1.663.859 1.61 1.722h3.121l1.12 3h2.25L14.5 4h-2l-3.197 8.137zM11.12 13l2.38-6.33L15.88 13h-4.76z"})),bl||(bl=G.createElement("path",{d:"m11.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L7.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L7 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084h3.288c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19z"})),dl||(dl=G.createElement("path",{d:"m8.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H1.108c-.074 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152z",fill:"#D8141C"})))},Cl="vk-blocks/inline-font-size";function Nl(){return Nl=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},Nl.apply(this,arguments)}(0,ul.registerFormatType)(Cl,{title:(0,M.__)("Inline font size","vk-blocks"),tagName:"span",className:"vk_inline-font-size",attributes:{data:"data-fontSize",style:"style"},edit:function(e){var t,n,o=e.value,a=e.isActive,r=e.onChange,l=e.contentRef;if(a){var c=(0,ul.getActiveFormat)(o,Cl);t=c.attributes.data,n=c.attributes.style.replace("font-size:",""),void 0===t&&n&&(t=n)}var i=(0,ul.useAnchorRef)({ref:l,value:o}),s=we((0,P.useState)(!1),2),u=s[0],m=s[1],p=(0,P.useCallback)((function(){return m(!0)}),[m]),v=(0,P.useCallback)((function(){return m(!1)}),[m]),f=!(0,tl.isEmpty)(o)||!t;if(!f&&!a)return null;var b=[{name:(0,M.__)("Small","vk-blocks"),slug:"small",size:"12px"},{name:(0,M.__)("Normal","vk-blocks"),slug:"normal",size:"16px"},{name:(0,M.__)("Big","vk-blocks"),slug:"big",size:"18px"},{name:(0,M.__)("Extra big","vk-blocks"),slug:"extra-big",size:"21px"}],d=parseInt(n)||16;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Q.RichTextToolbarButton,{title:(0,M.__)("Inline Font Size","vk-blocks"),onClick:f?p:function(){return r((0,ul.removeFormat)(o,Cl))},shortcutType:"primary",shortcutCharacter:"h",className:"format-library-text-color-button",isActive:a,icon:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ne.Icon,{icon:xl,style:{width:"24px",height:"24px"}}))}),u&&(0,P.createElement)(ne.Popover,{className:"vk-blocks-format-popover components-inline-color-popover",anchorRef:i,onClose:v},(0,P.createElement)("div",{style:{width:"200px"}},(0,P.createElement)(ne.FontSizePicker,{fontSizes:b,value:t,fallbackFontSize:void 0!==window.wpVersion&&null!==window.wpVersion&&y(window.wpVersion,"5.9")<0&&d,withSlider:void 0!==window.wpVersion&&null!==window.wpVersion&&y(window.wpVersion,"5.9")<0,onChange:function(e){r(e?(0,ul.applyFormat)(o,{type:Cl,attributes:{data:"".concat(e),style:"font-size: ".concat(e,";")}}):(0,ul.removeFormat)(o,Cl))}}),(0,P.createElement)(ne.Button,{onClick:function(){m(!1)},isSmall:!0,isSecondary:!0,style:{marginTop:"16px",padding:"0 16px",height:"30px"}},(0,M.__)("Apply","vk-blocks")))))}});var Tl,Bl,wl=function(e){return G.createElement("svg",Nl({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),gl||(gl=G.createElement("path",{d:"M4 11.884V4h1.5v7.506l-.467.002h-.005A1.609 1.609 0 0 0 4 11.884ZM11.947 16.117l.818.818 4.96-4.962-4.96-4.961-1.027 1.026 3.21 3.21H6.725v.253l.296-.001c.847 0 1.378.563 1.545 1.2h6.38l-2.466 2.465c-.05.297-.187.588-.426.838l-.108.114ZM20.08 4v16h-1.5V4h1.5Z"})),yl||(yl=G.createElement("path",{d:"m10.89 14.778-3.267.008a.11.11 0 0 0-.102.075l-.25.722c-.022.076.03.152.103.152h1.27c.095 0 .146.122.08.19L6.7 18.105h.007l1.042 3.397c.022.076-.03.145-.103.145h-1.02a.104.104 0 0 1-.102-.076L6 19.83c-.029-.107-.168-.107-.205-.008l-.426 1.223a.109.109 0 0 0 0 .069l.39 1.481c.014.046.058.084.102.084H9.15c.073 0 .125-.076.103-.145l-1.329-4.277c-.014-.038 0-.084.03-.114l3.016-3.176c.066-.069.015-.19-.08-.19Z"})),El||(El=G.cr
|