Version Description
Download this release
Release Info
Developer | MotoPress |
Plugin | Getwid – Gutenberg Blocks |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.4
assets/css/blocks.editor.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
.components-panel__body .components-getwid-style-length-control{display:flex;align-items:flex-end}.components-panel__body .components-getwid-style-length-control>.components-base-control{margin-bottom:0}.components-panel__body .components-getwid-style-length-control>.components-base-control:last-child{margin-bottom:0}.components-panel__body .components-getwid-style-length-control>.components-base-control .components-base-control__field{margin-bottom:0}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__value_input input{min-height:30px}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__unit_select{margin-left:10px}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__unit_select select{height:30px;min-width:60px}
|
3 |
.components-getwid-color-palette-control .components-base-control__label{margin-top:8px}.components-getwid-color-palette-control .component-color-indicator{vertical-align:text-bottom}.components-getwid-color-palette-control .components-color-palette{margin-top:12px}
|
4 |
.components-getwid-panel-body .components-getwid-panel-body-row{margin-right:15px;width:100%;display:flex;flex-wrap:wrap;margin-bottom:-6px}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns{width:50%;display:flex;align-items:center;padding-left:8px;margin-bottom:6px;font-size:12px;line-height:1}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns span{margin-right:7px;display:flex}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns span svg{fill:#0085ba}
|
5 |
-
@font-face{font-family:'fontIconPicker';src:url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.ttf") format("truetype"),url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.woff") format("woff"),url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.svg#fontIconPicker") format("svg");font-weight:normal;font-style:normal}[class^="fipicon-"],[class*=" fipicon-"]{font-family:'fontIconPicker' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fipicon-angle-left:before{content:"\f104"}.fipicon-angle-right:before{content:"\f105"}.fipicon-angle-up:before{content:"\f106"}.fipicon-angle-down:before{content:"\f107"}.rfipbtn,.rfipdropdown{margin:0;padding:0;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
|
6 |
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
|
7 |
'Helvetica Neue', sans-serif;font-size:14px;line-height:1.71429;vertical-align:baseline;box-sizing:border-box}.rfipbtn *,.rfipdropdown *{box-sizing:border-box;margin:0;padding:0}.rfipbtn input,.rfipbtn select,.rfipdropdown input,.rfipdropdown select{font-size:14px}.rfip{position:relative;display:inline-block;margin:8px;vertical-align:middle}.rfipbtn{width:136px;display:flex;flex-flow:row nowrap;min-height:50px;border-radius:2px;cursor:pointer;transition:box-shadow 250ms, border-color 250ms;outline:0 none;-ms-user-select:none;user-select:none}.rfipbtn--open{border-radius:2px 2px 0 0}.rfipbtn__button{width:48px;margin-left:auto;display:flex;align-items:center;justify-content:center;height:auto;transition:background 250ms, box-shadow 250ms}.rfipbtn__button i{font-size:32px;transition:transform 250ms}.rfipbtn__button--open i{transform:rotate(-180deg)}.rfipbtn__current{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;flex:0 0 86px;padding:2px}.rfipbtn--multi{width:258px}.rfipbtn--multi .rfipbtn__current{flex-flow:row wrap;justify-content:flex-start;flex-basis:212px;align-content:center}.rfipbtn__icon{margin:2px;padding:0;height:28px;width:48px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:space-between;border-radius:2px}.rfipbtn__icon--empty{font-size:14px;line-height:16px;margin-left:8px;text-align:center;text-transform:lowercase;font-style:italic}.rfipbtn__elm{display:flex;height:28px;width:28px;align-items:center;justify-content:center;font-size:18px}.rfipbtn__elm img,.rfipbtn__elm svg{height:18px;width:auto}.rfipbtn__del{width:18px;display:flex;height:28px;align-items:center;justify-content:center;transition:background-color 250ms;cursor:pointer}.rfipcategory{width:100%;margin:0 0 8px;position:relative}.rfipcategory select{width:100%;display:block;height:32px;line-height:32px;border-radius:0;appearance:none;transition:border 250ms, box-shadow 250ms;background-color:transparent !important}.rfipcategory i{position:absolute;right:2px;top:0;font-size:16px;line-height:32px;z-index:-1}.rfipdropdown{width:352px;position:absolute;left:0;margin-top:-1px;z-index:100000001;border-radius:0 1px 4px 4px}.rfipdropdown__selector{overflow:hidden;padding:16px}.rfipdropdown.fipappear-enter-active .rfipdropdown__selector,.rfipdropdown.fipappear-exit-active .rfipdropdown__selector{transition:max-height 300ms ease-out, padding 300ms ease-out;padding:16px}.rfipicons__pager{display:flex;flex-flow:row nowrap;height:24px;line-height:24px;align-items:center;margin-bottom:8px}.rfipicons__num{width:100px;margin-right:auto}.rfipicons__cp{width:32px;margin-right:8px;height:24px;line-height:24px;text-align:right}.rfipicons__sp{margin-right:8px}.rfipicons__tp{margin-right:8px}.rfipicons__arrow{margin-left:auto;width:56px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;height:24px;-ms-user-select:none;user-select:none}.rfipicons__right{margin-left:auto}.rfipicons__left,.rfipicons__right{cursor:pointer;width:24px;height:24px;position:relative;transition:background-color 250ms, border 250ms;outline:0 none;border-radius:2px;font-size:18px}.rfipicons__label{height:22px;width:22px;display:flex;align-items:center;justify-content:center}.rfipicons__label img{height:18px;width:18px}.rfipicons__selector{display:flex;flex:1 1 20%;flex-flow:row wrap;align-content:center;justify-content:flex-start}.rfipicons__ibox{display:flex;align-items:center;justify-content:center;height:100%;width:100%;transition:background-color 250ms, border 250ms;border-radius:2px;outline:0 none;font-size:20px}.rfipicons__ibox img,.rfipicons__ibox svg{max-height:24px;width:auto}.rfipicons__ibox>*{transform:scale(1);transition:transform 250ms;transform-origin:center}.rfipicons__ibox:hover>*{transform:scale(1.8)}.rfipicons__ibox--error{text-transform:lowercase;font-style:italic}.rfipicons__icon{width:20%;height:64px;padding:1px;display:flex;align-items:center;justify-content:center;cursor:pointer}.rfipicons__icon--error{display:block;padding:16px;text-align:center;font-size:24px;width:100%;line-height:1}.rfipsearch{width:100%;margin:0 0 8px}.rfipsearch input{width:100%;display:block;height:32px;line-height:32px}.rfipbtn--getwid{background-color:#fff;border:1px solid #e0e0e0}.rfipbtn--getwid:active,.rfipbtn--getwid:focus{box-shadow:0 1.5px 4px rgba(0,0,0,0.24),0 1.5px 6px rgba(0,0,0,0.12);box-shadow:none;border:1px solid #bdbdbd}.rfipbtn--getwid .rfipbtn__button{border:0 none transparent;border-left:1px solid #e0e0e0;background-color:#f5f5f5;color:#424242}.rfipbtn--getwid .rfipbtn__button:hover{background-color:#bdbdbd}.rfipbtn--getwid .rfipbtn__button:active{box-shadow:inset 0 0 10px 0 #e0e0e0}.rfipbtn--getwid .rfipbtn__button i{font-size:24px}.rfipbtn--getwid .rfipbtn__icon{border:1px solid #eee;color:#424242}.rfipbtn--getwid .rfipbtn__icon--empty{color:#e0e0e0}.rfipbtn--getwid .rfipbtn__del{background-color:#eee}.rfipbtn--getwid .rfipbtn__del:hover{background-color:#e0e0e0}.rfipbtn--getwid .rfipbtn__del:focus,.rfipbtn--getwid .rfipbtn__del:active{outline:1px solid #e0e0e0}.rfipdropdown--getwid{box-shadow:0 3px 12px rgba(0,0,0,0.23),0 3px 12px rgba(0,0,0,0.16);box-shadow:0 3px 30px rgba(25,30,35,0.1);color:#424242;background-color:#fff;border:1px solid #e0e0e0}.rfipdropdown--getwid input,.rfipdropdown--getwid select{color:#424242}.rfipdropdown--getwid .rfipdropdown__selector{padding-top:8px}.rfipdropdown--getwid .rfipcategory select{background-color:#fff;border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;background-image:none}.rfipdropdown--getwid .rfipcategory select:focus,.rfipdropdown--getwid .rfipcategory select:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipicons__cp{border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;text-align:center;min-height:auto;height:24px}.rfipdropdown--getwid .rfipicons__cp:focus,.rfipdropdown--getwid .rfipicons__cp:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipicons__left,.rfipdropdown--getwid .rfipicons__right{background-color:#eee;border:1px solid #eee;color:#424242}.rfipdropdown--getwid .rfipicons__left:hover,.rfipdropdown--getwid .rfipicons__right:hover{background-color:#bdbdbd;border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__left:focus,.rfipdropdown--getwid .rfipicons__left:active,.rfipdropdown--getwid .rfipicons__right:focus,.rfipdropdown--getwid .rfipicons__right:active{border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox{background-color:#f5f5f5;border:1px solid #f5f5f5;color:#424242;font-size:24px}.rfipdropdown--getwid .rfipicons__ibox:hover{background-color:#e2e2e2;border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox:hover>*{transform:none}.rfipdropdown--getwid .rfipicons__ibox:focus,.rfipdropdown--getwid .rfipicons__ibox:active{border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox--error{color:#ef9a9a}.rfipdropdown--getwid .rfipicons__icon{height:49px;width:25%}.rfipdropdown--getwid .rfipicons__icon--selected .rfipicons__ibox{background-color:#eee}.rfipdropdown--getwid .rfipsearch{margin-bottom:2px}.rfipdropdown--getwid .rfipsearch input{border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;border-radius:0}.rfipdropdown--getwid .rfipsearch input:focus,.rfipdropdown--getwid .rfipsearch input:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipsearch input:focus{box-shadow:none}.rfip{margin:0;display:block}.rfipdropdown{width:230px}
|
8 |
.components-panel__body .components-base-control-with-lock{display:flex;flex-direction:row;align-items:flex-end}.components-panel__body .components-base-control-with-lock .components-base-control,.components-panel__body .components-base-control-with-lock .components-base-control__field{margin-bottom:0}.components-panel__body .components-base-control-with-lock .components-icon-button:not(:disabled):not(.is-default):hover{background-color:transparent;box-shadow:none}.components-panel__body .components-base-control-with-lock .components-icon-button:not(:disabled):not(.is-default):active{background-color:transparent;box-shadow:none}.components-panel__body .components-base-control-with-lock .components-icon-button:focus:enabled{background-color:transparent;box-shadow:none;outline:none}.components-panel__body .components-base-control-with-lock .components-base-control:not(.components-getwid-style-length-control__unit_select){width:100%}.components-panel__body .components-base-control-with-lock .components-button{margin-left:2px;box-shadow:none !important}.components-panel__body .components-getwid-style-length-control .components-text-control__input:disabled{border-color:rgba(222,222,222,0.75)}
|
9 |
.edit-post-sidebar .components-panel__body.components-getwid-tabs-control{padding:0px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-content:flex-start;align-items:flex-start;border-bottom:1px solid #e2e4e7;margin-bottom:16px}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control+.components-panel__body{margin-top:-17px}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab{order:0;flex:1 1 auto;align-self:auto;padding:10px 10px;text-align:center;cursor:pointer;transition:color linear .25s;color:inherit;border-radius:0;height:auto}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab:hover{color:#0085ba}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab span{font-size:12px;width:100%}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab span svg{display:block;margin:0px auto 5px auto}
|
10 |
.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:center;align-items:stretch}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button{color:inherit;padding:10px;height:auto;order:0;flex:1 1 auto;align-self:auto;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:center;align-items:stretch;border-radius:0px;border:1px solid #e2e4e7}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button.is-active,.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button:hover{background:#f3f4f5;box-shadow:none}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button.is-active{border-bottom:2px solid #0085ba}
|
@@ -37,7 +37,7 @@
|
|
37 |
.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link{background:transparent !important;padding:0;color:initial}.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link:hover{color:initial;text-decoration:underline}
|
38 |
.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link{background:transparent !important;padding:0;color:initial}.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link:hover{color:initial;text-decoration:underline}
|
39 |
.wp-block-getwid-template-post-featured-background-image{min-height:200px}.wp-block-getwid-template-post-featured-background-image__wrapper{padding:25px 14px}.wp-block-getwid-template-post-featured-background-image__content{padding:14px}
|
40 |
-
.wp-block-getwid-template-post-meta.has-direction-column>.editor-inner-blocks>.editor-block-list__layout>.wp-block{display:block}.wp-block-getwid-template-post-meta>.editor-inner-blocks>.editor-block-list__layout>.wp-block{margin:0;width:auto;display:inline-block}.wp-block-getwid-template-post-meta>.editor-inner-blocks>.editor-block-list__layout>.wp-block .editor-block-list__block-edit{margin-top:14px;margin-bottom:14px}.wp-block-getwid-template-post-meta.has-direction-column>p{margin:0}
|
41 |
.wp-block-getwid-template-post-layout-helper .components-placeholder__fieldset{max-width:80%}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options{display:flex;flex-direction:row;flex-wrap:wrap;list-style:none;margin-top:50px;margin-left:-25px;margin-right:-25px;width:auto}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options>li{margin:0 0 25px 0;padding:0 25px;width:100%;max-width:100%}@media screen and (min-width: 768px){.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options>li{max-width:50%}}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button{justify-content:flex-start;height:auto;width:100%;margin-bottom:10px;padding:16px 20px}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button svg{width:48px;height:48px;margin-right:1em}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button:before{display:none}
|
42 |
.wp-block-getwid-mailchimp__message{color:red}
|
43 |
.wp-block-getwid-video-popup.components-placeholder{color:inherit;margin-bottom:30px}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__title{line-height:1.4}.wp-block-getwid-video-popup a.wp-block-getwid-video-popup__link{color:inherit;text-decoration:none}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__icon i{font-style:normal}.wp-block-getwid-video-popup__url-field{display:flex;align-items:center;margin-top:0.5em;margin-bottom:0.5em;flex-wrap:wrap;justify-content:center}.wp-block-getwid-video-popup__url-field .dashicon{color:#8f98a1}.wp-block-getwid-video-popup__url-field .editor-url-input{margin-left:10px;margin-right:10px}.wp-block-getwid-video-popup__url-field .editor-url-input input{width:100%}.wp-block-getwid-video-popup__url-field .components-base-control{min-width:300px;margin-left:10px}.wp-block-getwid-video-popup__url-field .components-base-control .components-base-control__field{align-items:flex-end;margin:0}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__caption-wrapper{z-index:1}
|
2 |
.components-panel__body .components-getwid-style-length-control{display:flex;align-items:flex-end}.components-panel__body .components-getwid-style-length-control>.components-base-control{margin-bottom:0}.components-panel__body .components-getwid-style-length-control>.components-base-control:last-child{margin-bottom:0}.components-panel__body .components-getwid-style-length-control>.components-base-control .components-base-control__field{margin-bottom:0}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__value_input input{min-height:30px}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__unit_select{margin-left:10px}.components-panel__body .components-getwid-style-length-control .components-getwid-style-length-control__unit_select select{height:30px;min-width:60px}
|
3 |
.components-getwid-color-palette-control .components-base-control__label{margin-top:8px}.components-getwid-color-palette-control .component-color-indicator{vertical-align:text-bottom}.components-getwid-color-palette-control .components-color-palette{margin-top:12px}
|
4 |
.components-getwid-panel-body .components-getwid-panel-body-row{margin-right:15px;width:100%;display:flex;flex-wrap:wrap;margin-bottom:-6px}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns{width:50%;display:flex;align-items:center;padding-left:8px;margin-bottom:6px;font-size:12px;line-height:1}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns span{margin-right:7px;display:flex}.components-getwid-panel-body .components-getwid-panel-body-row .components-getwid-panel-body-columns span svg{fill:#0085ba}
|
5 |
+
@font-face{font-family:'fontIconPicker';src:url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.ttf") format("truetype"),url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.woff") format("woff"),url("./../../vendors/fonticonpicker/react-fonticonpicker/dist/assets/fontIconPicker.svg#fontIconPicker") format("svg");font-weight:normal;font-style:normal}[class^="fipicon-"],[class*=" fipicon-"]{font-family:'fontIconPicker' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fipicon-angle-left:before{content:"\f104"}.fipicon-angle-right:before{content:"\f105"}.fipicon-angle-up:before{content:"\f106"}.fipicon-angle-down:before{content:"\f107"}.rfipbtn,.rfipdropdown{margin:0;padding:0;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
|
6 |
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
|
7 |
'Helvetica Neue', sans-serif;font-size:14px;line-height:1.71429;vertical-align:baseline;box-sizing:border-box}.rfipbtn *,.rfipdropdown *{box-sizing:border-box;margin:0;padding:0}.rfipbtn input,.rfipbtn select,.rfipdropdown input,.rfipdropdown select{font-size:14px}.rfip{position:relative;display:inline-block;margin:8px;vertical-align:middle}.rfipbtn{width:136px;display:flex;flex-flow:row nowrap;min-height:50px;border-radius:2px;cursor:pointer;transition:box-shadow 250ms, border-color 250ms;outline:0 none;-ms-user-select:none;user-select:none}.rfipbtn--open{border-radius:2px 2px 0 0}.rfipbtn__button{width:48px;margin-left:auto;display:flex;align-items:center;justify-content:center;height:auto;transition:background 250ms, box-shadow 250ms}.rfipbtn__button i{font-size:32px;transition:transform 250ms}.rfipbtn__button--open i{transform:rotate(-180deg)}.rfipbtn__current{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;flex:0 0 86px;padding:2px}.rfipbtn--multi{width:258px}.rfipbtn--multi .rfipbtn__current{flex-flow:row wrap;justify-content:flex-start;flex-basis:212px;align-content:center}.rfipbtn__icon{margin:2px;padding:0;height:28px;width:48px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:space-between;border-radius:2px}.rfipbtn__icon--empty{font-size:14px;line-height:16px;margin-left:8px;text-align:center;text-transform:lowercase;font-style:italic}.rfipbtn__elm{display:flex;height:28px;width:28px;align-items:center;justify-content:center;font-size:18px}.rfipbtn__elm img,.rfipbtn__elm svg{height:18px;width:auto}.rfipbtn__del{width:18px;display:flex;height:28px;align-items:center;justify-content:center;transition:background-color 250ms;cursor:pointer}.rfipcategory{width:100%;margin:0 0 8px;position:relative}.rfipcategory select{width:100%;display:block;height:32px;line-height:32px;border-radius:0;appearance:none;transition:border 250ms, box-shadow 250ms;background-color:transparent !important}.rfipcategory i{position:absolute;right:2px;top:0;font-size:16px;line-height:32px;z-index:-1}.rfipdropdown{width:352px;position:absolute;left:0;margin-top:-1px;z-index:100000001;border-radius:0 1px 4px 4px}.rfipdropdown__selector{overflow:hidden;padding:16px}.rfipdropdown.fipappear-enter-active .rfipdropdown__selector,.rfipdropdown.fipappear-exit-active .rfipdropdown__selector{transition:max-height 300ms ease-out, padding 300ms ease-out;padding:16px}.rfipicons__pager{display:flex;flex-flow:row nowrap;height:24px;line-height:24px;align-items:center;margin-bottom:8px}.rfipicons__num{width:100px;margin-right:auto}.rfipicons__cp{width:32px;margin-right:8px;height:24px;line-height:24px;text-align:right}.rfipicons__sp{margin-right:8px}.rfipicons__tp{margin-right:8px}.rfipicons__arrow{margin-left:auto;width:56px;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;height:24px;-ms-user-select:none;user-select:none}.rfipicons__right{margin-left:auto}.rfipicons__left,.rfipicons__right{cursor:pointer;width:24px;height:24px;position:relative;transition:background-color 250ms, border 250ms;outline:0 none;border-radius:2px;font-size:18px}.rfipicons__label{height:22px;width:22px;display:flex;align-items:center;justify-content:center}.rfipicons__label img{height:18px;width:18px}.rfipicons__selector{display:flex;flex:1 1 20%;flex-flow:row wrap;align-content:center;justify-content:flex-start}.rfipicons__ibox{display:flex;align-items:center;justify-content:center;height:100%;width:100%;transition:background-color 250ms, border 250ms;border-radius:2px;outline:0 none;font-size:20px}.rfipicons__ibox img,.rfipicons__ibox svg{max-height:24px;width:auto}.rfipicons__ibox>*{transform:scale(1);transition:transform 250ms;transform-origin:center}.rfipicons__ibox:hover>*{transform:scale(1.8)}.rfipicons__ibox--error{text-transform:lowercase;font-style:italic}.rfipicons__icon{width:20%;height:64px;padding:1px;display:flex;align-items:center;justify-content:center;cursor:pointer}.rfipicons__icon--error{display:block;padding:16px;text-align:center;font-size:24px;width:100%;line-height:1}.rfipsearch{width:100%;margin:0 0 8px}.rfipsearch input{width:100%;display:block;height:32px;line-height:32px}.rfipbtn--getwid{background-color:#fff;border:1px solid #e0e0e0}.rfipbtn--getwid:active,.rfipbtn--getwid:focus{box-shadow:0 1.5px 4px rgba(0,0,0,0.24),0 1.5px 6px rgba(0,0,0,0.12);box-shadow:none;border:1px solid #bdbdbd}.rfipbtn--getwid .rfipbtn__button{border:0 none transparent;border-left:1px solid #e0e0e0;background-color:#f5f5f5;color:#424242}.rfipbtn--getwid .rfipbtn__button:hover{background-color:#bdbdbd}.rfipbtn--getwid .rfipbtn__button:active{box-shadow:inset 0 0 10px 0 #e0e0e0}.rfipbtn--getwid .rfipbtn__button i{font-size:24px}.rfipbtn--getwid .rfipbtn__icon{border:1px solid #eee;color:#424242}.rfipbtn--getwid .rfipbtn__icon--empty{color:#e0e0e0}.rfipbtn--getwid .rfipbtn__del{background-color:#eee}.rfipbtn--getwid .rfipbtn__del:hover{background-color:#e0e0e0}.rfipbtn--getwid .rfipbtn__del:focus,.rfipbtn--getwid .rfipbtn__del:active{outline:1px solid #e0e0e0}.rfipdropdown--getwid{box-shadow:0 3px 12px rgba(0,0,0,0.23),0 3px 12px rgba(0,0,0,0.16);box-shadow:0 3px 30px rgba(25,30,35,0.1);color:#424242;background-color:#fff;border:1px solid #e0e0e0}.rfipdropdown--getwid input,.rfipdropdown--getwid select{color:#424242}.rfipdropdown--getwid .rfipdropdown__selector{padding-top:8px}.rfipdropdown--getwid .rfipcategory select{background-color:#fff;border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;background-image:none}.rfipdropdown--getwid .rfipcategory select:focus,.rfipdropdown--getwid .rfipcategory select:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipicons__cp{border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;text-align:center;min-height:auto;height:24px}.rfipdropdown--getwid .rfipicons__cp:focus,.rfipdropdown--getwid .rfipicons__cp:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipicons__left,.rfipdropdown--getwid .rfipicons__right{background-color:#eee;border:1px solid #eee;color:#424242}.rfipdropdown--getwid .rfipicons__left:hover,.rfipdropdown--getwid .rfipicons__right:hover{background-color:#bdbdbd;border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__left:focus,.rfipdropdown--getwid .rfipicons__left:active,.rfipdropdown--getwid .rfipicons__right:focus,.rfipdropdown--getwid .rfipicons__right:active{border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox{background-color:#f5f5f5;border:1px solid #f5f5f5;color:#424242;font-size:24px}.rfipdropdown--getwid .rfipicons__ibox:hover{background-color:#e2e2e2;border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox:hover>*{transform:none}.rfipdropdown--getwid .rfipicons__ibox:focus,.rfipdropdown--getwid .rfipicons__ibox:active{border:1px solid #bdbdbd}.rfipdropdown--getwid .rfipicons__ibox--error{color:#ef9a9a}.rfipdropdown--getwid .rfipicons__icon{height:49px;width:25%}.rfipdropdown--getwid .rfipicons__icon--selected .rfipicons__ibox{background-color:#eee}.rfipdropdown--getwid .rfipsearch{margin-bottom:2px}.rfipdropdown--getwid .rfipsearch input{border:0 none;border-bottom:1px solid #bdbdbd;transition:box-shadow 250ms, border 250ms;border-radius:0}.rfipdropdown--getwid .rfipsearch input:focus,.rfipdropdown--getwid .rfipsearch input:active{border-bottom-color:#9e9e9e;box-shadow:0 1px 0 0 #9e9e9e;outline:0 none}.rfipdropdown--getwid .rfipsearch input:focus{box-shadow:none}.rfip{margin:0;display:block}.rfipdropdown{width:230px}
|
8 |
.components-panel__body .components-base-control-with-lock{display:flex;flex-direction:row;align-items:flex-end}.components-panel__body .components-base-control-with-lock .components-base-control,.components-panel__body .components-base-control-with-lock .components-base-control__field{margin-bottom:0}.components-panel__body .components-base-control-with-lock .components-icon-button:not(:disabled):not(.is-default):hover{background-color:transparent;box-shadow:none}.components-panel__body .components-base-control-with-lock .components-icon-button:not(:disabled):not(.is-default):active{background-color:transparent;box-shadow:none}.components-panel__body .components-base-control-with-lock .components-icon-button:focus:enabled{background-color:transparent;box-shadow:none;outline:none}.components-panel__body .components-base-control-with-lock .components-base-control:not(.components-getwid-style-length-control__unit_select){width:100%}.components-panel__body .components-base-control-with-lock .components-button{margin-left:2px;box-shadow:none !important}.components-panel__body .components-getwid-style-length-control .components-text-control__input:disabled{border-color:rgba(222,222,222,0.75)}
|
9 |
.edit-post-sidebar .components-panel__body.components-getwid-tabs-control{padding:0px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-content:flex-start;align-items:flex-start;border-bottom:1px solid #e2e4e7;margin-bottom:16px}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control+.components-panel__body{margin-top:-17px}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab{order:0;flex:1 1 auto;align-self:auto;padding:10px 10px;text-align:center;cursor:pointer;transition:color linear .25s;color:inherit;border-radius:0;height:auto}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab:hover{color:#0085ba}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab span{font-size:12px;width:100%}.edit-post-sidebar .components-panel__body.components-getwid-tabs-control .components-getwid-tab span svg{display:block;margin:0px auto 5px auto}
|
10 |
.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:center;align-items:stretch}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button{color:inherit;padding:10px;height:auto;order:0;flex:1 1 auto;align-self:auto;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:center;align-items:stretch;border-radius:0px;border:1px solid #e2e4e7}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button.is-active,.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button:hover{background:#f3f4f5;box-shadow:none}.edit-post-sidebar .components-getwid-background-types-control .components-getwid-background-types-group button.components-button.is-active{border-bottom:2px solid #0085ba}
|
37 |
.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link{background:transparent !important;padding:0;color:initial}.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link:hover{color:initial;text-decoration:underline}
|
38 |
.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link{background:transparent !important;padding:0;color:initial}.wp-block-getwid-template-post-link.is-style-link .wp-block-button .wp-block-button__link:hover{color:initial;text-decoration:underline}
|
39 |
.wp-block-getwid-template-post-featured-background-image{min-height:200px}.wp-block-getwid-template-post-featured-background-image__wrapper{padding:25px 14px}.wp-block-getwid-template-post-featured-background-image__content{padding:14px}
|
40 |
+
.wp-block-getwid-template-post-meta.has-direction-column>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{display:block}.wp-block-getwid-template-post-meta>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{margin:0 14px 0 0;width:auto;display:inline-block}.wp-block-getwid-template-post-meta>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block .block-editor-block-list__block-edit{margin-top:14px;margin-bottom:14px}.wp-block-getwid-template-post-meta.has-direction-column>p{margin:0}
|
41 |
.wp-block-getwid-template-post-layout-helper .components-placeholder__fieldset{max-width:80%}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options{display:flex;flex-direction:row;flex-wrap:wrap;list-style:none;margin-top:50px;margin-left:-25px;margin-right:-25px;width:auto}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options>li{margin:0 0 25px 0;padding:0 25px;width:100%;max-width:100%}@media screen and (min-width: 768px){.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options>li{max-width:50%}}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button{justify-content:flex-start;height:auto;width:100%;margin-bottom:10px;padding:16px 20px}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button svg{width:48px;height:48px;margin-right:1em}.wp-block-getwid-template-post-layout-helper .block-editor-inner-blocks__template-picker-options .components-button:before{display:none}
|
42 |
.wp-block-getwid-mailchimp__message{color:red}
|
43 |
.wp-block-getwid-video-popup.components-placeholder{color:inherit;margin-bottom:30px}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__title{line-height:1.4}.wp-block-getwid-video-popup a.wp-block-getwid-video-popup__link{color:inherit;text-decoration:none}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__icon i{font-style:normal}.wp-block-getwid-video-popup__url-field{display:flex;align-items:center;margin-top:0.5em;margin-bottom:0.5em;flex-wrap:wrap;justify-content:center}.wp-block-getwid-video-popup__url-field .dashicon{color:#8f98a1}.wp-block-getwid-video-popup__url-field .editor-url-input{margin-left:10px;margin-right:10px}.wp-block-getwid-video-popup__url-field .editor-url-input input{width:100%}.wp-block-getwid-video-popup__url-field .components-base-control{min-width:300px;margin-left:10px}.wp-block-getwid-video-popup__url-field .components-base-control .components-base-control__field{align-items:flex-end;margin:0}.wp-block-getwid-video-popup .wp-block-getwid-video-popup__caption-wrapper{z-index:1}
|
assets/css/blocks.style.css
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
.wp-block-getwid-template-post-comments{margin-bottom:.5em}.wp-block-getwid-template-post-comments i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-comments.has-text-color a{color:inherit}
|
36 |
.wp-block-getwid-template-post-tags{margin-bottom:.5em}.wp-block-getwid-template-post-tags:last-child{margin-bottom:0}.wp-block-getwid-template-post-tags i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-tags.has-text-color a{color:inherit}
|
37 |
.wp-block-getwid-template-post-date{margin-bottom:.5em}.wp-block-getwid-template-post-date i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-date.has-text-color a{color:inherit}
|
38 |
-
.wp-block-getwid-template-post-featured-background-image{padding:25px;height:100%;width:100%;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.wp-block-getwid-template-post-featured-background-image__image{position:absolute;background-position:center center;background-attachment:scroll;background-size:cover;top:0;bottom:0;right:0;left:0}.wp-block-getwid-template-post-featured-background-image__foreground{position:absolute;top:0;bottom:0;right:0;left:0;opacity:.35}.wp-block-getwid-template-post-featured-background-image__content{position:relative;width:100%}.wp-block-getwid-template-post-featured-background-image__content .wp-block-getwid-section{height:100%}
|
39 |
.wp-block-getwid-template-post-meta{margin-bottom:.5em}.wp-block-getwid-template-post-meta:last-child{margin-bottom:0}.wp-block-getwid-template-post-meta>p{margin:0}.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(1),.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(2){display:none}.wp-block-getwid-template-post-meta.has-text-color a{color:inherit}.wp-block-getwid-template-post-meta.has-direction-row>*{display:inline;margin-bottom:0;margin-right:20px}.wp-block-getwid-template-post-meta.has-direction-row>:last-child{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p+div{margin-left:5px}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-left{text-align:left}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-center{text-align:center}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-right{text-align:right}.wp-block-getwid-template-post-meta.has-direction-column:after{display:table;content:'';clear:both}.wp-block-getwid-template-post-meta.has-direction-column .getwid-post-meta-divider{display:none}.wp-block-getwid-template-post-meta.has-direction-column>p{float:left;margin-right:5px}
|
40 |
.wp-block-getwid-template-post-custom-field{margin-bottom:.5em}
|
41 |
.wp-block-getwid-template-post-author{margin-bottom:.5em}.wp-block-getwid-template-post-author i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-author.has-text-color a{color:inherit}
|
35 |
.wp-block-getwid-template-post-comments{margin-bottom:.5em}.wp-block-getwid-template-post-comments i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-comments.has-text-color a{color:inherit}
|
36 |
.wp-block-getwid-template-post-tags{margin-bottom:.5em}.wp-block-getwid-template-post-tags:last-child{margin-bottom:0}.wp-block-getwid-template-post-tags i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-tags.has-text-color a{color:inherit}
|
37 |
.wp-block-getwid-template-post-date{margin-bottom:.5em}.wp-block-getwid-template-post-date i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-date.has-text-color a{color:inherit}
|
38 |
+
.wp-block-getwid-template-post-featured-background-image{padding:25px;height:100%;width:100%;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.wp-block-getwid-template-post-featured-background-image .wp-block-getwid-template-post-featured-background-image__image{position:absolute;background-position:center center;background-attachment:scroll;background-size:cover;top:0;bottom:0;right:0;left:0}.wp-block-getwid-template-post-featured-background-image__foreground{position:absolute;top:0;bottom:0;right:0;left:0;opacity:.35}.wp-block-getwid-template-post-featured-background-image__content{position:relative;width:100%}.wp-block-getwid-template-post-featured-background-image__content .wp-block-getwid-section{height:100%}
|
39 |
.wp-block-getwid-template-post-meta{margin-bottom:.5em}.wp-block-getwid-template-post-meta:last-child{margin-bottom:0}.wp-block-getwid-template-post-meta>p{margin:0}.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(1),.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(2){display:none}.wp-block-getwid-template-post-meta.has-text-color a{color:inherit}.wp-block-getwid-template-post-meta.has-direction-row>*{display:inline;margin-bottom:0;margin-right:20px}.wp-block-getwid-template-post-meta.has-direction-row>:last-child{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p+div{margin-left:5px}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-left{text-align:left}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-center{text-align:center}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-right{text-align:right}.wp-block-getwid-template-post-meta.has-direction-column:after{display:table;content:'';clear:both}.wp-block-getwid-template-post-meta.has-direction-column .getwid-post-meta-divider{display:none}.wp-block-getwid-template-post-meta.has-direction-column>p{float:left;margin-right:5px}
|
40 |
.wp-block-getwid-template-post-custom-field{margin-bottom:.5em}
|
41 |
.wp-block-getwid-template-post-author{margin-bottom:.5em}.wp-block-getwid-template-post-author i{font-size:0.7em;margin-right:.5em;min-width:1.25em}.wp-block-getwid-template-post-author.has-text-color a{color:inherit}
|
assets/js/editor.blocks.js
CHANGED
@@ -3,7 +3,7 @@ window.wp=window.wp||{},window.wp["./assets/js/editor.blocks"]=function(e){funct
|
|
3 |
Licensed under the MIT License (MIT), see
|
4 |
http://jedwatson.github.io/classnames
|
5 |
*/
|
6 |
-
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var l=typeof a;if("string"===l||"number"===l)e.push(a);else if(Array.isArray(a)&&a.length){var o=n.apply(null,a);o&&e.push(o)}else if("object"===l)for(var r in a)i.call(a,r)&&a[r]&&e.push(r)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(a=[],void 0!==(l=function(){return n}.apply(t,a))&&(e.exports=l))}()},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},function(e,t,n){function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}var l=n(8);e.exports=a},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=window.lodash}()},function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},function(e,t,n){"use strict";function a(e,t){return{edit:Getwid.disabled_blocks.includes(e)?function(){var t=Object(d.sprintf)(Object(d.__)('%s block is disabled in plugin settings. <a href="%s">Manage Blocks</a>',"getwid"),e,Getwid.options_writing_url);return wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:t}})}:t}}function l(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e;var a=!1;document.getElementsByTagName("head")[0].appendChild(n),n.onload=n.onreadystatechange=function(){a||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(a=!0,n.onload=n.onreadystatechange=null,t(n))}}function i(e){return e.offset().top-p(window).scrollTop()-p(window).height()<0}function o(e,t,n){var a=this;p(e).on("scroll",{element:t},function(e){i(e.data.element)&&(n(),p(a).off(e))})}function r(){var e=p(p(".edit-post-layout__content").length?".edit-post-layout__content":".block-editor-editor-skeleton__content"),t=p(".edit-post-editor-regions__content");return e.length?e[0].className:t[0].className}function c(e,t,n){var a=document.createElement("iframe");a.style.pointerEvents="none",a.style.position="absolute",a.style.display="block",a.style.height="100%",a.style.width="100%",a.style.top="0",a.style.bottom="0",a.style.left="0",a.style.backgroundColor="transparent",a.className="".concat(t,"__resize-observer"),p(a).load(function(){p(a.contentWindow).resize(function(){n()})}),e.append(a)}function s(e){var t=function(e){return null!==e&&""!==e&&(e=e.toString(),e.replace(/<[^>]*>/g,""))};return e.map(function(e,n){return t(e.content)})}t.b=a,t.a=l,t.f=i,t.g=o,t.e=r,t.c=c,t.d=s;var d=(n(0),n(1)),u=(n.n(d),window),p=u.jQuery},function(e,t,n){"use strict";n.d(t,"f",function(){return x}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return I}),n.d(t,"h",function(){return P}),n.d(t,"b",function(){return R}),n.d(t,"e",function(){return D}),n.d(t,"d",function(){return V}),n.d(t,"g",function(){return F});var a=(n(0),n(17)),l=n(15),i=n(44),o=n(18),r=n(113),c=(n.n(r),n(1)),s=(n.n(c),window),d=s.jQuery,u=wp.blockEditor||wp.editor,p=u.MediaPlaceholder,m=u.MediaUpload,g=wp.element.Fragment,b=wp.components,w=b.SelectControl,h=b.TabPanel,f=b.BaseControl,_=b.TextControl,v=b.ToggleControl,y=b.Button,k=b.IconButton,C=b.RangeControl,E=b.TextareaControl,O=b.RadioControl,j=b.CheckboxControl,S=["image"],x=function(e){var t=e.props.attributes,n=t.paddingTop,a=t.paddingRight,l=t.paddingBottom,o=t.paddingLeft,r=e.props.attributes,s=r.paddingTopValue,d=r.paddingRightValue,u=r.paddingBottomValue,p=r.paddingLeftValue,m=function(){(0,e.props.setAttributes)({paddingTopValue:void 0,paddingBottomValue:void 0,paddingLeftValue:void 0,paddingRightValue:void 0,paddingTop:"",paddingBottom:"",paddingLeft:"",paddingRight:"",paddingTopTablet:"",paddingBottomTablet:"",paddingLeftTablet:"",paddingRightTablet:"",paddingTopMobile:"",paddingBottomMobile:"",paddingLeftMobile:"",paddingRightMobile:""})};return wp.element.createElement(i.a,{title:Object(c.__)("Padding","getwid"),initialOpen:!1,hints:[{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,4 1,4 1,15 15,15 15,4 16,4 16,16 0,16 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,5.35 8.71,9 12.35,12.65 11.65,13.35 8,9.71 4.35,13.35 3.65,12.65 7.29,9 3.65,5.35 4.35,4.65 8,8.29 11.65,4.65 "})),value:n?"custom"!=n?n:s:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{x:"13",width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12,0 12,1 1,1 1,15 12,15 12,16 0,16 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"10.65,12.35 7,8.71 3.35,12.35 2.65,11.65 6.29,8 2.65,4.35 3.35,3.65 7,7.29 10.65,3.65 11.35,4.35 7.71,8 11.35,11.65 "})),value:a?"custom"!=a?a:d:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{y:"13",width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,12 1,12 1,1 15,1 15,12 16,12 16,0 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,10.65 8.71,7 12.35,3.35 11.65,2.65 8,6.29 4.35,2.65 3.65,3.35 7.29,7 3.65,10.65 4.35,11.35 8,7.71 11.65,11.35 "})),value:l?"custom"!=l?l:u:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"4,0 4,1 15,1 15,15 4,15 4,16 16,16 16,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"5.35,12.35 9,8.71 12.65,12.35 13.35,11.65 9.71,8 13.35,4.35 12.65,3.65 9,7.29 5.35,3.65 4.65,4.35 8.29,8 4.65,11.65 "})),value:o?"custom"!=o?o:p:""}]},wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return N(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:m,disabled:!T(e)},Object(c.__)("Reset All","getwid"))))},T=function(e){var t=e.props.attributes,n=t.paddingTop,a=t.paddingRight,l=t.paddingBottom,i=t.paddingLeft,o=e.props.attributes,r=o.paddingTopValue,c=o.paddingRightValue,s=o.paddingBottomValue,d=o.paddingLeftValue,u=e.props.attributes,p=u.paddingTopTablet,m=u.paddingRightTablet,g=u.paddingBottomTablet,b=u.paddingLeftTablet,w=e.props.attributes,h=w.paddingTopMobile,f=w.paddingRightMobile,_=w.paddingBottomMobile,v=w.paddingLeftMobile;return void 0!==r||void 0!==s||void 0!==c||void 0!==d||""!==n||""!==a||""!==l||""!==i||""!==p||""!==m||""!==g||""!==b||""!==h||""!==f||""!==_||""!==v},N=function(e,t){var n=e.props.setAttributes,l=e.props.attributes,i=l.paddingTop,o=l.paddingRight,r=l.paddingBottom,s=l.paddingLeft,d=e.props.attributes,u=d.paddingTopValue,p=d.paddingRightValue,m=d.paddingBottomValue,b=d.paddingLeftValue,h=e.props.attributes,f=h.paddingTopTablet,_=h.paddingRightTablet,v=h.paddingBottomTablet,y=h.paddingLeftTablet,C=e.props.attributes,E=C.paddingTopMobile,O=C.paddingRightMobile,j=C.paddingBottomMobile,S=C.paddingLeftMobile,x=e.props,T=x.changeState,N=x.isLockedPaddingsOnDesktop,A=x.isLockedPaddingsOnTablet,M=x.isLockedPaddingsOnMobile;switch(t.name){case"desktop":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==i?i:"",onChange:function(e){N?function(){n({paddingBottom:e,paddingRight:e,paddingLeft:e,paddingTop:e})}():n({paddingTop:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:N?"lock":"unlock",onClick:function(){N?T("isLockedPaddingsOnDesktop",!1):function(){T("isLockedPaddingsOnDesktop",!0);"custom"==i?function(){n({paddingBottom:i,paddingRight:i,paddingLeft:i,paddingBottomValue:u,paddingRightValue:u,paddingLeftValue:u})}():function(){n({paddingBottom:i,paddingLeft:i,paddingRight:i})}()}()},label:N?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),"custom"===i&&wp.element.createElement(a.a,{value:u,onChange:function(e){N?function(){n({paddingBottomValue:e,paddingRightValue:e,paddingLeftValue:e,paddingTopValue:e})}():n({paddingTopValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!N||null,value:void 0!==r?r:"",onChange:function(e){return n({paddingBottom:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===r&&wp.element.createElement(a.a,{value:m,isLocked:N,onChange:function(e){return n({paddingBottomValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!N||null,value:void 0!==s?s:"",onChange:function(e){return n({paddingLeft:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===s&&wp.element.createElement(a.a,{value:b,isLocked:N,onChange:function(e){return n({paddingLeftValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!N||null,value:void 0!==o?o:"",onChange:function(e){return n({paddingRight:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===o&&wp.element.createElement(a.a,{value:p,isLocked:N,onChange:function(e){return n({paddingRightValue:void 0!==e?e:""})}}));case"tablet":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==f?f:"",onChange:function(e){A?function(){n({paddingBottomTablet:e,paddingRightTablet:e,paddingLeftTablet:e,paddingTopTablet:e})}():n({paddingTopTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:A?"lock":"unlock",onClick:function(){A?T("isLockedPaddingsOnTablet",!1):function(){T("isLockedPaddingsOnTablet",!0),n({paddingBottomTablet:f,paddingRightTablet:f,paddingLeftTablet:f})}()},label:A?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!A||null,value:void 0!==v?v:"",onChange:function(e){return n({paddingBottomTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!A||null,value:void 0!==y?y:"",onChange:function(e){return n({paddingLeftTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!A||null,value:void 0!==_?_:"",onChange:function(e){return n({paddingRightTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}));case"mobile":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==E?E:"",onChange:function(e){M?function(){n({paddingBottomMobile:e,paddingLeftMobile:e,paddingRightMobile:e,paddingTopMobile:e})}():n({paddingTopMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:M?"lock":"unlock",onClick:function(){M?T("isLockedPaddingsOnMobile",!1):function(){T("isLockedPaddingsOnMobile",!0),n({paddingBottomMobile:E,paddingLeftMobile:E,paddingRightMobile:E})}()},label:M?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!M||null,value:void 0!==j?j:"",onChange:function(e){return n({paddingBottomMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!M||null,value:void 0!==S?S:"",onChange:function(e){return n({paddingLeftMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!M||null,value:void 0!==O?O:"",onChange:function(e){return n({paddingRightMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}))}},A=function(e){var t=e.props.attributes,n=t.marginTop,a=t.marginRight,l=t.marginBottom,o=t.marginLeft,r=e.props.attributes,s=r.marginTopValue,d=r.marginRightValue,u=r.marginBottomValue,p=r.marginLeftValue,m=function(){(0,e.props.setAttributes)({marginTopValue:void 0,marginBottomValue:void 0,marginLeftValue:void 0,marginRightValue:void 0,marginTop:"",marginBottom:"",marginLeft:"",marginRight:"",marginTopTablet:"",marginBottomTablet:"",marginLeftTablet:"",marginRightTablet:"",marginTopMobile:"",marginBottomMobile:"",marginLeftMobile:"",marginRightMobile:""})};return wp.element.createElement(i.a,{title:Object(c.__)("Margin","getwid"),initialOpen:!1,hints:[{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,4 1,4 1,15 15,15 15,4 16,4 16,16 0,16 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,5.35 8.71,9 12.35,12.65 11.65,13.35 8,9.71 4.35,13.35 3.65,12.65 7.29,9 3.65,5.35 4.35,4.65 8,8.29 11.65,4.65 "})),value:n?"custom"!=n?n:s:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{x:"13",width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12,0 12,1 1,1 1,15 12,15 12,16 0,16 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"10.65,12.35 7,8.71 3.35,12.35 2.65,11.65 6.29,8 2.65,4.35 3.35,3.65 7,7.29 10.65,3.65 11.35,4.35 7.71,8 11.35,11.65 "})),value:a?"custom"!=a?a:d:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{y:"13",width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,12 1,12 1,1 15,1 15,12 16,12 16,0 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,10.65 8.71,7 12.35,3.35 11.65,2.65 8,6.29 4.35,2.65 3.65,3.35 7.29,7 3.65,10.65 4.35,11.35 8,7.71 11.65,11.35 "})),value:l?"custom"!=l?l:u:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"4,0 4,1 15,1 15,15 4,15 4,16 16,16 16,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"5.35,12.35 9,8.71 12.65,12.35 13.35,11.65 9.71,8 13.35,4.35 12.65,3.65 9,7.29 5.35,3.65 4.65,4.35 8.29,8 4.65,11.65 "})),value:o?"custom"!=o?o:p:""}]},wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return B(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:m,disabled:!M(e)},Object(c.__)("Reset All","getwid"))))},M=function(e){var t=e.props.attributes,n=t.marginTop,a=t.marginRight,l=t.marginBottom,i=t.marginLeft,o=e.props.attributes,r=o.marginTopValue,c=o.marginRightValue,s=o.marginBottomValue,d=o.marginLeftValue,u=e.props.attributes,p=u.marginTopTablet,m=u.marginRightTablet,g=u.marginBottomTablet,b=u.marginLeftTablet,w=e.props.attributes,h=w.marginTopMobile,f=w.marginRightMobile,_=w.marginBottomMobile,v=w.marginLeftMobile;return void 0!==r||void 0!==s||void 0!==c||void 0!==d||""!==n||""!==a||""!==l||""!==i||""!==p||""!==m||""!==g||""!==b||""!==h||""!==f||""!==_||""!==v},B=function(e,t){var n=e.props.setAttributes,l=e.props.attributes,i=l.marginTop,o=l.marginRight,r=l.marginBottom,s=l.marginLeft,d=e.props.attributes,u=d.marginTopValue,p=d.marginRightValue,m=d.marginBottomValue,b=d.marginLeftValue,h=e.props.attributes,f=h.marginTopTablet,_=h.marginRightTablet,v=h.marginBottomTablet,y=h.marginLeftTablet,C=e.props.attributes,E=C.marginTopMobile,O=C.marginRightMobile,j=C.marginBottomMobile,S=C.marginLeftMobile,x=e.props,T=x.changeState,N=x.isLockedMarginsOnDesktop,A=x.isLockedMarginsOnTablet,M=x.isLockedMarginsOnMobile;switch(t.name){case"desktop":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==i?i:"",onChange:function(e){N?function(){n({marginBottom:e,marginLeft:e,marginRight:e,marginTop:e,marginTopValue:u})}():n({marginTop:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:N?"lock":"unlock",onClick:function(){N?T("isLockedMarginsOnDesktop",!1):function(){T("isLockedMarginsOnDesktop",!0);"custom"==i?function(){n({marginBottom:i,marginRight:i,marginLeft:i,marginBottomValue:u,marginRightValue:u,marginLeftValue:u})}():function(){n({marginBottom:i,marginLeft:i,marginRight:i})}()}()},label:N?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),"custom"===i&&wp.element.createElement(a.a,{allowNegative:!0,value:u,onChange:function(e){N?function(){n({marginBottomValue:e,marginRightValue:e,marginLeftValue:e,marginTopValue:e})}():n({marginTopValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),disabled:!!N||null,value:void 0!==r?r:"",onChange:function(e){return n({marginBottom:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===r&&wp.element.createElement(a.a,{allowNegative:!0,value:m,isLocked:N,onChange:function(e){return n({marginBottomValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),disabled:!!N||null,value:void 0!==s?s:"",onChange:function(e){return n({marginLeft:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===s&&wp.element.createElement(a.a,{allowNegative:!0,value:b,isLocked:N,onChange:function(e){n({marginLeftValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),disabled:!!N||null,value:void 0!==o?o:"",onChange:function(e){return n({marginRight:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===o&&wp.element.createElement(a.a,{allowNegative:!0,value:p,isLocked:N,onChange:function(e){return n({marginRightValue:void 0!==e?e:""})}}));case"tablet":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==f?f:"",onChange:function(e){A?function(){n({marginBottomTablet:e,marginRightTablet:e,marginLeftTablet:e,marginTopTablet:e})}():n({marginTopTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:A?"lock":"unlock",onClick:function(){A?T("isLockedMarginsOnTablet",!1):function(){T("isLockedMarginsOnTablet",!0),n({marginBottomTablet:f,marginRightTablet:f,marginLeftTablet:f})}()},label:A?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),disabled:!!A||null,value:void 0!==v?v:"",onChange:function(e){return n({marginBottomTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),disabled:!!A||null,value:void 0!==y?y:"",onChange:function(e){return n({marginLeftTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),disabled:!!A||null,value:void 0!==_?_:"",onChange:function(e){return n({marginRightTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}));case"mobile":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==E?E:"",onChange:function(e){M?function(){n({marginBottomMobile:e,marginRightMobile:e,marginLeftMobile:e,marginTopMobile:e})}():n({marginTopMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:M?"lock":"unlock",onClick:function(){M?T("isLockedMarginsOnMobile",!1):function(){T("isLockedMarginsOnMobile",!0),n({marginBottomMobile:E,marginRightMobile:E,marginLeftMobile:E})}()},label:M?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),value:void 0!==j?j:"",disabled:!!M||null,onChange:function(e){return n({marginBottomMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),value:void 0!==S?S:"",disabled:!!M||null,onChange:function(e){return n({marginLeftMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),value:void 0!==O?O:"",disabled:!!M||null,onChange:function(e){return n({marginRightMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}))}},I=function(e){var t=e.props.attributes,n=t.fontSize,a=t.fontSizeTablet,l=t.fontSizeMobile,i=e.props.setAttributes;return wp.element.createElement(g,null,wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return L(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:function(){return i({fontSizeTablet:"fs-tablet-100",fontSizeMobile:"fs-mobile-100",fontSize:void 0})},disabled:!("fs-tablet-100"!=a||"fs-mobile-100"!=l||void 0!=n)},Object(c.__)("Reset All","getwid"))))},L=function(e,t){var n=e.props.attributes,l=n.fontSize,i=n.fontSizeTablet,o=n.fontSizeMobile,r=e.props.setAttributes;switch(t.name){case"desktop":return wp.element.createElement(a.a,{label:Object(c.__)("Font Size","getwid"),value:l,onChange:function(e){return r({fontSize:e})}});case"tablet":return wp.element.createElement(w,{label:Object(c.__)("Font Size","getwid"),value:i,onChange:function(e){return r({fontSizeTablet:e})},options:[{value:"fs-tablet-50",label:Object(c.__)("50%","getwid")},{value:"fs-tablet-60",label:Object(c.__)("60%","getwid")},{value:"fs-tablet-70",label:Object(c.__)("70%","getwid")},{value:"fs-tablet-80",label:Object(c.__)("80%","getwid")},{value:"fs-tablet-90",label:Object(c.__)("90%","getwid")},{value:"fs-tablet-100",label:Object(c.__)("100%","getwid")},{value:"fs-tablet-110",label:Object(c.__)("110%","getwid")},{value:"fs-tablet-120",label:Object(c.__)("120%","getwid")}]});case"mobile":return wp.element.createElement(w,{label:Object(c.__)("Font Size","getwid"),value:o,onChange:function(e){return r({fontSizeMobile:e})},options:[{value:"fs-mobile-50",label:Object(c.__)("50%","getwid")},{value:"fs-mobile-60",label:Object(c.__)("60%","getwid")},{value:"fs-mobile-70",label:Object(c.__)("70%","getwid")},{value:"fs-mobile-80",label:Object(c.__)("80%","getwid")},{value:"fs-mobile-90",label:Object(c.__)("90%","getwid")},{value:"fs-mobile-100",label:Object(c.__)("100%","getwid")},{value:"fs-mobile-110",label:Object(c.__)("110%","getwid")},{value:"fs-mobile-120",label:Object(c.__)("120%","getwid")}]})}},P=function(e){var t=e.props.attributes.slideHeight,n=e.props.setAttributes;return wp.element.createElement(g,null,wp.element.createElement(f,null,wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),disabled:!0,className:"components-button is-link is-small"}]},function(t){return z(e,t)}),wp.element.createElement(y,{isLink:!0,onClick:function(){return n({slideHeight:""})},disabled:!(""!=t&&void 0!==t)},Object(c.__)("Reset All","getwid"))))},z=function(e,t){var n=e.props.attributes,l=n.slideHeight,i=n.resetHeightOnTablet,o=n.resetHeightOnMobile,r=e.props.setAttributes,s=function(e,t){var n=e.find("button[tabindex='-1']");d.each(n,function(e,n){d(n).attr("disabled",t)})},u=setInterval(function(){var e=d(".getwid-editor-tabs");e.length&&(l?s(e,!1):s(e,!0),clearInterval(u))},1);switch(t.name){case"desktop":return wp.element.createElement(a.a,{label:Object(c.__)("Slider Height","getwid"),value:l,units:[{label:"px",value:"px"},{label:"vh",value:"vh"}],onChange:function(e){var t=d(".getwid-editor-tabs");e?(s(t,!1),r({slideHeight:e})):(s(t,!0),r({slideHeight:e,resetHeightOnTablet:!1,resetHeightOnMobile:!1}))}});case"tablet":return wp.element.createElement(j,{label:"Reset height on tablet",checked:i,onChange:function(e){r({resetHeightOnTablet:e})}});case"mobile":return wp.element.createElement(j,{label:"Reset height on mobile",checked:o,onChange:function(e){r({resetHeightOnMobile:e})}})}},R=function(e){var t=e.props,n=t.setAttributes,l=t.isLockedMargins,i=t.changeState,o=e.props.attributes,r=o.marginTop,s=o.marginBottom,d=o.marginLeft,u=o.marginRight,p=function(){return n({marginBottom:void 0,marginRight:void 0,marginLeft:void 0,marginTop:void 0})};return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(a.a,{label:Object(c.__)("Margin Top","getwid"),value:r,onChange:function(e){l?function(){n({marginBottom:e,marginRight:e,marginLeft:e,marginTop:e})}():n({marginTop:e})},allowNegative:!0}),wp.element.createElement(k,{icon:l?"lock":"unlock",onClick:function(){l?i("isLockedMargins",!1):function(){i("isLockedMargins",!0),n({marginBottom:r,marginRight:r,marginLeft:r})}()},label:l?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(a.a,{label:Object(c.__)("Margin Bottom","getwid"),isLocked:!!l||null,value:s,onChange:function(e){n({marginBottom:e})},allowNegative:!0}),wp.element.createElement(a.a,{label:Object(c.__)("Margin Left","getwid"),isLocked:!!l||null,value:d,onChange:function(e){n({marginLeft:e})},allowNegative:!0}),wp.element.createElement(a.a,{label:Object(c.__)("Margin Right","getwid"),isLocked:!!l||null,value:u,onChange:function(e){n({marginRight:e})},allowNegative:!0}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,isDestructive:!0,onClick:p,isLocked:!function(){return void 0!==s||void 0!==u||void 0!==d||void 0!==r}()},Object(c.__)("Reset","getwid"))))},D=function(e){var t=e.props,n=t.setAttributes,l=t.isLockedPaddings,i=t.changeState,o=e.props.attributes,r=o.paddingTop,s=o.paddingBottom,d=o.paddingLeft,u=o.paddingRight,p=function(){return n({paddingTop:void 0,paddingBottom:void 0,paddingLeft:void 0,paddingRight:void 0})};return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(a.a,{label:Object(c.__)("Padding Top","getwid"),value:r,onChange:function(e){l?function(){n({paddingBottom:e,paddingRight:e,paddingLeft:e,paddingTop:e})}():n({paddingTop:e})},allowNegative:!0}),wp.element.createElement(k,{icon:l?"lock":"unlock",onClick:function(){l?i("isLockedPaddings",!1):function(){i("isLockedPaddings",!0),n({paddingBottom:r,paddingRight:r,paddingLeft:r})}()},label:l?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(a.a,{label:Object(c.__)("Padding Bottom","getwid"),isLocked:!!l||null,value:s,onChange:function(e){n({paddingBottom:e})}}),wp.element.createElement(a.a,{label:Object(c.__)("Padding Left","getwid"),isLocked:!!l||null,value:d,onChange:function(e){n({paddingLeft:e})}}),wp.element.createElement(a.a,{label:Object(c.__)("Padding Right","getwid"),isLocked:!!l||null,value:u,onChange:function(e){n({paddingRight:e})}}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,isDestructive:!0,onClick:p,disabled:!function(){return void 0!==r||void 0!==s||void 0!==u||void 0!==d}()},Object(c.__)("Reset","getwid"))))},V=function(e){var t=e.id,n=e.url,a=e.onSelectMedia,l=e.onRemoveMedia,i=void 0===l?null:l,o=e.removeButton,r=void 0===o||o,s=(e.video,e.label),d=void 0===s?Object(c.__)("Background Image","getwid"):s,u=r?"ButtonGroup":"Fragment";return wp.element.createElement(g,null,wp.element.createElement(f,{label:d},wp.element.createElement(g,null,!n&&wp.element.createElement(p,{icon:"format-image",labels:{title:Object(c.__)("Image","getwid"),instructions:Object(c.__)("Upload an image file, pick one from your media library, or add one with a URL.","getwid")},onSelect:a,accept:"image/*",allowedTypes:S}),n&&wp.element.createElement(m,{onSelect:a,allowedTypes:S,value:t,render:function(e){var a=e.open;return wp.element.createElement(f,null,!!n&&wp.element.createElement("div",{onClick:a,className:"getwid-background-image-wrapper"},wp.element.createElement("img",{src:n})),wp.element.createElement(u,null,wp.element.createElement(y,{isPrimary:!0,onClick:a},!t&&Object(c.__)("Select Image","getwid"),!!t&&Object(c.__)("Replace Image","getwid")),!!t&&r&&wp.element.createElement(y,{isDefault:!0,onClick:i},Object(c.__)("Remove Image","getwid"))))}}))))},F=function(e){var t=e.props.attributes.imagePoints,n=e.props,a=n.getState,i=n.updateArrValues,r=n.changeState,s=t?JSON.parse(t):[],d=a("currentPoint");return wp.element.createElement(g,null,wp.element.createElement(_,{label:Object(c.__)("Title","getwid"),value:s[d].title,onChange:function(e){i({title:e},d),r("updatePoints",!0)}}),wp.element.createElement(_,{placeholder:Object(c.__)("Enter URL","getwid"),value:s[d].link,onChange:function(e){i({link:e},d)}}),wp.element.createElement(v,{label:Object(c.__)("Open in New Tab","getwid"),checked:s[d].newTab,onChange:function(e){i({newTab:e},d)}}),wp.element.createElement(E,{label:Object(c.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:unescape(s[d].content),onChange:function(e){i({content:e},d),r("updatePoints",!0)}}),wp.element.createElement(v,{label:Object(c.__)("Opened by default","getwid"),checked:s[d].popUpOpen,onChange:function(e){i({popUpOpen:e},d)}}),wp.element.createElement(C,{label:Object(c.__)("X Coord (%)","getwid"),value:parseFloat(s[d].position.x),onChange:function(e){void 0===e&&(e=50),i({position:{x:parseFloat(e)+"%",y:s[d].position.y}},d),r("updatePoints",!0)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(C,{label:Object(c.__)("Y Coord (%)","getwid"),value:parseFloat(s[d].position.y),onChange:function(e){void 0===e&&(e=50),i({position:{x:s[d].position.x,y:parseFloat(e)+"%"}},d),r("updatePoints",!0)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(l.a,{colorSettings:[{title:Object(c.__)("Point Background","getwid"),colors:{customColor:s[d].backgroundColor},changeColor:function(e){i({backgroundColor:e},d),r({updatePoints:!0,highlightDot:!0})}},{title:Object(c.__)("Icon Color","getwid"),colors:{customColor:s[d].color},changeColor:function(e){i({color:e},d),r({updatePoints:!0,highlightDot:!0})}}]}),wp.element.createElement(O,{label:Object(c.__)("Tooltip Position","getwid"),selected:s[d].placement,options:[{value:"top",label:Object(c.__)("Top","getwid")},{value:"right",label:Object(c.__)("Right","getwid")},{value:"bottom",label:Object(c.__)("Bottom","getwid")},{value:"left",label:Object(c.__)("Left","getwid")}],onChange:function(e){i({placement:e},d),r({updatePoints:!0,highlightDot:!0})}}),wp.element.createElement(_,{label:Object(c.__)("Popup Maximum Width, px.","getwid"),value:s[d].popUpWidth,type:"number",onChange:function(e){i({popUpWidth:e},d)}}),wp.element.createElement(f,{label:Object(c.__)("Point Icon","getwid")},wp.element.createElement(o.a,{value:s[d].icon,onChange:function(e){i({icon:e},d),r({updatePoints:!0,highlightDot:!0})}})))}},function(e,t,n){"use strict";var a=(n(0),n(1)),l=(n.n(a),n(7)),i=n.n(l),o=n(11),r=(n.n(o),n(99)),c=(n.n(r),wp.element.Fragment),s=wp.components,d=s.BaseControl,u=s.ColorPalette,p=s.ColorIndicator,m=wp.data.withSelect,g=wp.compose.compose,b=function(e){var t=e.props,n=e.getEditorSettings,a=t.colorSettings,l=Object(o.get)(n(),["colors"],[]);return wp.element.createElement(c,null,wp.element.createElement(d,{className:"components-getwid-color-palette-control"},a.map(function(e,t){var n=Object(o.has)(e,["colors","defaultColor"])?e.colors.defaultColor.color:void 0;return wp.element.createElement(c,null,wp.element.createElement(d.VisualLabel,null,e.title,(e.colors.customColor||n)&&wp.element.createElement(p,{colorValue:e.colors.customColor?e.colors.customColor:n})),wp.element.createElement(u,{colors:l,value:n||e.colors.customColor,onChange:e.changeColor}))})))};Object(o.has)(d,["VisualLabel"])||(d.VisualLabel=function(e){var t=e.className,n=e.children;return t=i()("components-base-control__label",t),wp.element.createElement("span",{className:t},n)}),t.a=g([m(function(e,t){return{getEditorSettings:e("core/editor").getEditorSettings,props:t}})])(b)},function(e,t,n){function a(e){return l(e)||i(e)||o()}var l=n(115),i=n(27),o=n(116);e.exports=a},function(e,t,n){"use strict";function a(e){function t(e,t){var a=void 0;return"unit"===t?f=e:h=e,f=void 0!==f?f:"",h=void 0!==h?h:"","auto"===f?a=n?e:"":void 0!==h&&""!==h&&(a=h+f),m(a)}var n=e.allowAuto,a=e.allowNegative,l=e.units,r=void 0===l?[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}]:l,s=e.value,d=e.label,m=e.onChange,g=e.isLocked,b=void 0!==g&&g,w="components-base-control components-getwid-style-length-control",h="",f="";if(n&&r.push({value:"auto",label:Object(c.__)("Auto","getwid")}),n&&"auto"===s&&(h="",f="auto"),void 0!==s){var _,v=Object(o.map)(r,"value").join("|"),y=a?"[-]?":"";(_=new RegExp("^(".concat(y,"[0-9]*\\.?[0-9]*)(").concat(v,"){0,1}$")).exec(s))?(h=_&&_[1]?_[1]:"",f=_&&_[2]?_[2]:""):(h="",f="")}return f||(f=r[0].value),wp.element.createElement("div",{className:w},wp.element.createElement(u,i()({className:["".concat(w,"__value_input")],name:"length",type:"number",label:d,value:h,onChange:function(e){return t(e,"length")},disabled:"auto"===f,min:a?void 0:0},"disabled",!!b||null)),wp.element.createElement(p,{className:["".concat(w,"__unit_select")],name:"unit",options:r,value:f,onChange:function(e){return t(e,"unit")},disabled:!!b||null}))}t.a=a;var l=n(8),i=n.n(l),o=(n(0),n(11)),r=(n.n(o),n(98)),c=(n.n(r),n(1)),s=(n.n(c),window),d=(s.jQuery,wp.components),u=d.TextControl,p=d.SelectControl},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(9),l=n.n(a),i=n(2),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=n(101),g=n.n(m),b=n(112),w=(n.n(b),Getwid.settings.iconList),h=function(e){function t(){return o()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),t}(g.a);h.defaultProps=l()({},h.defaultProps,{icons:w||[],theme:"getwid",iconsPerPage:12})},function(e,t,n){"use strict";function a(e){var t=e.state,n=e.stateName,a=e.onChangeTab,l=e.tabs,i=void 0===l?["general","style","layout","advanced"]:l;return wp.element.createElement(m,null,wp.element.createElement(p,{className:"components-getwid-tabs-control"},i.includes("general")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"general"===t}),onClick:function(){a(n,"general")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-settings"}),Object(r.__)("General","getwid")))),i.includes("style")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"style"===t}),onClick:function(){a(n,"style")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-appearance"}),Object(r.__)("Style","getwid")))),i.includes("layout")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"layout"===t}),onClick:function(){a(n,"layout")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"layout"}),Object(r.__)("Layout","getwid")))),i.includes("advanced")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"advanced"===t}),onClick:function(){a(n,"advanced")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-generic"}),Object(r.__)("Advanced","getwid"))))))}t.a=a;var l=(n(0),n(117)),i=(n.n(l),n(7)),o=n.n(i),r=n(1),c=(n.n(r),window),s=(c.jQuery,wp.components),d=s.Dashicon,u=s.Button,p=s.PanelBody,m=wp.element.Fragment},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t,n){"use strict";function a(e,t,n){var a=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]}(document.createElement("div")),l=void 0!==t.animation?t.animation:"",i=void 0!==t.duration?t.duration:"1s",o=void 0!==t.delay?t.delay:"0s";return e.css({"animation-duration":i,"animation-delay":o,"-webkit-animation-delay":o}),e.addClass("animated "+l).one(a,function(){jQuery(this).removeClass("animated "+l),"function"==typeof n&&n()}),this}t.a=a},function(e,t){!function(){e.exports=window.React}()},function(e,t,n){e.exports=n(102)()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var a=n(20),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=function(){function e(){o()(this,e)}return c()(e,null,[{key:"prepareBackgroundImageStyles",value:function(e,t){var n=t.attributes;if(!n["".concat(e,"Image")])return{};var a=n["".concat(e,"Image")];return"object"===l()(a)&&(a=a.url),{backgroundImage:"url('".concat(a,"')"),backgroundPosition:""!=n["".concat(e,"ImagePosition")]?n["".concat(e,"ImagePosition")]:null,backgroundRepeat:""!=n["".concat(e,"ImageRepeat")]?n["".concat(e,"ImageRepeat")]:null,backgroundAttachment:""!=n["".concat(e,"ImageAttachment")]?n["".concat(e,"ImageAttachment")]:null,backgroundSize:""!=n["".concat(e,"ImageSize")]?n["".concat(e,"ImageSize")]:null}}},{key:"prepareGradientStyle",value:function(e,t){var n=t.attributes["".concat(e,"GradientType")],a=t.attributes["".concat(e,"GradientAngle")],l=t.attributes["".concat(e,"GradientFirstColor")],i=t.attributes["".concat(e,"GradientSecondColor")],o=t.attributes["".concat(e,"GradientFirstColorLocation")],r=t.attributes["".concat(e,"GradientSecondColorLocation")];a=void 0!==a?"".concat(a,"deg"):"180deg",l=void 0!==l?l:"rgba(0,0,0,0)",o=void 0!==o?"".concat(o,"%"):"0%",i=void 0!==i?i:"rgba(0,0,0,0)",r=void 0!==r?"".concat(r,"%"):"100%";var c={};switch(n){case"linear":c.backgroundImage="linear-gradient(".concat(a,", ").concat(l," ").concat(o,", ").concat(i," ").concat(r,")");break;case"radial":c.backgroundImage="radial-gradient(".concat(l," ").concat(o,", ").concat(i," ").concat(r,")")}return c}},{key:"convertVerticalAlignToStyle",value:function(e){var t=void 0;switch(e){case"top":t="flex-start";break;case"bottom":t="flex-end";break;case"center":t="center"}return t}},{key:"convertHorizontalAlignToStyle",value:function(e){var t=void 0;switch(e){case"left":t="flex-start";break;case"right":t="flex-end";break;case"center":t="center"}return t}}]),e}()},function(e,t,n){"use strict";function a(e){var t=e.onChange,n=e.label,a=e.help,l=e.value,r=e.allowAnimation,s=void 0===r?["Entrance","Exit","Seeker"]:r,d=[{value:"",label:Object(o.__)("None","getwid")}],u=[{value:"bounceIn",label:Object(o.__)("Bounce In","getwid")},{value:"bounceInDown",label:Object(o.__)("Bounce In Down","getwid")},{value:"bounceInDownShort",label:Object(o.__)("Bounce In Down Short","getwid")},{value:"bounceInLeft",label:Object(o.__)("Bounce In Left","getwid")},{value:"bounceInLeftShort",label:Object(o.__)("Bounce In Left Short","getwid")},{value:"bounceInRight",label:Object(o.__)("Bounce In Right","getwid")},{value:"bounceInRightShort",label:Object(o.__)("Bounce In Right Short","getwid")},{value:"bounceInUp",label:Object(o.__)("Bounce In Up","getwid")},{value:"bounceInUpShort",label:Object(o.__)("Bounce In Up Short","getwid")},{value:"fadeIn",label:Object(o.__)("Fade In","getwid")},{value:"fadeInDown",label:Object(o.__)("Fade In Down","getwid")},{value:"fadeInDownShort",label:Object(o.__)("Fade In Down Short","getwid")},{value:"fadeInDownBig",label:Object(o.__)("Fade In Down Big","getwid")},{value:"fadeInLeft",label:Object(o.__)("Fade In Left","getwid")},{value:"fadeInLeftShort",label:Object(o.__)("Fade In Left Short","getwid")},{value:"fadeInLeftBig",label:Object(o.__)("Fade In Left Big","getwid")},{value:"fadeInRight",label:Object(o.__)("Fade In Right","getwid")},{value:"fadeInRightShort",label:Object(o.__)("Fade In Right Short","getwid")},{value:"fadeInRightBig",label:Object(o.__)("Fade In Right Big","getwid")},{value:"fadeInUp",label:Object(o.__)("Fade In Up","getwid")},{value:"fadeInUpShort",label:Object(o.__)("Fade In Up Short","getwid")},{value:"fadeInUpBig",label:Object(o.__)("Fade In Up Big","getwid")},{value:"flipInX",label:Object(o.__)("Flip In X","getwid")},{value:"flipInY",label:Object(o.__)("Flip In Y","getwid")},{value:"lightSpeedIn",label:Object(o.__)("Light Speed In","getwid")},{value:"lightSpeedInShort",label:Object(o.__)("Light Speed In Short","getwid")},{value:"rotateIn",label:Object(o.__)("Rotate In","getwid")},{value:"rotateInDownLeft",label:Object(o.__)("Rotate In Down Left","getwid")},{value:"rotateInDownRight",label:Object(o.__)("Rotate In Down Right","getwid")},{value:"rotateInUpLeft",label:Object(o.__)("Rotate In Up Left","getwid")},{value:"rotateInUpRight",label:Object(o.__)("Rotate In Up Right","getwid")},{value:"zoomIn",label:Object(o.__)("Zoom In","getwid")},{value:"zoomInDown",label:Object(o.__)("Zoom In Down","getwid")},{value:"zoomInLeft",label:Object(o.__)("Zoom In Left","getwid")},{value:"zoomInRight",label:Object(o.__)("Zoom In Right","getwid")},{value:"zoomInUp",label:Object(o.__)("Zoom In Up","getwid")},{value:"slideInDown",label:Object(o.__)("Slide In Down","getwid")},{value:"slideInDownShort",label:Object(o.__)("Slide In Down Short","getwid")},{value:"slideInLeft",label:Object(o.__)("Slide In Left","getwid")},{value:"slideInLeftShort",label:Object(o.__)("Slide In Left Short","getwid")},{value:"slideInRight",label:Object(o.__)("Slide In Right","getwid")},{value:"slideInRightShort",label:Object(o.__)("Slide In Right Short","getwid")},{value:"slideInUp",label:Object(o.__)("Slide In Up","getwid")},{value:"slideInUpShort",label:Object(o.__)("Slide In Up Short","getwid")},{value:"rollIn",label:Object(o.__)("Roll In","getwid")}],p=[{value:"bounceOut",label:Object(o.__)("Bounce Out","getwid")},{value:"bounceOutDown",label:Object(o.__)("Bounce Out Down","getwid")},{value:"bounceOutLeft",label:Object(o.__)("Bounce Out Left","getwid")},{value:"bounceOutRight",label:Object(o.__)("Bounce Out Right","getwid")},{value:"bounceOutUp",label:Object(o.__)("Bounce Out Up","getwid")},{value:"fadeOut",label:Object(o.__)("Fade Out","getwid")},{value:"fadeOutDown",label:Object(o.__)("Fade Out Down","getwid")},{value:"fadeOutDownBig",label:Object(o.__)("Fade Out Down Big","getwid")},{value:"fadeOutLeft",label:Object(o.__)("Fade Out Left","getwid")},{value:"fadeOutLeftBig",label:Object(o.__)("Fade Out Left Big","getwid")},{value:"fadeOutRight",label:Object(o.__)("Fade Out Right","getwid")},{value:"fadeOutRightBig",label:Object(o.__)("Fade Out Right Big","getwid")},{value:"fadeOutUp",label:Object(o.__)("Fade Out Up","getwid")},{value:"fadeOutUpBig",label:Object(o.__)("Fade Out Up Big","getwid")},{value:"flipOutX",label:Object(o.__)("Flip Out X","getwid")},{value:"flipOutY",label:Object(o.__)("Flip Out Y","getwid")},{value:"lightSpeedOut",label:Object(o.__)("Light Speed Out","getwid")},{value:"rotateOut",label:Object(o.__)("Rotate Out","getwid")},{value:"rotateOutDownLeft",label:Object(o.__)("Rotate Out Down Left","getwid")},{value:"rotateOutDownRight",label:Object(o.__)("Rotate Out Down Right","getwid")},{value:"rotateOutUpLeft",label:Object(o.__)("Rotate Out Up Left","getwid")},{value:"rotateOutUpRight",label:Object(o.__)("Rotate Out Up Right","getwid")},{value:"zoomOut",label:Object(o.__)("Zoom Out","getwid")},{value:"zoomOutDown",label:Object(o.__)("Zoom Out Down","getwid")},{value:"zoomOutLeft",label:Object(o.__)("Zoom Out Left","getwid")},{value:"zoomOutRight",label:Object(o.__)("Zoom Out Right","getwid")},{value:"zoomOutUp",label:Object(o.__)("Zoom Out Up","getwid")},{value:"slideOutDown",label:Object(o.__)("Slide Out Down","getwid")},{value:"slideOutLeft",label:Object(o.__)("Slide Out Left","getwid")},{value:"slideOutRight",label:Object(o.__)("Slide Out Right","getwid")},{value:"slideOutUp",label:Object(o.__)("Slide Out Up","getwid")},{value:"heartBeat",label:Object(o.__)("Heart Beat","getwid")},{value:"hinge",label:Object(o.__)("Hinge","getwid")},{value:"rollOut",label:Object(o.__)("Roll Out","getwid")}],m=[{value:"bounce",label:Object(o.__)("Bounce","getwid")},{value:"flash",label:Object(o.__)("Flash","getwid")},{value:"pulse",label:Object(o.__)("Pulse","getwid")},{value:"rubberBand",label:Object(o.__)("Rubber Band","getwid")},{value:"shake",label:Object(o.__)("Shake","getwid")},{value:"headShake",label:Object(o.__)("Head Shake","getwid")},{value:"swing",label:Object(o.__)("Swing","getwid")},{value:"tada",label:Object(o.__)("Tada","getwid")},{value:"wobble",label:Object(o.__)("Wobble","getwid")},{value:"jello",label:Object(o.__)("Jello","getwid")},{value:"jackInTheBox",label:Object(o.__)("Jack In The Box","getwid")}],g=[{value:"slideTop",label:Object(o.__)("Slide Top","getwid")},{value:"slideBottom",label:Object(o.__)("Slide Bottom","getwid")},{value:"slideLeft",label:Object(o.__)("Slide Left","getwid")},{value:"slideRight",label:Object(o.__)("Slide Right","getwid")},{value:"zoomSmall",label:Object(o.__)("Zoom Small","getwid")},{value:"zoomBig",label:Object(o.__)("Zoom Big","getwid")}];return s.includes("Entrance")&&(d=[].concat(i()(d),u)),s.includes("Exit")&&(d=[].concat(i()(d),p)),s.includes("Seeker")&&(d=[].concat(i()(d),m)),s.includes("Icon")&&(d=[].concat(i()(d),g)),wp.element.createElement(c,{label:n,help:a,value:l,onChange:t,options:d})}t.a=a;var l=n(16),i=n.n(l),o=(n(0),n(1)),r=(n.n(o),window),c=(r.jQuery,wp.components.SelectControl)},function(e,t){!function(){e.exports=window.ReactDOM}()},function(e,t){function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}e.exports=n},function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=n},function(e,t){function n(e){throw new Error('"'+e+'" is read-only')}e.exports=n},function(e,t,n){"use strict";var a=(n(32),n(33),n(22)),l=(n.n(a),n(11));n.n(l);n.o(a,"createContext")&&n.d(t,"c",function(){return a.createContext}),n.o(a,"createElement")&&n.d(t,"d",function(){return a.createElement}),n.o(a,"Fragment")&&n.d(t,"a",function(){return a.Fragment}),n.o(a,"StrictMode")&&n.d(t,"b",function(){return a.StrictMode})},function(e,t,n){"use strict";function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){Object(l.a)(e,t,n[t])})}return e}t.a=a;var l=n(82)},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,i=Object(l.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.a=a;var l=n(83)},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(92)),g=wp.element,b=g.Component,w=g.Fragment,h=(g.RawHTML,function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.dividerTop,a=t.dividersTopHeight,l=t.dividerTopColor,i=t.dividerBottom,o=t.dividersBottomHeight,r=t.dividerBottomColor,c=e.baseClass;return wp.element.createElement(w,null,n&&wp.element.createElement("div",{className:"".concat(c,"__divider is-top-divider")},this.renderSVG(n,l,a)),i&&wp.element.createElement("div",{className:"".concat(c,"__divider is-bottom-divider")},this.renderSVG(i,r,o)))}},{key:"renderSVG",value:function(e,t,n){return void 0===t&&(t="white"),m.a.hasOwnProperty(e)?m.a[e](t,n):""}}]),t}(b))},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),wp.element),w=b.Component,h=b.Fragment,f=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.backgroundVideoUrl,a=(t.backgroundVideoMute,t.backgroundVideoLoop),i=(t.backgroundVideoAutoplay,t.backgroundVideoPoster),o=e.baseClass,r={autoPlay:this.props.videoAutoplay,muted:this.props.videoMute,loop:a,poster:i||void 0};return wp.element.createElement(h,null,n.url&&wp.element.createElement("video",l()({className:"".concat(o,"__background-video")},r,{ref:this.props.videoElemRef,onEnded:this.props.onVideoEnd}),wp.element.createElement("source",{src:n.url,type:"video/mp4"})))}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}}]),t}(w)},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return y});var a=n(96),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),wp.element),w=b.Component,h=b.Fragment,f=window,_=f.jQuery,v=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.sliderImages,n=e.sliderAnimationEffect,a=e.sliderAnimationDuration,l=e.sliderAnimationSpeed,i=this.props.baseClass;return wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(i,"__background-slider"),"data-autoplay":"true","data-autoplay-speed":l,"data-slide-effect":n,"data-slide-speed":a,"data-infinite":"true"},t.map(function(e){return wp.element.createElement("div",{className:"".concat(i,"__background-slider-item"),key:e.id||e.url},wp.element.createElement("img",{src:e.url,className:e.id?"wp-image-".concat(e.id):null,alt:e.alt,"data-id":e.id}))})))}}]),t}(w),y=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){return this.destroySlider(),l()(p()(t.prototype),"render",this).call(this)}},{key:"destroySlider",value:function(){var e=this.props.clientId,t=_("#block-".concat(e," .").concat(this.props.baseClass,"__background-slider")).first();t.hasClass("slick-initialized")&&t.slick("unslick")}},{key:"initSlider",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAnimationDuration,a=e.sliderAnimationSpeed,l=this.props.clientId;_("#block-".concat(l," .").concat(this.props.baseClass,"__background-slider")).first().slick({rows:0,slidesToShow:1,slidesToScroll:1,autoplay:!0,infinite:!0,arrows:!1,dots:!1,fade:"fade"===t,autoplaySpeed:a?parseInt(a):100,speed:n?parseInt(n):100})}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentDidUpdate",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}}]),t}(v)},function(e,t,n){"use strict";var a={align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__item",query:{url:{source:"attribute",selector:"img",attribute:"src"},original_url:{source:"attribute",selector:"img",attribute:"data-original-link"},link:{source:"attribute",selector:"img",attribute:"data-link"},custom_link:{source:"attribute",selector:"img",attribute:"data-custom-link"},custom_link_target:{source:"attribute",selector:"img",attribute:"data-link-target"},custom_link_rel:{source:"attribute",selector:"img",attribute:"data-link-rel"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},imageSize:{type:"string",default:"full"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},imageAlignment:{type:"string",default:"center"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-effect",default:"slide"},sliderSlidesToShow:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show",default:"1"},sliderSlidesToShowLaptop:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-laptop",default:"1"},sliderSlidesToShowTablet:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-tablet",default:"1"},sliderSlidesToShowMobile:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-mobile",default:"1"},sliderSlidesToScroll:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-scroll",default:"1"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-autoplay-speed",default:6e3},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-animation-speed",default:800},sliderCenterMode:{type:"boolean",default:!1},sliderVariableWidth:{type:"boolean",default:!1},sliderSpacing:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-spacing",default:"none"},sliderArrows:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-arrows",default:"inside"},sliderDots:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-dots",default:"inside"},slideHeight:{type:"string"},resetHeightOnTablet:{type:"bool"},resetHeightOnMobile:{type:"bool"}};t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var a=n(9),l=n.n(a),i=n(16),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(11),p=(n.n(u),n(60)),m=n.n(p),g=function(){function e(t){c()(this,e),this.schema=t}return d()(e,[{key:"_getDefault",value:function(e,t){return"function"==typeof e.default?e.default(t):e.default}},{key:"createItems",value:function(e){var t=this,n=e.itemsCount;return Object(u.mapValues)(this.schema,function(e,a){return Object(u.times)(n,function(n){return e.isWrapper?Object(u.mapValues)(e.attributes,function(e){return t._getDefault(e,n)}):t._getDefault(e,n)})})}},{key:"deleteItem",value:function(e,t){var n=t.index;return Object(u.mapValues)(this.schema,function(t,a){return e[a].filter(function(e,t){return t!==n})})}},{key:"insertItem",value:function(e,t){var n=this,a=t.index,l=t.item;return Object(u.mapValues)(this.schema,function(t,i){return[].concat(o()(e[i].slice(0,a)),[t.isWrapper?Object(u.mapValues)(t.attributes,function(e){return void 0!==l?l[e.alias]:n._getDefault(e,a)}):void 0!==l?l[t.alias]:n._getDefault(t,a)],o()(e[i].slice(a)))})}},{key:"duplicateItem",value:function(e,t){var n=t.index;return Object(u.mapValues)(this.schema,function(t,a){return[].concat(o()(e[a].slice(0,n)),[e[a][n]],o()(e[a].slice(n)))})}},{key:"updateItem",value:function(e,t){var n=t.index,a=t.itemState,i=(this.schema.attributes,{});return Object(u.mapValues)(this.schema,function(t,o){return i=Object(u.mapValues)(Object(u.pickBy)(t.attributes,function(e){return a.hasOwnProperty(e.alias)}),function(e){return a[e.alias]}),e[o].map(function(e,t){return t!==n?e:l()({},e,i)})})}},{key:"moveItem",value:function(e,t){var n=t.index,a=t.toIndex;return Object(u.mapValues)(this.schema,function(t,l){return m()(e[l],n,a)})}}]),e}()},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(310)),w=(n.n(b),n(311)),h=n(11),f=(n.n(h),n(7)),_=n.n(f),v=n(1),y=(n.n(v),window),k=(y.jQuery,wp.element),C=k.Component,E=k.Fragment,O=(wp.compose.withInstanceId,wp.apiFetch),j=wp.url.addQueryArgs,S=wp.components,x=S.SelectControl,T=S.RangeControl,N=S.RadioControl,A=S.ToggleControl,M=S.Spinner,B=S.TextControl,I=S.PanelBody,L=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.firstCheckTaxonomy=!0,e.firstCheckTerms=!0,e.state={postTypeList:null,taxonomyList:null,termsList:null},e}return g()(t,e),c()(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.waitLoadPostTypes=!0,this.fetchRequest=O({path:j("/wp/v2/types")}).then(function(t){e.waitLoadPostTypes=!1,e.isStillMounted&&e.setState({postTypeList:t})}).catch(function(){e.waitLoadPostTypes=!1})}},{key:"getTaxonomyFromCustomPostType",value:function(e){var t=this;void 0!==e&&""!=e&&(this.waitLoadTaxonomy=!0,this.firstCheckTaxonomy=!1,this.fetchRequest=O({path:j("/getwid/v1/taxonomies",{post_type_name:e})}).then(function(e){t.waitLoadTaxonomy=!1,t.isStillMounted&&Array.isArray(e)&&e.length?t.setState({taxonomyList:e}):t.setState({taxonomyList:null})}).catch(function(){t.waitLoadTaxonomy=!1}))}},{key:"getTermsFromTaxonomy",value:function(e){var t=this;void 0!==e&&""!=e&&(this.waitLoadTerms=!0,this.firstCheckTerms=!1,this.fetchRequest=O({path:j("/getwid/v1/terms",{taxonomy_name:e})}).then(function(e){t.waitLoadTerms=!1,t.isStillMounted&&e instanceof Object&&!Object(h.isEmpty)(e)?t.setState({termsList:e}):t.setState({termsList:null})}).catch(function(){t.waitLoadTerms=!1}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t="components-getwid-custom-query-control",n=[];if(this.state.postTypeList)for(var a in this.state.postTypeList)if(!["attachment","wp_block","getwid_template_part","getwid_template"].includes(a)){var i={};i.value=this.state.postTypeList[a].slug,i.label=this.state.postTypeList[a].name,n.push(i)}return wp.element.createElement("div",{className:_()("components-base-control",t)},function(){return null==e.state.taxonomyList&&e.props.values.postType&&e.firstCheckTaxonomy&&e.getTaxonomyFromCustomPostType(e.props.values.postType),wp.element.createElement(E,null,e.waitLoadPostTypes?wp.element.createElement(M,null):void 0,wp.element.createElement(x,{label:Object(v.__)("Choose what to display","getwid"),className:["".concat(t,"__post-type")],value:e.props.values.postType?e.props.values.postType:"",onChange:function(t){e.setState({taxonomyList:null,termsList:null}),e.props.callbackOn&&e.props.callbackOn.includes("postType")?e.props.onChangeCallback(t,"postType"):""==t?e.props.setValues({postType:void 0,taxonomy:void 0,terms:void 0}):e.props.setValues({postType:t,taxonomy:void 0,terms:void 0}),e.getTaxonomyFromCustomPostType(t)},options:l()(n||[{value:"",label:"-"}]),disabled:null==e.state.postTypeList}))}(),wp.element.createElement(T,{label:this.props.options&&this.props.options.includes("page")&&this.props.values.pagination?Object(v.__)("Number of items per page","getwid"):Object(v.__)("Number of items","getwid"),value:this.props.values.postsToShow,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("postsToShow")?e.props.onChangeCallback(t,"postsToShow"):e.props.setValues({postsToShow:t})},min:-1,max:100,step:1}),function(){if(e.props.options&&e.props.options.includes("page"))return wp.element.createElement(E,null,wp.element.createElement(A,{label:Object(v.__)("Use pagination","getwid"),checked:!!e.props.values.pagination&&e.props.values.pagination,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("pagination")?e.props.onChangeCallback(t,"pagination"):e.props.setValues({pagination:!e.props.values.pagination})}}))}(),wp.element.createElement(I,{title:Object(v.__)("Sorting and Filtering","getwid"),initialOpen:!1},wp.element.createElement(x,{label:Object(v.__)("Order","getwid"),className:["".concat(t,"__order")],value:this.props.values.order?this.props.values.order:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("order")?e.props.onChangeCallback(t,"order"):e.props.setValues({order:t})},options:[{value:"desc",label:Object(v.__)("Z → A, 9 → 1","getwid")},{value:"asc",label:Object(v.__)("A → Z, 1 → 9","getwid")}]}),wp.element.createElement(x,{label:Object(v.__)("Order by","getwid"),className:["".concat(t,"__order-by")],value:this.props.values.orderBy?this.props.values.orderBy:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("orderBy")?e.props.onChangeCallback(t,"orderBy"):e.props.setValues({orderBy:t})},options:[{value:"title",label:Object(v.__)("Title","getwid")},{value:"date",label:Object(v.__)("Date","getwid")}].concat(l()("page"==this.props.values.postType?[{value:"menu_order",label:Object(v.__)("Menu order","getwid")},{value:"rand",label:Object(v.__)("Random","getwid")}]:[]))}),"page"!=this.props.values.postType&&function(){if(e.props.options&&e.props.options.includes("sticky"))return wp.element.createElement(E,null,wp.element.createElement(A,{label:Object(v.__)("Ignore Sticky posts","getwid"),checked:!!e.props.values.ignoreSticky&&e.props.values.ignoreSticky,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("ignoreSticky")?e.props.onChangeCallback(t,"ignoreSticky"):e.props.setValues({ignoreSticky:!e.props.values.ignoreSticky})}}))}(),wp.element.createElement(B,{label:Object(v.__)("Display only the specific posts","getwid"),help:Object(v.__)("Comma-separated IDs","getwid"),value:this.props.values.filterById?this.props.values.filterById:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("filterById")?e.props.onChangeCallback(t,"filterById"):e.props.setValues({filterById:t})}}),wp.element.createElement(B,{label:Object(v.__)("Display all posts but NOT the specified ones","getwid"),help:Object(v.__)("Comma-separated IDs","getwid"),value:this.props.values.excludeById?this.props.values.excludeById:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("excludeById")?e.props.onChangeCallback(t,"excludeById"):e.props.setValues({excludeById:t})}}),wp.element.createElement(A,{label:Object(v.__)("Exclude Current Post","getwid"),checked:!!this.props.values.excludeCurrentPost&&this.props.values.excludeCurrentPost,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("excludeCurrentPost")?e.props.onChangeCallback(t,"excludeCurrentPost"):e.props.setValues({excludeCurrentPost:!e.props.values.excludeCurrentPost})}}),"page"==this.props.values.postType&&function(){if(e.props.options&&e.props.options.includes("parentFilter"))return wp.element.createElement(E,null,wp.element.createElement(B,{label:Object(v.__)("Enter page ID to display its child pages","getwid"),help:Object(v.__)("Parent page ID","getwid"),value:e.props.values.parentPageId?e.props.values.parentPageId:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("parentPageId")?e.props.onChangeCallback(t,"parentPageId"):e.props.setValues({parentPageId:t})}}))}(),"page"!=this.props.values.postType&&function(){return null==e.state.termsList&&e.props.values.taxonomy&&e.firstCheckTerms&&e.getTermsFromTaxonomy(e.props.values.taxonomy),wp.element.createElement(E,null,e.waitLoadTaxonomy?wp.element.createElement(M,null):void 0,wp.element.createElement(x,{label:Object(v.__)("Taxonomies","getwid"),help:Object(v.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),className:["".concat(t,"__taxonomy")],value:e.props.values.taxonomy?e.props.values.taxonomy:"",onChange:function(t){e.setState({termsList:null}),e.props.callbackOn&&e.props.callbackOn.includes("taxonomy")?e.props.onChangeCallback(t,"taxonomy"):""==t?e.props.setValues({taxonomy:void 0,terms:void 0}):e.props.setValues({taxonomy:t,terms:void 0}),e.getTermsFromTaxonomy(t)},multiple:!0,size:5,options:e.state.taxonomyList?e.state.taxonomyList:[{value:"",label:""}],disabled:null==e.state.taxonomyList}))}(),"page"!=this.props.values.postType&&function(){return wp.element.createElement(E,null,e.waitLoadTerms?wp.element.createElement(M,null):void 0,wp.element.createElement(w.a,{label:Object(v.__)("Terms","getwid"),help:Object(v.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),className:["".concat(t,"__terms")],multiple:!0,groups:!0,size:5,value:e.props.values.terms?e.props.values.terms:[],onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("terms")?e.props.onChangeCallback(t,"terms"):t.length?e.props.setValues({terms:t}):e.props.setValues({terms:void 0})},options:e.state.termsList?e.state.termsList:{"":{group_name:"",group_value:[{value:"",label:""}]}},disabled:null==e.state.termsList}))}(),"page"!=this.props.values.postType&&wp.element.createElement(N,{label:Object(v.__)("Terms Relation","getwid"),selected:this.props.values.relation?this.props.values.relation:"",options:[{value:"AND",label:Object(v.__)("Item should have all of selected terms.","getwid")},{value:"OR",label:Object(v.__)("Item should have at least one of selected terms.","getwid")}],onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("relation")?e.props.onChangeCallback(t,"relation"):e.props.setValues({relation:t})}})))}}]),t}(C);t.a=L},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(315)),w=(n.n(b),n(7)),h=n.n(w),f=n(1),_=(n.n(f),window),v=(_.jQuery,wp.element),y=v.Component,k=v.Fragment,C=wp.apiFetch,E=wp.url.addQueryArgs,O=wp.components,j=O.SelectControl,S=O.BaseControl,x=O.ButtonGroup,T=O.Button,N=O.Spinner,A=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.state={postTemplates:null,waitLoadTemplates:!1},e}return g()(t,e),c()(t,[{key:"componentWillMount",value:function(){this.isStillMounted=!0,this.updateTemplates()}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"updateTemplates",value:function(){var e=this;this.fetchRequest=C({path:E("/getwid/v1/templates",{template_name:"getwid_template_part"})}).then(function(t){e.waitLoadTemplates=!1,e.isStillMounted&&t instanceof Object?e.setState({postTemplates:t,waitLoadTemplates:!1}):e.setState({postTemplates:null,waitLoadTemplates:!1})}).catch(function(){e.setState({waitLoadTemplates:!1})})}},{key:"resetTemplates",value:function(){this.props.setValues({postTemplate:null})}},{key:"render",value:function(){var e=this,t=[];this.state.postTemplates&&(t=this.state.postTemplates);return wp.element.createElement("div",{className:h()("components-base-control","components-getwid-custom-post-template-control")},function(){return wp.element.createElement(k,null,e.state.waitLoadTemplates?wp.element.createElement(N,null):void 0,wp.element.createElement(j,{label:Object(f.__)("Post Template","getwid"),className:["".concat("components-getwid-custom-post-template-control","__post-template")],value:e.props.values.postTemplate?e.props.values.postTemplate:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("postTemplate")?e.props.onChangeCallback(t,"postTemplate"):e.props.setValues({postTemplate:t})},options:[{value:"",label:"Default"}].concat(l()(t||[]))}),wp.element.createElement(x,null,e.props.values.postTemplate&&wp.element.createElement("a",{href:"".concat(Getwid.templates.edit).concat(e.props.values.postTemplate,"&action=edit"),className:"components-button is-button is-default",target:"_blank"},Object(f.__)("Edit","getwid")),wp.element.createElement("a",{href:Getwid.templates.new,className:"components-button is-button is-default",target:"_blank"},Object(f.__)("New","getwid")),wp.element.createElement("a",{href:Getwid.templates.view,className:"components-button is-button is-default",target:"_blank"},Object(f.__)("View All","getwid")),wp.element.createElement(T,{isDefault:!0,onClick:function(t){e.setState({waitLoadTemplates:!0}),e.updateTemplates()}},Object(f.__)("Update","getwid"))),e.props.values.postTemplate&&wp.element.createElement(S,null,wp.element.createElement(T,{isLink:!0,onClick:function(t){e.resetTemplates()}},Object(f.__)("Reset to default","getwid"))))}())}}]),t}(y);t.a=A},function(e,t,n){function a(e){return l(e)||i(e)||o()}var l=n(28),i=n(27),o=n(29);e.exports=a},function(e,t,n){"use strict";function a(e){var t=e.children,n=Object(i.a)(e,["children"]);return Object(o.d)("div",Object(l.a)({dangerouslySetInnerHTML:{__html:t}},n))}t.a=a;var l=n(32),i=n(33),o=n(31)},function(e,t,n){"use strict";var a={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string"},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},foregroundGradientType:{type:"string"},foregroundGradientFirstColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColor:{type:"string"},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientAngle:{type:"number",default:180},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(100)),f=(n.n(h),n(7)),_=n.n(f),v=wp.element,y=v.Component,k=v.Fragment,C=v.forwardRef,E=wp.components,O=E.Button,j=E.SVG,S=E.Path,x=E.G,T=function(e){function t(e){var n;return o()(this,t),n=d()(this,p()(t).apply(this,arguments)),n.state={opened:void 0===e.initialOpen||e.initialOpen,onOpen:void 0===e.onOpen?void 0:e.onOpen,onClose:void 0===e.onClose?void 0:e.onClose},n.toggle=n.toggle.bind(g()(n)),n}return w()(t,e),c()(t,[{key:"toggle",value:function(e){e.preventDefault(),this.state.opened?void 0!==this.state.onClose&&this.state.onClose():void 0!==this.state.onOpen&&this.state.onOpen(),void 0===this.props.opened&&this.setState(function(e){return{opened:!e.opened}}),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,a=e.opened,l=e.className,i=e.icon,o=e.forwardedRef,r=e.hints,c=void 0===a?this.state.opened:a,s=_()("components-panel__body","components-getwid-panel-body",l,{"is-opened":c});return wp.element.createElement("div",{className:s,ref:o},!!t&&wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement(O,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":c},wp.element.createElement("span",{"aria-hidden":"true"},c?wp.element.createElement(j,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(x,null,wp.element.createElement(S,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(x,null,wp.element.createElement(S,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):wp.element.createElement(j,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(x,null,wp.element.createElement(S,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(x,null,wp.element.createElement(S,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),r?c?t:wp.element.createElement(k,null,wp.element.createElement("span",null,t),wp.element.createElement("div",{className:"components-getwid-panel-body-row"},r.map(function(e,t){return wp.element.createElement("div",{className:"components-getwid-panel-body-columns"},wp.element.createElement("span",null,""!=e.value&&e.label," "),""!=e.value&&e.value)}))):t,i&&wp.element.createElement(Icon,{icon:i,className:"components-panel__icon",size:20}))),c&&n)}}]),t}(y),N=function(e,t){return wp.element.createElement(T,l()({},e,{forwardedRef:t}))};N.displayName="PanelBody",t.a=C(N)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(23)),c=a(n(22)),s=a(n(26)),d=n(46),u=(n(47),"unmounted");t.UNMOUNTED=u;var p="exited";t.EXITED=p;var m="entering";t.ENTERING=m;var g="entered";t.ENTERED=g;t.EXITING="exiting";var b=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var l,i=n.transitionGroup,o=i&&!i.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?o?(l=p,a.appearStatus=m):l=g:l=t.unmountOnExit||t.mountOnEnter?u:p,a.state={status:l},a.nextCallback=null,a}i(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:p}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):n!==m&&n!==g||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,a=this.props.timeout;return e=t=n=a,null!=a&&"number"!=typeof a&&(e=a.exit,t=a.enter,n=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=s.default.findDOMNode(this);t===m?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},n.performEnter=function(e,t){var n=this,a=this.props.enter,l=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),o=l?i.appear:i.enter;if(!t&&!a)return void this.safeSetState({status:g},function(){n.props.onEntered(e)});this.props.onEnter(e,l),this.safeSetState({status:m},function(){n.props.onEntering(e,l),n.onTransitionEnd(e,o,function(){n.safeSetState({status:g},function(){n.props.onEntered(e,l)})})})},n.performExit=function(e){var t=this,n=this.props.exit,a=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,a.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var a=null==t&&!this.props.addEndListener;if(!e||a)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,a=l(t,["children"]);if(delete a.in,delete a.mountOnEnter,delete a.unmountOnExit,delete a.appear,delete a.enter,delete a.exit,delete a.timeout,delete a.addEndListener,delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,"function"==typeof n)return n(e,a);var i=c.default.Children.only(n);return c.default.cloneElement(i,a)},t}(c.default.Component);b.contextTypes={transitionGroup:r.object},b.childContextTypes={transitionGroup:function(){}},b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:o,onEntering:o,onEntered:o,onExit:o,onExiting:o,onExited:o},b.UNMOUNTED=0,b.EXITED=1,b.ENTERING=2,b.ENTERED=3,b.EXITING=4;var w=(0,d.polyfill)(b);t.default=w},function(e,t,n){"use strict";function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function l(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==r){var c=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=l),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var d=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;d.call(this,e,t,a)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return o}),a.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;!function(e){e&&e.__esModule}(n(23));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.__esModule=!0,t.default=void 0;var c=a(n(23)),s=a(n(22)),d=n(46),u=n(111),p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},m={component:"div",childFactory:function(e){return e}},g=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var l=a.handleExited.bind(r(r(a)));return a.state={handleExited:l,firstRender:!0},a}o(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,a=t.handleExited;return{children:t.firstRender?(0,u.getInitialChildMapping)(e,a):(0,u.getNextChildMapping)(e,n,a),firstRender:!1}},n.handleExited=function(e,t){var n=(0,u.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=i({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,a=l(e,["component","childFactory"]),i=p(this.state.children).map(n);return delete a.appear,delete a.enter,delete a.exit,null===t?i:s.default.createElement(t,a,i)},t}(s.default.Component);g.childContextTypes={transitionGroup:c.default.object.isRequired},g.propTypes={},g.defaultProps=m;var b=(0,d.polyfill)(g);t.default=b,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",function(){return V});var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(1)),k=(n.n(y),n(130)),C=n.n(k),E=n(7),O=n.n(E),j=n(11),S=(n.n(j),n(131)),x=n(132),T=(n.n(x),wp.components.IconButton),N=wp.element,A=N.Component,M=N.Fragment,B=N.createContext,I=wp.blockEditor||wp.editor,L=I.InnerBlocks,P=I.RichText,z=window,R=z.jQuery,D=B(),V=D.Consumer,F=D.Provider,H=["getwid/media-text-slider-slide"],W=C()(function(e){return Object(j.times)(e,function(e){return["getwid/media-text-slider-slide",{slideId:++e}]})}),U=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.addNewSlide=e.addNewSlide.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e.updateContentAttributes=e.updateContentAttributes.bind(f()(e)),e.setInnerBlocksAttributes=e.setInnerBlocksAttributes.bind(f()(e)),e.state={currentSlide:1,selectedSlide:0,isLockedPaddings:!1},e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"setInnerBlocksAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mount",t=arguments.length>1?arguments[1]:void 0,n=(arguments.length>2&&arguments[2],window.wp.data),a=n.select,l=n.dispatch,i=this.props.attributes,o=i.paddingRight,r=i.textColor,c=i.overlayColor,s=i.overlayOpacity,d=i.imageSize,u=this.props.attributes,p=u.contentMaxWidth,m=u.minHeight,g=u.verticalAlign,b=u.horizontalAlign,w=u.paddingTop,h=u.paddingBottom,f=u.paddingLeft,_={attributes:{contentMaxWidth:p,minHeight:m,verticalAlign:g,horizontalAlign:b,paddingTop:w,paddingBottom:h,paddingLeft:f,paddingRight:o,textColor:r,overlayColor:c,overlayOpacity:s,imageSize:d}};if("Update"!=e||!Object(j.isEqual)(this.props.attributes,t.attributes)){var v,y=a("core/editor"),k=y.getBlock,C=k(this.props.clientId);C&&(v=C.innerBlocks),v&&v.length&&jQuery.each(v,function(t,n){("Mount"==e&&Object(j.isEmpty)(n.attributes.outerParent)||"Update"==e)&&(l("core/editor").updateBlockAttributes(n.clientId,{outerParent:_}),void 0!==n.clientId&&n.innerBlocks.length&&l("core/editor").updateBlockAttributes(n.innerBlocks[0].clientId,{innerParent:_}))})}}},{key:"updateContentAttributes",value:function(e){var t=window.wp.data,n=t.dispatch,a=t.select,l=this.props.clientId,i=a("core/editor").getBlock(l).innerBlocks,o=this.props.attributes,r=o.contentMaxWidth,c=o.minHeight,s=o.textColor,d=o.overlayColor,u=o.overlayOpacity,p=o.imageSize,m=this.props.attributes,g=m.verticalAlign,b=m.horizontalAlign,w=m.paddingTop,h=m.paddingBottom,f=m.paddingLeft,_=m.paddingRight,v={attributes:{contentMaxWidth:r,minHeight:c,verticalAlign:g,horizontalAlign:b,paddingTop:w,paddingBottom:h,paddingLeft:f,paddingRight:_,textColor:s,overlayColor:d,overlayOpacity:u,imageSize:p}};R.each(i,function(t,a){Object(j.isEqual)(e,a.innerBlocks[0].clientId)&&n("core/editor").updateBlockAttributes(e,{innerParent:v})})}},{key:"addNewSlide",value:function(e){var t=this.props.setAttributes,n=this.props.attributes.sliderArrays,a=JSON.parse(n),l=this.changeState,i=this.getState;if(a.length<e){var o=Math.abs(e-a.length);Object(j.times)(o,function(t){var n=e-t;a.push(sprintf(Object(y.__)("Slide %d","getwid"),n))}),t({sliderArrays:JSON.stringify(a),slideCount:e})}else e-1<i("selectedSlide")&&(l("selectedSlide",e-1),l("currentSlide",e)),t({sliderArrays:JSON.stringify(a.slice(0,e)),slideCount:e})}},{key:"componentDidMount",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.sliderArrows,a=t.sliderDots;n&&a||e({sliderArrows:"outside",sliderDots:"outside"}),this.setInnerBlocksAttributes("Mount")}},{key:"componentDidUpdate",value:function(e,t){this.setInnerBlocksAttributes("Update",e,t)}},{key:"render",value:function(){var e,t=this,n=this.changeState,a=this.getState,i=this.props.attributes,r=i.slideCount,s=i.align,d=i.sliderArrays,u=this.props,p=u.className,m=u.baseClass,g=JSON.parse(d),b=O()(p,(e={},c()(e,"".concat(m,"--current-slide-").concat(a("currentSlide")),!0),c()(e,"alignfull","full"===s),c()(e,"alignwide","wide"===s),e)),w=function(e,n){var a=t.props.setAttributes,l=JSON.parse(d);l[n]=e,a({sliderArrays:JSON.stringify(l)})},h=function(e){if(void 0!==g[e])return wp.element.createElement(M,null,wp.element.createElement("li",{className:"".concat(m,"__title-wrapper ").concat(m,"__title-wrapper-").concat(e," ").concat(m,"__title-wrapper--").concat(1+e===a("currentSlide")?"active":"inactive")},wp.element.createElement("span",{className:"".concat(m,"__title ").concat(m,"__title-").concat(1+e),onClick:function(){n("currentSlide",1+e),n("selectedSlide",e)}},wp.element.createElement(P,{tagName:"div",className:"".concat(m,"__title_text"),placeholder:Object(y.__)("Slide","getwid"),value:g[e]?void 0!==g[e].text?g[e].text:g[e]:Object(y.__)("Slide","getwid"),unstableOnFocus:function(){return n("currentSlide",1+e)},onChange:function(t){w(t,e)},formattingControls:[]}))))},f=this.addNewSlide,_=this.state.isLockedPaddings;return wp.element.createElement(M,null,wp.element.createElement(S.a,l()({},o()({},this.props,{isLockedPaddings:_,changeState:n,addNewSlide:f,getState:a}),{key:"inspector"})),wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"".concat(m,"__slides-wrapper")},wp.element.createElement("ul",{className:"".concat(m,"__titles")},wp.element.createElement(M,null,Object(j.times)(r,function(e){return h(e)}),wp.element.createElement("li",{className:"".concat(m,"__add-item")},wp.element.createElement(T,{icon:"insert",onClick:function(){return f(r+1)},label:Object(y.__)("Add Item","getwid")})))),wp.element.createElement("div",{className:"".concat(m,"__content")},wp.element.createElement(F,{value:this},wp.element.createElement(L,{template:W(r),templateLock:"all",templateInsertUpdatesSelection:!1,allowedBlocks:H}))))))}}]),t}(A);t.b=U},function(e,t,n){"use strict";var a={slideCount:{type:"number",default:3},imageSize:{type:"string",default:"full"},align:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},verticalAlign:{type:"string"},horizontalAlign:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},textColor:{type:"string"},overlayColor:{type:"string"},overlayOpacity:{type:"number",default:"30"},contentAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-animation",default:"fadeIn"},contentAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-duration",default:"1500ms"},contentAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-delay",default:"0ms"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-effect"},sliderAutoplay:{type:"boolean",default:!1},pauseOnHover:{type:"boolean",default:!0},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-autoplay-speed",default:5e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"slide-speed",default:1e3},sliderArrays:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-labels",default:'["Slide 1","Slide 2","Slide 3"]'},sliderArrows:{type:"string"},sliderDots:{type:"string"}};t.a=a},function(e,t){},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return m});var a=n(8),l=n.n(a),i=n(1),o=(n.n(i),n(11)),r=(n.n(o),n(53)),c=window,s=c.jQuery,d=wp.data.select,u=wp.blocks.createBlock,p=function(e){var t=s.isPlainObject(e)?e.images:e,n=JSON.stringify(Object(o.times)(t.length,function(e){return"Slide ".concat(e+1)})),a=function(e){return[u("core/heading",{placeholder:Object(i.__)("Write heading…","getwid"),content:e.caption}),u("core/paragraph",{placeholder:Object(i.__)("Write text…","getwid")})]};return u("getwid/media-text-slider",{slideCount:t.length,sliderArrays:n},t.map(function(e,t){return u("getwid/media-text-slider-slide",{slideId:++t},[u("getwid/media-text-slider-slide-content",{mediaId:e.id,mediaUrl:e.url},a(e))])}))},m=function(e,t,n){var a=[],i=d("core/editor").getSelectedBlockClientId(),c=d("core/editor").getBlock(i).innerBlocks;if(c.length&&s.each(c,function(e,t){if(void 0!==t.innerBlocks[0].attributes.mediaUrl){var i;if(n&&n.push(t.innerBlocks[0].attributes.mediaId),a.push((i={},l()(i,!n&&"caption",""),l()(i,"id",t.innerBlocks[0].attributes.mediaId),l()(i,"url",t.innerBlocks[0].attributes.mediaUrl),i)),!n){var o=t.innerBlocks[0].innerBlocks[0];""!=o.attributes.content&&(a[a.length-1].caption=o.attributes.content)}}}),"image"==t.split("/").pop())return a.length?a.map(function(e){var n=e.id,a=e.url,l=e.caption;return u(t,{id:n,url:a,caption:l})}):u(t,{});if(Object(o.isEqual)(t,"getwid/content-timeline"))return Object(r.a)(a);var p;return u(t,(p={},l()(p,n&&"imageSize",e.imageSize),l()(p,"images",a.length?a.map(function(e){return{id:e.id,url:e.url,caption:e.caption}}):[]),l()(p,n&&"ids",n?n.length?n:[]:null),p))}},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return b});var a=n(135),l=n.n(a),i=n(16),o=n.n(i),r=n(1),c=(n.n(r),n(11)),s=(n.n(c),n(52)),d=wp.data.select,u=wp.blocks.createBlock,p=window,m=p.jQuery,g=function(e){var t=m.isPlainObject(e)?o()(e.images):o()(e);return u("getwid/content-timeline",{},t.map(function(t,n){return u("getwid/content-timeline-item",{id:t.id,alt:t.alt,url:t.url,imageSize:e.imageSize},[u("core/heading",{placeholder:Object(r.__)("Write heading…","getwid"),content:t.caption}),u("core/paragraph",{placeholder:Object(r.__)("Write heading…","getwid")})])}))},b=function(e){var t=d("core/editor"),n=t.getBlock,a=t.getSelectedBlockClientId,i=a(),o=n(i).innerBlocks,r=[];return o.length&&m.each(o,function(e,t){var n=l()(t.innerBlocks,1),a=n[0];void 0!==t.attributes.url&&r.push({id:t.attributes.id,url:t.attributes.url,alt:t.attributes.alt,caption:a.attributes.content})}),Object(c.isEqual)(e,"core/image")?r.length?r.map(function(t){var n=t.id,a=t.url,l=t.alt,i=t.caption;return u(e,{id:n,url:a,alt:l,caption:i})}):u(e,{}):Object(c.isEqual)(e,"getwid/media-text-slider")?Object(s.b)(r):u(e,{imageSize:o[0].attributes.imageSize,images:r.length?r.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}):[],ids:r.map(function(e){return e.id})})}},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(24)),g=n(1),b=(n.n(g),m.a.convertHorizontalAlignToStyle),w=m.a.convertVerticalAlignToStyle,h=wp.blockEditor||wp.editor,f=h.InnerBlocks,_=wp.element,v=_.Component,y=_.Fragment,k=_.createContext,C=k(),E=C.Consumer,O=C.Provider,j=["getwid/media-text-slider-slide-content"],S=[["getwid/media-text-slider-slide-content"]],x=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e,t,n,a,l,i,o,r,c=this.props.className,s=this.props.attributes,d=s.slideId,u=s.outerParent;if(void 0!==u.attributes){var p=u.attributes;e=p.paddingTop,t=p.paddingBottom,n=p.paddingLeft,a=p.paddingRight,l=p.minHeight,i=p.horizontalAlign,o=p.verticalAlign,r=p.contentMaxWidth}var m={};void 0!==u.attributes&&(m={paddingTop:e||null,paddingBottom:t||null,paddingLeft:n||null,paddingRight:a||null,minHeight:l||null,justifyContent:i?b(i):null,alignItems:o?w(o):null});var g;void 0!==u.attributes&&(g=void 0!==u&&void 0!==r?r:"80%");var h={maxWidth:g||null,width:"100%"};return wp.element.createElement(y,null,wp.element.createElement("div",{className:"".concat(c,"__content-wrapper slide-").concat(d)},wp.element.createElement("div",{style:m,className:"".concat(c,"__content")},wp.element.createElement("div",{style:h},wp.element.createElement(O,{value:this.props},wp.element.createElement(f,{templateLock:"all",template:S,templateInsertUpdatesSelection:!1,allowedBlocks:j}))))))}}]),t}(v);t.b=x},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__source",attribute:"src"},type:{type:"string",default:"image"},title:{type:"string",source:"html",selector:"span"},text:{type:"string",source:"html",selector:"p"},link:{type:"string",source:"attribute",selector:".wp-block-getwid-banner a",attribute:"href"},align:{type:"string"},minHeight:{type:"string"},contentMaxWidth:{type:"string"},verticalAlign:{type:"string",default:"center"},horizontalAlign:{type:"string",default:"center"},backgroundOpacity:{type:"number",default:35},blockAnimation:{type:"string",default:"style4"},textAnimation:{type:"string",default:"opacity-bottom"},linkTarget:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__link",attribute:"target"},rel:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__link",attribute:"rel"}};t.a=a},function(e,t){},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){var l=e[t],i=e.length,o=t-n;return o>0?[].concat(a(e.slice(0,n)),[l],a(e.slice(n,t)),a(e.slice(t+1,i))):o<0?[].concat(a(e.slice(0,t)),a(e.slice(t+1,n+1)),[l],a(e.slice(n+1,i))):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=l},function(e,t,n){"use strict";var a={align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-getwid-images-stack .wp-block-getwid-images-stack__media-wrapper",query:{url:{source:"attribute",selector:"img",attribute:"src"},original_url:{source:"attribute",selector:"a",attribute:"href"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},imageSize:{type:"string",default:"full"},linkTo:{type:"string",default:"none"},stackStyle:{type:"string",default:"default"},stackOverlap:{type:"string",default:"default"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a=n(217),l=n.n(a),i=n(219),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(1),v=(n.n(_),n(220)),y=(n.n(v),lodash),k=y.startCase,C=y.toLower,E=window,O=(E.jQuery,wp.compose.withInstanceId),j=wp.components,S=j.Button,x=j.BaseControl,T=j.Dropdown,N=j.MenuGroup,A=j.MenuItem,M=j.SelectControl,B=j.TextControl,I=wp.element.Component,L=function(e){function t(){var e;return c()(this,t),e=p()(this,g()(t).apply(this,arguments)),e.search=React.createRef(),e.state={fonts:null,font:[],variants:null,search:""},e}return w()(t,e),d()(t,[{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=o()(l.a.mark(function e(){var t=this;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyAWN8pd8HMruaR92oVbykdg-Q2HpgsikKU").then(function(e){return e.json()}).then(function(e){t.setState({fonts:e.items}),t.props.value&&e.items.find(function(e){if(t.props.value===e.family){var n=e.variants.filter(function(e){return!1===e.includes("italic")}).map(function(e){return e={label:"regular"==C(e)?"400":k(C(e)),value:"regular"==e?"normal":e}});return t.setState({variants:n})}})});case 2:case"end":return e.stop()}},e)}));return e}()},{key:"render",value:function(){var e=this,t="inspector-google-fonts-control-".concat(this.props.instanceId);return wp.element.createElement("div",{className:"components-getwid-google-fonts-control"},wp.element.createElement(x,{label:this.props.label,id:t},null!==this.state.fonts?wp.element.createElement(T,{contentClassName:"components-getwid-google-fonts-popover",position:"bottom center",renderToggle:function(n){var a=n.isOpen,l=n.onToggle;return wp.element.createElement(S,{isLarge:!0,className:"components-getwid-google-fonts-button",id:t,onClick:l,"aria-expanded":a},e.props.value?e.props.value:Object(_.__)("Select Font Family","getwid"))},renderContent:function(t){var n=t.onToggle;return wp.element.createElement(N,{label:Object(_.__)("Google Fonts","getwid")},wp.element.createElement(B,{value:e.state.search,onChange:function(t){return e.setState({search:t})}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(A,{onClick:function(){n(),e.props.onChangeFontFamily(""),e.props.onChangeFontWeight(""),e.setState({font:[],variants:null,search:""})}},Object(_.__)("Default","getwid")),e.state.fonts.map(function(t){if(!e.state.search||t.family.toLowerCase().includes(e.state.search.toLowerCase()))return wp.element.createElement(A,{className:f()({"is-selected":t.family===e.props.value}),onClick:function(){n(),e.props.onChangeFontFamily(t.family),e.props.onChangeFontWeight("normal");var a=t.variants.filter(function(e){return!1===e.includes("italic")}).map(function(e){return e={label:"regular"==C(e)?"400":k(C(e)),value:"regular"==e?"normal":e}});e.setState({font:t,variants:a,search:""})}},t.family)})))}}):Object(_.__)("Loading…","getwid")),wp.element.createElement(M,{label:Object(_.__)("Font Weight","getwid"),value:this.props.valueWeight||"",options:this.state.variants?this.state.variants:[{value:"",label:Object(_.__)("Default","getwid")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"normal",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],onChange:this.props.onChangeFontWeight}))}}]),t}(I);t.a=O(L)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(22),s=a(c),d=n(23),u=a(d),p=function(e){function t(){var e,n,a,o;l(this,t);for(var r=arguments.length,c=Array(r),s=0;s<r;s++)c[s]=arguments[s];return n=a=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.link=null,a.createLink=function(){var e=a.props,t=e.fonts,n=e.subsets,l=t.reduce(function(e,t){var n=t.font.replace(/ +/g,"+"),a=(t.weights||[]).join(",");return e.push(n+(a&&":"+a)),e},[]).join("|"),i=document.createElement("link");return i.rel="stylesheet",i.href="https://fonts.googleapis.com/css?family="+l,n&&Array.isArray(n)&&n.length>0&&(i.href+="&subset="+n.join(",")),i},a.appendLink=function(){return document.head.appendChild(a.link)},a.removeLink=function(){return document.head.removeChild(a.link)},a.replaceLink=function(){a.removeLink(),a.link=a.createLink(),a.appendLink()},a.render=function(){return null},o=n,i(a,o)}return o(t,e),r(t,[{key:"componentDidMount",value:function(){this.link=this.createLink(),this.appendLink()}},{key:"componentDidUpdate",value:function(e){JSON.stringify(e.fonts)!==JSON.stringify(this.props.fonts)&&this.replaceLink()}},{key:"componentWillUnmount",value:function(){this.removeLink()}}]),t}(s.default.PureComponent);p.propTypes={fonts:u.default.arrayOf(u.default.shape({font:u.default.string.isRequired,weights:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number]))})).isRequired,subsets:u.default.arrayOf(u.default.string)},t.default=p},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={imageSize:{type:"string",default:"full"},imageCrop:{type:"boolean",default:!0},title:{type:"string",source:"html",selector:".wp-block-getwid-person__title"},subtitle:{type:"string",source:"html",selector:".wp-block-getwid-person__subtitle"},content:{type:"string",source:"html",selector:".wp-block-getwid-person__content"},imgId:{type:"number"},imgUrl:{type:"string",source:"attribute",attribute:"src",selector:".wp-block-getwid-person__image img"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:".wp-block-getwid-person__image img"}};t.a=a},function(e,t,n){"use strict";var a={photoCount:{type:"number",default:6},gridColumns:{type:"number",default:3},showLikes:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},spacing:{type:"string",default:"default"},align:{type:"string"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=(n(0),n(1)),l=(n.n(a),window),i=(l.jQuery,wp.blockEditor||wp.editor),o=i.PlainText,r=wp.components.ToggleControl,c="getwid-field-label",s=function(e){var t=e.setAttributes,n=e.label,l=e.isSelected,i=e.required,s=e.requiredDefault;return wp.element.createElement("div",{className:"".concat(c)},wp.element.createElement(o,{value:n,className:"".concat(c,"__input"),onChange:function(e){return t({label:e})},placeholder:Object(a.__)("Write label…","getwid")}),l&&!s&&wp.element.createElement(r,{label:Object(a.__)("Required","getwid"),className:"".concat(c,"__required"),checked:i,onChange:function(e){return t({required:e})}}),!l&&i&&!s&&wp.element.createElement("span",{className:"required"},Object(a.__)("Required","getwid")),s&&wp.element.createElement("span",{className:"required"},Object(a.__)("Required","getwid")))};t.a=s},function(e,t,n){"use strict";var a=(n(0),n(69)),l=n(1),i=(n.n(l),window),o=(i.jQuery,wp.element.Fragment),r=wp.blockEditor||wp.editor,c=r.InspectorControls,s=wp.components,d=s.TextControl,u=s.PanelBody,p=function(e){var t=e.type,n=e.className,i=e.setAttributes,r=e.label,s=e.isSelected,p=e.required,m=e.requiredDefault,g=e.placeholder,b=e.id;return wp.element.createElement(o,null,wp.element.createElement("div",{className:"".concat(n)},wp.element.createElement(d,{type:t,label:wp.element.createElement(a.a,{label:r,required:p,isSelected:s,setAttributes:i,requiredDefault:m}),value:g,onChange:function(e){return i({placeholder:e})},title:Object(l.__)("Set the placeholder text","getwid")})),wp.element.createElement(c,null,wp.element.createElement(u,{title:Object(l.__)("Settings","getwid")},wp.element.createElement(d,{label:Object(l.__)("ID","getwid"),value:b,onChange:function(e){return i({id:e})}}))))};t.a=p},function(e,t,n){"use strict";function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];l("getwid/".concat(e),t),n.length&&n.forEach(function(e){l("getwid/".concat(e.name),e.settings)})}t.a=a;var l=wp.blocks.registerBlockType},function(e,t,n){"use strict";var a={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},align:{type:"string"},sliderSlidesToShowDesktop:{type:"string",default:"2"},sliderSlidesToShowLaptop:{type:"string",default:"1"},sliderSlidesToShowTablet:{type:"string",default:"1"},sliderSlidesToShowMobile:{type:"string",default:"1"},sliderSlidesToScroll:{type:"string",default:"1"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",default:6e3},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",default:800},sliderCenterMode:{type:"boolean",default:!1},sliderSpacing:{type:"string",default:"small"},sliderArrows:{type:"string",default:"inside"},sliderDots:{type:"string",default:"outside"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},minHeight:{type:"string"},align:{type:"string"},textAlignment:{type:"string",default:"left"},sliderAnimationEffect:{type:"string",default:"slide"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",default:"6000"},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",default:"800"},sliderArrows:{type:"string",default:"inside"},sliderDots:{type:"string",default:"inside"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a={titleColor:{type:"string"},customTitleColor:{type:"string"},iconColor:{type:"string"},customIconColor:{type:"string"},buttonColorHEX:{type:"string"},buttonColor:{type:"string"},customButtonColor:{type:"string"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-video-popup__source",attribute:"src"},title:{type:"string",source:"html",selector:".wp-block-getwid-video-popup__title"},link:{type:"string"},align:{type:"string"},minHeight:{type:"string"},buttonMaxWidth:{type:"string"},overlayOpacity:{type:"number",default:35},imageAnimation:{type:"string",default:"none"},buttonStyle:{type:"string",default:"default"},buttonAnimation:{type:"string",default:"none"},buttonSize:{type:"string",default:"default"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a={imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot__wrapper img",attribute:"src"},alt:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot__wrapper img",attribute:"alt"},tooltipTrigger:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-trigger",default:"click"},tooltipTheme:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-theme",default:"light"},tooltipArrow:{type:"boolean",default:!0},tooltipAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-tooltip-animation",default:"shift-toward"},dotIcon:{type:"string",default:"fas fa-plus"},dotSize:{type:"number",default:16},dotPaddings:{type:"number",default:6},dotColor:{type:"string"},dotBackground:{type:"string"},dotOpacity:{type:"number",default:100},dotPulse:{type:"string",default:"pulse"},dotAppearanceAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-appearance-animation",default:"none"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-animation",default:""},imagePoints:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-image-points",default:""}};t.a=a},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return G});var a=n(41),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(8),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(11)),O=(n.n(E),n(435)),j=n(436),S=(n.n(j),wp.compose.compose),x=wp.data,T=x.withSelect,N=x.withDispatch,A=wp.blockEditor||wp.editor,M=A.withColors,B=A.InnerBlocks,I=A.getColorObjectByAttributeValues,L=wp.element,P=L.Component,z=L.Fragment,R=L.createContext,D=wp.components.IconButton,V=wp.blocks.createBlock,F=window,H=F.jQuery,W=["getwid/content-timeline-item"],U=R(),G=U.Consumer,q=U.Provider,Q=function(e){function t(){var e;return p()(this,t),e=w()(this,f()(t).apply(this,arguments)),e.updateLineHeight=e.updateLineHeight.bind(v()(e)),e.updateBarHeight=e.updateBarHeight.bind(v()(e)),e.setColorByScroll=e.setColorByScroll.bind(v()(e)),e.changeState=e.changeState.bind(v()(e)),e.addItem=e.addItem.bind(v()(e)),e.state={isLockedPaddings:!1},e}return k()(t,e),g()(t,[{key:"changeState",value:function(e,t){this.setState(d()({},e,t))}},{key:"getColor",value:function(){var e=this.props.getEditorSettings,t=this.props.attributes,n=t.fillColor,a=t.customFillColor;if(n){var l=Object(E.get)(e(),["colors"],[]);return I(l,n).color}if(a)return a}},{key:"render",value:function(){var e=this,t=this.changeState,n=this.state.isLockedPaddings,a=this.props,l=a.className,i=a.baseClass,r=this.getColor(),s={style:{backgroundColor:r||void 0}};return wp.element.createElement(z,null,wp.element.createElement(O.a,o()({},c()({},this.props,{isLockedPaddings:n},{changeState:t}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(l)},wp.element.createElement("div",{className:"".concat(i,"__line")},wp.element.createElement("div",o()({className:"".concat(i,"__bar")},s))),wp.element.createElement(q,{value:this},wp.element.createElement(B,{templateInsertUpdatesSelection:!1,allowedBlocks:W,template:[["getwid/content-timeline-item"]],templateLock:!1,renderAppender:function(){return wp.element.createElement("div",{className:"".concat(i,"__add-item")},wp.element.createElement(D,{icon:"insert",onClick:e.addItem,label:Object(C.__)("Add Item","getwid")}))}}))))}},{key:"addItem",value:function(){var e,t=this.props,n=t.insertBlock,a=t.getBlock,l=t.clientId,i=a(l);if(i){var o=V("getwid/content-timeline-item");e=i.innerBlocks,n(o,e.length,l)}}},{key:"componentDidUpdate",value:function(e,t){var n,a=this,l=this.props.clientId,i=this.props,o=i.getBlock,r=i.updateBlockAttributes,c=o(l);c&&(n=c.innerBlocks);var s=H("#block-".concat(l)),d=this.props.attributes,u=d.backgroundColor,p=d.customBackgroundColor,m=this.props.attributes,g=m.paddingTop,b=m.paddingBottom,w=m.paddingLeft,h=m.paddingRight,f=m.animation,_=this.props.attributes,v=_.horizontalSpace,y=_.marginBottom,k=this.getColor();n&&n.length&&H.each(n,function(e,t){r(t.clientId,{outerParent:{attributes:{backgroundColor:u,customBackgroundColor:p,paddingTop:g,paddingBottom:b,paddingLeft:w,paddingRight:h,horizontalSpace:v,marginBottom:y,pointColor:k,animation:f}}})});var C=this.props.attributes.filling;if(!Object(E.isEqual)(e.attributes.filling,C)){var O=H(".edit-post-layout").find("div[class$=__content]");if(H.parseJSON(C)){var j=function(){a.setColorByScroll(s),a.updateBarHeight(s)};j(),O.scroll(function(){j()})}else O.off(),this.disableFilling(s)}var S=this.props.attributes,x=S.fillColor,T=S.customFillColor;if(!Object(E.isEqual)(e.attributes.fillColor,x)||!Object(E.isEqual)(e.attributes.customFillColor,T)){var N=s.find("div[class$=__point]"),A=this.getColor();H.each(N,function(e,t){H(t).offset().top<=H(window).height()/2&&H(t).find(":first-child").css({borderColor:A||""})})}}},{key:"updateLineHeight",value:function(){var e=this.props.clientId,t=H("#block-".concat(e)),n=t.find("div[class$=__point]"),a=0;H.each(n,function(e,t){n[e+1]&&(a+=H(n[e+1]).offset().top-H(t).offset().top)});var l=t.find("div[class$=__line]"),i=t.find("div[class*=__wrapper]")[0],o=parseFloat(H(i).css("height"))/2;l.css({height:a,top:o})}},{key:"updateBarHeight",value:function(e){var t=e.find("div[class$=__point]"),n=e.find("div[class$=__bar]"),a=n.offset().top,i=H(window).height()/2,o=t.toArray(),r=l()(o),c=r[0],s=r.slice(1);if(c){var d=i-H(c).offset().top;if(s.length){var u=s.slice(-1).pop(),p=H(u).offset().top;a<=i&&p>=i&&n.css({height:d}),a>=i&&n.css({height:0}),p<=i&&(this.updateLineHeight(),n.css({height:"100%"}))}}}},{key:"setColorByScroll",value:function(e){var t=this,n=this.props.baseClass,a=e.find("div[class$=__point]"),i=a.get(),o=l()(i),r=(o[0],o.slice(1));r.length&&H.each(a,function(e,a){var l=H(a).offset().top,i=H(a).parents(".".concat(n,"-item"))[0],o=t.getColor(),r=H(a).height()/2;l<=H(window).height()/2+r?(H(i).hasClass("is-active")||H(i).addClass("is-active"),H(a).find(":first-child").css({borderColor:o||""})):(H(i).hasClass("is-active")&&H(i).removeClass("is-active"),H(a).find(":first-child").css({borderColor:""}))}),r.length||this.disableFilling(e)}},{key:"disableFilling",value:function(e){e.find("div[class$=__bar]").css({height:0})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.clientId,n=H("#block-".concat(t)),a=this.props.attributes.filling;H.parseJSON(a)&&(this.waitLoadMarkup=setInterval(function(){n.find("div[class*=__wrapper]").length&&(H(".edit-post-layout").find("div[class$=__content]").scroll(function(){e.setColorByScroll(n),e.updateBarHeight(n)}),clearInterval(e.waitLoadMarkup))},1)),this.waitLoadContent=setInterval(function(){if("complete"==document.readyState){e.updateLineHeight();var t=e.props.className,a=n.find(".".concat(t)),l=e.props.attributes.filling;H.parseJSON(l)&&(e.setColorByScroll(n),e.updateBarHeight(n)),e.mutationObserver=new MutationObserver(function(t){H.each(t,function(t,a){if("childList"==a.type&&(a.addedNodes.length||a.removedNodes.length)){var l,i=a.addedNodes.length?a.addedNodes[0]:a.removedNodes[0],o=e.props,r=o.getBlock,c=o.clientId,s=r(c);if(s&&(l=s.innerBlocks),l&&l.length&&(H(i).is("div[class*=__block]")||H(i).is("div[class*=__image-wrapper]"))){e.updateLineHeight();var d=e.props.attributes.filling;H.parseJSON(d)&&(e.setColorByScroll(n),e.updateBarHeight(n))}}})}),e.mutationObserver.observe(a.get(0),{childList:!0,subtree:!0}),clearInterval(e.waitLoadContent)}},1)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.className,n=e.clientId,a=H("#block-".concat(n)),l=a.find(".".concat(t));this.mutationObserver.disconnect(l.get(0)),H(".edit-post-layout").find("div[class$=__content]").off()}}]),t}(P);t.b=S([T(function(e,t){var n=e("core/editor"),a=n.getBlock;return{getEditorSettings:n.getEditorSettings,getBlock:a}}),N(function(e,t){var n=e("core/editor"),a=n.updateBlockAttributes;return{insertBlock:n.insertBlock,updateBlockAttributes:a}}),M("fillColor","backgroundColor")])(Q)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=(n(80),n(453),n(454)),l=(n.n(a),n(455));n.n(l)},function(e,t,n){"use strict";n(81),n(128),n(150),n(158),n(164),n(169),n(175),n(181),n(187),n(193),n(201),n(207),n(213),n(224),n(231),n(238),n(245),n(252),n(260),n(267),n(272),n(279),n(285),n(293),n(301),n(307),n(318),n(323),n(329),n(337),n(410),n(415),n(421),n(427),n(433),n(446)},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=(n(0),n(1)),c=(n.n(r),n(90)),s=n(124),d=n(24),u=n(13),p=n(125),m=n(43),g=n(126),b=(n.n(g),n(127)),w=(n.n(b),wp.blocks.registerBlockType),h=d.a.prepareGradientStyle,f=d.a.prepareBackgroundImageStyles,_=d.a.convertHorizontalAlignToStyle,v=d.a.convertVerticalAlignToStyle;w("getwid/section",o()({title:Object(r.__)("Section","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M13,0v24h11V0H13z M22,22h-7V2h7V22z"}),wp.element.createElement("path",{d:"M0,0v11h11V0H0z M9,9H2V2h7V9z"}),wp.element.createElement("path",{d:"M0,13v11h11V13H0z M9,22H2v-7h7V22z"})),category:"getwid-blocks",keywords:[Object(r.__)("container","getwid"),Object(r.__)("wrapper","getwid"),Object(r.__)("row","getwid")],supports:{anchor:!0,inserter:!Getwid.disabled_blocks.includes("getwid/section")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:o()({},m.a,{foregroundImage:{type:"string"}}),isEligible:function(e,t){return!0},migrate:function(e){return o()({},e,e.foregroundImage?[{foregroundImage:{id:void 0,alt:void 0,url:e.foregroundImage}}]:[])},save:p.a}],attributes:m.a},Object(u.b)("getwid/section",function(e){return wp.element.createElement(c.a,l()({},o()({},e,{baseClass:"wp-block-getwid-section",prepareGradientStyle:h,prepareBackgroundImageStyles:f,convertHorizontalAlignToStyle:_,convertVerticalAlignToStyle:v}),{key:"edit"}))}),{save:s.a}))},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=a},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}t.a=a},function(e,t,n){"use strict";var a=n(26);n.n(a)},function(e,t,n){"use strict";var a=n(11);n.n(a)},function(e,t,n){"use strict";var a=(n(32),n(33),n(87),n(11)),l=(n.n(a),n(88),n(31)),i=(n(42),Object(l.c)());i.Provider,i.Consumer,new Set(["string","boolean","number"]),new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"])},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return(l="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)})(e)}t.a=l},function(e,t,n){"use strict";function a(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function l(e){return e.replace(/"/g,""")}function i(e){return e.replace(/</g,"<")}function o(e){return Object(s.a)(l(a(e)))}function r(e){return i(a(e))}function c(e){return!d.test(e)}t.a=o,t.b=r,t.c=c;var s=n(89),d=/[\u007F-\u009F "'>\/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";function a(e){return e.replace(/>/g,">")}t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(20),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(7)),O=n.n(E),j=n(11),S=(n.n(j),n(43)),x=n(34),T=n(35),N=n(93),A=n(94),M=n(36),B=n(14),I=n(13),L=n(114),P=wp.hooks.addFilter,z=wp.element,R=z.Component,D=z.Fragment,V=wp.data,F=V.select,H=V.withSelect,W=wp.components,U=W.Button,G=W.IconButton,q=W.SelectControl,Q=(W.ButtonGroup,W.BaseControl,W.Dashicon),K=W.Tooltip,J=W.Toolbar,Z=W.DropdownMenu,$=W.Path,Y=W.SVG,X=wp.blockEditor||wp.editor,ee=X.InnerBlocks,te=X.withColors,ne=X.BlockControls,ae=X.BlockAlignmentToolbar,le=(X.MediaPlaceholder,X.MediaUpload,X.PanelColorSettings),ie=wp.compose.compose,oe=window,re=oe.jQuery,ce=[],se="wp-block-getwid-section";P("blocks.getSaveElement","getwid/set-skip-layout-attribute",function(e,t,n){return n.align&&(n.skipLayout=!0),e});var de=function(e){function t(e){var n;return p()(this,t),n=w()(this,f()(t).call(this,e)),n.videoRef=null,n.videoButtonRef=null,n.state={draggablesObj:{},showRullers:!0,videoPlayState:"paused",videoMuteState:!0,isLockedPaddingsOnDesktop:!1,isLockedPaddingsOnTablet:!1,isLockedPaddingsOnMobile:!1,isLockedMarginsOnDesktop:!1,isLockedMarginsOnTablet:!1,isLockedMarginsOnMobile:!1},n.playBackgroundVideo=n.playBackgroundVideo.bind(v()(n)),n.onBackgroundVideoEnd=n.onBackgroundVideoEnd.bind(v()(n)),n.muteBackgroundVideo=n.muteBackgroundVideo.bind(v()(n)),n.changeState=n.changeState.bind(v()(n)),n}return k()(t,e),g()(t,[{key:"changeState",value:function(e,t){"object"==d()(e)?this.setState(e):"string"==typeof e&&this.setState(c()({},e,t))}},{key:"render",value:function(){var e,t,n=this,a=this.props.attributes,i=a.align,r=a.minHeight,s=a.gapSize,d=a.anchor,u=a.customBackgroundColor,p=this.props.attributes,m=p.resetMinHeightTablet,g=p.resetMinHeightMobile,b=p.sliderImages,w=p.backgroundVideoUrl,h=this.props.attributes,f=h.backgroundVideoControlsPosition,_=h.foregroundOpacity,v=h.foregroundColor,y=h.foregroundFilter,k=h.dividersBringTop,E=this.props.attributes,I=E.contentMaxWidth,P=E.contentMaxWidthPreset,z=E.entranceAnimation,R=E.entranceAnimationDuration,V=E.entranceAnimationDelay,H=this.props.attributes,W=H.backgroundImage,X=H.backgroundImagePosition,te=H.backgroundImageAttachment,ie=H.backgroundImageRepeat,oe=H.backgroundImageSize,de=this.props.attributes,ue=de.paddingTopValue,pe=de.paddingBottomValue,me=de.paddingLeftValue,ge=de.paddingRightValue,be=de.marginTopValue,we=de.marginBottomValue,he=de.marginLeftValue,fe=de.marginRightValue,_e=this.props.attributes,ve=_e.paddingTop,ye=_e.paddingRight,ke=_e.paddingBottom,Ce=_e.paddingLeft,Ee=this.props.attributes,Oe=Ee.paddingTopTablet,je=Ee.paddingRightTablet,Se=Ee.paddingBottomTablet,xe=Ee.paddingLeftTablet,Te=this.props.attributes,Ne=Te.paddingTopMobile,Ae=Te.paddingRightMobile,Me=Te.paddingBottomMobile,Be=Te.paddingLeftMobile,Ie=this.props.attributes,Le=Ie.marginTop,Pe=Ie.marginRight,ze=Ie.marginBottom,Re=Ie.marginLeft,De=this.props.attributes,Ve=De.marginTopTablet,Fe=De.marginRightTablet,He=De.marginBottomTablet,We=De.marginLeftTablet,Ue=this.props.attributes,Ge=Ue.verticalAlign,qe=Ue.verticalAlignTablet,Qe=Ue.verticalAlignMobile,Ke=Ue.horizontalAlign,Je=Ue.horizontalAlignTablet,Ze=Ue.horizontalAlignMobile,$e=this.props.attributes,Ye=$e.marginTopMobile,Xe=$e.marginRightMobile,et=$e.marginBottomMobile,tt=$e.marginLeftMobile,nt=this.props,at=nt.className,lt=nt.backgroundColor,it=nt.setBackgroundColor,ot=nt.prepareGradientStyle,rt=nt.prepareBackgroundImageStyles,ct=nt.setAttributes,st=nt.isSelected,dt=this.state.showRullers,ut=this.state,pt=ut.isLockedPaddingsOnDesktop,mt=ut.isLockedPaddingsOnTablet,gt=ut.isLockedPaddingsOnMobile,bt=this.state,wt=bt.isLockedMarginsOnDesktop,ht=bt.isLockedMarginsOnTablet,ft=bt.isLockedMarginsOnMobile,_t=this.changeState,vt=this.props.clientId,yt=o()({},"custom"===Le?{marginTop:be}:[],"custom"===ze?{marginBottom:we}:[]),kt=o()({minHeight:r},"custom"===Re?{marginLeft:he}:[],"custom"===Pe?{marginRight:fe}:[],"custom"===ve?{paddingTop:ue}:[],"custom"===ke?{paddingBottom:pe}:[],"custom"===Ce?{paddingLeft:me}:[],"custom"===ye?{paddingRight:ge}:[]),Ct=O()("".concat(se,"__wrapper"),(e={},c()(e,"getwid-padding-top-".concat(ve),"custom"!==ve&&""!==ve),c()(e,"getwid-padding-bottom-".concat(ke),"custom"!==ke&&""!==ke),c()(e,"getwid-padding-left-".concat(Ce),"custom"!==Ce&&""!==Ce),c()(e,"getwid-padding-right-".concat(ye),"custom"!==ye&&""!==ye),c()(e,"getwid-padding-tablet-top-".concat(Oe),""!==Oe),c()(e,"getwid-padding-tablet-bottom-".concat(Se),""!==Se),c()(e,"getwid-padding-tablet-left-".concat(xe),""!==xe),c()(e,"getwid-padding-tablet-right-".concat(je),""!==je),c()(e,"getwid-padding-mobile-top-".concat(Ne),""!==Ne),c()(e,"getwid-padding-mobile-bottom-".concat(Me),""!==Me),c()(e,"getwid-padding-mobile-left-".concat(Be),""!==Be),c()(e,"getwid-padding-mobile-right-".concat(Ae),""!==Ae),c()(e,"getwid-margin-left-".concat(Re),"custom"!==Re&&""!==Re),c()(e,"getwid-margin-right-".concat(Pe),"custom"!==Pe&&""!==Pe),c()(e,"getwid-margin-tablet-left-".concat(We),""!==We),c()(e,"getwid-margin-tablet-right-".concat(Fe),""!==Fe),c()(e,"getwid-margin-mobile-left-".concat(tt),""!==tt),c()(e,"getwid-margin-mobile-right-".concat(Xe),""!==Xe),c()(e,"getwid-align-items-".concat(Ge),"center"!==Ge),c()(e,"getwid-align-items-tablet-".concat(qe),""!==qe),c()(e,"getwid-align-items-mobile-".concat(Qe),""!==Qe),c()(e,"getwid-justify-content-".concat(Ke),"center"!==Ke),c()(e,"getwid-justify-content-tablet-".concat(Je),""!==Je),c()(e,"getwid-justify-content-mobile-".concat(Ze),""!==Ze),c()(e,"getwid-reset-min-height-tablet",!1!==m),c()(e,"getwid-reset-min-height-mobile",!1!==g),e)),Et=o()({backgroundColor:lt.color?lt.color:u},ot("background",this.props),rt("background",this.props)),Ot=O()("".concat(se,"__background"),c()({"has-background":lt.color},lt.class,lt.class)),jt=o()({opacity:void 0!==_?_/100:void 0,backgroundColor:v},ot("foreground",this.props),rt("foreground",this.props),{mixBlendMode:y}),St={maxWidth:I&&"custom"===P?"".concat(I,"px"):void 0},xt=z?{"data-wow-duration":void 0!==R?R:"2000ms","data-wow-delay":void 0!==V?V:"500ms"}:{},Tt=O()(at,"".concat(se,"-").concat(vt),(t={},c()(t,"has-inner-blocks-gap-".concat(s),void 0!==s&&""!==s),c()(t,"getwid-margin-top-".concat(Le),"custom"!==Le&&""!==Le),c()(t,"getwid-anim ".concat(z),!!z),c()(t,"getwid-margin-bottom-".concat(ze),"custom"!==ze&&""!==ze),c()(t,"getwid-margin-tablet-top-".concat(Ve),"custom"!==Ve&&""!==Ve),c()(t,"getwid-margin-tablet-bottom-".concat(He),"custom"!==He&&""!==He),c()(t,"getwid-margin-mobile-top-".concat(Ye),"custom"!==Ye&&""!==Ye),c()(t,"getwid-margin-mobile-bottom-".concat(et),"custom"!==et&&""!==et),c()(t,"getwid-section-content-full-width","full"===P),c()(t,"getwid-section-content-custom-width","custom"===P),t)),Nt=d||void 0,At=[{title:Object(C.__)("Wide Screen. Section full width, content fixed.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M41,32.99v-2.13v-0.71v-3.53v-0.71v-3.53v-0.71v-3.53v-0.71v-2.42c0-0.32-0.08-0.62-0.22-0.9l0,0c0,0,0,0,0,0\tc-0.33-0.66-1-1.11-1.79-1.11h-1.33h-0.71H33.4h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H12.2h-0.71H9.01\tC7.9,13,7,13.9,7,15.01v2.48v0.71v3.53v0.71v3.53v0.71v3.53v0.71v2.07c0,0.41,0.13,0.8,0.34,1.12l0,0c0,0,0,0,0,0\tc0.09,0.14,0.21,0.26,0.33,0.37l0,0l0,0C8.03,34.8,8.5,35,9.01,35h1.68h0.71h3.55h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71\th3.53h0.71h2.13C40.1,35,41,34.1,41,32.99z M38.99,23.68L37,25.67v-3.53l1.99-1.99V23.68z M38.99,19.44L37,21.43v-0.42\tc0-0.84-0.52-1.56-1.25-1.86l3.24-3.24V19.44z M38.99,15v0.2l-3.82,3.82h0C35.11,19.01,35.05,19,34.99,19h-3.33l4-4H38.99z\t M13,26.99L13.01,21h21.98v6L13,26.99z M34.95,15l-4,4H27.4l4-4H34.95z M30.69,15l-4,4h-3.53l4-4H30.69z M26.45,15l-4,4h-3.53l4-4\tH26.45z M22.21,15l-4,4h-3.53l4-4H22.21z M9.01,15h0.48l-0.48,0.48L9.01,15z M9.01,16.19L10.2,15h3.53l-4.72,4.72L9.01,16.19z\t M9.01,20.43L14.44,15h3.53l-4,4h-0.96C11.9,19,11,19.9,11,21.01v0.96l-1.99,1.99L9.01,20.43z M9,24.67l2-2v3.53l-2,2L9,24.67z\t M9,28.92l2-2v0.07c0,0.94,0.65,1.72,1.52,1.94L9,32.45L9,28.92z M9.17,32.99L13.16,29h3.53l-3.99,3.99L9.17,32.99z M13.41,32.99\tL17.4,29h3.55l-3.99,3.99L13.41,32.99z M17.66,32.99L21.66,29h3.53l-3.99,3.99L17.66,32.99z M21.9,32.99L25.9,29h3.53l-4,4\tL21.9,32.99z M26.14,33l4-4h3.53l-4,4L26.14,33z M30.38,33l4-4h0.61C36.1,29,37,28.1,37,26.99v-0.61l1.99-1.99v3.53L33.91,33\tL30.38,33z M34.62,33l4.37-4.37v3.53L38.15,33L34.62,33z M38.86,33l0.13-0.13V33L38.86,33z"}),wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"})),layout:function(){ct({align:"full",skipLayout:!0})}},{title:Object(C.__)("Full Width. Section and content full width.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M41,32.99v-2.13v-0.71V29V19v-3.99c0-0.32-0.08-0.62-0.22-0.9l0,0c0,0,0,0,0,0c-0.33-0.66-1-1.11-1.79-1.11h-1.33h-0.71\tH33.4h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H12.2h-0.71H9.01C7.9,13,7,13.9,7,15.01v2.48v0.71V19v10v1.21v0.71\tv2.07c0,0.41,0.13,0.8,0.34,1.12l0,0c0,0,0,0,0,0c0.09,0.14,0.21,0.26,0.33,0.37l0,0l0,0C8.03,34.8,8.5,35,9.01,35h1.68h0.71h3.55\th0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h2.13C40.1,35,41,34.1,41,32.99z M9.01,21h29.98v6H9L9.01,21z M38.99,19\tH35.9l3.09-3.09V19z M38.99,15v0.2l-3.8,3.8h-3.53l4-4H38.99z M34.95,15l-4,4H27.4l4-4H34.95z M30.69,15l-4,4h-3.53l4-4H30.69z\t M26.45,15l-4,4h-3.53l4-4H26.45z M22.21,15l-4,4h-3.53l4-4H22.21z M17.97,15l-4,4h-3.53l4-4H17.97z M9.01,15h0.48l-0.48,0.48\tL9.01,15z M9.01,16.19L10.2,15h3.53l-4,4H9.01L9.01,16.19z M9,29h3.45L9,32.45L9,29z M9.17,32.99L13.16,29h3.53l-3.99,3.99\tL9.17,32.99z M13.41,32.99L17.4,29h3.55l-3.99,3.99L13.41,32.99z M17.66,32.99L21.66,29h3.53l-3.99,3.99L17.66,32.99z M21.9,32.99\tL25.9,29h3.53l-4,4L21.9,32.99z M26.14,33l4-4h3.53l-4,4L26.14,33z M30.38,33l4-4h3.53l-4,4L30.38,33z M34.62,33l4-4h0.37v3.16\tL38.15,33L34.62,33z M38.86,33l0.13-0.13V33L38.86,33z"}),wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"})),layout:function(){ct({align:"full",contentMaxWidthPreset:"full",skipLayout:!0})}},{title:Object(C.__)("Full Screen. Section full screen, content fixed.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"}),wp.element.createElement("path",{d:"M39.38,40.96c0.8-0.16,1.42-0.78,1.58-1.58l0,0c0.02-0.13,0.04-0.26,0.04-0.39v-0.36V35.1v-0.71v-3.53v-0.71v-3.53v-0.71\tv-3.53v-0.71v-3.53v-0.71V13.9v-0.71V9.66V9.01c0-0.02-0.01-0.04-0.01-0.06l0,0C40.97,8,40.28,7.21,39.36,7.04l0,0\tC39.24,7.01,39.12,7,38.99,7h-0.3h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H18.2h-0.71h-3.53h-0.71H9.01C7.9,7,7,7.9,7,9.01\tv4.24v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.3c0,0.13,0.01,0.25,0.04,0.37l0,0\tc0.17,0.91,0.96,1.6,1.92,1.63l0,0c0.02,0,0.04,0.01,0.06,0.01h0.65h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71\th3.53h0.36C39.12,41,39.25,40.99,39.38,40.96L39.38,40.96z M38.99,23.68L37,25.67v-3.53l1.99-1.99V23.68z M38.99,19.44L37,21.43\tv-0.42c0-0.84-0.52-1.56-1.25-1.86l3.24-3.24V19.44z M38.99,15.2l-3.82,3.82h0C35.11,19.01,35.05,19,34.99,19h-3.33l7.33-7.33V15.2z\t M13,26.99L13.01,21h21.98v6L13,26.99z M38.99,9v1.96L30.95,19H27.4l10-10H38.99z M36.69,9l-10,10h-3.53l10-10H36.69z M32.45,9\tl-10,10h-3.53l10-10H32.45z M28.21,9l-10,10h-3.53l10-10H28.21z M9.01,9h2.24l-2.24,2.24L9.01,9z M9.01,11.95L11.96,9h3.53\tl-6.48,6.48L9.01,11.95z M9.01,16.19L16.2,9h3.53L9.01,19.72L9.01,16.19z M9.01,20.43L20.44,9h3.53l-10,10h-0.96\tC11.9,19,11,19.9,11,21.01v0.96l-1.99,1.99L9.01,20.43z M9,24.67l2-2v3.53l-2,2L9,24.67z M9,28.92l2-2v0.07\tc0,0.94,0.65,1.72,1.52,1.94L9,32.45L9,28.92z M9,33.16L13.16,29h3.53L9,36.69L9,33.16z M9,38.99l0-1.59l8.4-8.4h3.55l-9.99,9.99\tL9,38.99z M11.66,38.99L21.66,29h3.53l-9.99,9.99L11.66,38.99z M15.9,38.99L25.9,29h3.53l-9.99,9.99L15.9,38.99z M20.14,38.99\tL30.14,29h3.53l-9.99,9.99L20.14,38.99z M24.38,39l10-10h0.61C36.1,29,37,28.1,37,26.99v-0.61l1.99-1.99v3.53L27.91,39L24.38,39z\t M28.62,39l10.37-10.37v3.53L32.15,39L28.62,39z M32.86,39l6.13-6.13v3.53l-2.6,2.6L32.86,39z M37.1,39l1.89-1.89V39L37.1,39z"})),layout:function(){ct({align:"full",minHeight:"100vh",skipLayout:!0})}}],Mt=["flex-start","center","flex-end"],Bt={"flex-start":{title:Object(C.__)("Top","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}))},center:{title:Object(C.__)("Middle","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"}))},"flex-end":{title:Object(C.__)("Bottom","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"}))}},It=["flex-start","center","flex-end"],Lt={"flex-start":{title:Object(C.__)("Left","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M2,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C2.45,16,2,15.55,2,15z"}),wp.element.createElement("path",{d:"M6,10l3,3v-2h8c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H9V7L6,10z"}))},center:{title:Object(C.__)("Center","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M9,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C9.45,16,9,15.55,9,15z"}),wp.element.createElement("path",{d:"M12,10l3,3v-2h2c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1h-2V7L12,10z"}),wp.element.createElement("path",{d:"M8,10l-3,3v-2H3c-0.55,0-1-0.45-1-1v0c0-0.55,0.45-1,1-1h2V7L8,10z"}))},"flex-end":{title:Object(C.__)("Right","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M16,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C16.45,16,16,15.55,16,15z"}),wp.element.createElement("path",{d:"M14,10l-3,3v-2H3c-0.55,0-1-0.45-1-1v0c0-0.55,0.45-1,1-1h8V7L14,10z"}))}},Pt=F("core/block-editor"),zt=Pt.getBlockRootClientId,Rt=!1,Dt=zt(vt);Dt&&(Rt=Dt.length>0);var Vt=F("core/block-editor").getBlocks(vt).length>0,Ft=!1;re.each(this.props.attributes,function(e,t){if(Object(j.has)(S.a,[e,"default"])&&!Object(j.isEqual)(t,S.a[e].default))return Ft=!0,!1});var Ht=this.props.attributes.skipLayout,Wt=W?W.url:void 0,Ut=W?W.id:void 0,Gt=void 0==Dt||null==Dt||Ht;return wp.element.createElement(D,null,Vt||0!=Gt||Ft||Rt||!Getwid.settings.wide_support?wp.element.createElement(D,null,wp.element.createElement(ne,null,wp.element.createElement(ae,{value:i,isCollapsed:!1,controls:["wide","full"],onChange:function(e){return ct({align:e})}}),wp.element.createElement(Z,{icon:Bt[Ge].icon,hasArrowIndicator:!0,className:"components-toolbar",label:Object(C.__)("Content Area Vertical Alignment","getwid"),controls:Mt.map(function(e){return o()({},Bt[e],{isActive:Ge===e,onClick:function(){ct({verticalAlign:e})}})})}),wp.element.createElement(Z,{icon:Lt[Ke].icon,hasArrowIndicator:!0,className:"components-toolbar",label:Object(C.__)("Content Area Horizontal Alignment","getwid"),controls:It.map(function(e){return o()({},Lt[e],{isActive:Ke===e,onClick:function(){ct({horizontalAlign:e})}})})}),wp.element.createElement(A.a,{className:"components-dropdown-menu components-toolbar",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(G,{className:"components-button components-icon-button components-dropdown-menu__toggle",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",width:"20",height:"20"},wp.element.createElement("path",{d:"M3,16h14c0.55,0,1,0.45,1,1v0c0,0.55-0.45,1-1,1H3c-0.55,0-1-0.45-1-1v0C2,16.45,2.45,16,3,16z"}),wp.element.createElement("path",{d:"M9.05,13.95L13.3,9.7c0.39-0.39,0.39-1.02,0-1.41L9.05,4.05L8.34,3.34L7.63,2.63c-0.39-0.39-1.02-0.39-1.41,0L6.22,2.64\tc-0.39,0.39-0.39,1.02,0,1.41l0.7,0.7L3.39,8.3C3,8.69,3,9.31,3.39,9.7l4.24,4.25C8.02,14.34,8.66,14.34,9.05,13.95z M9.04,6.87\tL11.17,9H5.51l2.13-2.13C8.02,6.49,8.66,6.49,9.04,6.87z"}),wp.element.createElement("path",{d:"M13,13c0,0.55,0.45,1,1,1s1-0.45,1-1s-1-3-1-3S13,12.45,13,13z"})),onClick:t})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(D,null,wp.element.createElement("div",{class:"components-getwid-toolbar-popup-wrapper-close small-icon"},wp.element.createElement(G,{icon:"no-alt",className:"getwid-popover-close-button",onClick:function(){t(!0)}})),wp.element.createElement(le,{title:Object(C.__)("Colors","getwid"),initialOpen:!0,className:"getwid-custom-pallete",colorSettings:[{value:lt.color,onChange:it,label:Object(C.__)("Background Color","getwid")}]}))}}),wp.element.createElement(A.a,{className:"components-dropdown-menu components-toolbar",contentClassName:"getwid-popover-wrapper",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(G,{className:"components-button components-icon-button components-dropdown-menu__toggle",icon:"format-image",onClick:t})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(D,null,wp.element.createElement("div",{class:"components-getwid-toolbar-popup-wrapper-close small-icon"},wp.element.createElement(G,{icon:"no-alt",className:"getwid-popover-close-button",onClick:function(){t(!0)}})),wp.element.createElement(B.d,{label:Object(C.__)("Background Image","getwid"),url:Wt,id:Ut,onSelectMedia:function(e){ct({backgroundImage:void 0!==e?Object(j.pick)(e,["alt","id","url"]):{}}),t(!0)},onRemoveMedia:function(){return ct({backgroundImage:void 0})}}),!!W&&wp.element.createElement(D,null,wp.element.createElement(q,{label:Object(C.__)("Position","getwid"),value:void 0!==X?X:"",onChange:function(e){return ct({backgroundImagePosition:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"top left",label:Object(C.__)("Top Left","getwid")},{value:"top center",label:Object(C.__)("Top Center","getwid")},{value:"top right",label:Object(C.__)("Top Right","getwid")},{value:"center left",label:Object(C.__)("Center Left ","getwid")},{value:"center center",label:Object(C.__)("Center Center","getwid")},{value:"center right",label:Object(C.__)("Center Right","getwid")},{value:"bottom left",label:Object(C.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(C.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(C.__)("Bottom Right","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Attachment","getwid"),value:void 0!==te?te:"",onChange:function(e){return ct({backgroundImageAttachment:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"scroll",label:Object(C.__)("Scroll","getwid")},{value:"fixed",label:Object(C.__)("Fixed","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Repeat","getwid"),value:void 0!==ie?ie:"",onChange:function(e){return ct({backgroundImageRepeat:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"no-repeat",label:Object(C.__)("No Repeat","getwid")},{value:"repeat",label:Object(C.__)("Repeat","getwid")},{value:"repeat-x",label:Object(C.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(C.__)("Repeat Y","getwid")},{value:"space",label:Object(C.__)("Space","getwid")},{value:"round",label:Object(C.__)("Round","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Size","getwid"),value:void 0!==oe?oe:"",onChange:function(e){return ct({backgroundImageSize:e})},options:[{value:"",label:Object(C.__)("Cover","getwid")},{value:"contain",label:Object(C.__)("Contain","getwid")},{value:"auto",label:Object(C.__)("Auto","getwid")}]})))}}),wp.element.createElement(J,{controls:[{icon:wp.element.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M24.4003906,22.5996094H7.5996094c-0.5527344,0-1-0.4472656-1-1V10.4003906c0-0.5527344,0.4472656-1,1-1h16.8007813 c0.5527344,0,1,0.4472656,1,1v11.1992188C25.4003906,22.1523438,24.953125,22.5996094,24.4003906,22.5996094z M8.5996094,20.5996094h14.8007813v-9.1992188H8.5996094V20.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2,11.5996094c-0.5527344,0-1-0.4472656-1-1V5c0-0.5527344,0.4472656-1,1-1h5.5996094c0.5527344,0,1,0.4472656,1,1 s-0.4472656,1-1,1H3v4.5996094C3,11.1523438,2.5527344,11.5996094,2,11.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M30,11.5996094c-0.5527344,0-1-0.4472656-1-1V6h-4.5996094c-0.5527344,0-1-0.4472656-1-1s0.4472656-1,1-1H30 c0.5527344,0,1,0.4472656,1,1v5.5996094C31,11.1523438,30.5527344,11.5996094,30,11.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M7.5996094,28H2c-0.5527344,0-1-0.4472656-1-1v-5.5996094c0-0.5527344,0.4472656-1,1-1s1,0.4472656,1,1V26h4.5996094 c0.5527344,0,1,0.4472656,1,1S8.1523438,28,7.5996094,28z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M30,28h-5.5996094c-0.5527344,0-1-0.4472656-1-1s0.4472656-1,1-1H29v-4.5996094c0-0.5527344,0.4472656-1,1-1 s1,0.4472656,1,1V27C31,27.5527344,30.5527344,28,30,28z"})))),title:Object(C.__)("Show Guides","getwid"),isActive:dt,onClick:function(){n.setState({showRullers:!dt})}}]})),wp.element.createElement(L.a,l()({},o()({},this.props,{isLockedPaddingsOnDesktop:pt,isLockedPaddingsOnTablet:mt,isLockedPaddingsOnMobile:gt},{isLockedMarginsOnDesktop:wt,isLockedMarginsOnTablet:ht,isLockedMarginsOnMobile:ft},{baseClass:se,changeState:_t}),{key:"inspector"})),wp.element.createElement("div",l()({id:Nt,className:Tt,style:yt},xt),wp.element.createElement(N.a,o()({},{paddingBottom:ke,paddingRight:ye,paddingLeft:Ce,paddingTop:ve},{paddingBottomValue:pe,paddingRightValue:ge,paddingLeftValue:me,paddingTopValue:ue},{marginBottom:ze,marginRight:Pe,marginLeft:Re,marginTop:Le},{marginBottomValue:we,marginRightValue:fe,marginLeftValue:he,marginTopValue:be},{changeState:_t,setAttributes:ct,showRullers:dt,isSelected:st,baseClass:se,clientId:vt,isLayoutSet:Vt||Ht||Ft||Rt||!Getwid.settings.wide_support}),wp.element.createElement("div",{className:Ct,style:kt},wp.element.createElement(x.a,o()({},this.props,{baseClass:se})),!!w&&"none"!==f&&wp.element.createElement("div",{className:O()("getwid-background-video-controls",c()({},"is-position-".concat(f),"top-right"!==f))},wp.element.createElement("button",{onClick:this.playBackgroundVideo,className:"getwid-background-video-play",ref:function(e){return n.videoButtonRef=e}},"paused"===this.state.videoPlayState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-play"}),"playing"===this.state.videoPlayState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{onClick:this.muteBackgroundVideo,className:"getwid-background-video-mute"},!0===this.state.videoMuteState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}),!1===this.state.videoMuteState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-volume-up"}))),wp.element.createElement("div",{className:O()("".concat(se,"__inner-wrapper"),c()({},"has-dividers-over",k)),style:St},wp.element.createElement("div",{className:"".concat(se,"__background-holder")},wp.element.createElement("div",{className:Ot,style:Et},!!W&&wp.element.createElement("div",{className:"".concat(se,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(se,"__background-image"),src:W.url,alt:W.alt,"data-id":W.id})),!!b.length&&wp.element.createElement("div",{className:"".concat(se,"__background-slider-wrapper")},wp.element.createElement(M.a,o()({},this.props,{baseClass:se}))),!!w&&wp.element.createElement("div",{className:"".concat(se,"__background-video-wrapper")},wp.element.createElement(T.a,l()({},o()({},this.props,{baseClass:se}),{onVideoEnd:this.onBackgroundVideoEnd,videoAutoplay:!1,videoMute:this.state.videoMuteState,videoElemRef:function(e){return n.videoRef=e}})))),wp.element.createElement("div",{className:"".concat(se,"__foreground"),style:jt})),wp.element.createElement("div",{className:"".concat(se,"__content")},wp.element.createElement("div",{className:"".concat(se,"__inner-content")},wp.element.createElement(ee,{renderAppender:function(){return wp.element.createElement(ee.ButtonBlockAppender,null)},defaultBlock:!1,template:ce,templateInsertUpdatesSelection:!1,templateLock:!1})))))))):wp.element.createElement("div",{className:"components-placeholder block-editor-inner-blocks__template-picker has-many-options"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(Q,{icon:"layout"}),Object(C.__)("Choose Section Layout","getwid")),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(C.__)("Select a layout to start with, or make one yourself.","getwid")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement("ul",{className:"block-editor-inner-blocks__template-picker-options"},At.map(function(e,t){return wp.element.createElement("li",null,wp.element.createElement(K,{text:e.title},wp.element.createElement(U,{className:"components-icon-button block-editor-inner-blocks__template-picker-option is-button is-default is-large",key:t,onClick:function(){return e.layout()}},e.icon)))})),wp.element.createElement("div",{class:"block-editor-inner-blocks__template-picker-skip"},wp.element.createElement(U,{className:"components-button is-link",onClick:function(){return ct({skipLayout:!0})}},Object(C.__)("Skip","getwid"))))))}},{key:"componentDidMount",value:function(){this.props.attributes.entranceAnimation&&this.animate()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.attributes,a=n.entranceAnimation,l=n.entranceAnimationDuration,i=this.props,o=i.baseClass,r=i.clientId,c=(i.isSelected,e.attributes.entranceAnimation),s=e.attributes.entranceAnimationDuration;!a||c===a&&s===l||(re(".".concat(o,"-").concat(r)).css("animation-name",""),this.animate())}},{key:"animate",value:function(){var e=this.props,t=e.baseClass,n=e.clientId;new WOW({boxClass:"".concat(t,"-").concat(n),scrollContainer:"."+Object(I.e)(),live:!1,mobile:!1}).init()}},{key:"playBackgroundVideo",value:function(){var e=this.videoRef;e.paused?(e.play(),this.setState({videoPlayState:"playing"})):(e.pause(),this.setState({videoPlayState:"paused"}))}},{key:"onBackgroundVideoEnd",value:function(){this.setState({videoPlayState:"paused"})}},{key:"muteBackgroundVideo",value:function(){var e=this.videoRef;e.muted=!e.muted,this.setState({videoMuteState:e.muted})}}]),t}(R);t.a=ie([H(function(e,t){return{getBlock:e("core/editor").getBlock}}),te("backgroundColor")])(de)},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},function(e,t,n){"use strict";n(0);t.a={"zigzag-ice-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,points:"893,50.7 879,75.9 790,63.3 764,81.8 671,69.2 627,81.8 565,66.2 501.5,83.3 456,69.6 353,84 290,63.3 245.5,73.3 209,58.8 123.5,69.9 111.3,42.6 54.8,49.2 34.7,26.3 11.8,31.8 0,10 0,100 1000,100 1000,37.4 960,56.3 "}),wp.element.createElement("polygon",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",points:"893,40.7 879,65.9 790,53.3 764,71.8 671,59.2 627,71.8 565,56.2 501.5,73.3 456,59.6 353,74 290,53.3 245.5,63.3 209,48.8 123.5,59.9 111.3,32.6 54.8,39.2 34.7,16.3 11.8,21.8 0.2,0 0,0 0,100 1000,100 1000,27.4 960,46.3 "}))},"zigzag-ice":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,points:"0.2,0 11.8,21.8 34.7,16.3 54.8,39.2 111.3,32.6 123.5,59.9 209,48.8 245.5,63.3 290,53.3 353,74 456,59.6 501.5,73.3 565,56.2 627,71.8 671,59.2 764,71.8 790,53.3 879,65.9 893,40.7 960,46.3 1000,27.4 1000,0 "}),wp.element.createElement("polygon",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",points:"0,0 0,10 11.8,31.8 34.7,26.3 54.8,49.2 111.3,42.6 123.5,69.9 209,58.8 245.5,73.3 290,63.3 353,84 456,69.6 501.5,83.3 565,66.2 627,81.8 671,69.2 764,81.8 790,63.3 879,75.9 893,50.7 960,56.3 1000,37.4 1000,0"}))},"zigzag-pattern":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1800 6",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,0 0,1 3.5,5.4 7,1 10.5,5.4 14,1 17.5,5.4 21,1 24.5,5.4 28,1 31.5,5.4 35,1 38.5,5.4 42,1 45.5,5.4 49,1 52.5,5.4 56,1 59.5,5.4 63,1 66.5,5.4 70,1 73.5,5.4 77,1 80.5,5.4 84,1 87.5,5.4 91,1 94.5,5.4 98,1 101.5,5.4 105,1 108.5,5.4 112,1 115.5,5.4 119,1 122.5,5.4 126,1 129.5,5.4 133,1 136.5,5.4 140,1 143.5,5.4 147,1 150.5,5.4 154,1 157.5,5.4 161,1 164.5,5.4 168,1 171.5,5.4 175,1 178.5,5.4 182,1 185.5,5.4 189,1 192.5,5.4 196,1 199.5,5.4 203,1 206.5,5.4 210,1 213.5,5.4 217,1 220.5,5.4 224,1 227.5,5.4 231,1 234.5,5.4 238,1 241.5,5.4 245,1 248.5,5.4 252,1 255.5,5.4 259,1 262.5,5.4 266,1 269.5,5.4 273,1 276.5,5.4 280,1 283.5,5.4 287,1 290.5,5.4 294,1 297.5,5.4 301,1 304.5,5.4 308,1 311.5,5.4 315,1 318.5,5.4 322,1 325.5,5.4 329,1 332.5,5.4 336,1 339.5,5.4 343,1 346.5,5.4 350,1 353.5,5.4 357,1 360.5,5.4 364,1 367.5,5.4 371,1 374.5,5.4 378,1 381.5,5.4 385,1 388.5,5.4 392,1 395.5,5.4 399,1 402.5,5.4 406,1 409.5,5.4 413,1 416.5,5.4 420,1 423.5,5.4 427,1 430.5,5.4 434,1 437.5,5.4 441,1 444.5,5.4 448,1 451.5,5.4 455,1 458.5,5.4 462,1 465.5,5.4 469,1 472.5,5.4 476,1 479.5,5.4 483,1 486.5,5.4 490,1 493.5,5.4 497,1 500.5,5.4 504,1 507.5,5.4 511,1 514.5,5.4 518,1 521.5,5.4 525,1 528.5,5.4 532,1 535.5,5.4 539,1 542.5,5.4 546,1 549.5,5.4 553,1 556.5,5.4 560,1 563.5,5.4 567,1 570.5,5.4 574,1 577.5,5.4 581,1 584.5,5.4 588,1 591.5,5.4 595,1 598.5,5.4 602,1 605.5,5.4 609,1 612.5,5.4 616,1 619.5,5.4 623,1 626.5,5.4 630,1 633.5,5.4 637,1 640.5,5.4 644,1 647.5,5.4 651,1 654.5,5.4 658,1 661.5,5.4 665,1 668.5,5.4 672,1 675.5,5.4 679,1 682.5,5.4 686,1 689.5,5.4 693,1 696.5,5.4 700,1 703.5,5.4 707,1 710.5,5.4 714,1 717.5,5.4 721,1 724.5,5.4 728,1 731.5,5.4 735,1 738.5,5.4 742,1 745.5,5.4 749,1 752.5,5.4 756,1 759.5,5.4 763,1 766.5,5.4 770,1 773.5,5.4 777,1 780.5,5.4 784,1 787.5,5.4 791,1 794.5,5.4 798,1 801.5,5.4 805,1 808.5,5.4 812,1 815.5,5.4 819,1 822.5,5.4 826,1 829.5,5.4 833,1 836.5,5.4 840,1 843.5,5.4 847,1 850.5,5.4 854,1 857.5,5.4 861,1 864.5,5.4 868,1 871.5,5.4 875,1 878.5,5.4 882,1 885.5,5.4 889,1 892.5,5.4 896,1 899.5,5.4 903,1 906.5,5.4 910,1 913.5,5.4 917,1 920.5,5.4 924,1 927.5,5.4 931,1 934.5,5.4 938,1 941.5,5.4 945,1 948.5,5.4 952,1 955.5,5.4 959,1 962.5,5.4 966,1 969.5,5.4 973,1 976.5,5.4 980,1 983.5,5.4 987,1 990.5,5.4 994,1 997.5,5.4 1001,1 1004.5,5.4 1008,1 1011.5,5.4 1015,1 1018.5,5.4 1022,1 1025.5,5.4 1029,1 1032.5,5.4 1036,1 1039.5,5.4 1043,1 1046.5,5.4 1050,1 1053.5,5.4 1057,1 1060.5,5.4 1064,1 1067.5,5.4 1071,1 1074.5,5.4 1078,1 1081.5,5.4 1085,1 1088.5,5.4 1092,1 1095.5,5.4 1099,1 1102.5,5.4 1106,1 1109.5,5.4 1113,1 1116.5,5.4 1120,1 1123.5,5.4 1127,1 1130.5,5.4 1134,1 1137.5,5.4 1141,1 1144.5,5.4 1148,1 1151.5,5.4 1155,1 1158.5,5.4 1162,1 1165.5,5.4 1169,1 1172.5,5.4 1176,1 1179.5,5.4 1183,1 1186.5,5.4 1190,1 1193.5,5.4 1197,1 1200.5,5.4 1204,1 1207.5,5.4 1211,1 1214.5,5.4 1218,1 1221.5,5.4 1225,1 1228.5,5.4 1232,1 1235.5,5.4 1239,1 1242.5,5.4 1246,1 1249.5,5.4 1253,1 1256.5,5.4 1260,1 1263.5,5.4 1267,1 1270.5,5.4 1274,1 1277.5,5.4 1281,1 1284.5,5.4 1288,1 1291.5,5.4 1295,1 1298.5,5.4 1302,1 1305.5,5.4 1309,1 1312.5,5.4 1316,1 1319.5,5.4 1323,1 1326.5,5.4 1330,1 1333.5,5.4 1337,1 1340.5,5.4 1344,1 1347.5,5.4 1351,1 1354.5,5.4 1358,1 1361.5,5.4 1365,1 1368.5,5.4 1372,1 1375.5,5.4 1379,1 1382.5,5.4 1386,1 1389.5,5.4 1393,1 1396.5,5.4 1400,1 1403.5,5.4 1407,1 1410.5,5.4 1414,1 1417.5,5.4 1421,1 1424.5,5.4 1428,1 1431.5,5.4 1435,1 1438.5,5.4 1442,1 1445.5,5.4 1449,1 1452.5,5.4 1456,1 1459.5,5.4 1463,1 1466.5,5.4 1470,1 1473.5,5.4 1477,1 1480.5,5.4 1484,1 1487.5,5.4 1491,1 1494.5,5.4 1498,1 1501.5,5.4 1505,1 1508.5,5.4 1512,1 1515.5,5.4 1519,1 1522.5,5.4 1526,1 1529.5,5.4 1533,1 1536.5,5.4 1540,1 1543.5,5.4 1547,1 1550.5,5.4 1554,1 1557.5,5.4 1561,1 1564.5,5.4 1568,1 1571.5,5.4 1575,1 1578.5,5.4 1582,1 1585.5,5.4 1589,1 1592.5,5.4 1596,1 1599.5,5.4 1603,1 1606.5,5.4 1610,1 1613.5,5.4 1617,1 1620.5,5.4 1624,1 1627.5,5.4 1631,1 1634.5,5.4 1638,1 1641.5,5.4 1645,1 1648.5,5.4 1652,1 1655.5,5.4 1659,1 1662.5,5.4 1666,1 1669.5,5.4 1673,1 1676.5,5.4 1680,1 1683.5,5.4 1687,1 1690.5,5.4 1694,1 1697.5,5.4 1701,1 1704.5,5.4 1708,1 1711.5,5.4 1715,1 1718.5,5.4 1722,1 1725.5,5.4 1729,1 1732.5,5.4 1736,1 1739.5,5.4 1743,1 1746.5,5.4 1750,1 1753.5,5.4 1757,1 1760.5,5.4 1764,1 1767.5,5.4 1771,1 1774.5,5.4 1778,1 1781.5,5.4 1785,1 1788.5,5.4 1792,1 1795.5,5.4 1799,1 1800,2.3 1800,0 "}))},"waves-layered":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 120",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M464,69c-50.96-10.13-166.19-39.07-313-13C85.7,67.6,33.79,86.59,0,100.9V120h1000V1 C748.08,88.13,576.28,91.31,464,69z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M464,89c-50.96-10.13-166.19-59.07-313-33C85.7,67.6,33.79,86.59,0,100.9V120h1000V67C748.08,154.13,576.28,111.31,464,89z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M464,79c-50.96-10.13-166.19-49.07-313-23C85.7,67.6,33.79,86.59,0,100.9V120h1000V34 C748.08,121.13,576.28,101.31,464,79z"}))},"waves-large-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M902.8,47.5c-76.9-1-113-55.3-174.5-36.5c-22.9,7-31.6,18.6-58.3,19c-34.2,0.5-43.6-18.3-69-21c-55.8-6-70.7,78.2-127.4,82.3C418.5,95.2,366.5,10.7,300.1,10c-1.5,0-2.7,0-2.7,0c-40,0.5-66,23.8-87.6,36.7c-36,21.4-73.3,22-89,22.1C63.3,69.1,19.4,36.1,0,19v81h1000V20.4C959.3,43.3,926.1,47.8,902.8,47.5z"}))},"waves-large":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,19c19.4,17.1,63.3,50.1,120.8,49.8c15.7-0.1,53-0.7,89-22.1c21.6-12.9,47.6-36.2,87.6-36.7c0,0,1.2,0,2.7,0c66.4,0.7,118.4,85.2,173.5,81.3C530.3,87.2,545.2,3,601,9c25.4,2.7,34.8,21.5,69,21c26.7-0.4,35.4-12,58.3-19c61.5-18.8,97.6,35.5,174.5,36.5c23.3,0.3,56.6-4.2,97.3-27.2V0H0V19z"}))},"waves-pattern":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 996 4",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M990,1c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2C9.2,3,8.8,1,6,1C3.2,1,2.8,3,0,3v1h996V3C993.2,3,992.8,1,990,1z"}))},"waves-light":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M464,60c-50.96-10.13-166.19-39.07-313-13C85.7,58.6,33.79,77.59,0,91.9v8.1h1000V0C748.08,87.13,576.28,82.31,464,60z"}))},waves:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v19c33.17,17.01,84.77,38.06,149,41c96.07,4.4,128.39-35.91,211-52c157.72-30.72,212.84,82.55,404,85c54.27,0.7,135.59-7.33,236-53.7V0H0z"}))},"triangle-negative-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M492,97.3L0,1.1V100h1000V1.1L508,97.3C502.7,98.4,497.3,98.4,492,97.3z"}))},"triangle-asymmetrical-negative-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M689,96L0,1.1V100h1000V1.1l-269.9,91C716.9,96.6,702.8,97.9,689,96z"}))},"triangle-asymmetrical-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M730.1,92.1c-13.2,4.5-27.3,5.8-41.1,3.9L0,1.1V0h1000v1.1L730.1,92.1z"}))},"triangle-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M508,97.3c-5.3,1-10.7,1-16,0L0,1.1V0h1000v1.1L508,97.3z"}))},"triangle-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,1.1 0,100 1000,100 1000,1.1 500,98.9 "}))},"triangle-asymmetrical-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,1.1 0,100 1000,100 1000,1.1 710,98.9 "}))},"triangle-asymmetrical":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M710,98.9L0,1.1V0h1000v1.1L710,98.9z"}))},triangle:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M500,98.9L0,1.1V0h1000v1.1L500,98.9z"}))},tilt:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0h1000v100L0,0z"}))},"tilt-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0H0v100L1000,0z"}))},"split-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 20",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M516,3c-8.8,0-16,7.2-16,16c0-8.8-7.2-16-16-16H0v16v1h1000v-1V3H516z"}))},split:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 20",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v3h484c8.8,0,16,7.2,16,16c0-8.8,7.2-16,16-16h484V0H0z"}))},"drips-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M975,56.8c-8.3,0-15,6.8-15,15v3c0,8.3-6.8,15-15,15s-15-6.8-15-15v-45c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V82c0,8.3-6.8,15-15,15s-15-6.8-15-15s-6.8-15-15-15s-15,6.8-15,15v-1.8c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V80c0,8.3-6.8,15-15,15s-15-6.8-15-15v2c0-8.3-6.8-15-15-15s-15,6.8-15,15v-3.8c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V82c0,8.3-6.8,15-15,15s-15-6.8-15-15s-6.8-15-15-15s-15,6.8-15,15v-1.8c0,8.3-6.8,15-15,15s-15-6.8-15-15v-8.4c0-8.3-6.8-15-15-15s-15,6.8-15,15V74c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15v12.4c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V32c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V81c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15v2.4c0,8.3-6.8,15-15,15s-15-6.8-15-15V19c0-8.3-6.8-15-15-15s-15,6.8-15,15v34c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V100h990V71.8C990,63.6,983.3,56.8,975,56.8z"}))},"tilted-drips-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M990,38.6c-0.8,0.4-1.5,1-2.2,1.6l-38.9,38.9c-3.9,3.6-10,3.5-13.8-0.3c-3.8-3.8-3.9-9.9-0.3-13.8l26.1-26.1c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L898,73.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-9.2-0.9-13.1l6.9-6.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-55.8,55.8c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-24.8,24.8c-3.9,3.6-10,3.5-13.8-0.3c-3.7-3.7-3.9-9.8,12.2-26.3l20.7-20.7c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-48.7,48.7c-3.9,3.4-9.9,3.3-13.6-0.5c-3.6-3.6-3.9-9.3-0.8-13.2c0.2-0.2,0.4-0.4,0.6-0.7c0.1-0.1,0.2-0.2,0.3-0.3l-0.2,0.2c2.9-3.9,2.6-9.5-0.9-13.1h0c-3.9-3.9-10.3-3.9-14.1,0l-6.3,6.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L617.3,72c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0l-34.5,34.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-9.2-0.9-13.1l6.9-6.9c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-46,46c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-62.8,62.8c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-8.9-1.1-12.8l21.3-21.3c3.9-3.9,3.9-10.3,0-14.1v0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-46,46c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-41.6,41.6c-3.9,3.4-9.9,3.3-13.6-0.5c-3.6-3.6-3.9-9.3-0.8-13.2c0.2-0.2,0.4-0.4,0.6-0.7c0.1-0.1,0.2-0.2,0.3-0.3l-0.2,0.2c2.9-3.9,2.6-9.5-0.9-13.1v0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l19-19c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L109.3,72c-3.9,3.6-10,3.5-13.8-0.3c-3.8-3.8-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0L51.3,73.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l33.1-33.1c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L0,68.3V100h990V38.6z"}))},"tilted-drips":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v68.3l56.4-56.4c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L37.4,59.2c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l34.5-34.5c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8c3.8,3.8,9.9,3.9,13.8,0.3l67.2-67.2c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-19,19c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0v0c3.5,3.5,3.8,9.2,0.9,13.1l0.2-0.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.2,0.2-0.4,0.4-0.6,0.7c-3,3.9-2.7,9.6,0.8,13.2c3.7,3.7,9.7,3.9,13.6,0.5l41.6-41.6c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l46-46c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L341,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0v0c3.9,3.9,3.9,10.3,0,14.1L361,74.4c-2.7,3.9-2.3,9.3,1.1,12.8c3.7,3.7,9.7,3.9,13.6,0.5l62.8-62.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l46-46c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L510.3,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-6.9,6.9c-2.9,3.9-2.6,9.5,0.9,13.1c3.7,3.7,9.7,3.9,13.6,0.5l34.5-34.5c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l60.1-60.1c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L679.6,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l6.3-6.3c3.9-3.9,10.3-3.9,14.1,0h0c3.5,3.5,3.8,9.2,0.9,13.1l0.2-0.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.2,0.2-0.4,0.4-0.6,0.7c-3,3.9-2.7,9.6,0.8,13.2c3.7,3.7,9.7,3.9,13.6,0.5l48.7-48.7c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-20.7,20.7c-16.1,16.5-15.9,22.6-12.2,26.3c3.8,3.8,9.9,3.9,13.8,0.3l24.8-24.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l55.8-55.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-6.9,6.9c-2.9,3.9-2.6,9.5,0.9,13.1c3.7,3.7,9.7,3.9,13.6,0.5l48.7-48.7c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L934.8,65c-3.6,3.9-3.5,10,0.3,13.8c3.8,3.8,9.9,3.9,13.8,0.3l38.9-38.9c0.7-0.7,1.4-1.2,2.2-1.6V0H0z"}))},drips:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V19c0-8.3,6.8-15,15-15s15,6.8,15,15v13.2c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.4c0-8.3,6.8-15,15-15s15,6.8,15,15V81c0,8.3,6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V32c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v33.4c0,8.3,6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V74c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v8.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15s6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15v27.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15v-2c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v29.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15s6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15v45c0,8.3,6.8,15,15,15s15-6.8,15-15v-3c0-8.3,6.8-15,15-15s15,6.8,15,15V0H0z"}))},"pyramids-round-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M790.8,50.4l-146.3-28c-4.9-1-10-0.9-14.8,0.3l-302.2,72c-6.3,1.5-12.8,1.3-18.9-0.5L0,3v97h1000V20.6L807.3,50.7C801.9,51.5,796.3,51.4,790.8,50.4z"}))},"pyramids-round":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,3l308.6,91.2c6.1,1.8,12.6,2,18.9,0.5l302.2-72c4.8-1.2,9.9-1.3,14.8-0.3l146.3,28c5.5,1,11.1,1.1,16.5,0.3L1000,20.6V0H0V3z"}))},"pyramids-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"637,21 318,97 0,3 0,100 1000,100 1000,20.6 799,52 "}))},pyramids:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,3 318,97 637,21 799,52 1000,20.6 1000,0 0,0 "}))},"triangle-layered-asymmetrical":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M710,98.9L0,1.1V0h1000v1.1L710,98.9z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M710,78.9L0,1.1V0h1000v1.1L710,78.9z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M710,58.9L0,1.1V0h1000v1.1L710,58.9z"}))},"tilt-layered-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 2600 130",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"2600,65 0,1 0,0 2600,0 "}),wp.element.createElement("rect",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,width:"2600",height:"65"}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"2600,65 0,129 0,0 2600,0 "}))},"tilt-layered-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M0,6V0h1000v100L0,6z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,6V0H0v100L1000,6z"}))},"tilt-layered-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 20",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"300,1 150,3 0,1 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,6 150,3 0,6 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,16 150,3 0,16 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,11 150,3 0,11 0,0 300,0 "}))},"opacity-pyramids":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,3 318,77 637,21 799,52 1000,20.6 1000,0 0,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"0,23 318,77 637,41 799,62 1000,20.6 1000,0 0,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"0,53 318,77 637,61 799,82 1000,20.6 1000,0 0,0 "}))},mountains:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M96.75,42.51c41.73,3.17,56.48-13.82,97.52-23.11C303.06-5.25,340.46,82.24,438.1,54.44c33.81-9.63,53.36-26.96,113.28-37.89c6.98-1.27,32.05-6.68,62.62-6.55c102.24,0.44,122.48,45.95,222,41.5c70.08-3.13,126.55-28.66,164-50.4V0H0v0.9C21.95,18.65,54.96,39.33,96.75,42.51z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M62.31,65.11C104.87,60.84,123.89,39.78,176.9,37c13.38-0.7,23.39-0.29,29.97,0.57C241.3,42.12,263.58,59.94,337.9,73C446,92,461,28,587.8,30c108.8,1.8,125.5,49.4,235,46C901.4,73.6,986,46.2,1000,26.1V0H0v58.3C27.02,66.57,48.28,66.52,62.31,65.11z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M142.1,74c55.77-2.72,60.02-21.75,116.4-28c71.3-7.9,95.2,23.8,167.8,36C539.1,101,554.8,37,687,39c113.5,1.8,131,49.4,245.1,46c22.7-0.7,45.9-3.3,67.9-7.1V0H0v29C33.03,51.37,82.74,76.89,142.1,74z"}))},"drops-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 16",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M292,12c-1.2-1.2,0.4-3.4-1-5c-1.5-1.9-5.8-1.7-7,0c-1,1.5,0,5,0,6s-0.5,2-2.8,2s-2.3-2-1.3-3s2.6-5.5,2-8c-0.6-2.6-4.2-3.8-6-3c-1.4,0.6-3,4-2,7s1,6-0.6,6c-3,0-3.4-1-3.4-3s2.4-5-0.1-8C268,1,265,2,265,3s1,3-2,3s-2-4-5-4s-1,3-3,3s-1-3-3-4s-4,2-4,3s2,3-1,3s-1-5-4-5s-5,2-5,5s3,7-1,6s-1-3-1-7s-3.8-4.2-5-4c-0.8,0.1-4,1-4,4s2,6-1,6s-3-4-3-7s-2.9-4.4-5-4c-2.1,0.3-2.4,4-4,4c-1.8,0-2-4-4-4s-1.8,2.6-2,4c-0.4,2.9,3,7-2,7s-4-4-3-5s2.8-6,0.4-6S199,1,198,5s3.5,7-0.3,8s-3.8-2-3.8-5s2-7-2-7s-2,4-2,7s0,5-3,5s0.2-4-2-8c-0.1-0.2-1-3-3-3s0,6-2,6s-2-2-2-3s1-3-1-3s-2,5-2,7s1,6-3,5s2.9-9.6-0.6-12c-2-1.4-6.2-1.7-8.4,1c-3.4,4.2,3,11-2,11s0.9-5.8-2-10c-2.5-3.5-9.3-3-11.1-2S145,5,145,6s1,5,1,6s-3.7,3.4-5,1c-1.3-2.5,0-6,0-8s-2-4-4.5-4S135,4,133,4s-1.3-2-3-3s-3,0-3,2s5,9-2,10s-4.4-9-6-11s-3.9-1.5-6,1c-2.4,2.9,1.9,5.1-1,9c-1.1,1.5-2,4-4,2s0.3-4.1-1-9c-0.6-2.2-1-4-3-4s0,6-4,6s-4-1-4-2c0-4-3.4-3.9-5-4c-1.6-0.1-3.5,1.4-4,3c-0.6,1.9,0,6-2,6s-2-1-2-3s-1-4-2.5-5S76.7,1,76,3c-0.6,1.6-0.6,2.6,0,7c0.3,2.2-1,5-5,4s-2-5-2-7c0-4-3-6-5.5-5S60,5,60,7s3.3,6,0.6,7S57,13,57,11s0-5.9-2-8c-0.2-0.2-4-2-5,1s7,9,2,10s-4.9-2.5-5-6c-0.1-2.4,1.8-4.1,1-5c-0.6-0.7-2-0.5-3,0c-1.3,0.7-1.1,1.7-2,2c-1.8,0.6-4-4-5-3s-0.2,2.8,0,4c0.9,4.3,4,6,2,7s-3-1-3-2s0.9-6.9-1-9c-1.2-1.3-3.7-1-4-1c-2.6,0.3-3.4,2.4-5,2c-1.6-0.4-1.6-1.8-2.9-2c-1.5-0.2-3.2,1.6-4.1,4c-1.5,4-0.1,6.2-2,8c-1.1,1-3,1.7-4,1c-1.5-1.1,0.6-4.4-1-9c-0.7-2.2-1-4-3-4S9.2,3.7,8,4C6.9,4.3,6,2.6,5,3C4.3,3.2,4.1,4.2,4,5c-0.8,4.6,2,6.8-1,7S0.4,8.3,0,3.5V16h300V9.7C297.9,12.3,293.5,13.4,292,12z"}))},drops:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 16",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v3.5c0.4,4.8,0,8.8,3,8.5s0.2-2.4,1-7c0.1-0.8,0.3-1.8,1-2c1-0.4,1.9,1.3,3,1c1.2-0.3,0-3,2-3s2.3,1.8,3,4c1.6,4.6-0.5,7.9,1,9c1,0.7,2.9,0,4-1c1.9-1.8,0.5-4,2-8c0.9-2.4,2.7-4.2,4.1-4c1.3,0.2,1.2,1.6,2.9,2c1.6,0.4,2.4-1.7,5-2c0.3,0,2.8-0.3,4,1c1.9,2.1,1,8,1,9s1,3,3,2s-1.1-2.7-2-7c-0.2-1.2-1-3,0-4s3.2,3.6,5,3c0.9-0.3,0.7-1.3,2-2c1-0.5,2.4-0.7,3,0c0.8,0.9-1.1,2.6-1,5c0.1,3.5,0,7,5,6s-3-7-2-10s4.8-1.2,5-1c2,2.1,2,6,2,8s1,4,3.6,3S60,9,60,7s1-4,3.5-5S69,3,69,7c0,2-2,6,2,7s5.3-1.8,5-4c-0.6-4.4-0.6-5.4,0-7c0.7-2,3-2,4.5-1S83,5,83,7s0,3,2,3s1.4-4.1,2-6c0.5-1.6,2.4-3.1,4-3c1.6,0.1,5,0,5,4c0,1,0,2,4,2s2-6,4-6s2.4,1.8,3,4c1.3,4.9-1,7,1,9s2.9-0.5,4-2c2.9-3.9-1.4-6.1,1-9c2.1-2.5,4.4-3,6-1s-1,12,6,11s2-8,2-10s1.3-3,3-2s1,3,3,3s1-3,3.5-3s4.5,2,4.5,4s-1.3,5.5,0,8c1.3,2.4,5,0,5-1s-1-5-1-6s1-3,2.9-4s8.6-1.5,11.1,2c2.9,4.2-3,10,2,10s-1.4-6.8,2-11c2.2-2.7,6.4-2.4,8.4-1c3.6,2.4-3.4,11,0.6,12s3-3,3-5s0-7,2-7s1,2,1,3s0,3,2,3s0-6,2-6s2.9,2.8,3,3c2.2,4-1,8,2,8s3-2,3-5s-2-7,2-7s2,4,2,7s0,6,3.8,5S197,9,198,5s3-4,5.4-4s0.6,5-0.4,6s-2,5,3,5s1.6-4.1,2-7c0.2-1.4,0-4,2-4s2.2,4,4,4c1.6,0,1.9-3.7,4-4c2.1-0.4,5,1,5,4s0,7,3,7s1-3,1-6s3.2-3.9,4-4c1.2-0.2,5,0,5,4s-3,6,1,7s1-3,1-6s2-5,5-5s1,5,4,5s1-2,1-3s2-4,4-3s1,4,3,4s0-3,3-3s2,4,5,4s2-2,2-3s3-2,4.9,0c2.5,3,0.1,6,0.1,8s0.3,3,3.4,3c1.6,0,1.6-3,0.6-6s0.6-6.4,2-7c1.8-0.8,5.4,0.4,6,3c0.6,2.5-1,7-2,8s-1,3,1.3,3s2.8-1,2.8-2s-1-4.5,0-6c1.2-1.7,5.5-1.9,7,0c1.4,1.6-0.2,3.8,1,5c1.5,1.4,5.9,0.3,8-2.3V0H0z"}))},"curve-layered-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0v60c29.7,29.7,977.4,40,999.6,40H1000z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0v30c59.5,59.5,985.3,70,999.8,70H1000z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0.1l0,0c89,89.1,971.7,100,999.3,100H1000L1000,100z"}))},"curve-layered-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0.4,100c22.2,0,969.9-10.3,999.6-40V0H0v100H0.4z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0.2,100c14.5,0,940.3-10.5,999.8-70V0H0v100H0.2z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100h0.6c27.6,0,910.3-10.9,999.3-100l0,0H0V100L0,100z"}))},"curve-layered-4":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,30.1,9.9,0,40V0H1000z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,90.5,9.5,0,100V0H1000z"}),wp.element.createElement("path",{fill:e,opacity:.3,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,60,10,0,70V0H1000z"}))},"curve-layered-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,969.9,9.9,1000,40V0H0z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,909.5,9.5,1000,100V0H0z"}),wp.element.createElement("path",{fill:e,opacity:.3,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,940,10,1000,70V0H0z"}))},"curve-6":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M630,99C266,99,0,1,0,1v99h1000V1C1000,1,994,99,630,99z"}))},"curve-8":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M370,99c364,0,630-98,630-98v99H0V1C0,1,6,99,370,99z"}))},"curve-7":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,1c0,0,6,98,370,98s630-98,630-98V0H0V1z"}))},"curve-5":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,1c0,0-6,98-370,98S0,1,0,1V0h1000V1z"}))},curve:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,1c0,0-136,98-500,98S0,1,0,1V0h1000V1z"}))},"curve-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,1v99h1000V1c0,0-136,98-500,98S0,1,0,1z"}))},"curve-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100h1000V0C1000,0,1000,100,0,100z"}))},"curve-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100H0V0C0,0,0,100,1000,100z"}))},"curve-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100C0,100,0,0,0,0s666.7,0,1000,0V100z"}))},"curve-4":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100C1000,100,1000,0,1000,0S333.3,0,0,0V100z"}))},"clouds-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 280 30",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M273.5,16.2c-2.2-1.6-4.8-2.6-7.7-2.6c0-0.2,0-0.5,0-0.7c0-4.6-3.8-8.4-8.4-8.4c-2.5,0-4.8,1.1-6.3,2.9c-1.7-0.7-3.5-1.2-5.4-1.2c-7.2,0-13.1,5.7-13.3,12.8c-0.2,0-0.4,0-0.7,0c-2.4,0-4.8,0.6-6.8,1.7c-1.1-2.2-3.3-3.7-5.8-3.7c-3.6,0-6.5,2.9-6.5,6.5c0,0.5,0.1,1,0.2,1.5c-0.2,0-0.3,0-0.5,0c-3.4,0-6.4,1.7-8.2,4.4c-2.6-2.7-6.2-4.4-10.2-4.4c-1.8,0-3.6,0.4-5.2,1c-0.4-4.5-4.2-8-8.8-8c-0.3,0-0.7,0-1,0.1c-3.9-5.8-10.6-9.6-18.1-9.6c-4.9,0-9.3,1.6-13,4.3c-0.8-0.3-1.7-0.5-2.6-0.5c-3.8,0-6.9,3-7,6.8c-0.1,0-0.1,0-0.2,0c-4.1,0-8,1.4-11,3.8c-1.1-2.6-3.7-4.4-6.7-4.4c-0.5,0-1.1,0.1-1.6,0.2c-1-1.3-2.5-2.2-4.3-2.2c-1.5,0-2.9,0.7-3.9,1.7c-0.8-1.2-1.9-2.2-3.2-2.8c0.4-0.7,0.7-1.5,0.7-2.4c0-2.7-2.2-4.9-4.9-4.9c-1.9,0-3.5,1.1-4.3,2.6c-0.8-0.4-1.6-0.6-2.5-0.6c-2.9,0-5.4,2.2-5.6,5.1c-0.5-0.1-1-0.1-1.6-0.1c-4.2,0-7.6,2.8-8.8,6.6c-1.9-1.3-4.3-2-6.8-2c-5.2,0-9.6,3.2-11.5,7.7c-0.9-0.1-1.7-0.2-2.6-0.2c-0.2,0-0.3,0-0.5,0c0-5.2-4.3-9.5-9.5-9.5c-0.1,0-0.2,0-0.2,0C48.4,16,46.9,15,45,15c-2.7,0-4.9,2.2-4.9,4.9c0,0.4,0,0.7,0.1,1.1C39.2,20.3,38,20,36.7,20c-2.7,0-5.1,1.5-6.3,3.7c-0.4-0.1-0.8-0.1-1.2-0.1c-1.5,0-2.8,0.3-4,0.9c-3.4-4.1-8.6-6.8-14.4-6.8C6.7,17.8,3,19,0,21.1V30h280V13.1c-0.6-0.2-1.2-0.4-1.9-0.4C275.9,12.7,274.1,14.2,273.5,16.2z"}))},clouds:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 280 30",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M10.7,17.8c5.8,0,11,2.6,14.4,6.8c1.2-0.6,2.6-0.9,4-0.9c0.4,0,0.8,0,1.2,0.1c1.3-2.2,3.6-3.7,6.3-3.7c1.3,0,2.5,0.3,3.6,0.9c-0.1-0.3-0.1-0.7-0.1-1.1c0-2.7,2.2-4.9,4.9-4.9c1.9,0,3.4,1,4.3,2.6c0.1,0,0.2,0,0.2,0c5.2,0,9.5,4.2,9.5,9.5c0.2,0,0.3,0,0.5,0c0.9,0,1.8,0.1,2.6,0.2c1.9-4.5,6.3-7.7,11.5-7.7c2.5,0,4.8,0.7,6.8,2c1.1-3.8,4.6-6.6,8.8-6.6c0.5,0,1.1,0.1,1.6,0.1c0.3-2.9,2.7-5.1,5.6-5.1c0.9,0,1.7,0.2,2.5,0.6c0.8-1.5,2.4-2.6,4.3-2.6c2.7,0,4.9,2.2,4.9,4.9c0,0.9-0.3,1.7-0.7,2.4c1.3,0.7,2.4,1.7,3.2,2.8c1-1.1,2.3-1.7,3.9-1.7c1.8,0,3.3,0.9,4.3,2.2c0.5-0.1,1-0.2,1.6-0.2c3,0,5.6,1.8,6.7,4.4c3-2.4,6.9-3.8,11-3.8c0.1,0,0.1,0,0.2,0c0.1-3.8,3.2-6.8,7-6.8c0.9,0,1.8,0.2,2.6,0.5c3.6-2.7,8.1-4.3,13-4.3c7.5,0,14.2,3.8,18.1,9.6c0.3,0,0.6-0.1,1-0.1c4.6,0,8.4,3.5,8.8,8c1.6-0.6,3.3-1,5.2-1c4,0,7.6,1.7,10.2,4.4c1.8-2.6,4.8-4.4,8.2-4.4c0.2,0,0.3,0,0.5,0c-0.1-0.5-0.2-1-0.2-1.5c0-3.6,2.9-6.5,6.5-6.5c2.6,0,4.8,1.5,5.8,3.7c2-1.1,4.3-1.7,6.8-1.7c0.2,0,0.4,0,0.7,0c0.3-7.1,6.1-12.8,13.3-12.8c1.9,0,3.8,0.4,5.4,1.2c1.5-1.8,3.8-2.9,6.3-2.9c4.6,0,8.4,3.8,8.4,8.4c0,0.3,0,0.5,0,0.7c2.9,0.1,5.5,1,7.7,2.6c0.6-2,2.4-3.5,4.7-3.5c0.7,0,1.3,0.1,1.9,0.4V0H0v21.1C3,19,6.7,17.8,10.7,17.8z"}))},"book-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M627.7,68.5C504.4,29.9,500,1,500,1s-4.4,28.9-127.7,67.5C249,107.1,0,98.1,0,98.1v1.9h1000v-1.9C1000,98.1,751,107.1,627.7,68.5z"}))},book:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v1v97.1c0,0,249,9.1,372.3-29.6C495.6,29.9,500,1,500,1s4.4,28.9,127.7,67.5C751,107.1,1000,98.1,1000,98.1V1V0H0z"}))},"arrow-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 700 10",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"359,0 350,9 341,0 0,0 0,10 700,10 700,0 "}))},arrow:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 700 10",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"350,9 341,0 359,0 "}))}}},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=n(11),y=(n.n(v),n(13)),k=wp.element,C=k.Component,E=k.Fragment,O=window,j=O.jQuery,S=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.draggies={},e.state={needRender:!1},e.marginSizes={},e.paddingSizes={},e.sizesIsFilled=!1,e.initDragRullers=e.initDragRullers.bind(g()(e)),e}return w()(t,e),c()(t,[{key:"getPaddingRight",value:function(){var e=this.props,t=e.paddingRight,n=e.paddingRightValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingLeft",value:function(){var e=this.props,t=e.paddingLeft,n=e.paddingLeftValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingTop",value:function(){var e=this.props,t=e.paddingTop,n=e.paddingTopValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingBottom",value:function(){var e=this.props,t=e.paddingBottom,n=e.paddingBottomValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getMarginRight",value:function(){var e=this.props,t=e.marginRight,n=e.marginRightValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginLeft",value:function(){var e=this.props,t=e.marginLeft,n=e.marginLeftValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginTop",value:function(){var e=this.props,t=e.marginTop,n=e.marginTopValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginBottom",value:function(){var e=this.props,t=e.marginBottom,n=e.marginBottomValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getOffset",value:function(e){var t,n=this.props,a=n.clientId,l=n.baseClass,i=j("#block-".concat(a)),o=i.find(".".concat(l)).first(),r=0;return"left"==e?(t=this.getPaddingLeft(),r=this.getMarginLeft()):"right"==e&&(t=this.getPaddingRight(),r=this.getMarginRight()),isNaN(r)&&(r=0),o.outerWidth()-t-r}},{key:"calculateAllowedWidth",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"margin",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",l=parseFloat(t.css("margin-left")),i=parseFloat(t.css("margin-right")),o=parseFloat(t.css("padding-left")),r=parseFloat(t.css("padding-right"));return"margin"==n&&("left"==a&&(l=this.getMarginLeft()),"right"==a&&(i=this.getMarginRight())),"padding"==n&&("left"==a&&(o=this.getPaddingLeft()),"right"==a&&(r=this.getPaddingRight())),e-(l+i+o+r)-this.minWidth-10}},{key:"initDragRullers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"margin",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"down",i=this.props,o=i.clientId,r=i.baseClass,c=i.setAttributes,s=i.changeState,d=t.charAt(0).toUpperCase()+t.slice(1),u=n.charAt(0).toUpperCase()+n.slice(1),p=j("#block-".concat(o)),m=p.find(".".concat(r)).first(),g=m.children(".".concat(r,"__wrapper")),b=m.children(".".concat(r,"__").concat(t,"-").concat(n,"-area")),w=m.children().find(".".concat(r,"__").concat(t,"-").concat(n,"-label")),h=m.children().find(".".concat(r,"__").concat(t,"-").concat(n,"-drag-zone"));if(0!=h.length&&0!=b.length){if(Object.keys(this.draggies).length){var f=!0,_=Object(v.get)(this.draggies,[n,t]);if(_&&_.element.className==h[0].className&&(f=!1),!f)return}Object(v.set)(this.draggies,[n,t],new Draggabilly(h[0],{containment:b,axis:"top"==t||"bottom"==t?"y":"x"}));var y,k,C,E,O=Object(v.get)(this.draggies,[n,t]);O.on("dragStart",function(e){b.addClass("active-drag-area"),b.removeClass("empty-ruller"),w.removeClass("empty-label"),s({isLockedPaddingsOnDesktop:!1,isLockedMarginsOnDesktop:!1}),"top"==t||"bottom"==t?y=b.height():k=b.width()}),O.on("dragMove",function(i,o,c){var s=e.props,p=s.marginRightValue,h=s.marginLeftValue;if(C!=Math.floor(c.y)){var f,_,O,S;S=b.width(),"down"==a?O=Math.abs(y-Math.floor(c.y)):"up"==a&&(O=Math.abs(y+Math.floor(c.y)));var x=function(){b.height(O),b.find(".".concat(r,"__").concat(t,"-").concat(n,"-label")).html("".concat(u," ").concat(d,": ").concat(O,"px"))},T=g.innerWidth(),N=m.outerWidth(),A=function(t,n){var a=Object(v.get)(e.draggies,[t,n]);return a?a.$element.parent():void 0},M=A("padding","top"),B=A("padding","left"),I=A("padding","right"),L=A("padding","bottom"),P=A("margin","top"),z=A("margin","bottom"),R=e.calculateAllowedWidth(N,g,n,t),D=Math.abs(Math.floor(c.x));if(void 0===E&&(E=Math.floor(c.x)),"padding"==n)if("top"==t)x(),I&&I.css({top:O}),B&&B.css({top:O});else if("right"==t){var V=e.getPaddingLeft(),F=T-e.minWidth-V,H=Math.abs(k-Math.floor(c.x));if(!(H<=F))return;S=H;var W=0;Object(v.has)(e.draggies,["margin","right"])&&""!=p&&void 0!=p&&(W=Object(v.get)(e.draggies,["margin","right"]).$element.width()),f=N-S-W,I.css({right:W}),I.css({left:f})}else if("bottom"==t)x(),I&&I.css({bottom:O}),B&&B.css({bottom:O});else if("left"==t){var U=e.getPaddingRight(),G=T-e.minWidth-U,q=Math.abs(k+Math.floor(c.x));if(!(q<=G))return;S=q;var Q=0;Object(v.has)(e.draggies,["margin","left"])&&""!=h&&void 0!=h&&(Q=Object(v.get)(e.draggies,["margin","left"]).$element.width()),_=N-S-Q,B.css({left:Q}),B.css({right:_})}if("margin"==n)if("top"==t)x();else if("right"==t){var K=e.getMarginRight(),J=Math.abs(k-Math.floor(c.x)),Z=function(){S=J;var t=N-e.getPaddingRight()-S;j.each([M,I,L,P,z],function(e,t){t&&t.css({right:S})}),I&&I.css({left:t})};if(E>Math.floor(c.x)){if(!(D<=R))return;Z()}else J<R+K&&Z();E=Math.floor(c.x),b.width(S)}else if("bottom"==t)x();else if("left"==t){var $=e.getMarginLeft(),Y=Math.abs(k+Math.floor(c.x)),X=function(){S=Y;var t=N-e.getPaddingLeft()-S;j.each([M,B,L,P,z],function(e,t){t&&t.css({left:S})}),B&&B.css({right:t})};if(E<Math.floor(c.x)){if(!(D<=R))return;X()}else Y<R+$&&X();E=Math.floor(c.x),b.width(S)}"right"!=t&&"left"!=t||(S<100?w.addClass("label-corner"):w.removeClass("label-corner"),b.find(".".concat(r,"__").concat(t,"-").concat(n,"-label")).html("".concat(u," ").concat(d,": ").concat(S,"px"))),g.css(l()({},n+d,"top"==t||"bottom"==t?"margin"!=n?O:"":S))}"top"!=t&&"bottom"!=t||(C=Math.floor(c.y))}),O.on("dragEnd",function(){var e;b.removeClass("active-drag-area"),c((e={},l()(e,n+d,"custom"),l()(e,n+d+"Value","top"==t||"bottom"==t?b.height()+"px":b.width()+"px"),e))})}}},{key:"initDraggies",value:function(){if(this.props.isLayoutSet){var e=this.initDragRullers;e("top","margin","up"),e("top","padding","up"),e("right","margin","left"),e("right","padding","left"),e("bottom","margin","up"),e("bottom","padding","up"),e("left","margin","right"),e("left","padding","right")}}},{key:"dropDraggies",value:function(){var e=this,t=["margin","padding"],n=["top","right","bottom","left"];j.each(t,function(t,a){j.each(n,function(t,n){var l=Object(v.get)(e.draggies,[a,n]);l&&l.destroy()})}),this.draggies={}}},{key:"checkDisabledRuller",value:function(){var e=this,t=this.props,n=t.paddingTop,a=t.paddingBottom,l=t.paddingLeft,i=t.paddingRight,o=this.props,r=o.marginTop,c=o.marginBottom,s=o.marginLeft,d=o.marginRight,u={paddingTop:n,paddingBottom:a,paddingLeft:l,paddingRight:i},p={marginTop:r,marginBottom:c,marginLeft:s,marginRight:d},m=function(t,n){j.each(t,function(t,a){if("none"==a){var l=t.replace(n,"").toLowerCase(),i=Object(v.get)(e.draggies,[n,l]);i&&i.destroy(),Object(v.unset)(e.draggies,[n,l])}})};m(u,"padding"),m(p,"margin")}},{key:"initSizes",value:function(){var e=this,t=this.props,n=t.baseClass,a=t.clientId,l=j("#block-".concat(a)),i=l.find(".".concat(n)).first(),o=i.children(".".concat(n,"__wrapper")),r=["padding","margin"],c=["top","right","bottom","left"],s=["small","medium","normal","large"],d=function(){e.setState({needRender:!e.state.needRender})};j.each(r,function(t,n){j.each(c,function(t,a){j.each(s,function(t,l){var r="getwid-".concat(n,"-").concat(a,"-").concat(l),c=function(e){if(!Object(v.has)(e,[l])){var t=j(".".concat(r)).css("".concat(n,"-").concat(a));Object(v.set)(e,[l],t),d()}};"padding"==n?o.hasClass(r)&&c(e.paddingSizes):"margin"==n&&(["top","bottom"].includes(a)?i.hasClass(r)&&c(e.marginSizes):["left","right"].includes(a)&&o.hasClass(r)&&c(e.marginSizes))})})}),this.initDefaultSizes(i,o,d);var u=!0;j.each(s,function(t,n){Object(v.has)(e.paddingSizes,[n])&&Object(v.has)(e.marginSizes,[n])||(u=!1)}),u&&(this.sizesIsFilled=!0)}},{key:"initDefaultSizes",value:function(e,t,n){var a=this,l=this.props,i=l.paddingRight,o=l.paddingLeft,r=l.paddingTop,c=l.paddingBottom,s=this.props,d=s.marginRight,u=s.marginLeft,p=s.marginTop,m=s.marginBottom,g={paddingRight:i,paddingLeft:o,paddingTop:r,paddingBottom:c,marginRight:d,marginLeft:u,marginTop:p,marginBottom:m};j.each(Object.keys(g),function(l,i){if(""==g[i]){var o=Object(v.head)(i.split(Object(v.head)(i.match(/[A-Z]/g)))),r=i.replace(o,"").toLowerCase(),c=function(e,t){Object(v.has)(e,["default"])||(Object(v.set)(e,["default"],t.css("".concat(o,"-").concat(r))),n())};if("padding"==o)c(a.paddingSizes,t);else if("margin"==o)switch(r){case"top":case"bottom":c(a.marginSizes,e);break;case"left":case"right":c(a.marginSizes,t)}}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;this.sizesIsFilled||(this.waitLoadContent=setInterval(function(){"complete"==document.readyState&&(clearInterval(n.waitLoadContent),n.initSizes())},1));var a=this.props,l=a.isLayoutSet,i=a.clientId,o=a.baseClass;if(l){var r=j("#block-".concat(i)),c=r.find(".".concat(o)).first();this.minWidth=parseFloat(c.children(".".concat(o,"__wrapper")).css("min-width"))}var s=this.props,d=s.isSelected,u=s.showRullers;Object(v.isEqual)(d,e.isSelected)&&Object(v.isEqual)(u,e.showRullers)||d&&u||this.dropDraggies(),Object(v.isEmpty)(this.draggies)||this.checkDisabledRuller(),this.initDraggies()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.clientId,a=t.baseClass,l=j("#block-".concat(n)),i=l.find(".".concat(a)).first();this.sizesIsFilled||(this.waitLoadContent=setInterval(function(){"complete"==document.readyState&&(clearInterval(e.waitLoadContent),e.initSizes())},1)),this.initDraggies(),Object(y.c)(i,a,function(){if(Object(v.has)(e.draggies,["padding","right"])){var t=e.getOffset("right");Object(v.get)(e.draggies,["padding","right"]).$element.parent().css({left:t})}if(Object(v.has)(e.draggies,["padding","left"])){var n=e.getOffset("left");Object(v.get)(e.draggies,["padding","left"]).$element.parent().css({right:n})}})}},{key:"componentWillUnmount",value:function(){this.dropDraggies()}},{key:"render",value:function(){var e=this.props,t=e.paddingBottom,n=e.paddingRight,a=e.paddingLeft,l=e.paddingTop,i=this.props,o=i.marginBottom,r=i.marginRight,c=i.marginLeft,s=i.marginTop,d=this.props,u=d.paddingBottomValue,p=d.paddingRightValue,m=d.paddingLeftValue,g=d.paddingTopValue,b=this.props,w=b.marginBottomValue,f=b.marginRightValue,v=b.marginLeftValue,y=b.marginTopValue,k=this.props,C=k.baseClass,O=k.showRullers,j=k.isSelected;return wp.element.createElement(E,null,O&&j&&"none"!=s&&wp.element.createElement("div",{className:_()("".concat(C,"__top-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==s&&("0px"==y||""==y||!y)||0==this.getMarginTop(),"hide-ruller":"custom"==s&&(parseFloat(y)<0||""==y||!y)}),style:{height:this.getMarginTop(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__top-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==s&&("0px"==y||""==y||!y||0==this.getMarginTop())})},Object(h.__)("Margin Top: ","getwid")+("custom"==s?y:""==s?this.getMarginTop()+"px":this.marginSizes[s])),wp.element.createElement("div",{className:"".concat(C,"__top-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=r&&wp.element.createElement("div",{className:_()("".concat(C,"__right-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==r&&("0px"==f||""==f||!f)||0==this.getMarginRight(),"hide-ruller":"custom"==r&&(parseFloat(f)<0||""==f||!f)}),style:{width:this.getMarginRight()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__right-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==r&&("0px"==f||""==f||!f||0==this.getMarginRight()),"label-corner":this.getMarginRight()<100})},Object(h.__)("Margin Right: ","getwid")+("custom"==r?f:""==r?this.getMarginRight()+"px":this.marginSizes[r])),wp.element.createElement("div",{className:"".concat(C,"__right-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=o&&wp.element.createElement("div",{className:_()("".concat(C,"__bottom-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==o&&("0px"==w||""==w||!w)||0==this.getMarginBottom(),"hide-ruller":"custom"==o&&(parseFloat(w)<0||""==w||!w)}),style:{height:this.getMarginBottom(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__bottom-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==o&&("0px"==w||""==w||!w||0==this.getMarginBottom())})},Object(h.__)("Margin Bottom: ","getwid")+("custom"==o&&""!=w?w:""==o?this.getMarginBottom()+"px":""!=w?this.marginSizes[o]:"")),wp.element.createElement("div",{className:"".concat(C,"__bottom-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=c&&wp.element.createElement("div",{className:_()("".concat(C,"__left-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==c&&("0px"==v||""==v||!v)||0==this.getMarginLeft(),"hide-ruller":"custom"==c&&(parseFloat(v)<0||""==v||!v)}),style:{width:"custom"!=c||v?this.getMarginLeft():void 0}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__left-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==c&&("0px"==v||""==v||!v||0==this.getMarginLeft()),"label-corner":this.getMarginLeft()<100})},Object(h.__)("Margin Left: ","getwid")+("custom"==c?v:""==c?this.getMarginLeft()+"px":this.marginSizes[c])),wp.element.createElement("div",{className:"".concat(C,"__left-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),this.props.children,O&&j&&"none"!=l&&wp.element.createElement("div",{className:_()("".concat(C,"__top-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==l&&("0px"==g||""==g||!g)||0==this.getPaddingTop(),"hide-ruller":"custom"==l&&(parseFloat(g)<0||""==g||!g)}),style:{height:this.getPaddingTop(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__top-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==l&&("0px"==g||""==g||!g||0==this.getPaddingTop())})},Object(h.__)("Padding Top: ","getwid")+("custom"==l?g:""==l?this.getPaddingTop()+"px":this.paddingSizes[l])),wp.element.createElement("div",{className:"".concat(C,"__top-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=n&&wp.element.createElement("div",{className:_()("".concat(C,"__right-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==n&&("0px"==p||""==p||!p)||0==this.getPaddingRight(),"hide-ruller":"custom"==n&&(parseFloat(p)<0||""==p||!p)}),style:{left:this.getOffset("right"),top:this.getPaddingTop(),bottom:this.getPaddingBottom(),right:this.getMarginRight()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__right-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==n&&("0px"==p||""==p||!p||0==this.getPaddingRight()),"label-corner":this.getPaddingRight()<100})},Object(h.__)("Padding Right: ","getwid")+("custom"==n?p:""==n?this.getPaddingRight()+"px":this.paddingSizes[n])),wp.element.createElement("div",{className:"".concat(C,"__right-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=t&&wp.element.createElement("div",{className:_()("".concat(C,"__bottom-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==t&&("0px"==u||""==u||!u)||0==this.getPaddingBottom(),"hide-ruller":"custom"==t&&(parseFloat(u)<0||""==u||!u)}),style:{height:this.getPaddingBottom(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__bottom-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==t&&("0px"==u||""==u||!u||0==this.getPaddingBottom())})},Object(h.__)("Padding Bottom: ","getwid")+("custom"==t?u:""==t?this.getPaddingBottom()+"px":this.paddingSizes[t])),wp.element.createElement("div",{className:"".concat(C,"__bottom-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=a&&wp.element.createElement("div",{className:_()("".concat(C,"__left-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==a&&("0px"==m||""==m||!m)||0==this.getPaddingLeft(),"hide-ruller":"custom"==a&&(parseFloat(m)<0||""==m||!m)}),style:{right:this.getOffset("left"),top:this.getPaddingTop(),bottom:this.getPaddingBottom(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__left-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==a&&("0px"==m||""==m||!m||0==this.getPaddingLeft()),"label-corner":this.getPaddingLeft()<100})},Object(h.__)("Padding Left: ","getwid")+("custom"==a?m:""==a?this.getPaddingLeft()+"px":this.paddingSizes[a])),wp.element.createElement("div",{className:"".concat(C,"__left-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))))}}]),t}(C);t.a=S},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(95)),f=(n.n(h),n(7)),_=n.n(f),v=n(1),y=(n.n(v),window),k=(y.jQuery,wp.components.Popover),C=wp.element,E=C.Component,O=(C.Fragment,C.createRef),j=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.toggle=e.toggle.bind(g()(e)),e.close=e.close.bind(g()(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(g()(e)),e.containerRef=O(),e.state={isOpen:!1},e}return w()(t,e),c()(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,a=this.props.onToggle;t.isOpen!==n&&a&&a(n)}},{key:"toggle",value:function(){this.setState(function(e){return{isOpen:!e.isOpen}})}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||this.close()}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(),(!0===e||this.props.onClickOutside)&&this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this,t=this.state.isOpen,n=this.props,a=n.renderContent,i=n.renderToggle,o=n.position,r=void 0===o?"bottom":o,c=n.className,s=n.contentClassName,d=n.expandOnMobile,u=n.headerTitle,p=n.focusOnMount,m=n.popoverProps,g={isOpen:t,onToggle:this.toggle,onClose:this.close};return wp.element.createElement("div",{className:_()("components-dropdown",c),ref:this.containerRef},i(g),t&&wp.element.createElement(k,l()({onClick:function(e){e.stopPropagation()},className:s,position:r,onClose:function(){e.close()},onFocusOutside:this.closeIfFocusOutside,expandOnMobile:d,headerTitle:u,focusOnMount:p},m),a(g)))}}]),t}(E);t.a=j},function(e,t){},function(e,t,n){function a(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,n){var a=l(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(n):i.value}},a(t,n,i||t)}var l=(n(3),n(97));e.exports=a},function(e,t,n){function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}var l=n(3);e.exports=a},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){/*!
|
7 |
*
|
8 |
* React FontIconPicker
|
9 |
*
|
@@ -20,4 +20,4 @@ window.wp=window.wp||{},window.wp["./assets/js/editor.blocks"]=function(e){funct
|
|
20 |
* https://opensource.org/licenses/MIT
|
21 |
*
|
22 |
*/
|
23 |
-
!function(t,a){e.exports=a(n(23),n(22),n(7),n(26),n(104))}(window,function(e,t,n,a,l){return function(e){function t(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenPossiblyCategorizedSource=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return i(e);if(null!==t)return void 0!==e[t]?i(e[t]):[];var n=[],a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}({},e);return Object.keys(a).forEach(function(e){n=i(n).concat(i(a[e]))}),n},t.getPossibleCategories=function(e){return Array.isArray(e)?null:Object.keys(e)},t.convertToHex=function(e){return String.fromCodePoint(parseInt(e,10))},t.isArrayEqual=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;var n=i(e);n.sort();var a=i(t);return a.sort(),JSON.stringify(n)===JSON.stringify(a)},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+n}},t.getSourceType=function(e){return null===e?"null":"object"!==a(e)||Array.isArray(e)?Array.isArray(e)?"array":a(e):"object"},t.InvalidSourceException=function(e,t){this.givenType=e,this.requiredType=t,this.message="Expected of type: ".concat(this.requiredType,", found: ").concat(this.givenType),this.toString=function(){return"Invalid Source Exception: ".concat(this.message)}},t.fuzzySearch=function(e,t){e=e.toLowerCase();var n=(t=t.toLowerCase()).length,a=e.length;if(a>n)return!1;if(a===n)return e===t;e:for(var l=0,i=0;l<a;l++){for(var o=e.codePointAt(l);i<n;)if(t.codePointAt(i++)===o)continue e;return!1}return!0},t.debounce=void 0,t.debounce=function(e,t){var n;return function(){var a=this,l=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(a,l)},t)}}},function(e,t){e.exports=n},,,function(e,t){e.exports=a},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n(1)),s=n(6),d=a(n(0)),u=a(n(3)),p=n(2),m=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==l(a)&&"function"!=typeof a?r(this):a,Object.defineProperty(r(n),"syncPortalPosition",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.resetPortalPosition(),n.fixWindowOverflow()}}),Object.defineProperty(r(n),"fixWindowOverflow",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=n.props.domRef.current.offsetWidth,t=n.props.domRef.current.offsetHeight,a=window,l=a.innerWidth,i=a.pageYOffset,o=document.documentElement.clientHeight,r=(0,p.getOffset)(n.props.domRef.current),c=r.left,s=r.top,d="self"===n.state.appendRoot?n.props.domRef.current:n.state.appendRoot,u=(0,p.getOffset)(d),m=n.props.btnRef.current,g=n.props.domRef.current,b=(0,p.getOffset)(m),w=getComputedStyle(m),h=(parseInt(w.borderTop,10)||0)+(parseInt(w.borderBottom,10)||0);if(c+e>l-20){var f=b.left+n.props.btnRef.current.offsetWidth-(e+u.left);f+u.left<0&&(f=10-u.left),g.style.left="".concat(f,"px")}t+s-i>o&&b.top-t>0&&("self"===n.state.appendRoot?g.style.top="-".concat(t-h,"px"):g.style.top="".concat(b.top+h-t,"px"))}}),n.state={},n.debouncedSyncPortalPosition=(0,p.debounce)(n.syncPortalPosition,250),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),o(t,null,[{key:"getDerivedStateFromProps",value:function(e){var n=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:n.appendRoot,portalClasses:n.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",n=(0,u.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:n,appendRoot:t}}}]),o(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,n=(0,p.getOffset)(t),a=(0,p.getOffset)(this.state.appendRoot),l=t.offsetHeight;this.props.domRef.current.style.left="".concat(n.left-a.left,"px"),this.props.domRef.current.style.top="".concat(n.top+l,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,u.default)(this.props.className,this.state.portalClasses),t=c.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,s.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:d.default.oneOfType([d.default.bool,d.default.string]),children:d.default.node.isRequired,domRef:d.default.object.isRequired,btnRef:d.default.object.isRequired,className:d.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var g=m;t.default=g},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n(1)),d=a(n(0)),u=a(n(3)),p=n(2),m=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==l(a)&&"function"!=typeof a?c(this):a,Object.defineProperty(c(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=n.props.currentPage,i=n.state.totalPage;null!==a?"next"===a?l+=1:l-=1:l=parseInt(e.target.value,10)-1,l<0&&(l=0),l>i-1&&(l=i-1),t=l+1,null===a&&Number.isNaN(l)&&(l=0,t=""),n.setState({viewPage:t}),n.props.handleChangePage(l)}}),Object.defineProperty(c(n),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangePage({},t)}}),Object.defineProperty(c(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.props.handleChangeValue(e)}}),Object.defineProperty(c(n),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangeValue(t)}}),n.state={viewPage:n.props.currentPage+1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),r(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var a=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),l=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),i=t.getActiveIcons(a,l,e.currentSearch),o=i.activeIcons,r=i.activeTitles,c=e.currentPage,s=e.iconsPerPage,d={iconView:t.getCurrentViewIcons(o,s,c),titleView:t.getCurrentViewIcons(r,s,c),totalPage:Math.ceil(o.length/s)};return""!==n.viewPage&&(d.viewPage=e.currentPage+1),d}},{key:"getActiveIcons",value:function(e,t,n){var a=i(e),l=i(t);if(""===n||null===n)return{activeIcons:a,activeTitles:l};var o=[],r=[];return a.forEach(function(e,a){(0,p.fuzzySearch)(n,t[a])&&(o.push(e),r.push(t[a]))}),{activeIcons:o,activeTitles:r}}},{key:"getCategoryFilteredState",value:function(e,t,n){var a=null,l=(0,p.getSourceType)(n);if(Array.isArray(t)){if("object"!==l)throw new p.InvalidSourceException(l,"object")}else if("array"!==l)throw new p.InvalidSourceException(l,"array");return 0!==e&&Array.isArray(t)&&(a=t[e]||null),(0,p.flattenPossiblyCategorizedSource)(n,a)}},{key:"getCurrentViewIcons",value:function(e,t,n){var a=n*t,l=(n+1)*t;return e.slice(a,l)}}]),r(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?s.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},s.default.createElement("i",{className:"fipicon-angle-left"}))):null,n=this.props.currentPage<this.state.totalPage-1?s.default.createElement("span",{className:"rfipicons__right",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"next")},onClick:function(t){return e.handleChangePage(t,"next")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Right"},s.default.createElement("i",{className:"fipicon-angle-right"}))):null;return s.default.createElement("div",{className:"rfipicons__pager"},s.default.createElement("div",{className:"rfipicons__num"},s.default.createElement("input",{value:this.state.viewPage,onChange:this.handleChangePage,className:"rfipicons__cp",type:"tel",min:1}),s.default.createElement("span",{className:"rfipicons__sp"},"/"),s.default.createElement("span",{className:"rfipicons__tp"},this.state.totalPage)),s.default.createElement("div",{className:"rfipicons__arrow"},t,n))}},{key:"renderIconView",value:function(){var e=this;return this.state.totalPage>0?this.state.iconView.map(function(t,n){var a=(0,u.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return s.default.createElement("span",{className:a,key:t,title:e.state.titleView[n]},s.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(n){return e.handleValueKeyboard(n,t)}},e.props.renderIcon(t)))}):s.default.createElement("span",{className:"rfipicons__icon--error"},s.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return s.default.createElement("div",{className:"rfipicons"},this.renderPager(),s.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:d.default.arrayOf(d.default.string),currentCategory:d.default.number,isMulti:d.default.bool.isRequired,icons:d.default.oneOfType([d.default.arrayOf(d.default.string),d.default.arrayOf(d.default.number),d.default.objectOf(d.default.oneOfType([d.default.arrayOf(d.default.number),d.default.arrayOf(d.default.string)]))]).isRequired,search:d.default.oneOfType([d.default.objectOf(d.default.arrayOf(d.default.string)),d.default.arrayOf(d.default.string)]),value:d.default.oneOfType([d.default.number,d.default.string,d.default.arrayOf(d.default.oneOfType([d.default.number,d.default.string]))]).isRequired,currentSearch:d.default.string.isRequired,handleChangeValue:d.default.func.isRequired,currentPage:d.default.number.isRequired,iconsPerPage:d.default.number.isRequired,handleChangePage:d.default.func.isRequired,renderIcon:d.default.func.isRequired,noIconPlaceholder:d.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var g=m;t.default=g},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(1)),i=a(n(0)),o=function(e){return l.default.createElement("div",{className:"rfipsearch"},l.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};o.propTypes={handleSearch:i.default.func.isRequired,value:i.default.string.isRequired,placeholder:i.default.string.isRequired};var r=o;t.default=r},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),r=a(n(0)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),n=t,(a=[{key:"render",value:function(){return o.default.createElement("div",{className:"rfipcategory"},o.default.createElement("select",{className:"rfipcategory__select",onChange:this.props.handleCategory,value:this.props.value},this.props.categories.map(function(e,t){return o.default.createElement("option",{className:"rfipcategory__select__option",key:e,value:t},e)})),o.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"}))}}])&&i(n.prototype,a),t}();Object.defineProperty(c,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{handleCategory:r.default.func.isRequired,value:r.default.number.isRequired,categories:r.default.arrayOf(r.default.string).isRequired}});var s=c;t.default=s},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n(1)),s=a(n(0)),d=a(n(10)),u=a(n(9)),p=a(n(8)),m=n(2),g=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==l(a)&&"function"!=typeof a?r(this):a,Object.defineProperty(r(n),"handleCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=parseInt(e.target.value,10);Number.isNaN(t)&&(t=0),n.props.handleChangeCategory(t),n.props.handleChangePage(0)}}),Object.defineProperty(r(n),"handleSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target.value;n.props.handleChangeSearch(t)}}),n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),o(t,null,[{key:"getDerivedStateFromProps",value:function(e){var t=(0,m.getPossibleCategories)(e.icons);return null!==t&&(t=[e.allCatPlaceholder].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t))),{categories:t,searchString:e.currentSearch}}}]),o(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"rfipdropdown__selector"},this.props.showSearch?c.default.createElement(u.default,{handleSearch:this.handleSearch,value:this.state.searchString,placeholder:this.props.searchPlaceholder}):null,this.props.showCategory&&this.state.categories&&this.state.categories.length?c.default.createElement(d.default,{handleCategory:this.handleCategory,value:this.props.currentCategory,categories:this.state.categories}):null,c.default.createElement(p.default,{categories:this.state.categories,currentCategory:this.props.currentCategory,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,value:this.props.value,currentSearch:this.props.currentSearch,handleChangeValue:this.props.handleChangeValue,currentPage:this.props.currentPage,iconsPerPage:this.props.iconsPerPage,handleChangePage:this.props.handleChangePage,renderIcon:this.props.renderIcon,noIconPlaceholder:this.props.noIconPlaceholder}))}}]),t}();Object.defineProperty(g,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{isMulti:s.default.bool.isRequired,value:s.default.oneOfType([s.default.number,s.default.string,s.default.arrayOf(s.default.any)]).isRequired,currentCategory:s.default.number.isRequired,currentPage:s.default.number.isRequired,currentSearch:s.default.string.isRequired,icons:s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string),s.default.objectOf(s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string)]))]).isRequired,search:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.string)]),showCategory:s.default.bool.isRequired,showSearch:s.default.bool.isRequired,iconsPerPage:s.default.number.isRequired,allCatPlaceholder:s.default.string.isRequired,searchPlaceholder:s.default.string.isRequired,noIconPlaceholder:s.default.string.isRequired,renderIcon:s.default.func.isRequired,handleChangeValue:s.default.func.isRequired,handleChangeCategory:s.default.func.isRequired,handleChangePage:s.default.func.isRequired,handleChangeSearch:s.default.func.isRequired}}),Object.defineProperty(g,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null}});var b=g;t.default=b},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n(1)),d=a(n(0)),u=a(n(3)),p=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];return r(a,(n=a=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(c(a),"handleClick",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.props.onClick()}}),Object.defineProperty(c(a),"handleKeyDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){32!==e.keyCode&&13!==e.keyCode||a.props.onClick()}}),Object.defineProperty(c(a),"handleDelete",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){e.stopPropagation(),a.props.handleDeleteValue(t)}}),Object.defineProperty(c(a),"handleDeleteKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){32!==e.keyCode&&13!==e.keyCode||a.props.handleDeleteValue(t)}}),Object.defineProperty(c(a),"renderEmptyIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(){return s.default.createElement("span",{className:"rfipbtn__icon--empty"},a.props.noSelectedPlaceholder)}}),n))}var n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),n=t,(a=[{key:"renderIcon",value:function(e){var t=this;return""===e||null===e||void 0===e?this.renderEmptyIcon():s.default.createElement("span",{className:"rfipbtn__icon",key:e},s.default.createElement("span",{className:"rfipbtn__elm"},this.props.renderIcon(e)),s.default.createElement("span",{className:"rfipbtn__del",onClick:function(n){return t.handleDelete(n,e)},onKeyDown:function(n){return t.handleDeleteKeyboard(n,e)},tabIndex:0,role:"button"},"×"))}},{key:"renderCurrentIcons",value:function(){var e=this;return this.props.isMulti?this.props.value.length?this.props.value.map(function(t){return e.renderIcon(t)}):this.renderEmptyIcon():this.renderIcon(this.props.value)}},{key:"render",value:function(){var e={onClick:this.handleClick,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:0},t=(0,u.default)("rfipbtn__button","rfipbtn__button--".concat(this.props.isOpen?"open":"close")),n=(0,u.default)(this.props.className);return s.default.createElement("div",i({className:n,ref:this.props.domRef},e),s.default.createElement("div",{className:"rfipbtn__current"},this.renderCurrentIcons()),s.default.createElement("div",{className:t},s.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"})))}}])&&o(n.prototype,a),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:d.default.string.isRequired,isOpen:d.default.bool.isRequired,onClick:d.default.func.isRequired,domRef:d.default.object.isRequired,isMulti:d.default.bool.isRequired,value:d.default.oneOfType([d.default.number,d.default.string,d.default.arrayOf(d.default.oneOfType([d.default.number,d.default.string]))]).isRequired,renderIcon:d.default.func.isRequired,handleDeleteValue:d.default.func.isRequired,noSelectedPlaceholder:d.default.string.isRequired}});var m=p;t.default=m},function(e,t){e.exports=l},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function c(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var d=a(n(1)),u=a(n(0)),p=a(n(3)),m=n(13),g=a(n(12)),b=a(n(11)),w=a(n(7)),h=n(2),f=[],_="",v=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==l(a)&&"function"!=typeof a?s(this):a,Object.defineProperty(s(n),"handleOuterClick",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target;n.isClickWithin(t)||n.closeDropdown()}}),Object.defineProperty(s(n),"handleEscapeKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e){27===e.keyCode&&n.closeDropdown()}}),Object.defineProperty(s(n),"isClickWithin",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return n.fipButtonRef.current.contains(e)||n.fipDropDownRef.current&&n.fipDropDownRef.current.contains(e)}}),Object.defineProperty(s(n),"handleToggle",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState(function(e){return n.handleDropDown(!e.isOpen,!1)})}}),Object.defineProperty(s(n),"closeDropdown",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.handleDropDown(!1)}}),Object.defineProperty(s(n),"handleDropDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l={isOpen:e};return l.elemClass=t.getDerivedClassName("rfip",n.props.theme,n.props.isMulti,e),l.btnClass=t.getDerivedClassName("rfipbtn",n.props.theme,n.props.isMulti,e),l.ddClass=t.getDerivedClassName("rfipdropdown",n.props.theme,n.props.isMulti,e),a&&n.setState(l),l}}),Object.defineProperty(s(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;n.props.isMulti?(t=i(n.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=f):t.push(e):t=e===n.state.value?_:e,n.setState({value:t,isOpen:!n.props.closeOnSelect}),n.props.onChange(t)}}),Object.defineProperty(s(n),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var a;a=n.props.isMulti?n.state.value.filter(function(t){return t!==e}):t.getDerivedValue(a,n.props.isMulti),n.setState({value:a}),n.props.onChange(a)}}),Object.defineProperty(s(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentPage:e})}}),Object.defineProperty(s(n),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(s(n),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(s(n),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(s(n),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t);n.fipPortalComputedStyle={height:a.height,paddingTop:a.paddingTop,paddingBottom:a.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(s(n),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=n.fipPortalComputedStyle.height,t.style.paddingTop=n.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=n.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(s(n),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t),n.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(s(n),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t).height;t.style.maxHeight=a}}),Object.defineProperty(s(n),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(s(n),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof n.props.renderFunc)return n.props.renderFunc(e);if("class"===n.props.renderUsing)return d.default.createElement("i",{className:e});var t=o({},n.props.renderUsing,n.props.convertHex?(0,h.convertToHex)(e):e);return d.default.createElement("i",t)}}),n.fipButtonRef=d.default.createRef(),n.fipDropDownRef=d.default.createRef(),n.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},n.fipPortalComputedStyle=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default.PureComponent),c(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var a={};return a.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,n.isOpen),a.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,n.isOpen),a.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,n.isOpen),a.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(a.currentCategory=0,a.currentPage=0),e.showSearch||(a.currentSearch="",a.currentPage=0),a}},{key:"getDerivedClassName",value:function(e,t,n,a){return(0,p.default)(e,"".concat(e,"--").concat(t),o({},"".concat(e,"--multi"),n),"".concat(e,"--").concat(a?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var n=e;return t?n=Array.isArray(e)?i(e):f:"number"!=typeof e&&"string"!=typeof e&&(n=_),n}}]),c(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return d.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},d.default.createElement(g.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),d.default.createElement(m.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},d.default.createElement(w.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},d.default.createElement(b.default,e))))}}]),t}();Object.defineProperty(v,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:u.default.oneOfType([u.default.arrayOf(u.default.string),u.default.arrayOf(u.default.number),u.default.objectOf(u.default.oneOfType([u.default.arrayOf(u.default.number),u.default.arrayOf(u.default.string)]))]).isRequired,search:u.default.oneOfType([u.default.objectOf(u.default.arrayOf(u.default.string)),u.default.arrayOf(u.default.string)]),iconsPerPage:u.default.number,theme:u.default.string,onChange:u.default.func.isRequired,showCategory:u.default.bool,showSearch:u.default.bool,value:u.default.oneOfType([u.default.arrayOf(u.default.string),u.default.arrayOf(u.default.number),u.default.number,u.default.string]),isMulti:u.default.bool,renderUsing:u.default.string,convertHex:u.default.bool,renderFunc:u.default.func,appendTo:u.default.oneOfType([u.default.bool,u.default.string]),allCatPlaceholder:u.default.string,searchPlaceholder:u.default.string,noIconPlaceholder:u.default.string,noSelectedPlaceholder:u.default.string,closeOnSelect:u.default.bool}}),Object.defineProperty(v,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(v,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var y=v;t.default=y},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=((a=n(14))&&a.__esModule?a:{default:a}).default;t.default=l}]).default})},function(e,t,n){"use strict";function a(){}function l(){}var i=n(103);l.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,l,o){if(o!==i){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var l=a(n(105)),i=a(n(110)),o=a(n(48)),r=a(n(45));e.exports={Transition:r.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:l.default}},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var o=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}t.default=e}(n(23)),a(n(106))),r=a(n(109)),c=a(n(22)),s=a(n(45)),d=(n(47),function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})}),u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},p=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,t.onEnter=function(e,n){var a=t.getClassNames(n?"appear":"enter"),l=a.className;t.removeClasses(e,"exit"),d(e,l),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var a=t.getClassNames(n?"appear":"enter"),l=a.activeClassName;t.reflowAndAddClass(e,l),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var a=t.getClassNames("appear").doneClassName,l=t.getClassNames("enter").doneClassName,i=n?a+" "+l:l;t.removeClasses(e,n?"appear":"enter"),d(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),a=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),d(e,a),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),a=n.activeClassName;t.reflowAndAddClass(e,a),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),a=n.doneClassName;t.removeClasses(e,"exit"),d(e,a),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,a="string"==typeof n,l=a&&n?n+"-":"",i=a?l+e:n[e];return{className:i,activeClassName:a?i+"-active":n[e+"Active"],doneClassName:a?i+"-done":n[e+"Done"]}},t}i(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),a=n.className,l=n.activeClassName,i=n.doneClassName;a&&u(e,a),l&&u(e,l),i&&u(e,i)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,d(e,t))},n.render=function(){var e=l({},this.props);return delete e.classNames,c.default.createElement(s.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.default.Component);p.defaultProps={classNames:""},p.propTypes={};var m=p;t.default=m,e.exports=t.default},function(e,t,n){"use strict";function a(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var l=n(107);t.__esModule=!0,t.default=a;var i=l(n(108));e.exports=t.default},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";function a(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=a,e.exports=t.default},function(e,t,n){"use strict";function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=a(e.className,t):e.setAttribute("class",a(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var o=(a(n(23)),a(n(22))),r=n(26),c=a(n(48)),s=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExited",1,n)},t}i(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var a,l=this.props.children,i=o.default.Children.toArray(l)[t];i.props[e]&&(a=i.props)[e].apply(a,n),this.props[e]&&this.props[e]((0,r.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,a=l(e,["children","in"]),i=o.default.Children.toArray(t),r=i[0],s=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,o.default.createElement(c.default,a,n?o.default.cloneElement(r,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.default.Component);s.propTypes={};var d=s;t.default=d,e.exports=t.default},function(e,t,n){"use strict";function a(e,t){var n=function(e){return t&&(0,c.isValidElement)(e)?t(e):e},a=Object.create(null);return e&&c.Children.map(e,function(e){return e}).forEach(function(e){a[e.key]=n(e)}),a}function l(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var a=Object.create(null),l=[];for(var i in e)i in t?l.length&&(a[i]=l,l=[]):l.push(i);var o,r={};for(var c in t){if(a[c])for(o=0;o<a[c].length;o++){var s=a[c][o];r[a[c][o]]=n(s)}r[c]=n(c)}for(o=0;o<l.length;o++)r[l[o]]=n(l[o]);return r}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}function o(e,t){return a(e.children,function(n){return(0,c.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})}function r(e,t,n){var o=a(e.children),r=l(t,o);return Object.keys(r).forEach(function(a){var l=r[a];if((0,c.isValidElement)(l)){var s=a in t,d=a in o,u=t[a],p=(0,c.isValidElement)(u)&&!u.props.in;!d||s&&!p?d||!s||p?d&&s&&(0,c.isValidElement)(u)&&(r[a]=(0,c.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:i(l,"exit",e),enter:i(l,"enter",e)})):r[a]=(0,c.cloneElement)(l,{in:!1}):r[a]=(0,c.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:i(l,"exit",e),enter:i(l,"enter",e)})}}),r}t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=l,t.getInitialChildMapping=o,t.getNextChildMapping=r;var c=n(22)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(1)),v=(n.n(_),n(11)),y=(n.n(v),n(19)),k=n(118),C=n(17),E=n(15),O=n(25),j=n(120),S=n(14),x=wp.data,T=x.select,N=x.withSelect,A=wp.element,M=A.Component,B=A.Fragment,I=wp.blockEditor||wp.editor,L=I.InspectorControls,P=I.MediaUpload,z=I.MediaPlaceholder,R=I.withColors,D=wp.components,V=D.BaseControl,F=D.Button,H=D.PanelBody,W=D.RangeControl,U=D.SelectControl,G=D.TextControl,q=D.CheckboxControl,Q=D.RadioControl,K=D.ToggleControl,J=D.ButtonGroup,Z=D.TabPanel,$=D.ExternalLink,Y=D.ColorPalette,X=D.ColorIndicator,ee=D.Dropdown,te=D.Dashicon,ne=wp.compose.compose,ae=["image"],le=["image"],ie=["video"],oe="components-base-control",re=function(e){function t(e){var n;return c()(this,t),n=p()(this,g()(t).apply(this,arguments)),n.onSelectSliderImages=n.onSelectSliderImages.bind(w()(n)),n.changeBackgroundGradient=n.changeBackgroundGradient.bind(w()(n)),n.changeForegroundGradient=n.changeForegroundGradient.bind(w()(n)),n.changeState=n.changeState.bind(w()(n)),n.state={contentHelpIsVisible:!1,tabName:"general",backgroundType:"color",foregroundType:"color"},n}return f()(t,e),d()(t,[{key:"changeState",value:function(e,t){this.setState(o()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){var e=this.state,t=e.tabName,n=e.backgroundType,a=e.foregroundType,l=this.props.attributes.customBackgroundColor,i=this.props,o=i.setBackgroundColor,r=i.backgroundColor,c=i.clientId,s=i.getBlock,d=this.props.attributes,u=d.backgroundGradientFirstColor,p=d.backgroundGradientFirstColorLocation,m=d.backgroundGradientSecondColor,g=d.backgroundGradientSecondColorLocation,b=d.backgroundGradientType,w=d.backgroundGradientAngle,h=this.props.attributes,f=h.foregroundGradientFirstColor,v=h.foregroundGradientFirstColorLocation,C=h.foregroundGradientSecondColor,O=h.foregroundGradientSecondColorLocation,x=h.foregroundGradientType,T=h.foregroundGradientAngle,N=this.changeState;return s(c)?wp.element.createElement(L,{key:"inspector"},wp.element.createElement(y.a,{state:t,stateName:"tabName",onChangeTab:N,tabs:["general","style","advanced"]}),"general"===t&&wp.element.createElement(B,null,wp.element.createElement(H,{initialOpen:!0},this.renderSizeSettings(),this.renderAlignmentSettings())),"style"===t&&wp.element.createElement(B,null,wp.element.createElement(H,{title:Object(_.__)("Background","getwid"),initialOpen:!0},wp.element.createElement(k.a,{state:n,stateName:"backgroundType",onChangeBackgroundType:N,types:["color","image","gradient","slider","video"]}),"color"===n&&wp.element.createElement(E.a,{colorSettings:[{title:Object(_.__)("Background Color","getwid"),colors:{customColor:l,defaultColor:r},changeColor:o}]}),"image"===n&&wp.element.createElement(B,null,this.renderBackgroundImage()),"gradient"===n&&wp.element.createElement(j.a,{label:"Background Gradient",value:{firstColor:u,secondColor:m,firstLocation:p,secondLocation:g,type:b,angle:w},onChange:this.changeBackgroundGradient}),"slider"===n&&wp.element.createElement(B,null,this.renderSliderSettings()),"video"===n&&wp.element.createElement(B,null,this.renderVideoSettings())),wp.element.createElement(H,{title:Object(_.__)("Overlay","getwid"),initialOpen:!1},this.renderForegroundSettings(),wp.element.createElement(k.a,{label:Object(_.__)("Overlay Type","getwid"),state:a,stateName:"foregroundType",onChangeBackgroundType:N,types:["color","image","gradient"]}),"color"===a&&wp.element.createElement(B,null,this.renderForegroundColor()),"image"===a&&wp.element.createElement(B,null,this.renderForegroundImage()),"gradient"===a&&wp.element.createElement(j.a,{label:"Overlay Gradient",value:{firstColor:f,secondColor:C,firstLocation:v,secondLocation:O,type:x,angle:T},onChange:this.changeForegroundGradient})),Object(S.f)(this),Object(S.c)(this)),"advanced"===t&&wp.element.createElement(B,null,this.renderAnimationSettings(),this.renderDividersSettings())):wp.element.createElement(L,null)}},{key:"changeBackgroundGradient",value:function(e,t,n,a,l,i){(0,this.props.setAttributes)({backgroundGradientFirstColor:e,backgroundGradientSecondColor:n,backgroundGradientFirstColorLocation:t,backgroundGradientSecondColorLocation:a,backgroundGradientType:l,backgroundGradientAngle:i})}},{key:"changeForegroundGradient",value:function(e,t,n,a,l,i){(0,this.props.setAttributes)({foregroundGradientFirstColor:e,foregroundGradientSecondColor:n,foregroundGradientFirstColorLocation:t,foregroundGradientSecondColorLocation:a,foregroundGradientType:l,foregroundGradientAngle:i})}},{key:"hasAnimation",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDelay,a=e.entranceAnimationDuration;return void 0!==t||"200ms"!==n||"1500ms"!==a}},{key:"renderBackgroundImage",value:function(){var e=this.props.attributes,t=e.backgroundImage,n=e.backgroundImagePosition,a=e.backgroundImageAttachment,l=e.backgroundImageRepeat,i=e.backgroundImageSize,o=this.props.setAttributes,r=t?t.url:void 0,c=t?t.id:void 0;return wp.element.createElement(B,null,wp.element.createElement(S.d,{label:Object(_.__)("Background Image","getwid"),url:r,id:c,onSelectMedia:function(e){return o({backgroundImage:void 0!==e?Object(v.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:function(){return o({backgroundImage:void 0})}}),!!t&&wp.element.createElement("div",{className:"".concat(oe,"__custom-wrapper")},wp.element.createElement("span",{className:"".concat(oe,"__label")},Object(_.__)("Background Settings","getwid")),wp.element.createElement(ee,{className:"".concat(oe,"__dropdown-action"),contentClassName:"".concat(oe,"__dropdown-content"),renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(F,{isDefault:!0,onClick:t},wp.element.createElement(te,{icon:"admin-tools"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(U,{label:Object(_.__)("Position","getwid"),value:void 0!==n?n:"",onChange:function(e){return o({backgroundImagePosition:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"top left",label:Object(_.__)("Top Left","getwid")},{value:"top center",label:Object(_.__)("Top Center","getwid")},{value:"top right",label:Object(_.__)("Top Right","getwid")},{value:"center left",label:Object(_.__)("Center Left ","getwid")},{value:"center center",label:Object(_.__)("Center Center","getwid")},{value:"center right",label:Object(_.__)("Center Right","getwid")},{value:"bottom left",label:Object(_.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(_.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(_.__)("Bottom Right","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Attachment","getwid"),value:void 0!==a?a:"",onChange:function(e){return o({backgroundImageAttachment:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"scroll",label:Object(_.__)("Scroll","getwid")},{value:"fixed",label:Object(_.__)("Fixed","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Repeat","getwid"),value:void 0!==l?l:"",onChange:function(e){return o({backgroundImageRepeat:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"no-repeat",label:Object(_.__)("No Repeat","getwid")},{value:"repeat",label:Object(_.__)("Repeat","getwid")},{value:"repeat-x",label:Object(_.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(_.__)("Repeat Y","getwid")},{value:"space",label:Object(_.__)("Space","getwid")},{value:"round",label:Object(_.__)("Round","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Size","getwid"),value:void 0!==i?i:"",onChange:function(e){return o({backgroundImageSize:e})},options:[{value:"",label:Object(_.__)("Cover","getwid")},{value:"contain",label:Object(_.__)("Contain","getwid")},{value:"auto",label:Object(_.__)("Auto","getwid")}]}))}})))}},{key:"renderDividersSettings",value:function(){var e=this.props.attributes,t=e.dividerTop,n=e.dividersTopHeight,a=e.dividerTopColor,i=e.dividerBottom,o=e.dividersBottomHeight,r=e.dividersBringTop,c=e.dividerBottomColor,s=this.props.setAttributes,d=[{value:"",label:Object(_.__)("None","getwid")},{value:"tilt",label:Object(_.__)("Tilt","getwid")},{value:"tilt-negative",label:Object(_.__)("Tilt Negative","getwid")},{value:"tilt-layered-1",label:Object(_.__)("Tilt Layered 1","getwid")},{value:"tilt-layered-2",label:Object(_.__)("Tilt Layered 2 ","getwid")},{value:"tilt-layered-3",label:Object(_.__)("Tilt Layered 3","getwid")},{value:"split",label:Object(_.__)("Split","getwid")},{value:"split-negative",label:Object(_.__)("Split Negative","getwid")},{value:"clouds",label:Object(_.__)("Clouds","getwid")},{value:"clouds-negative",label:Object(_.__)("Clouds Negative","getwid")},{value:"book",label:Object(_.__)("Book","getwid")},{value:"book-negative",label:Object(_.__)("Book Negative","getwid")},{value:"arrow",label:Object(_.__)("Arrow","getwid")},{value:"arrow-negative",label:Object(_.__)("Arrow Negative","getwid")},{value:"triangle-rounded",label:Object(_.__)("Triangle Rounded","getwid")},{value:"triangle-negative-rounded",label:Object(_.__)("Triangle Rounded Negative","getwid")},{value:"triangle-asymmetrical-rounded",label:Object(_.__)("Triangle Rounded Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative-rounded",label:Object(_.__)("Triangle Rounded Asymmetrical Negative","getwid")},{value:"triangle",label:Object(_.__)("Triangle","getwid")},{value:"triangle-negative",label:Object(_.__)("Triangle Negative","getwid")},{value:"triangle-asymmetrical",label:Object(_.__)("Triangle Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative",label:Object(_.__)("Triangle Asymmetrical Negative","getwid")},{value:"triangle-layered-asymmetrical",label:Object(_.__)("Triangle Layered Asymmetrical","getwid")},{value:"waves",label:Object(_.__)("Waves","getwid")},{value:"waves-light",label:Object(_.__)("Waves Light","getwid")},{value:"waves-large",label:Object(_.__)("Waves Large","getwid")},{value:"waves-large-negative",label:Object(_.__)("Waves Large Negative","getwid")},{value:"waves-layered",label:Object(_.__)("Waves Layered","getwid")},{value:"mountains",label:Object(_.__)("Waves Multi-Layered","getwid")},{value:"waves-pattern",label:Object(_.__)("Waves Pattern","getwid")},{value:"drips",label:Object(_.__)("Drips","getwid")},{value:"drips-negative",label:Object(_.__)("Drips Negative","getwid")},{value:"drops",label:Object(_.__)("Drops","getwid")},{value:"drops-negative",label:Object(_.__)("Drops Negative","getwid")},{value:"tilted-drips",label:Object(_.__)("Tilted Drips","getwid")},{value:"tilted-drips-negative",label:Object(_.__)("Tilted Drips Negative","getwid")},{value:"pyramids",label:Object(_.__)("Pyramids","getwid")},{value:"pyramids-negative",label:Object(_.__)("Pyramids Negative","getwid")},{value:"pyramids-round",label:Object(_.__)("Pyramids Rounded","getwid")},{value:"pyramids-round-negative",label:Object(_.__)("Pyramids Rounded Negative","getwid")},{value:"opacity-pyramids",label:Object(_.__)("Pyramids Layered","getwid")},{value:"curve",label:Object(_.__)("Curve","getwid")},{value:"curve-negative",label:Object(_.__)("Curve Negative","getwid")},{value:"curve-1",label:Object(_.__)("Curve 1","getwid")},{value:"curve-2",label:Object(_.__)("Curve 2","getwid")},{value:"curve-3",label:Object(_.__)("Curve 3","getwid")},{value:"curve-4",label:Object(_.__)("Curve 4","getwid")},{value:"curve-5",label:Object(_.__)("Curve 5","getwid")},{value:"curve-6",label:Object(_.__)("Curve 6","getwid")},{value:"curve-7",label:Object(_.__)("Curve 7","getwid")},{value:"curve-8",label:Object(_.__)("Curve 8","getwid")},{value:"curve-layered-1",label:Object(_.__)("Curve Layered 1","getwid")},{value:"curve-layered-2",label:Object(_.__)("Curve Layered 2","getwid")},{value:"curve-layered-3",label:Object(_.__)("Curve Layered 3","getwid")},{value:"curve-layered-4",label:Object(_.__)("Curve Layered 4","getwid")},{value:"zigzag-ice",label:Object(_.__)("Zigzag","getwid")},{value:"zigzag-ice-negative",label:Object(_.__)("Zigzag Negative","getwid")},{value:"zigzag-pattern",label:Object(_.__)("Zigzag Pattern","getwid")}];return wp.element.createElement(H,{title:Object(_.__)("Dividers","getwid"),initialOpen:!1},wp.element.createElement(U,{label:Object(_.__)("Top Divider","getwid"),value:void 0!==t?t:"",options:d,onChange:function(e){return s({dividerTop:e})}}),wp.element.createElement(C.a,{label:Object(_.__)("Top Divider Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersTopHeight:e})}}),wp.element.createElement(U,{label:Object(_.__)("Bottom Divider","getwid"),value:void 0!==i?i:"",options:d,onChange:function(e){return s({dividerBottom:e})}}),wp.element.createElement(C.a,{label:Object(_.__)("Bottom Divider Height","getwid"),value:o,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersBottomHeight:e})}}),wp.element.createElement(K,{label:Object(_.__)("Bring dividers to top","getwid"),checked:r,onChange:function(){s({dividersBringTop:!r})}}),(t||i)&&wp.element.createElement(E.a,{colorSettings:[].concat(l()(t?[{title:Object(_.__)("Top Divider Color","getwid"),colors:{customColor:a},changeColor:function(e){return s({dividerTopColor:e})}}]:[]),l()(i?[{title:Object(_.__)("Bottom Divider Color","getwid"),colors:{customColor:c},changeColor:function(e){return s({dividerBottomColor:e})}}]:[]))}))}},{key:"renderSizeSettings",value:function(){var e=this,t=this.props.attributes,n=t.contentMaxWidth,a=t.minHeight,l=t.gapSize,i=t.resetMinHeightTablet,o=t.resetMinHeightMobile,r=t.contentMaxWidthPreset,c=this.props.setAttributes,s=this.state.contentHelpIsVisible,d=function(){e.setState({contentHelpIsVisible:!s})};return wp.element.createElement(B,null,wp.element.createElement(Q,{label:Object(_.__)("Content Area Width","getwid"),selected:void 0!==r?r:"boxed",options:[{value:"boxed",label:Object(_.__)("Default","getwid")},{value:"full",label:Object(_.__)("Full Width","getwid")},{value:"custom",label:Object(_.__)("Custom Width","getwid")}],onChange:function(e){return c({contentMaxWidthPreset:e})}}),"custom"===r&&wp.element.createElement(W,{value:void 0!==n?n:"",onChange:function(e){c({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),!!s&&wp.element.createElement(B,null,wp.element.createElement(V,{label:Object(_.__)("Set the default width of the content area in Writing Settings.","getwid")},wp.element.createElement($,{href:Getwid.options_writing_url},Object(_.__)("Writing Settings","getwid"))),wp.element.createElement(F,{isLink:!0,onClick:d},Object(_.__)("Hide Help","getwid"))),!s&&wp.element.createElement(V,null,wp.element.createElement(F,{isLink:!0,onClick:d},Object(_.__)("Show Help","getwid"))),wp.element.createElement(V,null,wp.element.createElement(Z,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(_.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(_.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(_.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(C.a,{label:Object(_.__)("Section Height","getwid"),value:a,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return c({minHeight:e})}});case"tablet":return wp.element.createElement(q,{label:Object(_.__)("Reset height on tablet","getwid"),checked:void 0!==i&&i,onChange:function(e){return c({resetMinHeightTablet:e})}});case"mobile":return wp.element.createElement(q,{label:Object(_.__)("Reset height on mobile","getwid"),checked:void 0!==o&&o,onChange:function(e){return c({resetMinHeightMobile:e})}})}})),wp.element.createElement(U,{label:Object(_.__)("Vertical space between blocks","getwid"),value:void 0!==l?l:void 0,onChange:function(e){return c({gapSize:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"small",label:Object(_.__)("Small","getwid")},{value:"medium",label:Object(_.__)("Medium","getwid")},{value:"normal",label:Object(_.__)("Normal","getwid")},{value:"large",label:Object(_.__)("Large","getwid")},{value:"huge",label:Object(_.__)("Huge","getwid")},{value:"none",label:Object(_.__)("None","getwid")}]}))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,a=e.verticalAlignTablet,l=e.horizontalAlignTablet,i=e.verticalAlignMobile,o=e.horizontalAlignMobile,r=this.props.setAttributes;return wp.element.createElement(B,null,wp.element.createElement(V,null,wp.element.createElement(Z,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(_.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(_.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(_.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(B,null,wp.element.createElement(U,{label:Object(_.__)("Content Area Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return r({verticalAlign:e})},options:[{value:"flex-start",label:Object(_.__)("Top","getwid")},{value:"center",label:Object(_.__)("Middle","getwid")},{value:"flex-end",label:Object(_.__)("Bottom","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return r({horizontalAlign:e})},options:[{value:"flex-start",label:Object(_.__)("Left","getwid")},{value:"center",label:Object(_.__)("Center","getwid")},{value:"flex-end",label:Object(_.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(B,null,wp.element.createElement(U,{label:Object(_.__)("Content Area Vertical Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return r({verticalAlignTablet:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"flex-start",label:Object(_.__)("Top","getwid")},{value:"center",label:Object(_.__)("Middle","getwid")},{value:"flex-end",label:Object(_.__)("Bottom","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==l?l:"center",onChange:function(e){return r({horizontalAlignTablet:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"flex-start",label:Object(_.__)("Left","getwid")},{value:"center",label:Object(_.__)("Center","getwid")},{value:"flex-end",label:Object(_.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(B,null,wp.element.createElement(U,{label:Object(_.__)("Content Area Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return r({verticalAlignMobile:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"flex-start",label:Object(_.__)("Top","getwid")},{value:"center",label:Object(_.__)("Middle","getwid")},{value:"flex-end",label:Object(_.__)("Bottom","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return r({horizontalAlignMobile:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"flex-start",label:Object(_.__)("Left","getwid")},{value:"center",label:Object(_.__)("Center","getwid")},{value:"flex-end",label:Object(_.__)("Right","getwid")}]}))}})))}},{key:"renderSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderImages,n=e.sliderAnimationEffect,a=e.sliderAnimationDuration,l=e.sliderAnimationSpeed,i=this.props.setAttributes,o=t.map(function(e){return wp.element.createElement("img",{src:e.url,alt:e.alt})});return wp.element.createElement(B,null,0==t.length&&wp.element.createElement(z,{icon:"format-gallery",labels:{title:Object(_.__)("Slider","getwid"),instructions:Object(_.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:this.onSelectSliderImages,accept:"image/*",allowedTypes:ae,multiple:!0}),!!t.length&&wp.element.createElement(B,null,wp.element.createElement(P,{onSelect:this.onSelectSliderImages,multiple:!0,gallery:!0,allowedTypes:ae,value:void 0!==t?t.map(function(e){return e.id}):[],render:function(e){var n=e.open;return wp.element.createElement(V,null,!!t&&wp.element.createElement("div",{className:"getwid-slider-image-wrapper"},o),wp.element.createElement(J,null,wp.element.createElement(F,{isPrimary:!0,onClick:n},Object(_.__)("Select Images","getwid")),wp.element.createElement(F,{onClick:function(){i({sliderImages:[]})},isDefault:!0},Object(_.__)("Remove","getwid"))))}}),wp.element.createElement(Q,{label:Object(_.__)("Animation Effect","getwid"),selected:void 0!==n?n:"",options:[{value:"",label:Object(_.__)("Slide","getwid")},{value:"fade",label:Object(_.__)("Fade","getwid")}],onChange:function(e){return i({sliderAnimationEffect:e})}}),wp.element.createElement(G,{label:Object(_.__)("Animation Duration","getwid"),value:a,type:"number",min:0,onChange:function(e){return i({sliderAnimationDuration:e})}}),wp.element.createElement(G,{label:Object(_.__)("Animation Speed","getwid"),type:"number",value:void 0!==l?l:"",min:0,onChange:function(e){return i({sliderAnimationSpeed:e})}})))}},{key:"renderVideoSettings",value:function(){var e=this.props.attributes,t=e.backgroundVideoUrl,n=e.backgroundVideoMute,a=e.backgroundVideoLoop,l=e.backgroundVideoAutoplay,i=e.backgroundVideoPoster,o=e.backgroundVideoControlsPosition,r=this.props.setAttributes;return wp.element.createElement(B,null,t&&wp.element.createElement(B,null,wp.element.createElement("video",{controls:!0},wp.element.createElement("source",{src:t.url,type:"video/mp4"}),wp.element.createElement("span",null,Object(_.__)("Your browser does not support the video tag.","getwid")))),wp.element.createElement(P,{onSelect:function(e){r({backgroundVideoUrl:void 0}),r({backgroundVideoUrl:void 0!==e?Object(v.pick)(e,["alt","id","url"]):{}})},value:void 0!==t?t.id:"",allowedTypes:ie,render:function(e){var n=e.open;return wp.element.createElement(V,null,wp.element.createElement(F,{isPrimary:!0,onClick:n},Object(_.__)("Select Video","getwid")),!!t&&wp.element.createElement(F,{onClick:function(){r({backgroundVideoUrl:void 0})},isDefault:!0},Object(_.__)("Remove","getwid")))}}),t&&wp.element.createElement(B,null,wp.element.createElement(q,{label:Object(_.__)("Mute","getwid"),help:Object(_.__)("Enable this option to increase the chances for autoplay to succeed.","getwid"),checked:void 0===n||n,onChange:function(e){return r({backgroundVideoMute:e})}}),wp.element.createElement(q,{label:Object(_.__)("Repeat","getwid"),checked:void 0!==a&&a,onChange:function(e){return r({backgroundVideoLoop:e})}}),wp.element.createElement(q,{label:Object(_.__)("Autoplay","getwid"),checked:void 0!==l&&l,onChange:function(e){return r({backgroundVideoAutoplay:e})}}),wp.element.createElement(P,{label:Object(_.__)("Poster Image","getwid"),onSelect:function(e){return r({backgroundVideoPoster:e.url})},allowedTypes:le,value:void 0!==i?i:"",render:function(e){var t=e.open;return wp.element.createElement(V,null,wp.element.createElement(F,{isDefault:!0,onClick:t},!i&&Object(_.__)("Select Poster","getwid"),!!i&&Object(_.__)("Replace Poster","getwid")))}}),!!i&&wp.element.createElement(V,null,wp.element.createElement(F,{onClick:function(){r({backgroundVideoPoster:void 0})},isLink:!0,isDestructive:!0},Object(_.__)("Remove Poster","getwid"))),wp.element.createElement(U,{label:Object(_.__)("Controls Position","getwid"),value:o,onChange:function(e){return r({backgroundVideoControlsPosition:e})},options:[{value:"none",label:Object(_.__)("None","getwid")},{value:"top-left",label:Object(_.__)("Top Left","getwid")},{value:"top-right",label:Object(_.__)("Top Right","getwid")},{value:"bottom-left",label:Object(_.__)("Bottom Left","getwid")},{value:"bottom-right",label:Object(_.__)("Bottom Right","getwid")},{value:"center-center",label:Object(_.__)("Center Center","getwid")}]})))}},{key:"renderForegroundSettings",value:function(){var e=this.props.attributes,t=e.foregroundOpacity,n=e.foregroundFilter,a=this.props.setAttributes;return wp.element.createElement(B,null,wp.element.createElement(W,{label:Object(_.__)("Overlay Layer Opacity","getwid"),value:void 0!==t?t:"",onChange:function(e){return a({foregroundOpacity:e})},min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(U,{label:Object(_.__)("Blend Mode","getwid"),value:void 0!==n?n:"",onChange:function(e){return a({foregroundFilter:e})},options:[{value:"",label:Object(_.__)("None","getwid")},{value:"normal",label:Object(_.__)("Normal","getwid")},{value:"multiply",label:Object(_.__)("Multiply","getwid")},{value:"screen",label:Object(_.__)("Screen","getwid")},{value:"overlay",label:Object(_.__)("Overlay","getwid")},{value:"darken",label:Object(_.__)("Darken","getwid")},{value:"lighten",label:Object(_.__)("Lighten","getwid")},{value:"color-dodge",label:Object(_.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(_.__)("Color Burn","getwid")},{value:"hard-light",label:Object(_.__)("Hard Light","getwid")},{value:"soft-light",label:Object(_.__)("Soft Light","getwid")},{value:"difference",label:Object(_.__)("Difference","getwid")},{value:"exclusion",label:Object(_.__)("Exclusion","getwid")},{value:"hue",label:Object(_.__)("Hue","getwid")},{value:"saturation",label:Object(_.__)("Saturation","getwid")},{value:"color",label:Object(_.__)("Color","getwid")},{value:"luminosity",label:Object(_.__)("Luminosity","getwid")}]}))}},{key:"renderForegroundColor",value:function(){var e=this.props.attributes.foregroundColor,t=this.props.setAttributes,n=Object(v.get)(T("core/editor").getEditorSettings(),["colors"],[]);return wp.element.createElement(B,null,wp.element.createElement(V,{label:Object(_.__)("Overlay Color","getwid"),className:"components-getwid-color-palette-control"},e&&wp.element.createElement(X,{colorValue:e}),wp.element.createElement(Y,{colors:n,value:e,onChange:function(e){t({foregroundColor:e})}})))}},{key:"renderForegroundImage",value:function(){var e=this.props.attributes,t=e.foregroundImage,n=e.foregroundImagePosition,a=e.foregroundImageAttachment,l=e.foregroundImageRepeat,i=e.foregroundImageSize,o=this.props.setAttributes,r=t?t.url:void 0,c=t?t.id:void 0,s=function(){o({foregroundImage:void 0,foregroundImagePosition:void 0,foregroundImageAttachment:void 0,foregroundImageRepeat:void 0,foregroundImageSize:void 0})};return wp.element.createElement(B,null,wp.element.createElement(S.d,{label:Object(_.__)("Overlay Image","getwid"),url:r,id:c,onSelectMedia:function(e){return o({foregroundImage:void 0!==e?Object(v.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:s}),t&&wp.element.createElement(B,null,wp.element.createElement(U,{label:Object(_.__)("Position","getwid"),value:void 0!==n?n:"",onChange:function(e){return o({foregroundImagePosition:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"top left",label:Object(_.__)("Top Left","getwid")},{value:"top center",label:Object(_.__)("Top Center","getwid")},{value:"top right",label:Object(_.__)("Top Right","getwid")},{value:"center left",label:Object(_.__)("Center Left ","getwid")},{value:"center center",label:Object(_.__)("Center Center","getwid")},{value:"center right",label:Object(_.__)("Center Right","getwid")},{value:"bottom left",label:Object(_.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(_.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(_.__)("Bottom Right","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Attachment","getwid"),value:void 0!==a?a:"",onChange:function(e){return o({foregroundImageAttachment:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"scroll",label:Object(_.__)("Scroll","getwid")},{value:"fixed",label:Object(_.__)("Fixed","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Repeat","getwid"),value:void 0!==l?l:"",onChange:function(e){return o({foregroundImageRepeat:e})},options:[{value:"",label:Object(_.__)("Default","getwid")},{value:"no-repeat",label:Object(_.__)("No Repeat","getwid")},{value:"repeat",label:Object(_.__)("Repeat","getwid")},{value:"repeat-x",label:Object(_.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(_.__)("Repeat Y","getwid")},{value:"space",label:Object(_.__)("Space","getwid")},{value:"round",label:Object(_.__)("Round","getwid")}]}),wp.element.createElement(U,{label:Object(_.__)("Size","getwid"),value:void 0!==i?i:"",onChange:function(e){return o({foregroundImageSize:e})},options:[{value:"",label:Object(_.__)("Cover","getwid")},{value:"contain",label:Object(_.__)("Contain","getwid")},{value:"auto",label:Object(_.__)("Auto","getwid")}]})))}},{key:"renderAnimationSettings",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDuration,a=e.entranceAnimationDelay,l=this.props.setAttributes,i=function(){l({entranceAnimation:void 0,entranceAnimationDelay:"200ms",entranceAnimationDuration:"1500ms"})};return wp.element.createElement(B,null,wp.element.createElement(H,{title:Object(_.__)("Entrance Animation","getwid"),initialOpen:!0},wp.element.createElement(O.a,{label:Object(_.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==t?t:"",onChange:function(e){return l({entranceAnimation:e})}}),wp.element.createElement(U,{label:Object(_.__)("Duration","getwid"),value:void 0!==n?n:"",onChange:function(e){return l({entranceAnimationDuration:e})},options:[{value:"2000ms",label:Object(_.__)("Slow","getwid")},{value:"1500ms",label:Object(_.__)("Normal","getwid")},{value:"800ms",label:Object(_.__)("Fast","getwid")},{value:"400ms",label:Object(_.__)("Very Fast","getwid")}]}),wp.element.createElement(G,{label:Object(_.__)("Delay, ms","getwid"),value:void 0!==a?a.replace("ms",""):"",type:"number",min:0,placeholder:200,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),l({entranceAnimationDelay:e})}}),wp.element.createElement(V,null,wp.element.createElement(F,{isLink:!0,onClick:i,disabled:!this.hasAnimation()},Object(_.__)("Reset","getwid")))))}},{key:"onSelectSliderImages",value:function(e){this.props.setAttributes({sliderImages:void 0!==e?e.map(function(e){return Object(v.pick)(e,["alt","id","url"])}):[]})}}]),t}(M);t.a=ne([N(function(e,t){return{getEditorSettings:e("core/editor").getEditorSettings}}),R("backgroundColor")])(re)},function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}e.exports=n},function(e,t){},function(e,t,n){"use strict";function a(e){var t=e.state,n=e.label,a=e.stateName,l=e.onChangeBackgroundType,i=e.types,c=void 0===i?["color","image","gradient","slider","video"]:i;return wp.element.createElement(m,null,wp.element.createElement(d,{label:n,className:"components-getwid-background-types-control"},wp.element.createElement(u,{className:"components-getwid-background-types-group"},c.includes("color")&&wp.element.createElement(m,null,wp.element.createElement(p,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M3,16h14c0.55,0,1,0.45,1,1v0c0,0.55-0.45,1-1,1H3c-0.55,0-1-0.45-1-1v0C2,16.45,2.45,16,3,16z"}),wp.element.createElement("path",{d:"M9.05,13.95L13.3,9.7c0.39-0.39,0.39-1.02,0-1.41L9.05,4.05L8.34,3.34L7.63,2.63c-0.39-0.39-1.02-0.39-1.41,0L6.22,2.64\tc-0.39,0.39-0.39,1.02,0,1.41l0.7,0.7L3.39,8.3C3,8.69,3,9.31,3.39,9.7l4.24,4.25C8.02,14.34,8.66,14.34,9.05,13.95z M9.04,6.87\tL11.17,9H5.51l2.13-2.13C8.02,6.49,8.66,6.49,9.04,6.87z"}),wp.element.createElement("path",{d:"M13,13c0,0.55,0.45,1,1,1s1-0.45,1-1s-1-3-1-3S13,12.45,13,13z"})),label:Object(r.__)("Color","getwid"),className:o()("wp-block-getwid-background-types-icon","is-button",{"is-active":"color"===t}),onClick:function(){l(a,"color")}})),c.includes("image")&&wp.element.createElement(p,{icon:"format-image",label:Object(r.__)("Image","getwid"),className:o()("wp-block-getwid-background-types-icon","is-button",{"is-active":"image"===t}),onClick:function(){l(a,"image")}}),c.includes("gradient")&&wp.element.createElement(p,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M2,3v14c0,0.55,0.45,1,1,1h14c0.55,0,1-0.45,1-1V3c0-0.55-0.45-1-1-1H3C2.45,2,2,2.45,2,3z M15,16H4L16,4v11 C16,15.55,15.55,16,15,16z"})),label:Object(r.__)("Gradient","getwid"),className:o()("wp-block-getwid-background-types-icon","is-button",{"is-active":"gradient"===t}),onClick:function(){l(a,"gradient")}}),c.includes("slider")&&wp.element.createElement(p,{icon:"images-alt2",label:Object(r.__)("Slider","getwid"),className:o()("wp-block-getwid-background-types-icon","is-button",{"is-active":"slider"===t}),onClick:function(){l(a,"slider")}}),c.includes("video")&&wp.element.createElement(p,{icon:"video-alt3",label:Object(r.__)("Video","getwid"),className:o()("wp-block-getwid-background-types-icon","is-button",{"is-active":"video"===t}),onClick:function(){l(a,"video")}}))))}t.a=a;var l=(n(0),n(119)),i=(n.n(l),n(7)),o=n.n(i),r=n(1),c=(n.n(r),window),s=(c.jQuery,wp.components),d=s.BaseControl,u=s.ButtonGroup,p=s.IconButton,m=wp.element.Fragment},function(e,t){},function(e,t,n){"use strict";function a(e){var t,n=e.label,a=e.value,l=e.onChange,d=function(e){var t=e.firstColor,n=e.firstLocation,a=e.secondColor,i=e.secondLocation,o=e.type,r=e.angle;l(t,n,a,i,o,r)};t="linear"===a.type?"".concat(a.angle,"deg"):"at ".concat(a.position);var p="".concat(a.type,"-gradient( ").concat(t,", ").concat(a.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(a.firstLocation,"%, ").concat(a.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(a.secondLocation,"% )"),_=a.firstColor&&a.secondColor;return wp.element.createElement("div",{className:"".concat(f)},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,_&&wp.element.createElement(g,{colorValue:p}))),wp.element.createElement("div",{className:"".concat(f,"-presets")},r.a.map(function(e){return wp.element.createElement(c.a,{title:e.title,className:f,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===a.firstColor&&e.secondColor===a.secondColor,onChange:l})}),wp.element.createElement("div",{className:"".concat(f,"-custom-wrapper")},wp.element.createElement(m,{className:"".concat(f,"-dropdown-link-action"),contentClassName:"".concat(f,"-dropdown-content"),renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(b,{onClick:t,isLink:!0},Object(o.__)("Custom Gradient","getwid"))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement(h,{label:Object(o.__)("Type","getwid"),value:a.type?a.type:"",onChange:function(e){return d(i()({},a,{type:e}))},options:[{value:"",label:Object(o.__)("None","getwid")},{value:"linear",label:Object(o.__)("Linear","getwid")},{value:"radial",label:Object(o.__)("Radial","getwid")}]}),wp.element.createElement(s.a,{colorSettings:[{title:Object(o.__)("First Color","getwid"),colors:{customColor:a.firstColor},changeColor:function(e){return d(i()({},a,{firstColor:e,type:a.type?a.type:"linear"}))}}]}),wp.element.createElement(w,{label:Object(o.__)("First Color Location","getwid"),value:void 0!=a.firstLocation?a.firstLocation:"",onChange:function(e){return d(i()({},a,{firstLocation:e}))},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(s.a,{colorSettings:[{title:Object(o.__)("Second Color","getwid"),colors:{customColor:a.secondColor},changeColor:function(e){return d(i()({},a,{secondColor:e,type:a.type?a.type:"linear"}))}}]}),wp.element.createElement(w,{label:Object(o.__)("Second Color Location","getwid"),value:void 0!=a.secondLocation?a.secondLocation:"",onChange:function(e){return d(i()({},a,{secondLocation:e}))},placeholder:100,min:0,max:100,step:1}),"linear"===a.type&&wp.element.createElement(w,{label:Object(o.__)("Angle","getwid"),value:void 0!=a.angle?a.angle:"",onChange:function(e){return d(i()({},a,{angle:e}))},placeholder:180,min:0,max:360,step:1}))}}),wp.element.createElement(b,{className:"".concat(f,"-clear"),type:"button",isSmall:!0,isDefault:!0,onClick:function(){return l(void 0,0,void 0,100,"",90)}},Object(o.__)("Reset","getwid"))))))}t.a=a;var l=n(9),i=n.n(l),o=(n(0),n(1)),r=(n.n(o),n(121)),c=n(122),s=n(15),d=n(123),u=(n.n(d),wp.element.Fragment),p=wp.components,m=p.Dropdown,g=p.ColorIndicator,b=p.Button,w=p.RangeControl,h=p.SelectControl,f="components-getwid-gradient-palette-control"},function(e,t,n){"use strict";var a=n(1),l=(n.n(a),[{title:Object(a.__)("Vivid cyan blue to vivid purple"),firstColor:"#0693e3",secondColor:"#9b51e0"},{title:Object(a.__)("Light green cyan to vivid green cyan"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:Object(a.__)("Luminous vivid amber to luminous vivid orange"),firstColor:"#fcb900",secondColor:"#ff6900"},{title:Object(a.__)("Luminous vivid orange to vivid red"),firstColor:"#ff6900",secondColor:"#cf2e2e"},{title:Object(a.__)("Very light gray to cyan bluish gray"),firstColor:"#eeeeee",secondColor:"#a9b8c3"},{title:Object(a.__)("Blush light purple"),firstColor:"#ffceec",secondColor:"#9896f0"},{title:Object(a.__)("Electric grass"),firstColor:"#caf880",secondColor:"#71ce7e"},{title:Object(a.__)("Midnight"),firstColor:"#020381",secondColor:"#2874fc"}]);t.a=l},function(e,t,n){"use strict";var a=(n(0),n(7)),l=n.n(a),i=wp.components,o=i.Tooltip,r=i.Dashicon,c=function(e){var t=e.title,n=e.className,a=e.firstColor,i=e.secondColor,c=e.isSelected,s=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":c,className:l()("".concat(n,"-option"),{"is-active":c}),style:{background:"linear-gradient(90deg, ".concat(a," 0%, ").concat(i," 100%)")},onClick:function(){return s(a,0,i,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"".concat(n,"-option-wrapper")},t?wp.element.createElement(o,{text:t},d):d,c&&wp.element.createElement(r,{icon:"saved"}))};t.a=c},function(e,t){},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(36)),v=n(34),y=n(35),k=n(1),C=(n.n(k),n(7)),E=n.n(C),O=n(24),j=wp.element.Component,S=wp.blockEditor||wp.editor,x=S.InnerBlocks,T=S.getColorClassName,N=O.a.prepareGradientStyle,A=O.a.prepareBackgroundImageStyles,M="wp-block-getwid-section",B=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,a=n.align,i=n.paddingTopValue,r=n.paddingBottomValue,s=n.paddingLeftValue,d=n.paddingRightValue,u=n.marginTopValue,p=n.marginBottomValue,m=n.marginLeftValue,g=n.marginRightValue,b=n.backgroundImage,w=n.sliderImages,h=n.backgroundVideoUrl,f=n.backgroundVideoControlsPosition,k=n.foregroundOpacity,C=n.foregroundColor,O=n.foregroundFilter,j=n.dividersBringTop,S=n.contentMaxWidth,B=n.contentMaxWidthPreset,I=n.minHeight,L=n.gapSize,P=n.entranceAnimation,z=n.entranceAnimationDuration,R=n.entranceAnimationDelay,D=n.backgroundColor,V=n.customBackgroundColor,F=n.resetMinHeightTablet,H=n.resetMinHeightMobile,W=n.verticalAlign,U=n.verticalAlignTablet,G=n.verticalAlignMobile,q=n.horizontalAlign,Q=n.horizontalAlignTablet,K=n.horizontalAlignMobile,J=n.paddingTop,Z=n.paddingRight,$=n.paddingBottom,Y=n.paddingLeft,X=n.paddingTopTablet,ee=n.paddingRightTablet,te=n.paddingBottomTablet,ne=n.paddingLeftTablet,ae=n.paddingTopMobile,le=n.paddingRightMobile,ie=n.paddingBottomMobile,oe=n.paddingLeftMobile,re=n.marginTop,ce=n.marginRight,se=n.marginBottom,de=n.marginLeft,ue=n.marginTopTablet,pe=n.marginRightTablet,me=n.marginBottomTablet,ge=n.marginLeftTablet,be=n.marginTopMobile,we=n.marginRightMobile,he=n.marginBottomMobile,fe=n.marginLeftMobile,_e=n.className,ve=n.anchor,ye=c()({},"custom"===re?{marginTop:u}:[],"custom"===se?{marginBottom:p}:[]),ke=c()({minHeight:I},"custom"===de?{marginLeft:m}:[],"custom"===ce?{marginRight:g}:[],"custom"===J?{paddingTop:i}:[],"custom"===$?{paddingBottom:r}:[],"custom"===Y?{paddingLeft:s}:[],"custom"===Z?{paddingRight:d}:[]),Ce=E()("".concat(M,"__wrapper"),(e={},o()(e,"getwid-padding-top-".concat(J),"custom"!==J&&""!==J),o()(e,"getwid-padding-bottom-".concat($),"custom"!==$&&""!==$),o()(e,"getwid-padding-left-".concat(Y),"custom"!==Y&&""!==Y),o()(e,"getwid-padding-right-".concat(Z),"custom"!==Z&&""!==Z),o()(e,"getwid-padding-tablet-top-".concat(X),""!==X),o()(e,"getwid-padding-tablet-bottom-".concat(te),""!==te),o()(e,"getwid-padding-tablet-left-".concat(ne),""!==ne),o()(e,"getwid-padding-tablet-right-".concat(ee),""!==ee),o()(e,"getwid-padding-mobile-top-".concat(ae),""!==ae),o()(e,"getwid-padding-mobile-bottom-".concat(ie),""!==ie),o()(e,"getwid-padding-mobile-left-".concat(oe),""!==oe),o()(e,"getwid-padding-mobile-right-".concat(le),""!==le),o()(e,"getwid-margin-left-".concat(de),"custom"!==de&&""!==de),o()(e,"getwid-margin-right-".concat(ce),"custom"!==ce&&""!==ce),o()(e,"getwid-margin-tablet-left-".concat(ge),""!==ge),o()(e,"getwid-margin-tablet-right-".concat(pe),""!==pe),o()(e,"getwid-margin-mobile-left-".concat(fe),""!==fe),o()(e,"getwid-margin-mobile-right-".concat(we),""!==we),o()(e,"getwid-align-items-".concat(W),"center"!==W),o()(e,"getwid-align-items-tablet-".concat(U),""!==U),o()(e,"getwid-align-items-mobile-".concat(G),""!==G),o()(e,"getwid-justify-content-".concat(q),"center"!==q),o()(e,"getwid-justify-content-tablet-".concat(Q),""!==Q),o()(e,"getwid-justify-content-mobile-".concat(K),""!==K),o()(e,"getwid-reset-min-height-tablet",!1!==F),o()(e,"getwid-reset-min-height-mobile",!1!==H),e)),Ee=c()({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},N("background",this.props),A("background",this.props)),Oe=T("background-color",D),je=E()("".concat(M,"__background"),o()({"has-background":D||V},Oe,Oe)),Se=c()({opacity:void 0!==k?k/100:void 0,backgroundColor:C},N("foreground",this.props),A("foreground",this.props),{mixBlendMode:O}),xe={maxWidth:S&&"custom"===B?"".concat(S,"px"):void 0},Te=P?{"data-wow-duration":void 0!==z?z:"2000ms","data-wow-delay":void 0!==R?R:"500ms"}:{},Ne=E()(_e,a?"align".concat(a):null,(t={},o()(t,"has-inner-blocks-gap-".concat(L),void 0!==L&&""!==L),o()(t,"getwid-anim ".concat(P),!!P),o()(t,"getwid-margin-top-".concat(re),"custom"!==re&&""!==re),o()(t,"getwid-margin-bottom-".concat(se),"custom"!==se&&""!==se),o()(t,"getwid-margin-tablet-top-".concat(ue),"custom"!==ue&&""!==ue),o()(t,"getwid-margin-tablet-bottom-".concat(me),"custom"!==me&&""!==me),o()(t,"getwid-margin-mobile-top-".concat(be),"custom"!==be&&""!==be),o()(t,"getwid-margin-mobile-bottom-".concat(he),"custom"!==he&&""!==he),o()(t,"getwid-section-content-full-width","full"===B),o()(t,"getwid-section-content-custom-width","custom"===B),t)),Ae=ve||void 0;return wp.element.createElement("div",l()({id:Ae,className:Ne,style:ye},Te),wp.element.createElement("div",{className:Ce,style:ke},wp.element.createElement(v.a,c()({},this.props,{baseClass:M})),!!h&&"none"!==f&&wp.element.createElement("div",{className:E()("getwid-background-video-controls",o()({},"is-position-".concat(f),"top-right"!==f))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:E()("".concat(M,"__inner-wrapper"),o()({},"has-dividers-over",j)),style:xe},wp.element.createElement("div",{className:"".concat(M,"__background-holder")},wp.element.createElement("div",{className:je,style:Ee},!!b&&wp.element.createElement("div",{className:"".concat(M,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(M,"__background-image"),src:b.url,alt:b.alt})),!!w.length&&wp.element.createElement("div",{className:"".concat(M,"__background-slider-wrapper")},wp.element.createElement(_.b,c()({},this.props,{baseClass:M}))),!!h&&wp.element.createElement("div",{className:"".concat(M,"__background-video-wrapper")},wp.element.createElement(y.a,l()({},c()({},this.props,{baseClass:M}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(M,"__foreground"),style:Se})),wp.element.createElement("div",{className:"".concat(M,"__content")},wp.element.createElement("div",{className:"".concat(M,"__inner-content")},wp.element.createElement(x.Content,null))))))}}]),t}(j);t.a=B},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(1)),v=(n.n(_),n(7)),y=n.n(v),k=n(36),C=n(34),E=n(35),O=n(24),j=wp.element.Component,S=wp.blockEditor||wp.editor,x=S.InnerBlocks,T=S.getColorClassName,N=O.a.prepareGradientStyle,A=O.a.prepareBackgroundImageStyles,M="wp-block-getwid-section",B=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,a=n.paddingTopValue,i=n.paddingBottomValue,r=n.paddingLeftValue,s=n.paddingRightValue,d=n.marginTopValue,u=n.marginBottomValue,p=n.marginLeftValue,m=n.marginRightValue,g=n.backgroundImage,b=n.sliderImages,w=n.backgroundVideoUrl,h=n.backgroundVideoControlsPosition,f=n.foregroundOpacity,_=n.foregroundColor,v=n.foregroundFilter,O=n.dividersBringTop,j=n.contentMaxWidth,S=n.contentMaxWidthPreset,B=n.minHeight,I=n.gapSize,L=n.entranceAnimation,P=n.entranceAnimationDuration,z=n.entranceAnimationDelay,R=n.backgroundColor,D=n.customBackgroundColor,V=n.resetMinHeightTablet,F=n.resetMinHeightMobile,H=n.verticalAlign,W=n.verticalAlignTablet,U=n.verticalAlignMobile,G=n.horizontalAlign,q=n.horizontalAlignTablet,Q=n.horizontalAlignMobile,K=n.paddingTop,J=n.paddingRight,Z=n.paddingBottom,$=n.paddingLeft,Y=n.paddingTopTablet,X=n.paddingRightTablet,ee=n.paddingBottomTablet,te=n.paddingLeftTablet,ne=n.paddingTopMobile,ae=n.paddingRightMobile,le=n.paddingBottomMobile,ie=n.paddingLeftMobile,oe=n.marginTop,re=n.marginRight,ce=n.marginBottom,se=n.marginLeft,de=n.marginTopTablet,ue=n.marginRightTablet,pe=n.marginBottomTablet,me=n.marginLeftTablet,ge=n.marginTopMobile,be=n.marginRightMobile,we=n.marginBottomMobile,he=n.marginLeftMobile,fe=n.className,_e=n.anchor,ve=c()({},"custom"===oe?{marginTop:d}:[],"custom"===ce?{marginBottom:u}:[]),ye=c()({minHeight:B},"custom"===se?{marginLeft:p}:[],"custom"===re?{marginRight:m}:[],"custom"===K?{paddingTop:a}:[],"custom"===Z?{paddingBottom:i}:[],"custom"===$?{paddingLeft:r}:[],"custom"===J?{paddingRight:s}:[]),ke=y()("".concat(M,"__wrapper"),(e={},o()(e,"getwid-padding-top-".concat(K),"custom"!==K&&""!==K),o()(e,"getwid-padding-bottom-".concat(Z),"custom"!==Z&&""!==Z),o()(e,"getwid-padding-left-".concat($),"custom"!==$&&""!==$),o()(e,"getwid-padding-right-".concat(J),"custom"!==J&&""!==J),o()(e,"getwid-padding-tablet-top-".concat(Y),""!==Y),o()(e,"getwid-padding-tablet-bottom-".concat(ee),""!==ee),o()(e,"getwid-padding-tablet-left-".concat(te),""!==te),o()(e,"getwid-padding-tablet-right-".concat(X),""!==X),o()(e,"getwid-padding-mobile-top-".concat(ne),""!==ne),o()(e,"getwid-padding-mobile-bottom-".concat(le),""!==le),o()(e,"getwid-padding-mobile-left-".concat(ie),""!==ie),o()(e,"getwid-padding-mobile-right-".concat(ae),""!==ae),o()(e,"getwid-margin-left-".concat(se),"custom"!==se&&""!==se),o()(e,"getwid-margin-right-".concat(re),"custom"!==re&&""!==re),o()(e,"getwid-margin-tablet-left-".concat(me),""!==me),o()(e,"getwid-margin-tablet-right-".concat(ue),""!==ue),o()(e,"getwid-margin-mobile-left-".concat(he),""!==he),o()(e,"getwid-margin-mobile-right-".concat(be),""!==be),o()(e,"getwid-align-items-".concat(H),"center"!==H),o()(e,"getwid-align-items-tablet-".concat(W),""!==W),o()(e,"getwid-align-items-mobile-".concat(U),""!==U),o()(e,"getwid-justify-content-".concat(G),"center"!==G),o()(e,"getwid-justify-content-tablet-".concat(q),""!==q),o()(e,"getwid-justify-content-mobile-".concat(Q),""!==Q),o()(e,"getwid-reset-min-height-tablet",!1!==V),o()(e,"getwid-reset-min-height-mobile",!1!==F),e)),Ce=c()({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},N("background",this.props),A("background",this.props)),Ee=T("background-color",R),Oe=y()("".concat(M,"__background"),o()({"has-background":R||D},Ee,Ee)),je=c()({opacity:void 0!==f?f/100:void 0,backgroundColor:_},N("foreground",this.props),A("foreground",this.props),{mixBlendMode:v}),Se={maxWidth:j&&"custom"===S?"".concat(j,"px"):void 0},xe=L?{"data-wow-duration":void 0!==P?P:"2000ms","data-wow-delay":void 0!==z?z:"500ms"}:{},Te=y()(fe,(t={},o()(t,"has-inner-blocks-gap-".concat(I),void 0!==I&&""!==I),o()(t,"getwid-anim ".concat(L),!!L),o()(t,"getwid-margin-top-".concat(oe),"custom"!==oe&&""!==oe),o()(t,"getwid-margin-bottom-".concat(ce),"custom"!==ce&&""!==ce),o()(t,"getwid-margin-tablet-top-".concat(de),"custom"!==de&&""!==de),o()(t,"getwid-margin-tablet-bottom-".concat(pe),"custom"!==pe&&""!==pe),o()(t,"getwid-margin-mobile-top-".concat(ge),"custom"!==ge&&""!==ge),o()(t,"getwid-margin-mobile-bottom-".concat(we),"custom"!==we&&""!==we),o()(t,"getwid-section-content-full-width","full"===S),o()(t,"getwid-section-content-custom-width","custom"===S),t)),Ne=_e||void 0;return wp.element.createElement("div",l()({id:Ne,className:Te,style:ve},xe),wp.element.createElement("div",{className:ke,style:ye},wp.element.createElement(C.a,c()({},this.props,{baseClass:M})),!!w&&"none"!==h&&wp.element.createElement("div",{className:y()("getwid-background-video-controls",o()({},"is-position-".concat(h),"top-right"!==h))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:y()("".concat(M,"__inner-wrapper"),o()({},"has-dividers-over",O)),style:Se},wp.element.createElement("div",{className:"".concat(M,"__background-holder")},wp.element.createElement("div",{className:Oe,style:Ce},!!g&&wp.element.createElement("div",{className:"".concat(M,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(M,"__background-image"),src:g.url,alt:g.alt,"data-id":g.id})),!!b.length&&wp.element.createElement("div",{className:"".concat(M,"__background-slider-wrapper")},wp.element.createElement(k.b,c()({},this.props,{baseClass:M}))),!!w&&wp.element.createElement("div",{className:"".concat(M,"__background-video-wrapper")},wp.element.createElement(E.a,l()({},c()({},this.props,{baseClass:M}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(M,"__foreground"),style:je})),wp.element.createElement("div",{className:"".concat(M,"__content")},wp.element.createElement("div",{className:"".concat(M,"__inner-content")},wp.element.createElement(x.Content,null))))))}}]),t}(j);t.a=B},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(129),n(138),n(143)},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(49)),o=n(133),r=n(50),c=n(134),s=n(52),d=n(13),u=n(137),p=n(1),m=(n.n(p),n(11)),g=(n.n(m),wp.blocks.registerBlockType),b="wp-block-getwid-media-text-slider",w="getwid/media-text-slider";g(w,l()({title:Object(p.__)("Media & Text Slider","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{x:"4",y:"4",width:"16",height:"2"}),wp.element.createElement("circle",{cx:"6",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"12",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"18",cy:"22",r:"2"}),wp.element.createElement("path",{d:"M0,0v19h24V0H0z M22,2v10.59l-2.5-2.5l-3.5,3.5l-6-6l-8,8V2H22z M3.41,17L10,10.41l6,6l3.5-3.5l2.5,2.5V17H3.41z"})),category:"getwid-blocks",keywords:[Object(p.__)("gallery","getwid"),Object(p.__)("carousel","getwid"),Object(p.__)("image","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(w)},attributes:r.a,transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(s.b)(e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(s.b)(e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(s.b)(e)}},{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){return Object(s.b)(e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(s.a)(e,"core/gallery",null)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(s.a)(e,"getwid/images-stack",[])}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(s.a)(e,"getwid/images-slider",[])}},{type:"block",blocks:["core/image"],transform:function(e){return Object(s.a)(e,"core/image",null)}},{type:"block",blocks:["getwid/content-timeline"],transform:function(e){return Object(s.a)(e,"getwid/content-timeline",null)}}]},deprecated:[{attributes:c.a,migrate:function(e){var t=JSON.parse(e.sliderArrays.replace(/u0022/g,'"'));return l()({},e,{sliderArrays:JSON.stringify(Object(m.times)(e.slideCount,function(e){return"".concat(t[e].text)}))})},save:function(e){return wp.element.createElement(u.a,l()({},e,{baseClass:b}))}}]},Object(d.b)(w,function(e){return wp.element.createElement(i.b,l()({},e,{baseClass:b}))}),{save:function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:b}))}}))},function(e,t,n){e.exports=function(e,t){function n(){var t,n,r=l,c=arguments.length;e:for(;r;){if(r.args.length===arguments.length){for(n=0;n<c;n++)if(r.args[n]!==arguments[n]){r=r.next;continue e}return r!==l&&(r===i&&(i=r.prev),r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=l,r.prev=null,l.prev=r,l=r),r.val}r=r.next}for(t=new Array(c),n=0;n<c;n++)t[n]=arguments[n];return r={args:t,val:e.apply(null,t)},l?(l.prev=r,r.next=l):i=r,o===a?(i=i.prev,i.next=null):o++,l=r,r.val}var a,l,i,o=0;return t&&t.maxSize&&(a=t.maxSize),n.clear=function(){l=null,i=null,o=0},n}},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(19)),h=n(17),f=n(25),_=n(15),v=n(14),y=n(50),k=wp.element,C=k.Component,E=k.Fragment,O=wp.blockEditor||wp.editor,j=O.InspectorControls,S=wp.components,x=S.Button,T=S.BaseControl,N=S.PanelBody,A=S.RangeControl,M=S.ToggleControl,B=S.SelectControl,I=S.RadioControl,L=S.TextControl,P=function(e){function t(e){var n;return o()(this,t),n=d()(this,p()(t).apply(this,arguments)),n.state={tabName:"general"},n}return g()(t,e),c()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAutoplay,a=e.pauseOnHover,l=e.sliderAutoplaySpeed,i=e.sliderAnimationSpeed;return void 0!=t||n!=y.a.sliderAutoplay.default||a!=y.a.pauseOnHover.default||l!=y.a.sliderAutoplaySpeed.default||i!=y.a.sliderAnimationSpeed.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.addNewSlide,a=t.setAttributes,i=t.clientId,o=this.props.attributes,r=o.imageSize,c=o.slideCount,s=o.contentMaxWidth,d=o.minHeight,u=o.verticalAlign,p=o.horizontalAlign,m=o.textColor,g=o.overlayColor,k=o.overlayOpacity,C=o.contentAnimation,O=this.props.attributes,S=O.contentAnimationDuration,P=O.contentAnimationDelay,z=O.sliderAnimationEffect,R=O.sliderAutoplay,D=O.pauseOnHover,V=O.sliderAutoplaySpeed,F=O.sliderAnimationSpeed,H=this.props.attributes,W=H.sliderArrows,U=H.sliderDots,G=this.state.tabName;if(!(0,wp.data.select)("core/editor").getBlock(i))return wp.element.createElement(j,null);var q=function(){return a({sliderAnimationEffect:void 0,sliderAutoplay:y.a.sliderAutoplay.default,pauseOnHover:y.a.pauseOnHover.default,sliderAutoplaySpeed:y.a.sliderAutoplaySpeed.default,sliderAnimationSpeed:y.a.sliderAnimationSpeed.default})},Q=function(){return C!==y.a.contentAnimation.default||P!==y.a.contentAnimationDelay.default||S!==y.a.contentAnimationDuration.default},K=function(){a({contentAnimation:y.a.contentAnimation.default,contentAnimationDelay:y.a.contentAnimationDelay.default,contentAnimationDuration:y.a.contentAnimationDuration.default})};return wp.element.createElement(j,{key:"inspector"},wp.element.createElement(w.a,{state:G,stateName:"tabName",onChangeTab:function(t,n){e.setState(l()({},t,n))},tabs:["general","style","advanced"]}),"general"===G&&wp.element.createElement(E,null,wp.element.createElement(N,null,wp.element.createElement(A,{label:Object(b.__)("Number of slides","getwid"),value:c,onChange:function(e){return n(e)},min:1,max:12}),wp.element.createElement(B,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:r,onChange:function(e){a({imageSize:e})},options:Getwid.settings.image_sizes}),wp.element.createElement(T,{label:Object(b.__)("Slider Minimum Height","getwid")},wp.element.createElement(h.a,{value:d,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return a({minHeight:e})}})),wp.element.createElement(A,{label:Object(b.__)("Content Area Width","getwid"),value:void 0!==s?s:"",onChange:function(e){a({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(B,{label:Object(b.__)("Content Area Vertical Alignment","getwid"),value:void 0!==u?u:"center",onChange:function(e){return a({verticalAlign:e})},options:[{value:"top",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"bottom",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(B,{label:Object(b.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==p?p:"center",onChange:function(e){return a({horizontalAlign:e})},options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}]}))),"style"===G&&wp.element.createElement(E,null,wp.element.createElement(N,null,wp.element.createElement(A,{label:Object(b.__)("Overlay Opacity","getwid"),value:void 0!==k?k:0,onChange:function(e){return a({overlayOpacity:e})},min:0,max:100,step:1}),wp.element.createElement(_.a,{colorSettings:[{title:Object(b.__)("Text Color","getwid"),colors:{customColor:m},changeColor:function(e){return a({textColor:e})}},{title:Object(b.__)("Background Color","getwid"),colors:{customColor:g},changeColor:function(e){return a({overlayColor:e})}}]})),wp.element.createElement(N,{title:Object(b.__)("Padding","getwid"),initialOpen:!1},Object(v.e)(this))),"advanced"===G&&wp.element.createElement(E,null,wp.element.createElement(N,{title:Object(b.__)("Text Animation","getwid"),initialOpen:!0},function(){return wp.element.createElement(E,null,wp.element.createElement(f.a,{label:Object(b.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==C?C:"",onChange:function(e){return a({contentAnimation:e})}}),wp.element.createElement(B,{label:Object(b.__)("Duration","getwid"),value:void 0!==S?S:"",onChange:function(e){return a({contentAnimationDuration:e})},options:[{value:"3000ms",label:Object(b.__)("Very Slow","getwid")},{value:"2000ms",label:Object(b.__)("Slow","getwid")},{value:"1500ms",label:Object(b.__)("Normal","getwid")},{value:"800ms",label:Object(b.__)("Fast","getwid")},{value:"400ms",label:Object(b.__)("Very Fast","getwid")}]}),wp.element.createElement(L,{label:Object(b.__)("Delay, ms","getwid"),value:void 0!==P?P.replace("ms",""):"",type:"number",min:0,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),a({contentAnimationDelay:e})}}),wp.element.createElement(T,null,wp.element.createElement(x,{isLink:!0,onClick:K,disabled:!Q()},Object(b.__)("Reset","getwid"))))}()),wp.element.createElement(N,{title:Object(b.__)("Slider Settings","getwid"),initialOpen:!1},function(){return wp.element.createElement(E,null,wp.element.createElement(I,{label:Object(b.__)("Animation Effect","getwid"),selected:void 0!==z?z:"",options:[{value:"",label:Object(b.__)("Slide","getwid")},{value:"fade",label:Object(b.__)("Fade","getwid")}],onChange:function(e){return a({sliderAnimationEffect:e})}}),wp.element.createElement(M,{label:Object(b.__)("Enable Slideshow","getwid"),checked:R,onChange:function(){return a({sliderAutoplay:!R})}}),R&&wp.element.createElement(E,null,wp.element.createElement(M,{label:Object(b.__)("Pause On Hover","getwid"),checked:D,onChange:function(){return a({pauseOnHover:!D})}}),wp.element.createElement(L,{label:Object(b.__)("Slideshow Speed","getwid"),type:"number",value:void 0!==V?V:"",min:0,onChange:function(e){return a({sliderAutoplaySpeed:e})}})),wp.element.createElement(L,{label:Object(b.__)("Animation Speed","getwid"),type:"number",value:void 0!==F?F:"",min:0,onChange:function(e){return a({sliderAnimationSpeed:e})}}),wp.element.createElement(T,null,wp.element.createElement(x,{isLink:!0,onClick:q,disabled:!e.hasSliderSettings()},Object(b.__)("Reset","getwid"))),wp.element.createElement(I,{label:Object(b.__)("Arrows","getwid"),selected:W,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return a({sliderArrows:e})}}),wp.element.createElement(I,{label:Object(b.__)("Dots","getwid"),selected:U,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return a({sliderDots:e})}}))}())))}}]),t}(C);t.a=P},function(e,t){},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(51)),f=(n.n(h),n(7)),_=n.n(f),v=wp.element.Component,y=wp.blockEditor||wp.editor,k=y.InnerBlocks,C=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props,n=t.baseClass,a=t.className,i=this.props.attributes,r=i.contentAnimation,c=i.contentAnimationDuration,s=i.contentAnimationDelay,d=i.sliderAnimationEffect,u=i.sliderAutoplay,p=this.props.attributes,m=p.pauseOnHover,g=p.sliderAutoplaySpeed,b=p.sliderAnimationSpeed,w=p.sliderArrays,h=p.sliderArrows,f=p.sliderDots,v={className:_()(a,"".concat(n,"--current-slide-").concat(1),(e={},o()(e,"has-arrows-".concat(h),void 0!=h),o()(e,"has-dots-".concat(f),void 0!=f),e)),"data-labels":w,"data-animation":void 0!==r?r:"","data-duration":void 0!==c?c:"1500ms","data-delay":void 0!==s?s:"0ms"},y={"data-slide-effect":d,"data-slide-autoplay":u,"data-slide-pause-on-hover":m,"data-slide-autoplay-speed":g,"data-slide-speed":b,"data-infinite":!0};return wp.element.createElement("div",v,wp.element.createElement("div",{className:"".concat(n,"__slides-wrapper")},wp.element.createElement("div",l()({className:"".concat(n,"__content")},y),wp.element.createElement(k.Content,null))))}}]),t}(v);t.a=C},function(e,t,n){"use strict";var a={slideCount:{type:"number",default:3},imageSize:{type:"string",default:"large"},align:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},verticalAlign:{type:"string"},horizontalAlign:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},textColor:{type:"string"},overlayColor:{type:"string"},overlayOpacity:{type:"number",default:"30"},contentAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-animation",default:"fadeIn"},contentAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-duration",default:"1500ms"},contentAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-delay",default:"0ms"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-effect"},sliderAutoplay:{type:"boolean",default:!1},pauseOnHover:{type:"boolean",default:!0},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-autoplay-speed",default:5e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"slide-speed",default:1e3},sliderArrays:{type:"string",default:'[{"text":"Slide 1"},{"text":"Slide 2"},{"text":"Slide 3"}]'}};t.a=a},function(e,t,n){function a(e,t){return l(e)||i(e,t)||o()}var l=n(28),i=n(136),o=n(29);e.exports=a},function(e,t){function n(e,t){var n=[],a=!0,l=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(a=(o=r.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return n}e.exports=n},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(51)),w=(n.n(b),n(7)),h=n.n(w),f=wp.element.Component,_=wp.blockEditor||wp.editor,v=_.InnerBlocks,y=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this.props.attributes,t=e.contentAnimation,n=e.contentAnimationDuration,a=e.contentAnimationDelay,i=e.sliderAnimationEffect,o=e.sliderAutoplay,r=this.props.attributes,c=r.pauseOnHover,s=r.sliderAutoplaySpeed,d=r.sliderAnimationSpeed,u=this.props,p=u.baseClass,m=u.className,g=h()(m,"".concat(p,"--current-slide-").concat(1)),b={"data-animation":void 0!==t?t:"","data-duration":void 0!==n?n:"1500ms","data-delay":void 0!==a?a:"0ms"},w={"data-slide-effect":i,"data-slide-autoplay":o,"data-slide-pause-on-hover":c,"data-slide-autoplay-speed":s,"data-slide-speed":d,"data-infinite":!0};return wp.element.createElement("div",l()({className:g},b),wp.element.createElement("div",{className:"".concat(p,"__slides-wrapper")},wp.element.createElement("div",l()({className:"".concat(p,"__content")},w),wp.element.createElement(v.Content,null))))}}]),t}(f);t.a=y},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(54)),o=n(139),r=n(140),c=n(141),s=n(142),d=n(1),u=(n.n(d),n(49)),p=wp.blocks.registerBlockType,m="wp-block-getwid-media-text-slider-slide";p("getwid/media-text-slider-slide",{title:Object(d.__)("Slide","getwid"),icon:{src:"format-gallery"},keywords:[],category:"getwid-blocks",parent:["getwid/media-text-slider"],attributes:c.a,deprecated:[{attributes:s.a,migrate:function(e){return l()({},e,{slideId:e.id})},save:function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:m}))}}],getEditWrapperProps:function(e){return{"data-slide":void 0!==e.slideId?e.slideId:e.id}},edit:function(e){return wp.element.createElement(u.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(i.b,l()({},e,{updateContentAttributes:n},{baseClass:m}))})},save:function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:m}))}})},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(24)),g=n(1),b=(n.n(g),m.a.convertHorizontalAlignToStyle),w=m.a.convertVerticalAlignToStyle,h=window,f=(h.jQuery,wp.element.Component),_=wp.blockEditor||wp.editor,v=_.InnerBlocks,y=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e,t,n,a,l,i,o,r=this.props.baseClass,c=this.props.attributes,s=c.slideId,d=c.outerParent;if(void 0!==d.attributes){var u=d.attributes;e=u.paddingTop,t=u.paddingBottom,n=u.paddingLeft,a=u.paddingRight,l=u.minHeight,i=u.horizontalAlign,o=u.verticalAlign,u.contentMaxWidth}var p={};void 0!==d.attributes&&(p={paddingTop:e||null,paddingBottom:t||null,paddingLeft:n||null,paddingRight:a||null,minHeight:l||null,justifyContent:i?b(i):null,alignItems:o?w(o):null});var m={};return void 0!==d.attributes&&(m={minHeight:d.attributes.minHeight?d.attributes.minHeight:null}),wp.element.createElement("div",{style:m,className:"".concat(r," ").concat(r,"__content-wrapper slide-").concat(s)},wp.element.createElement("div",{style:p,className:"".concat(r,"__content")},wp.element.createElement(v.Content,null)))}}]),t}(f);t.a=y},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(24)),g=n(1),b=(n.n(g),m.a.convertHorizontalAlignToStyle),w=m.a.convertVerticalAlignToStyle,h=window,f=(h.jQuery,wp.element.Component),_=wp.blockEditor||wp.editor,v=_.InnerBlocks,y=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.baseClass,t=this.props.attributes,n=t.id,a=t.outerParent,l={paddingTop:void 0!==a&&void 0!==a.attributes.paddingTop?a.attributes.paddingTop:null,paddingBottom:void 0!==a&&void 0!==a.attributes.paddingBottom?a.attributes.paddingBottom:null,paddingLeft:void 0!==a&&void 0!==a.attributes.paddingLeft?a.attributes.paddingLeft:null,paddingRight:void 0!==a&&void 0!==a.attributes.paddingRight?a.attributes.paddingRight:null,justifyContent:void 0!==a&&void 0!==a.attributes.horizontalAlign?b(a.attributes.horizontalAlign):null,alignItems:void 0!==a&&void 0!==a.attributes.verticalAlign?w(a.attributes.verticalAlign):null},i={minHeight:void 0!==a&&void 0!==a.attributes.minHeight?a.attributes.minHeight:null};return wp.element.createElement("div",{style:i,className:"".concat(e," ").concat(e,"__content-wrapper slide-").concat(n)},wp.element.createElement("div",{style:l,className:"".concat(e,"__content")},wp.element.createElement(v.Content,null)))}}]),t}(f);t.a=y},function(e,t,n){"use strict";var a={slideId:{type:"number",default:1},outerParent:{type:"object",default:{}},mediaId:{type:"number"},url:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a={id:{type:"number",default:1},outerParent:{type:"object"},mediaId:{type:"number"},url:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(144)),o=n(147),r=n(148),c=n(149),s=n(54),d=n(1),u=(n.n(d),wp.blocks.registerBlockType),p="wp-block-getwid-media-text-slider-slide-content";u("getwid/media-text-slider-slide-content",{title:Object(d.__)("Image","getwid"),category:"getwid-blocks",parent:["getwid/media-text-slider-slide"],icon:{src:"format-image"},keywords:[],supports:{html:!1},deprecated:[{attributes:c.a,save:function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:p}))}}],attributes:c.a,edit:function(e){return wp.element.createElement(s.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(i.a,l()({},e,{updateContentAttributes:n},{baseClass:p}))})},save:function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:p}))}})},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=n(10),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(145)),v=n(146),y=n(55),k=(n.n(y),n(1)),C=(n.n(k),n(7)),E=n.n(C),O=n(11),j=(n.n(O),wp.data.withSelect),S=wp.compose.compose,x=wp.blockEditor||wp.editor,T=x.InnerBlocks,N=wp.element,A=N.Component,M=N.Fragment,B=wp.components.TextareaControl,I=[["core/heading",{placeholder:Object(k.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(k.__)("Write text…","getwid")}]],L=function(e){function t(){var e;return c()(this,t),e=p()(this,g()(t).apply(this,arguments)),e.onSelectMedia=e.onSelectMedia.bind(w()(e)),e}return f()(t,e),d()(t,[{key:"onSelectMedia",value:function(e){var t,n,a,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=this.props.attributes.innerParent,r=this.props.setAttributes;if(e){if(t=void 0!==e.media_type&&e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===t&&(a=l?i:void 0!==o&&void 0!==o.attributes.imageSize?o.attributes.imageSize:"full",n=Object(O.get)(e,["sizes",a,"url"])||Object(O.get)(e,["media_details","sizes",a,"source_url"])||e.url||e.source_url),l)return n;r({mediaAlt:e.alt,mediaId:e.id,mediaUrl:n||e.url||e.source_url,mediaType:t})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.imgObj,n=e.attributes.innerParent;if(t&&n){var a=this.onSelectMedia,l=n.attributes.imageSize;void 0!==this.props.attributes.innerParent&&(Object(O.isEqual)(l,this.props.attributes.innerParent.attributes.imageSize)||(e.attributes.mediaUrl=a(t,!0,l)))}}},{key:"renderMediaArea",value:function(){var e=this.props,t=e.attributes,n=e.baseClass,a=e.setAttributes,l=t.mediaAlt,i=t.mediaId,r=t.mediaType,c=t.mediaUrl,s=t.innerParent;return r||a({mediaType:"image"}),wp.element.createElement(v.a,o()({className:"".concat(n,"__media"),onSelectMedia:this.onSelectMedia},{mediaAlt:l,mediaId:i,mediaType:r,mediaUrl:c,innerParent:s}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.imgObj,a=e.attributes.innerParent;if(a&&n){var l=this.onSelectMedia,i=a.attributes.imageSize;Object(O.isEqual)(i,this.props.attributes.innerParent.attributes.imageSize)||l(n)}a||this.props.updateContentAttributes(this.props.clientId)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,a=e.setAttributes,i=this.props.attributes,r=i.mediaAlt,c=i.mediaUrl,s=i.mediaType,d=i.innerParent,u=E()(t,{"is-selected":n}),p=function(e){a({mediaAlt:e})},m=(wp.element.createElement(M,null,"image"===s&&wp.element.createElement(B,{value:r,onChange:p})),{color:void 0!=d&&void 0!==d.attributes.textColor?d.attributes.textColor:null});return wp.element.createElement(M,null,wp.element.createElement(_.a,o()({},l()({},this.props,{setAttributes:a},{onSelectMedia:this.onSelectMedia}),{key:"inspector"})),wp.element.createElement("div",{className:u},this.renderMediaArea(),wp.element.createElement("div",{className:"".concat(t,"__content"),style:m},wp.element.createElement("div",{className:"".concat(t,"__content-wrapper")},c&&wp.element.createElement(T,{templateLock:!1,template:I,templateInsertUpdatesSelection:!1})))))}}]),t}(A);t.a=S([j(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.mediaId;return{imgObj:l?a(l):null}})])(L)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components.PanelBody,_=function(e){function t(e){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.mediaId,n=e.mediaUrl,a=this.props,l=a.setAttributes,i=a.onSelectMedia,o=a.clientId;return(0,wp.data.select)("core/editor").getBlock(o)?wp.element.createElement(h,{key:"inspector"},wp.element.createElement(f,{title:Object(m.__)("Image","getwid"),initialOpen:!0},wp.element.createElement(g.d,{label:Object(m.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:i,onRemoveMedia:function(){return l({mediaUrl:void 0,mediaId:void 0})}}))):wp.element.createElement(h,null)}}]),t}(b);t.a=_},function(e,t,n){"use strict";n.d(t,"a",function(){return j});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element),w=b.Component,h=b.Fragment,f=wp.components,_=f.IconButton,v=f.Toolbar,y=wp.blockEditor||wp.editor,k=y.BlockControls,C=y.MediaPlaceholder,E=y.MediaUpload,O=["image"],j=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return wp.element.createElement(k,null,wp.element.createElement(v,null,wp.element.createElement(E,{onSelect:n,allowedTypes:O,value:t,render:function(e){var t=e.open;return wp.element.createElement(_,{className:"components-toolbar__control",label:Object(m.__)("Edit Media","getwid"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,a=e.innerParent,l=e.className,i={backgroundColor:void 0!==a&&void 0!==a.attributes.overlayColor?a.attributes.overlayColor:null,opacity:void 0!==a&&void 0!==a.attributes.overlayOpacity?a.attributes.overlayOpacity/100:null};return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:l},wp.element.createElement("img",{className:"".concat("wp-block-getwid-media-text-slider-slide-content","__image"),src:n,alt:t}),wp.element.createElement("div",{style:i,className:"".concat(l,"-overlay")})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:n},wp.element.createElement("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return wp.element.createElement(C,{icon:"format-image",labels:{title:Object(m.__)("Image","getwid")},accept:"image/*",className:n,onSelect:t,allowedTypes:O})}},{key:"render",value:function(){var e=this.props,t=e.mediaUrl,n=e.mediaType;if(n&&t){var a=null;switch(n){case"image":a=this.renderImage();break;case"video":a=this.renderVideo()}return wp.element.createElement(h,null,a)}return this.renderPlaceholder()}}]),t}(w)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(56)),g=(n.n(m),n(1)),b=(n.n(g),n(11)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),f=h.InnerBlocks,_=wp.element.Component,v=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,a=t.mediaType,l=t.mediaUrl,i=t.mediaId,o=t.innerParent,r=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:l,alt:n,className:"".concat(r,"__image")+(i&&"image"===a?" wp-image-".concat(i):"")})},video:function(){return wp.element.createElement("video",{controls:!0,src:l})}},s={backgroundColor:void 0!==o&&void 0!==o.attributes.overlayColor?o.attributes.overlayColor:null,opacity:void 0!==o&&void 0!==o.attributes.overlayOpacity?o.attributes.overlayOpacity/100:null},d={maxWidth:void 0!==o&&void 0!==o.attributes.contentMaxWidth?o.attributes.contentMaxWidth:null},u={color:void 0!==o&&void 0!==o.attributes.textColor?o.attributes.textColor:null};return wp.element.createElement("div",{style:d,className:r},wp.element.createElement("figure",{className:"".concat(r,"__media")},(c[a]||b.noop)(),wp.element.createElement("div",{className:"".concat(r,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(r,"__content"),style:u},wp.element.createElement("div",{className:"".concat(r,"__content-wrapper")},wp.element.createElement(f.Content,null))))}}]),t}(_);t.a=v},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(56)),g=(n.n(m),n(1)),b=(n.n(g),n(11)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),f=h.InnerBlocks,_=wp.element.Component,v=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,a=t.mediaType,l=t.mediaUrl,i=t.mediaId,o=t.innerParent,r=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:l,alt:n,className:"".concat(r,"__image")+(i&&"image"===a?" wp-image-".concat(i):null)})},video:function(){return wp.element.createElement("video",{controls:!0,src:l})}},s={backgroundColor:void 0!==o&&void 0!==o.attributes.overlayColor?o.attributes.overlayColor:null,opacity:void 0!==o&&void 0!==o.attributes.overlayOpacity?o.attributes.overlayOpacity/100:null},d={maxWidth:void 0!==o&&void 0!==o.attributes.contentMaxWidth?o.attributes.contentMaxWidth:null},u={color:void 0!==o&&void 0!==o.attributes.textColor?o.attributes.textColor:null};return wp.element.createElement("div",{style:d,className:r},wp.element.createElement("figure",{className:"".concat(r,"__media")},(c[a]||b.noop)(),wp.element.createElement("div",{className:"".concat(r,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(r,"__content"),style:u},wp.element.createElement("div",{className:"".concat(r,"__content-wrapper")},wp.element.createElement(f.Content,null))))}}]),t}(_);t.a=v},function(e,t,n){"use strict";var a={mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},innerParent:{type:"object"}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(1)),o=(n.n(i),n(11)),r=(n.n(o),n(151)),c=n(155),s=n(156),d=n(37),u=n(13),p=n(157),m=(n.n(p),wp.blocks),g=m.registerBlockType,b=m.createBlock,w=["center","wide","full"],h="getwid/images-slider";g(h,l()({title:Object(i.__)("Image Slider","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M20,8V4h-4v2h2v1v1v2v1v7h-7h-1H8H7H6v-2H4v4h4v4h16V8H20z M22,22H10v-2h10V10h2V22z"}),wp.element.createElement("path",{d:"M0,0v16h16V0H0z M14,2v8.19l-1.61-1.6l-2.16,2.15l-3.7-3.69L2,11.59V2H14z M2.41,14l4.13-4.13l3.7,3.69l2.16-2.15L14,13.02 V14H2.41z"}),wp.element.createElement("circle",{cx:"10",cy:"5.5",r:"1.5"})),keywords:[Object(i.__)("gallery","getwid"),Object(i.__)("carousel","getwid"),Object(i.__)("photo","getwid")],supports:{html:!1,inserter:!Getwid.disabled_blocks.includes(h)},deprecated:[{attributes:d.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return l()({},e,{sliderArrows:Object(o.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(o.isEqual)(n,"ouside")?"outside":n})},save:s.a}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(o.every)(e,["align",t])?t:void 0;var n=Object(o.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return b("getwid/images-slider",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){return b("getwid/images-slider",e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return b("core/gallery",e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return b("getwid/images-stack",e)}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,a=e.url,l=e.alt,i=e.caption;return b("core/image",{id:t,url:a,alt:l,caption:i,align:n})}):b("core/image",{align:n})}}]},attributes:d.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==w.indexOf(t))return{"data-align":t}}},Object(u.b)(h,r.a),{save:function(e){return wp.element.createElement(c.a,l()({},e,{baseClass:"wp-block-getwid-images-slider"}))}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(30),o=n.n(i),r=n(16),c=n.n(r),s=n(9),d=n.n(s),u=n(8),p=n.n(u),m=n(2),g=n.n(m),b=n(4),w=n.n(b),h=n(5),f=n.n(h),_=n(3),v=n.n(_),y=n(12),k=n.n(y),C=n(6),E=n.n(C),O=(n(0),n(1)),j=(n.n(O),n(7)),S=n.n(j),x=n(11),T=(n.n(x),n(37)),N=n(152),A=n(153),M=n(154),B=(n.n(M),wp.compose.compose),I=wp.data.withSelect,L=wp.element,P=L.Component,z=L.Fragment,R=wp.components,D=R.IconButton,V=R.ToggleControl,F=R.DropZone,H=R.Toolbar,W=R.Dashicon,U=R.TextControl,G=wp.blockEditor||wp.editor,q=G.BlockControls,Q=G.MediaUpload,K=G.MediaPlaceholder,J=G.mediaUpload,Z=G.BlockAlignmentToolbar,$=G.BlockIcon,Y=G.URLInput,X=window,ee=X.jQuery,te=["wide","full"],ne=["image"],ae="wp-block-getwid-images-slider",le=function(e,t,n){var a=n.attributes.images,l=Object(x.pick)(e,["id","link"]);return l.original_url=e.url||e.source_url,l.alt=e.alt||e.alt_text||e.caption,l.url=Object(x.get)(e,["sizes",t,"url"])||Object(x.get)(e,["media_details","sizes",t,"source_url"])||e.url,ee.each(a,function(t,n){if(n.id==e.id)return l.custom_link=n.custom_link,!1}),l},ie=function(e){function t(e){var n;return g()(this,t),n=f()(this,v()(t).apply(this,arguments)),n.changeState=n.changeState.bind(k()(n)),n.getState=n.getState.bind(k()(n)),n.onSelectImages=n.onSelectImages.bind(k()(n)),n.setImageAttributes=n.setImageAttributes.bind(k()(n)),n.addFiles=n.addFiles.bind(k()(n)),n.uploadFromFiles=n.uploadFromFiles.bind(k()(n)),n.setAttributes=n.setAttributes.bind(k()(n)),n.onSetNewTab=n.onSetNewTab.bind(k()(n)),n.state={isUpdate:!1},n}return E()(t,e),w()(t,[{key:"onSetNewTab",value:function(e,t){var n=this.props.attributes.images,a=e?"_blank":void 0,l=n[t].custom_link_rel;a&&!n[t].custom_link_rel?l="noreferrer noopener":a||"noreferrer noopener"!==n[t].custom_link_rel||(l=void 0),this.setImageAttributes(t,{custom_link_target:a,custom_link_rel:l})}},{key:"changeState",value:function(e,t){this.setState(p()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=d()({},e,{ids:Object(x.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"checkChangeImageOrder",value:function(e,t){var n=Object(x.sortBy)(e,function(e){return e.id});n=n.map(function(e){return e.id.toString()});var a=Object(x.sortBy)(t.attributes.images,function(e){return e.id});return a=a.map(function(e){return e.id.toString()}),this.flag=!1,Object(x.isEqual)(n,n)&&(this.flag=!0),this.flag}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.setAttributes,a=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(a)||(a=T.a.imageSize.default,n({imageSize:a})),this.checkChangeImageOrder(e,this.props),this.setAttributes({images:e.map(function(e){return le(e,a,t.props)})})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,a=this.setAttributes;if(n[e]){a({images:[].concat(c()(n.slice(0,e)),[d()({},n[e],t)],c()(n.slice(e+1)))})}}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this,n=this.props.attributes.imageSize,a=this.setAttributes,l=this.props.attributes.images||[];["full","large","medium","thumbnail"].includes(n)||(o()("imageSize"),n=T.a.imageSize.default,a({imageSize:n})),J({allowedTypes:ne,filesList:e,onFileChange:function(e){var i=e.map(function(e){return le(e,n,t.props)});a({images:l.concat(i)})}})}},{key:"destroySlider",value:function(){var e=this.props.clientId,t=ee("[data-block='".concat(e,"']")),n=ee(".".concat(ae,"__wrapper"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this.props.clientId,t=this.props.attributes,n=t.sliderAutoplay,a=t.sliderAutoplaySpeed,l=t.sliderInfinite,i=t.linkTo,o=this.props.attributes,r=o.sliderAnimationEffect,c=o.sliderSlidesToShow,s=o.sliderSlidesToScroll,d=o.slideHeight,u=this.props.attributes,p=u.sliderAnimationSpeed,m=u.sliderCenterMode,g=u.sliderVariableWidth,b=u.sliderArrows,w=u.sliderDots,h=ee("[data-block='".concat(e,"']")),f=ee(".".concat(ae,"__wrapper"),h);f.length&&"function"==typeof f.imagesLoaded&&f.imagesLoaded().done(function(e){f.not(".slick-initialized").slick({arrows:"none"!=b,dots:"none"!=w,fade:"fade"==r,slidesToShow:parseInt(c),slidesToScroll:parseInt(s),autoplaySpeed:parseInt(a),speed:parseInt(p),infinite:"custom"!=i&&l,autoplay:n,draggable:"custom"!=i,centerMode:m,variableWidth:g,pauseOnHover:!0,rows:0}),d&&ee(".".concat(ae,"__item"),h).css("height",d)})}},{key:"componentDidMount",value:function(){this.props.attributes.images.length&&this.initSlider()}},{key:"checkURLsChanges",value:function(e){var t=!1,n=this.props.attributes.images;return n&&n.length&&e.attributes.images.length&&ee.each(n,function(n,a){(void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link!=a.custom_link||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_target!=a.custom_link_target||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_rel!=a.custom_link_rel)&&(t=!0)}),t}},{key:"componentWillUpdate",value:function(e,t){var n=!this.flag&&this.checkURLsChanges(e);Object(x.isEqual)(e.attributes,this.props.attributes)||n||this.destroySlider()}},{key:"componentDidUpdate",value:function(e){var t=!this.flag&&this.checkURLsChanges(e);Object(x.isEqual)(e.attributes,this.props.attributes)||t||(this.initSlider(),this.flag=!1)}},{key:"render",value:function(){var e,t=this,n=this.props,a=n.setAttributes,i=n.isSelected,o=n.className,r=this.props.attributes,c=r.sliderSpacing,s=r.sliderArrows,u=r.sliderDots,m=r.linkTo,g=this.props.attributes,b=g.align,w=g.images,h=g.imageCrop,f=g.imageAlignment,_=g.sliderSlidesToShow,v=this.onSelectImages,y=this.getState,k=this.changeState,C=this.addFiles,E=wp.element.createElement(F,{onFilesDrop:C}),j=wp.element.createElement(z,null,wp.element.createElement(q,null,wp.element.createElement(Z,{controls:te,value:b,onChange:function(e){return a({align:e})}}),!!w.length&&wp.element.createElement(H,null,wp.element.createElement(Q,{onSelect:v,allowedTypes:ne,multiple:!0,gallery:!0,value:w.map(function(e){return e.id}),render:function(e){var t=e.open;return wp.element.createElement(D,{className:"components-toolbar__control",label:Object(O.__)("Edit Slider","getwid"),icon:"edit",onClick:t})}}))));if(0===w.length)return wp.element.createElement(z,null,j,wp.element.createElement(K,{icon:"format-gallery",className:ae,labels:{title:Object(O.__)("Image Slider","getwid"),instructions:Object(O.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:v,accept:"image/*",allowedTypes:ne,multiple:!0}));var T=S()(o,"has-arrows-".concat(s),"has-dots-".concat(u),(e={},p()(e,"is-carousel",_>1),p()(e,"has-slides-gap-".concat(c),_>1),p()(e,"has-images-".concat(f),f),p()(e,"is-active",i),e),h?"has-cropped-images":null,b?"align".concat(b):null),M=!!w.length,B=M&&Object(x.some)(w,function(e){return e.id});return wp.element.createElement(z,null,wp.element.createElement("div",{className:T},E,wp.element.createElement("div",{className:"".concat(ae,"__wrapper")},function(){if(w.length)return w.map(function(e,n){return wp.element.createElement(z,null,wp.element.createElement("div",{className:"".concat(ae,"__item"),key:e.id||e.url},wp.element.createElement(A.a,{original_url:e.original_url,isSelected:i,url:e.url,alt:e.alt,id:e.id,custom_link:e.custom_link,custom_link_target:e.custom_link_target,custom_link_rel:e.custom_link_rel,setAttributes:function(e){return t.setImageAttributes(n,e)}}),"custom"==m&&wp.element.createElement(z,null,wp.element.createElement("div",{className:"".concat(ae,"__url-field-wrapper")},wp.element.createElement("div",{className:"".concat(ae,"__url-field-container")},wp.element.createElement(W,{icon:"admin-links"}),wp.element.createElement(Y,{className:"".concat(ae,"__url-field has-border"),autoFocus:!0,value:e.custom_link?e.custom_link:"",onChange:function(e){t.setImageAttributes(n,{custom_link:e})}})),wp.element.createElement("div",{className:"".concat(ae,"__url-rel-container")},wp.element.createElement(V,{className:"".concat(ae,"__url-toggle"),label:Object(O.__)("New Tab","getwid"),onChange:function(e){t.onSetNewTab(e,n)},checked:"_blank"===e.custom_link_target}),wp.element.createElement(U,{className:"".concat(ae,"__url-rel"),placeholder:Object(O.__)("Link Rel","getwid"),value:e.custom_link_rel||"",onChange:function(e){t.setImageAttributes(n,{custom_link_rel:e})}}))))))})}()),i&&wp.element.createElement(K,{addToGallery:B,isAppender:M,className:"components-form-file-upload",disableMediaButtons:M&&!i,icon:!M&&wp.element.createElement($,{icon:icon}),labels:{title:!M&&Object(O.__)("Gallery"),instructions:!M&&Object(O.__)("Drag images, upload new ones or select files from your library.")},onSelect:v,accept:"image/*",allowedTypes:ne,multiple:!0,value:B?w:void 0})),j,wp.element.createElement(N.a,l()({},d()({},this.props,{pickRelevantMediaFiles:le,changeState:k,getState:y}),{key:"inspector"})))}}]),t}(P);t.a=B([I(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.ids;if(void 0!==l)return{imgObj:l?l.map(function(e){return a(e)}):null}})])(ie)},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(37)),f=n(14),_=n(19),v=n(1),y=(n.n(v),wp.element),k=y.Component,C=y.Fragment,E=wp.blockEditor||wp.editor,O=E.InspectorControls,j=wp.components,S=j.Button,x=j.BaseControl,T=j.PanelBody,N=j.ToggleControl,A=j.SelectControl,M=j.RadioControl,B=j.TextControl,I=function(e){function t(e){var n;return o()(this,t),n=d()(this,p()(t).apply(this,arguments)),n.changeState=n.changeState.bind(g()(n)),n.state={tabName:"general"},n}return w()(t,e),c()(t,[{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderSlidesToShow,n=e.sliderSlidesToShowLaptop,a=e.sliderSlidesToShowTablet,l=e.sliderSlidesToShowMobile,i=e.sliderSlidesToScroll,o=e.sliderAutoplay,r=e.sliderAnimationEffect,c=this.props.attributes,s=c.sliderAutoplaySpeed,d=c.sliderInfinite,u=c.sliderAnimationSpeed,p=c.sliderCenterMode,m=c.sliderVariableWidth,g=c.sliderSpacing;return t!=h.a.sliderSlidesToShow.default||n!=h.a.sliderSlidesToShowLaptop.default||a!=h.a.sliderSlidesToShowTablet.default||l!=h.a.sliderSlidesToShowMobile.default||i!=h.a.sliderSlidesToScroll.default||o!=h.a.sliderAutoplay.default||r!=h.a.sliderAnimationEffect.default||s!=h.a.sliderAutoplaySpeed.default||d!=h.a.sliderInfinite.default||u!=h.a.sliderAnimationSpeed.default||p!=h.a.sliderCenterMode.default||m!=h.a.sliderVariableWidth.default||g!=h.a.sliderSpacing.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,a=n.images,l=n.imageSize,i=n.imageCrop,o=n.linkTo,r=n.imageAlignment,c=n.sliderAnimationEffect,s=n.sliderSlidesToShow,d=n.sliderSlidesToShowLaptop,u=n.sliderSlidesToShowTablet,p=n.sliderSlidesToShowMobile,m=n.sliderSlidesToScroll,g=n.sliderAutoplay,b=n.sliderAutoplaySpeed,w=n.sliderInfinite,y=n.sliderAnimationSpeed,k=n.sliderCenterMode,E=n.sliderVariableWidth,j=n.sliderSpacing,I=n.sliderArrows,L=n.sliderDots,P=t.setAttributes,z=t.pickRelevantMediaFiles,R=t.imgObj,D=function(t){R.some(function(e){return void 0===e})||P({imageSize:t,images:R.map(function(n){return z(n,t,e.props)})})},V=function(){P({sliderSlidesToShow:h.a.sliderSlidesToShow.default,sliderSlidesToShowLaptop:h.a.sliderSlidesToShowLaptop.default,sliderSlidesToShowTablet:h.a.sliderSlidesToShowTablet.default,sliderSlidesToShowMobile:h.a.sliderSlidesToShowMobile.default,sliderSlidesToScroll:h.a.sliderSlidesToScroll.default,sliderAutoplay:h.a.sliderAutoplay.default,sliderAnimationEffect:h.a.sliderAnimationEffect.default,sliderAutoplaySpeed:h.a.sliderAutoplaySpeed.default,sliderInfinite:h.a.sliderInfinite.default,sliderAnimationSpeed:h.a.sliderAnimationSpeed.default,sliderCenterMode:h.a.sliderCenterMode.default,sliderVariableWidth:h.a.sliderVariableWidth.default,sliderSpacing:h.a.sliderSpacing.default})},F=this.state.tabName,H=this.changeState;return wp.element.createElement(O,null,wp.element.createElement(_.a,{state:F,stateName:"tabName",onChangeTab:H,tabs:["general","advanced"]}),"general"===F&&wp.element.createElement(C,null,wp.element.createElement(T,{initialOpen:!0},0!=R.length&&wp.element.createElement(A,{label:Object(v.__)("Image Size","getwid"),help:Object(v.__)("For images from Media Library only.","getwid"),value:l,onChange:D,options:Getwid.settings.image_sizes}),wp.element.createElement(N,{label:Object(v.__)("Crop Images","getwid"),checked:i,onChange:function(){P({imageCrop:!i})}}),wp.element.createElement(A,{label:Object(v.__)("Link to","getwid"),value:o,onChange:function(e){return P({linkTo:e})},options:[{value:"none",label:Object(v.__)("None","getwid")},{value:"attachment",label:Object(v.__)("Attachment Page","getwid")},{value:"media",label:Object(v.__)("Media File","getwid")},{value:"custom",label:Object(v.__)("Custom link per slide","getwid")}]}),Object(f.h)(this),wp.element.createElement(N,{label:Object(v.__)("Enable Slideshow","getwid"),checked:g,onChange:function(){P({sliderAutoplay:!g})}}),!!g&&wp.element.createElement(B,{label:Object(v.__)("Slideshow Speed","getwid"),type:"number",value:b,min:0,onChange:function(e){return P({sliderAutoplaySpeed:e})}}),parseInt(s,10)<2&&wp.element.createElement(M,{disabled:!(parseInt(s,10)<2)||null,label:Object(v.__)("Animation Effect","getwid"),selected:c,options:[{value:"slide",label:Object(v.__)("Slide","getwid")},{value:"fade",label:Object(v.__)("Fade","getwid")}],onChange:function(e){return P({sliderAnimationEffect:e})}}),wp.element.createElement(N,{label:Object(v.__)("Infinite","getwid"),checked:w,onChange:function(){P({sliderInfinite:!w})}}),wp.element.createElement(B,{label:Object(v.__)("Animation Speed","getwid"),type:"number",value:y,min:0,onChange:function(e){return P({sliderAnimationSpeed:e})}}))),"advanced"===F&&wp.element.createElement(C,null,wp.element.createElement(T,{title:Object(v.__)("Image Settings","getwid"),initialOpen:!0},wp.element.createElement(B,{label:Object(v.__)("Slides on Desktop","getwid"),type:"number",value:parseInt(s,10),min:1,max:10,step:1,onChange:function(e){P({sliderSlidesToShow:e.toString()})}}),wp.element.createElement(B,{disabled:!(parseInt(s,10)>1)||null,label:Object(v.__)("Slides on Laptop","getwid"),type:"number",value:parseInt(d,10),min:1,max:10,step:1,onChange:function(e){P({sliderSlidesToShowLaptop:e.toString()})}}),wp.element.createElement(B,{disabled:!(parseInt(s,10)>1)||null,label:Object(v.__)("Slides on Tablet","getwid"),type:"number",value:parseInt(u,10),min:1,max:10,step:1,onChange:function(e){P({sliderSlidesToShowTablet:e.toString()})}}),wp.element.createElement(B,{disabled:!(parseInt(s,10)>1)||null,label:Object(v.__)("Slides on Mobile","getwid"),type:"number",value:parseInt(p,10),min:1,max:10,step:1,onChange:function(e){P({sliderSlidesToShowMobile:e.toString()})}}),wp.element.createElement(B,{disabled:!(parseInt(s,10)>1)||null,label:Object(v.__)("Slides to Scroll","getwid"),type:"number",value:parseInt(m,10),min:1,max:10,step:1,onChange:function(e){P({sliderSlidesToScroll:e.toString()})}}),0==i&&a.length>1&&wp.element.createElement(A,{label:Object(v.__)("Image Alignment","getwid"),value:r,onChange:function(e){return P({imageAlignment:e})},options:[{value:"top",label:Object(v.__)("Top","getwid")},{value:"center",label:Object(v.__)("Middle","getwid")},{value:"bottom",label:Object(v.__)("Bottom","getwid")}]}),wp.element.createElement(N,{label:Object(v.__)("Center Mode","getwid"),checked:k,onChange:function(){P({sliderCenterMode:!k})}}),wp.element.createElement(N,{label:Object(v.__)("Variable Width","getwid"),checked:E,onChange:function(){P({sliderVariableWidth:!E})}}),parseInt(s,10)>1&&wp.element.createElement(A,{label:Object(v.__)("Spacing","getwid"),value:j,onChange:function(e){return P({sliderSpacing:e})},options:[{value:"none",label:Object(v.__)("None","getwid")},{value:"small",label:Object(v.__)("Small","getwid")},{value:"normal",label:Object(v.__)("Medium","getwid")},{value:"large",label:Object(v.__)("Large","getwid")},{value:"huge",label:Object(v.__)("Huge","getwid")}]}),wp.element.createElement(x,null,wp.element.createElement(S,{isLink:!0,onClick:V,disabled:!this.hasSliderSettings()},Object(v.__)("Reset","getwid")))),wp.element.createElement(T,{title:Object(v.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(M,{label:Object(v.__)("Arrows","getwid"),selected:I,options:[{value:"outside",label:Object(v.__)("Outside","getwid")},{value:"inside",label:Object(v.__)("Inside","getwid")},{value:"none",label:Object(v.__)("None","getwid")}],onChange:function(e){return P({sliderArrows:e})}}),wp.element.createElement(M,{label:Object(v.__)("Dots","getwid"),selected:L,options:[{value:"outside",label:Object(v.__)("Outside","getwid")},{value:"inside",label:Object(v.__)("Inside","getwid")},{value:"none",label:Object(v.__)("None","getwid")}],onChange:function(e){return P({sliderDots:e})}}))))}}]),t}(k);t.a=I},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(12),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(11)),h=(n.n(w),wp.blob.isBlobURL),f=wp.data.withSelect,_=wp.element,v=_.Component,y=_.Fragment,k=wp.components,C=k.Spinner,E=(k.IconButton,function(e){function t(){var e;return l()(this,t),e=c()(this,d()(t).apply(this,arguments)),e.bindContainer=e.bindContainer.bind(p()(e)),e}return g()(t,e),o()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.image,a=t.url;n&&!a&&this.props.setAttributes({url:n.source_url,alt:n.alt_text})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.original_url,a=e.alt,l=e.id,i=(e.linkTo,e.link,e.custom_link),o=e.custom_link_target,r=e.custom_link_rel,c=(e.isSelected,wp.element.createElement(y,null,wp.element.createElement("img",{className:"".concat("wp-block-getwid-images-slider","__image"),src:t,alt:a,"data-custom-link":i||void 0,"data-link-target":o||void 0,"data-link-rel":r||void 0,"data-original-link":n||void 0,"data-id":l,tabIndex:"0"}),h(t)&&wp.element.createElement(C,null)));return wp.element.createElement(y,null,c)}}]),t}(v));t.a=f(function(e,t){var n=e("core"),a=n.getMedia,l=t.id;return{image:l?a(l):null}})(E)},function(e,t){},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element),k=y.Component,C=y.Fragment,E=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t,n=this.props,a=n.attributes,i=a.align,r=a.images,c=a.imageCrop,s=a.linkTo,d=a.imageAlignment,u=a.sliderAnimationEffect,p=a.sliderSlidesToShow,m=a.sliderSlidesToShowLaptop,g=a.sliderSlidesToShowTablet,b=a.sliderSlidesToShowMobile,w=a.sliderSlidesToScroll,h=a.sliderAutoplay,f=a.sliderAutoplaySpeed,v=a.sliderInfinite,y=a.sliderAnimationSpeed,k=a.sliderCenterMode,E=a.sliderVariableWidth,O=a.sliderSpacing,j=a.sliderArrows,S=a.sliderDots,x=a.slideHeight,T=a.resetHeightOnTablet,N=a.resetHeightOnMobile,A=n.className,M=n.baseClass,B=_()(A,"has-arrows-".concat(j),"has-dots-".concat(S),(e={},o()(e,"is-carousel",p>1),o()(e,"has-slides-gap-".concat(O),p>1),o()(e,"has-images-".concat(d),d),e),c?"has-cropped-images":null,x?"has-fixed-height":null,i?"align".concat(i):null),I={className:_()("".concat(M,"__item"),(t={},o()(t,"getwid-reset-height-tablet",T),o()(t,"getwid-reset-height-mobile",N),t)),style:{height:x||void 0}},L={"data-effect":u,"data-slides-show":p,"data-slides-show-laptop":m,"data-slides-show-tablet":g,"data-slides-show-mobile":b,"data-slides-scroll":w,"data-autoplay":h,"data-autoplay-speed":f,"data-infinite":v,"data-animation-speed":y,"data-center-mode":k,"data-variable-width":E,"data-arrows":j,"data-dots":S,"data-spacing":O};return wp.element.createElement("div",{className:B},wp.element.createElement("div",l()({className:"".concat(M,"__wrapper")},L),r.map(function(e){var t;switch(s){case"media":t=e.original_url;break;case"attachment":t=e.link;break;case"custom":t=e.custom_link}var n=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,"data-link-target":e.custom_link_target?e.custom_link_target:void 0,"data-link-rel":e.custom_link_rel?e.custom_link_rel:void 0,"data-original-link":e.original_url?e.original_url:void 0,"data-custom-link":e.custom_link?e.custom_link:void 0,className:"".concat(M,"__image ")+(e.id?"wp-image-".concat(e.id):"")});return wp.element.createElement("div",l()({key:e.id||e.url},I),wp.element.createElement(C,null,t?wp.element.createElement("a",{href:t,target:e.custom_link_target?e.custom_link_target:void 0,rel:e.custom_link_rel?e.custom_link_rel:void 0},n):n))})))}}]),t}(k);t.a=E},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element),k=y.Component,C=y.Fragment,E="wp-block-getwid-images-slider",O=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,a=n.align,i=n.images,r=n.imageCrop,c=n.linkTo,s=n.imageAlignment,d=n.sliderAnimationEffect,u=n.sliderSlidesToShow,p=n.sliderSlidesToShowLaptop,m=n.sliderSlidesToShowTablet,g=n.sliderSlidesToShowMobile,b=n.sliderSlidesToScroll,w=n.sliderAutoplay,h=n.sliderAutoplaySpeed,f=n.sliderInfinite,v=n.sliderAnimationSpeed,y=n.sliderCenterMode,k=n.sliderVariableWidth,O=n.sliderSpacing,j=n.sliderArrows,S=n.sliderDots,x=n.slideHeight,T=n.resetHeightOnTablet,N=n.resetHeightOnMobile,A=n.className,M=_()(A,"has-arrows-".concat(j),"has-dots-".concat(S),(e={},o()(e,"is-carousel",u>1),o()(e,"has-slides-gap-".concat(O),u>1),o()(e,"has-images-".concat(s),s),e),r?"has-cropped-images":null,x?"has-fixed-height":null,a?"align".concat(a):null),B={className:_()("".concat(E,"__item"),(t={},o()(t,"getwid-reset-height-tablet",T),o()(t,"getwid-reset-height-mobile",N),t)),style:{height:x||void 0}},I={"data-effect":d,"data-slides-show":u,"data-slides-show-laptop":p,"data-slides-show-tablet":m,"data-slides-show-mobile":g,"data-slides-scroll":b,"data-autoplay":w,"data-autoplay-speed":h,"data-infinite":f,"data-animation-speed":v,"data-center-mode":y,"data-variable-width":k,"data-arrows":j,"data-dots":S,"data-spacing":O};return wp.element.createElement("div",{className:M},wp.element.createElement("div",l()({className:"".concat(E,"__wrapper")},I),i.map(function(e){var t;switch(c){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:"".concat(E,"__image")+(e.id?" wp-image-".concat(e.id):null)});return wp.element.createElement("div",l()({key:e.id||e.url},B),wp.element.createElement(C,null,t?wp.element.createElement("a",{href:t},n):n))})))}}]),t}(k);t.a=O},function(e,t){},function(e,t,n){"use strict";function a(e,t){var n,a,l,i=e.attributes,o=i.iconStyle,r=i.iconSize,c=i.padding,s=i.borderWidth,d=i.borderRadius,u=i.backgroundColor,p=i.textColor,m=i.customTextColor,g=Object(h.get)(y("core/editor").getEditorSettings(),["colors"],[]);N(g,u);return"edit"==t?(n=void 0!==p&&void 0===p.class?e.textColor.color:m||void 0,a="stacked"===o?e.backgroundColor.color?e.backgroundColor.color:e.attributes.customBackgroundColor:void 0,l="framed"===o?e.textColor?e.textColor.color:e.attributes.customTextColor:void 0):"save"==t&&(a="stacked"===o?e.attributes.backgroundColor?void 0:e.attributes.customBackgroundColor:void 0,n=void 0!==p?void 0:m),{fontSize:void 0!==r?r:void 0,padding:void 0!==c?"".concat(c,"px"):void 0,color:n,backgroundColor:a,borderColor:l,borderWidth:"framed"===o?s:void 0,borderRadius:("framed"===o||"stacked"===o)&&50!=d?"".concat(d,"%"):void 0}}var l=n(8),i=n.n(l),o=n(10),r=n.n(o),c=n(9),s=n.n(c),d=(n(0),n(159)),u=n(160),p=n(161),m=n(13),g=n(162),b=(n.n(g),n(163)),w=(n.n(b),n(1)),h=(n.n(w),n(11)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.data.select),k=wp.element.Fragment,C=wp.blocks,E=C.registerBlockType,O=C.createBlock,j=wp.blockEditor||wp.editor,S=j.BlockControls,x=j.AlignmentToolbar,T=j.getColorClassName,N=j.getColorObjectByAttributeValues;E("getwid/icon",s()({title:Object(w.__)("Icon","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M24,9.3l-8.3-1.2L12,0.6L8.3,8.1L0,9.3l6,5.8l-1.4,8.2l7.4-3.9l7.4,3.9L18,15.1L24,9.3z M12,17.2l-4.7,2.5l0.9-5.3l-3.8-3.7 L9.6,10L12,5.1l2.4,4.9l5.3,0.8l-3.8,3.7l0.9,5.3L12,17.2z"})),keywords:[],supports:{align:["left","right","wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/icon")},transforms:{to:[{type:"block",blocks:["getwid/icon-box"],transform:function(e){return O("getwid/icon-box",e)}}]},attributes:p.a},Object(m.b)("getwid/icon",function(e){var t=e.attributes,n=t.align,l=t.textAlignment,i=e.setAttributes;return e.attributes.id||(e.attributes.id=e.clientId),[wp.element.createElement(u.a,r()({},s()({setAttributes:i},e),{key:"inspector"})),wp.element.createElement(d.a,r()({},s()({setAttributes:i,prepareWrapperStyle:a},e),{key:"edit"})),wp.element.createElement(k,null,"left"!=n&&"right"!=n&&wp.element.createElement(S,null,wp.element.createElement(x,{value:l,onChange:function(e){return i({textAlignment:e})}})))]}),{save:function(e){var t,n,l=e.attributes,o=l.icon,c=l.iconStyle,s=l.link,d=l.hoverAnimation,u=l.textAlignment,p=l.rel,m=l.linkTarget,g=l.marginTop,b=l.marginBottom,w=l.marginLeft,h=l.marginRight,f=l.backgroundColor,v=l.textColor,y=l.customBackgroundColor,k=l.customTextColor,C=l.className,E=T("color",v),O=T("background-color",f),j=wp.element.createElement("i",{className:o}),S={marginTop:g,marginBottom:b,marginLeft:w,marginRight:h},x={className:_()("".concat("wp-block-getwid-icon","__wrapper"),(t={"getwid-animation":!!d,"has-background":(f||y)&&"stacked"==c},i()(t,O,O&&"stacked"==c),i()(t,"has-text-color",v||k),i()(t,E,E),t)),style:a(e,"save"),"data-animation":d||void 0};return wp.element.createElement("div",{style:S,className:_()(C,(n={},i()(n,"has-layout-stacked","stacked"===c),i()(n,"has-layout-framed","framed"===c),i()(n,"is-aligned-".concat(u),void 0!==u),n))},s&&wp.element.createElement("a",r()({href:s,target:m,rel:p},x),j),!s&&wp.element.createElement("div",x,j))}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(21),v=n(1),y=(n.n(v),window),k=y.jQuery,C=wp.element.Component,E=wp.compose.compose,O=wp.blockEditor||wp.editor,j=O.withColors,S=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t,n=this,a=this.props,i=a.attributes,r=i.marginTop,c=i.marginBottom,s=i.marginLeft,d=i.marginRight,u=i.icon,p=i.iconStyle,m=i.link,g=i.hoverAnimation,b=i.textAlignment,w=a.prepareWrapperStyle,h=a.className,_=(a.setBackgroundColor,a.setTextColor,a.backgroundColor),v=a.textColor,y=wp.element.createElement("i",{className:u}),k={marginTop:r,marginBottom:c,marginLeft:s,marginRight:d},C={className:f()("".concat("wp-block-getwid-icon","__wrapper"),(e={"getwid-animation":!!g,"has-background":_.color&&"stacked"==p},o()(e,_.class,_.class&&"stacked"==p),o()(e,"has-text-color",v.color),o()(e,v.class,v.class),e)),style:w(this.props,"edit"),"data-animation":g||void 0,onMouseEnter:function(e){return n.onIconHoverIn()}};return wp.element.createElement("div",{style:k,className:f()(h,(t={},o()(t,"has-layout-stacked","stacked"===p),o()(t,"has-layout-framed","framed"===p),o()(t,"is-aligned-".concat(b),void 0!==b),t))},m&&wp.element.createElement("a",l()({href:m},C,{onClick:function(e){return e.preventDefault()}}),y),!m&&wp.element.createElement("div",C,y))}},{key:"setupIconWrapper",value:function(){var e=this.props.clientId;this.iconWrapper=k("[data-block='".concat(e,"'] .wp-block-getwid-icon__wrapper"))}},{key:"componentDidMount",value:function(){this.setupIconWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupIconWrapper()}},{key:"onIconHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(_.a)(this.iconWrapper,{animation:e})}}]),t}(C);t.a=E([j("backgroundColor",{textColor:"color"})])(S)},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(18)),f=n(25),_=n(17),v=n(15),y=n(1),k=(n.n(y),wp.element.Component),C=wp.blockEditor||wp.editor,E=C.InspectorControls,O=C.URLInput,j=C.withColors,S=wp.components,x=S.PanelBody,T=S.BaseControl,N=S.RangeControl,A=S.TextControl,M=S.RadioControl,B=S.ToggleControl,I=S.Button,L=wp.compose.compose,P=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.onSetNewTab=e.onSetNewTab.bind(g()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(g()(e)),e}return w()(t,e),c()(t,[{key:"hasMargin",value:function(){var e=this.props.attributes,t=e.marginTop,n=e.marginBottom,a=e.marginLeft,l=e.marginRight;return void 0!==t||void 0!==n||void 0!==l||void 0!==a}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,a=t;n&&!t?a="noreferrer noopener":n||"noreferrer noopener"!==t||(a=void 0),this.props.setAttributes({linkTarget:n,rel:a})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.icon,a=t.iconStyle,i=t.iconSize,o=t.padding,r=t.marginTop,c=t.marginBottom,s=t.marginLeft,d=t.marginRight,u=t.borderWidth,p=t.borderRadius,m=t.link,g=t.hoverAnimation,b=t.rel,w=t.linkTarget,k=e.setAttributes,C=e.setBackgroundColor,j=e.setTextColor,S=e.customBackgroundColor,L=e.customTextColor,P=e.backgroundColor,z=e.textColor,R=function(){k({marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0})},D="stacked"===a||"framed"===a;return wp.element.createElement(E,null,wp.element.createElement(x,{title:Object(y.__)("Settings","getwid")},wp.element.createElement(T,{label:Object(y.__)("Icon","getwid")},wp.element.createElement(h.a,{value:n,onChange:function(e){return k({icon:e})}})),wp.element.createElement(M,{label:Object(y.__)("Layout","getwid"),selected:void 0!==a?a:"default",options:[{value:"default",label:Object(y.__)("Icon","getwid")},{value:"stacked",label:Object(y.__)("Background","getwid")},{value:"framed",label:Object(y.__)("Outline","getwid")}],onChange:function(e){return k({iconStyle:e})}}),wp.element.createElement(v.a,{colorSettings:[{title:Object(y.__)("Icon Color","getwid"),colors:{customColor:L,defaultColor:z},changeColor:j}].concat(l()(D&&"stacked"==a?[{title:Object(y.__)("Background Color","getwid"),colors:{customColor:S,defaultColor:P},changeColor:C}]:[]))}),wp.element.createElement(_.a,{label:Object(y.__)("Icon Size","getwid"),value:i,onChange:function(e){k({iconSize:e})}}),wp.element.createElement(A,{type:"number",label:Object(y.__)("Space Around Icon","getwid"),value:o,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),k({padding:e})},min:0,step:1}),"framed"===a&&wp.element.createElement(A,{type:"number",label:Object(y.__)("Border Width","getwid"),value:void 0!==u?u:"",onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),k({borderWidth:e})},min:0,step:1,placeholder:"1"}),("framed"===a||"stacked"===a)&&wp.element.createElement(N,{label:Object(y.__)("Border Radius","getwid"),value:void 0!==p?p:"",onChange:function(e){k({borderRadius:e})},min:0,step:1,max:100,placeholder:"0"}),wp.element.createElement(T,{className:"getwid-editor-url-input",label:Object(y.__)("Link","getwid")},wp.element.createElement(O,{autoFocus:!1,value:m,onChange:function(e){return k({link:e})}})),wp.element.createElement(T,null,wp.element.createElement(B,{label:Object(y.__)("Open in New Tab","getwid"),checked:"_blank"===w,onChange:this.onSetNewTab})),wp.element.createElement(A,{label:Object(y.__)("Link Rel","getwid"),value:b||"",onChange:this.onSetLinkRel}),wp.element.createElement(f.a,{label:Object(y.__)("Icon Hover Animation","getwid"),value:void 0!==g?g:"",onChange:function(e){return k({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]})),wp.element.createElement(x,{title:Object(y.__)("Margin","getwid"),initialOpen:!1},wp.element.createElement(_.a,{label:Object(y.__)("Margin Top","getwid"),value:r,onChange:function(e){k({marginTop:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(_.a,{label:Object(y.__)("Margin Bottom","getwid"),value:c,onChange:function(e){k({marginBottom:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(_.a,{label:Object(y.__)("Margin Left","getwid"),value:s,onChange:function(e){k({marginLeft:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(_.a,{label:Object(y.__)("Margin Right","getwid"),value:d,onChange:function(e){k({marginRight:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(T,null,wp.element.createElement(I,{isLink:!0,onClick:R,disabled:!this.hasMargin()},Object(y.__)("Reset","getwid")))))}}]),t}(k);t.a=L([j("backgroundColor",{textColor:"color"})])(P)},function(e,t,n){"use strict";var a={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},icon:{type:"string",default:"fab fa-wordpress"},iconStyle:{type:"string",default:"default"},iconSize:{type:"string"},padding:{type:"number"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},borderWidth:{type:"number"},borderRadius:{type:"number",default:50},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"href"},align:{type:"string"},textAlignment:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-icon__wrapper",attribute:"data-animation"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"rel"}};t.a=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";function a(e,t){var n,a,l,i=e.attributes,o=i.iconStyle,r=i.iconSize,c=i.padding,s=i.borderWidth,d=i.borderRadius,u=i.textColor,p=i.customTextColor;return"edit"==t?(n=void 0!==u&&void 0===u.class?e.textColor.color:p||void 0,a="stacked"===o?e.backgroundColor.color?e.backgroundColor.color:e.attributes.customBackgroundColor:void 0,l="framed"===o?e.textColor?e.textColor.color:e.attributes.customTextColor:void 0):"save"==t&&(a="stacked"===o?e.attributes.backgroundColor?void 0:e.attributes.customBackgroundColor:void 0,n=void 0!==u?void 0:p),{fontSize:void 0!==r?r:void 0,padding:void 0!==c?"".concat(c,"px"):void 0,color:n,backgroundColor:a,borderColor:l,borderWidth:"framed"===o?s:void 0,borderRadius:("framed"===o||"stacked"===o)&&50!=d?"".concat(d,"%"):void 0}}var l=n(8),i=n.n(l),o=n(10),r=n.n(o),c=n(9),s=n.n(c),d=(n(0),n(165)),u=n(168),p=n(13),m=n(57),g=(n.n(m),n(1)),b=(n.n(g),n(7)),w=n.n(b),h=window,f=(h.jQuery,wp.data.select),_=wp.element.Fragment,v=wp.components.Toolbar,y=wp.blocks,k=y.registerBlockType,C=y.createBlock,E=wp.blockEditor||wp.editor,O=E.BlockControls,j=E.AlignmentToolbar,S=E.InnerBlocks,x=E.getColorClassName,T="wp-block-getwid-icon-box";k("getwid/icon-box",s()({title:Object(g.__)("Icon Box","getwid"),example:{attributes:{icon:"fab fa-wordpress",iconStyle:"default",textAlignment:"center"},innerBlocks:[{name:"core/heading",attributes:{content:"Title"}},{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]},category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"5,2.2 6.5,5.4 10,5.9 7.5,8.3 8.1,11.8 5,10.2 1.9,11.8 2.5,8.3 0,5.9 3.5,5.4 "}),wp.element.createElement("rect",{x:"13",y:"11",width:"11",height:"2"}),wp.element.createElement("rect",{x:"2",y:"15",width:"22",height:"2"}),wp.element.createElement("rect",{x:"13",y:"7",width:"11",height:"2"}),wp.element.createElement("rect",{x:"13",y:"3",width:"11",height:"2"}),wp.element.createElement("rect",{x:"2",y:"19",width:"15.6",height:"2"})),keywords:[Object(g.__)("feature","getwid"),Object(g.__)("service","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/icon-box")},transforms:{to:[{type:"block",blocks:["getwid/icon"],transform:function(e){return C("getwid/icon",e)}},{type:"block",blocks:["getwid/image-box"],transform:function(e){var t=f("core/editor").getSelectedBlockClientId(),n=f("core/editor").getBlock(t).innerBlocks;return C("getwid/image-box",e,n)}},{type:"block",blocks:["core/heading"],transform:function(e){var t,n=f("core/editor").getSelectedBlockClientId(),a=f("core/editor").getBlock(n).innerBlocks;return a.length&&jQuery.each(a,function(e,n){"core/heading"==n.name&&(t=n.attributes.content)}),C("core/heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t,n=f("core/editor").getSelectedBlockClientId(),a=f("core/editor").getBlock(n).innerBlocks;return a.length&&jQuery.each(a,function(e,n){"core/paragraph"==n.name&&(t=n.attributes.content)}),C("core/paragraph",{content:t})}}]},attributes:u.a},Object(p.b)("getwid/icon-box",function(e){var t=e.attributes,n=t.textAlignment,l=t.layout,i=e.setAttributes,o=function(e){i({textAlignment:e})},c=[{icon:"align-left",title:Object(g.__)("Align Icon Left","getwid"),isActive:"left"==l,onClick:function(){return i({layout:"left"==l?null:"left"})}},{icon:"align-right",title:Object(g.__)("Align Icon Right","getwid"),isActive:"right"==l,onClick:function(){return i({layout:"right"==l?null:"right"})}}];return[wp.element.createElement(d.a,r()({},s()({setAttributes:i,prepareWrapperStyle:a},e),{key:"edit"})),wp.element.createElement(_,null,wp.element.createElement(O,null,wp.element.createElement(v,{controls:c})),wp.element.createElement(O,null,wp.element.createElement(j,{value:n,onChange:o})))]}),{save:function(e){var t,n,l=e.attributes,o=l.textAlignment,c=l.icon,s=l.layout,d=l.iconPosition,u=l.iconStyle,p=l.link,m=l.hoverAnimation,g=l.rel,b=l.linkTarget,h=l.marginTop,f=l.marginBottom,_=l.marginLeft,v=l.marginRight,y=l.backgroundColor,k=l.textColor,C=l.customBackgroundColor,E=l.customTextColor,O=l.className,j=x("color",k),N=x("background-color",y),A={className:w()(O,(t={"getwid-animation":!!m},i()(t,"has-icon-left","left"===s),i()(t,"has-icon-right","right"===s),i()(t,"has-text-left","left"===o),i()(t,"has-text-center","center"===o),i()(t,"has-text-right","right"===o),t)),"data-animation":m||void 0},M=w()("".concat(T,"__icon-container"),{"has-layout-stacked":"stacked"===u,"has-layout-framed":"framed"===u,"is-position-top":"top"===d,"is-position-middle":"middle"===d,"is-position-bottom":"bottom"===d}),B=wp.element.createElement("i",{className:c}),I={marginTop:h,marginBottom:f,marginLeft:_,marginRight:v},L={className:w()("".concat(T,"__icon-wrapper"),(n={"has-background":(y||C)&&"stacked"==u},i()(n,N,N&&"stacked"==u),i()(n,"has-text-color",k||E),i()(n,j,j),n)),style:a(e,"save")};return wp.element.createElement("div",A,wp.element.createElement("div",{style:I,className:M},p&&wp.element.createElement("a",r()({href:p,target:b,rel:g},L),B),!p&&wp.element.createElement("div",L,B)),wp.element.createElement("div",{className:"".concat(T,"__content")},wp.element.createElement(S.Content,null)))}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(166)),k=n(167),C=(n.n(k),n(57)),E=(n.n(C),n(21)),O=n(1),j=(n.n(O),n(7)),S=n.n(j),x=window,T=x.jQuery,N=wp.compose.compose,A=wp.element,M=A.Component,B=A.Fragment,I=wp.blockEditor||wp.editor,L=I.InnerBlocks,P=I.withColors,z=[["core/heading",{level:3,placeholder:Object(O.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(O.__)("Write text…","getwid")}]],R="wp-block-getwid-icon-box",D=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.state={isLockedMargins:!1},e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"render",value:function(){var e,t,n=this,a=this.props,i=a.attributes,r=i.marginTop,s=i.marginBottom,d=i.marginLeft,u=i.marginRight,p=i.icon,m=i.textAlignment,g=i.layout,b=i.iconPosition,w=i.iconStyle,h=i.link,f=i.hoverAnimation,_=a.prepareWrapperStyle,v=a.className,k=a.isSelected,C=a.backgroundColor,E=a.textColor,O={className:S()(v,(e={"getwid-animation":!!f},c()(e,"has-icon-left","left"===g),c()(e,"has-icon-right","right"===g),c()(e,"has-text-left","left"===m),c()(e,"has-text-center","center"===m),c()(e,"has-text-right","right"===m),c()(e,"is-selected",k),e)),"data-animation":f||void 0,onMouseEnter:function(e){return n.onIconHoverIn()}},j=S()("".concat(R,"__icon-container"),{"has-layout-stacked":"stacked"===w,"has-layout-framed":"framed"===w,"is-position-top":"top"===b,"is-position-middle":"middle"===b,"is-position-bottom":"bottom"===b}),x=wp.element.createElement("i",{className:p}),T={marginTop:r,marginBottom:s,marginLeft:d,marginRight:u},N={className:S()("".concat(R,"__icon-wrapper"),(t={"has-background":C.color&&"stacked"==w},c()(t,C.class,C.class&&"stacked"==w),c()(t,"has-text-color",E.color),c()(t,E.class,E.class),t)),style:_(this.props,"edit")},A=this.changeState,M=this.state.isLockedMargins;return wp.element.createElement(B,null,wp.element.createElement(y.a,l()({},o()({},this.props,{isLockedMargins:M,changeState:A}),{key:"inspector"})),wp.element.createElement("div",O,wp.element.createElement("div",{style:T,className:j},h&&wp.element.createElement("a",l()({href:h},N,{onClick:function(e){return e.preventDefault()}}),x),!h&&wp.element.createElement("div",N,x)),wp.element.createElement("div",{className:"".concat(R,"__content")},wp.element.createElement(L,{template:z,templateInsertUpdatesSelection:!1,templateLock:!1}))))}},{key:"setupIconWrapper",value:function(){var e=this.props.clientId;this.iconWrapper=T("[data-block='".concat(e,"'] .wp-block-getwid-icon-box__icon-wrapper"))}},{key:"componentDidMount",value:function(){this.setupIconWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupIconWrapper()}},{key:"onIconHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(E.a)(this.iconWrapper,{animation:e})}}]),t}(M);t.a=N([P("backgroundColor",{textColor:"color"})])(D)},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(18)),v=n(25),y=n(17),k=n(15),C=n(19),E=n(14),O=n(1),j=(n.n(O),window),S=(j.jQuery,wp.element),x=S.Component,T=S.Fragment,N=wp.blockEditor||wp.editor,A=N.InspectorControls,M=(N.PanelColorSettings,N.URLInput),B=N.withColors,I=wp.components,L=I.PanelBody,P=I.BaseControl,z=I.RangeControl,R=I.TextControl,D=I.SelectControl,V=I.RadioControl,F=I.ToggleControl,H=wp.compose.compose,W=function(e){function t(){var e;return c()(this,t),e=p()(this,g()(t).apply(this,arguments)),e.onSetNewTab=e.onSetNewTab.bind(w()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(w()(e)),e.changeState=e.changeState.bind(w()(e)),e.state={tabName:"general"},e}return f()(t,e),d()(t,[{key:"changeState",value:function(e,t){this.setState(o()({},e,t))}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,a=t;n&&!t?a="noreferrer noopener":n||"noreferrer noopener"!==t||(a=void 0),this.props.setAttributes({linkTarget:n,rel:a})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.icon,a=t.layout,i=t.textAlignment,o=t.iconPosition,r=t.iconStyle,c=t.iconSize,s=t.padding,d=t.borderWidth,u=t.borderRadius,p=t.link,m=t.hoverAnimation,g=t.linkTarget,b=t.rel,w=e.setAttributes,h=e.setBackgroundColor,f=e.setTextColor,j=e.customBackgroundColor,S=e.customTextColor,x=e.backgroundColor,N=e.textColor,B=this.state.tabName,I=this.changeState,H="stacked"===r||"framed"===r;return wp.element.createElement(A,null,wp.element.createElement(C.a,{state:B,stateName:"tabName",onChangeTab:I,tabs:["general","style","advanced"]}),"general"===B&&wp.element.createElement(T,null,wp.element.createElement(L,null,wp.element.createElement(P,{label:Object(O.__)("Icon","getwid")},wp.element.createElement(_.a,{value:n,onChange:function(e){return w({icon:e})}})),wp.element.createElement(V,{label:Object(O.__)("Layout","getwid"),selected:a||"",options:[{value:"",label:Object(O.__)("Default","getwid")},{value:"left",label:Object(O.__)("Align Icon Left","getwid")},{value:"right",label:Object(O.__)("Align Icon Right","getwid")}],onChange:function(e){return w({layout:e})}}),("left"==a||"right"==a)&&wp.element.createElement(D,{label:Object(O.__)("Icon Vertical Alignment","getwid"),value:o,options:[{value:"top",label:Object(O.__)("Top","getwid")},{value:"middle",label:Object(O.__)("Middle","getwid")},{value:"bottom",label:Object(O.__)("Bottom","getwid")}],onChange:function(e){return w({iconPosition:e})}}),wp.element.createElement(D,{label:Object(O.__)("Content Alignment","getwid"),value:i,options:[{value:"left",label:Object(O.__)("Left","getwid")},{value:"center",label:Object(O.__)("Center","getwid")},{value:"right",label:Object(O.__)("Right","getwid")}],onChange:function(e){return w({textAlignment:e})}}),wp.element.createElement(P,{label:Object(O.__)("Icon Link","getwid"),className:"getwid-editor-url-input"},wp.element.createElement(M,{autoFocus:!1,value:p,onChange:function(e){return w({link:e})}})),wp.element.createElement(P,null,wp.element.createElement(F,{label:Object(O.__)("Open in New Tab","getwid"),checked:"_blank"===g,onChange:this.onSetNewTab})),wp.element.createElement(R,{label:Object(O.__)("Link Rel","getwid"),value:b||"",onChange:this.onSetLinkRel}))),"style"===B&&wp.element.createElement(T,null,wp.element.createElement(L,null,wp.element.createElement(V,{label:Object(O.__)("Icon Style","getwid"),selected:void 0!==r?r:"default",options:[{value:"default",label:Object(O.__)("Icon","getwid")},{value:"stacked",label:Object(O.__)("Background","getwid")},{value:"framed",label:Object(O.__)("Outline","getwid")}],onChange:function(e){return w({iconStyle:e})}}),wp.element.createElement(k.a,{colorSettings:[{title:Object(O.__)("Icon Color","getwid"),colors:{customColor:S,defaultColor:N},changeColor:f}].concat(l()(H&&"stacked"==r?[{title:Object(O.__)("Icon Background Color","getwid"),colors:{customColor:j,defaultColor:x},changeColor:h}]:[]))}),"framed"===r&&wp.element.createElement(R,{type:"number",label:Object(O.__)("Border Size","getwid"),value:void 0!==d?d:"",onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),w({borderWidth:e})},min:0,step:1,placeholder:"1"}),("framed"===r||"stacked"===r)&&wp.element.createElement(z,{label:Object(O.__)("Border Radius","getwid"),value:void 0!==u?u:"",onChange:function(e){w({borderRadius:e})},min:0,step:1,max:100,placeholder:"0"}),wp.element.createElement(y.a,{label:Object(O.__)("Icon Size","getwid"),value:c,onChange:function(e){w({iconSize:e})}}),wp.element.createElement(R,{type:"number",label:Object(O.__)("Space Around Icon","getwid"),value:s,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),w({padding:e})},min:0,step:1})),wp.element.createElement(L,{title:Object(O.__)("Margin","getwid"),initialOpen:!1},Object(E.b)(this))),"advanced"===B&&wp.element.createElement(T,null,wp.element.createElement(L,null,wp.element.createElement(v.a,{label:Object(O.__)("Icon Hover Animation","getwid"),value:void 0!==m?m:"",onChange:function(e){return w({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]}))))}}]),t}(x);t.a=H([B("backgroundColor",{textColor:"color"})])(W)},function(e,t){},function(e,t,n){"use strict";var a={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textAlignment:{type:"string",default:"center"},icon:{type:"string",default:"fab fa-wordpress"},layout:{type:"string"},iconPosition:{type:"string",default:"top"},iconStyle:{type:"string",default:"default"},primaryColor:{type:"string"},secondaryColor:{type:"string"},iconSize:{type:"string"},padding:{type:"number"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},borderWidth:{type:"number"},borderRadius:{type:"number",default:50},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"href"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-icon-box",attribute:"data-animation"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"rel"}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(170)),o=n(173),r=n(174),c=n(58),s=n(13),d=n(59),u=(n.n(d),n(1)),p=(n.n(u),window),m=(p.jQuery,wp.data.select),g=wp.blocks,b=g.registerBlockType,w=g.createBlock,h=["left","center","right","wide","full"];b("getwid/banner",l()({title:Object(u.__)("Banner","getwid"),description:Object(u.__)("Link an image or video with a text overlay.","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{x:"14",y:"5",width:"6",height:"2"}),wp.element.createElement("rect",{x:"14",y:"9",width:"6",height:"2"}),wp.element.createElement("polygon",{points:"8,4 9.1,5.2 10.8,5.2 10.8,6.9 12,8 10.8,9.1 10.8,10.8 9.1,10.8 8,12 6.9,10.8 5.2,10.8 5.2,9.1 4,8 5.2,6.9 5.2,5.2 6.9,5.2 "}),wp.element.createElement("polygon",{points:"17.6,15 10.3,12.6 11.9,20.1 13.8,18.4 17,21.9 18.9,20.2 15.7,16.7"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"0,0 0,16 9,16 8.6,14 2,14 2,2 22,2 22,14 19.3,14 19.7,16 24,16 24,0"}))),supports:{inserter:!Getwid.disabled_blocks.includes("getwid/banner")},keywords:[Object(u.__)("image","getwid"),Object(u.__)("cover","getwid")],deprecated:[{attributes:c.a,save:r.a}],transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return w("getwid/banner",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["core/media-text"],transform:function(e){var t=m("core/editor").getSelectedBlockClientId(),n=m("core/editor").getBlock(t).innerBlocks,a={text:""};return n.length&&jQuery.each(n,function(e,t){"core/paragraph"==t.name&&(a.text=t.attributes.content)}),w("getwid/banner",{id:e.mediaId,url:e.mediaUrl,text:a.text})}},{type:"block",blocks:["core/cover"],transform:function(e){return w("getwid/banner",{id:e.id,url:e.url,title:e.caption})}}],to:[{type:"block",blocks:["core/cover"],transform:function(e){return w("core/cover",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/image"],transform:function(e){return w("core/image",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return w("getwid/image-box",{id:e.id,url:e.url},[w("core/heading",{content:e.title}),w("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/media-text"],transform:function(e){return w("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"},[w("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/cover"],transform:function(e){return w("core/cover",{id:e.id,url:e.url})}},{type:"block",blocks:["core/heading"],transform:function(e){return w("core/heading",{content:e.title})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return w("core/paragraph",{content:e.text})}}]},attributes:c.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==h.indexOf(t))return{"data-align":t}}},Object(s.b)("getwid/banner",i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(30),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(7)),O=n.n(E),j=n(11),S=(n.n(j),n(58)),x=n(171),T=n(172),N=(n.n(T),n(59)),A=(n.n(N),wp.compose.compose),M=wp.data.withSelect,B=wp.element,I=B.Component,L=B.Fragment,P=wp.components,z=P.IconButton,R=P.ToggleControl,D=P.Toolbar,V=P.Dashicon,F=wp.blockEditor||wp.editor,H=F.BlockControls,W=F.BlockAlignmentToolbar,U=F.MediaPlaceholder,G=F.MediaUpload,q=F.MediaUploadCheck,Q=F.RichText,K=F.URLInput,J=F.withColors,Z=["wide","full"],$=["image","video"],Y="wp-block-getwid-banner",X=function(e){function t(){var e;return p()(this,t),e=w()(this,f()(t).apply(this,arguments)),e.onSetNewTab=e.onSetNewTab.bind(v()(e)),e}return k()(t,e),g()(t,[{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,a=t;n&&!t?a="noreferrer noopener":n||"noreferrer noopener"!==t||(a=void 0),this.props.setAttributes({linkTarget:n,rel:a})}},{key:"render",value:function(){var e,t=this,n=this.props,a=n.setAttributes,i=n.isSelected,r=n.className,s=n.backgroundColor,u=n.textColor,p=this.props.attributes,m=p.id,g=p.url,b=p.type,w=p.title,h=p.text,f=p.link,_=p.align,v=p.minHeight,y=p.contentMaxWidth,k=p.verticalAlign,E=p.horizontalAlign,T=this.props.attributes,N=T.backgroundOpacity,A=T.blockAnimation,M=T.textAnimation,B=T.customTextColor,I=T.linkTarget,P=function(e,t){if(!e)return void a({url:void 0,id:void 0});var n;if(e.media_type)n="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;n=e.type}var l=Object(j.get)(e,["sizes",t,"url"])||Object(j.get)(e,["media_details","sizes",t,"source_url"])||e.url;a({id:e.id,url:void 0!==l?l:g,type:n})},F=function(e){var n=t.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(d()("imageSize"),n=S.a.imageSize.default,a({imageSize:n})),P(e,n)},J={className:O()("".concat(Y,"__wrapper"),c()({"has-background":s.color},s.class,s.class)),style:{backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:this.props.attributes.customBackgroundColor}},X={className:O()("".concat(Y,"__caption"),c()({"has-text-color":u.color},u.class,u.class)),style:{color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:B||void 0,minHeight:v}},ee={className:O()(r,(e={},c()(e,"has-animation-".concat(A),"none"!=A),c()(e,"has-text-animation-".concat(M),"none"!=M&&!i),c()(e,"has-foreground-".concat(N),35!=N),c()(e,"has-vertical-alignment-".concat(k),"center"!=k),c()(e,"has-horizontal-alignment-".concat(E),"center"!=E),e),_?"align".concat(_):null)},te=wp.element.createElement(L,null,wp.element.createElement(H,null,wp.element.createElement(W,{controls:Z,value:_,onChange:function(e){return a({align:e})}}),!!g&&wp.element.createElement(L,null,wp.element.createElement(q,null,wp.element.createElement(D,null,wp.element.createElement(G,{onSelect:F,allowedTypes:$,value:m,render:function(e){var t=e.open;return wp.element.createElement(z,{className:"components-toolbar__control",label:Object(C.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),!!g&&wp.element.createElement(x.a,l()({},o()({setAttributes:a},this.props,{changeImageSize:P,onSelectMedia:F}),{key:"inspector"})));if(!g){var ne=!Q.isEmpty(w),ae=ne?void 0:"format-image",le=ne?wp.element.createElement(L,null,wp.element.createElement(Q,{tagName:"p",value:w,onChange:function(e){return a({title:e})}}),wp.element.createElement(Q,{tagName:"p",value:h,onChange:function(e){return a({text:e})}})):Object(C.__)("Banner","getwid");return wp.element.createElement(L,null,te,wp.element.createElement(U,{icon:ae,className:Y,labels:{title:le},onSelect:F,accept:"image/*",allowedTypes:$}))}return wp.element.createElement(L,null,te,wp.element.createElement("div",ee,wp.element.createElement(L,null,!!g&&wp.element.createElement("div",J,"video"===b&&g?wp.element.createElement("video",{className:"".concat(Y,"__video ").concat(Y,"__source"),autoPlay:!0,muted:!0,loop:!0,src:g}):wp.element.createElement("img",{src:g,alt:"",className:"".concat(Y,"__image ").concat(Y,"__source")}),wp.element.createElement(L,null,wp.element.createElement("div",X,wp.element.createElement("div",{style:{maxWidth:y},className:"".concat(Y,"__caption-wrapper")},wp.element.createElement(Q,{tagName:"span",className:"".concat(Y,"__title"),placeholder:Object(C.__)("Write heading…","getwid"),value:w,onChange:function(e){return a({title:e})},formattingControls:["bold","italic","strikethrough"]}),wp.element.createElement(Q,{tagName:"p",className:"".concat(Y,"__text"),placeholder:Object(C.__)("Write text…","getwid"),value:h,onChange:function(e){return a({text:e})},formattingControls:["bold","italic","strikethrough"]}))))))),i&&wp.element.createElement(L,null,wp.element.createElement("div",{className:"".concat(Y,"__url-field")},wp.element.createElement(V,{icon:"admin-links"}),wp.element.createElement(K,{className:"has-border",autoFocus:!1,value:f,onChange:function(e){return a({link:e})}}),wp.element.createElement(R,{label:Object(C.__)("Open in New Tab","getwid"),onChange:this.onSetNewTab,checked:"_blank"===I}))))}}]),t}(I);t.a=A([M(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.id;if(void 0!==l)return{imgObj:l?a(l):null}}),J("backgroundColor",{textColor:"color"})])(X)},function(e,t,n){"use strict";n.d(t,"a",function(){return z});var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(17)),_=n(19),v=n(15),y=wp.element,k=y.Component,C=y.Fragment,E=wp.blockEditor||wp.editor,O=E.InspectorControls,j=E.MediaPlaceholder,S=E.MediaUpload,x=E.URLInput,T=wp.components,N=T.Button,A=T.BaseControl,M=T.PanelBody,B=T.RangeControl,I=T.TextControl,L=T.SelectControl,P=(T.CheckboxControl,["image","video"]),z=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.onSetLinkRel=e.onSetLinkRel.bind(g()(e)),e.changeState=e.changeState.bind(g()(e)),e.state={tabName:"general"},e}return w()(t,e),c()(t,[{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.link,n=e.backgroundOpacity,a=e.blockAnimation,l=e.textAnimation,i=e.rel,o=this.props,r=o.setAttributes,c=o.setBackgroundColor,s=o.setTextColor,d=o.backgroundColor,u=o.textColor,p=o.customBackgroundColor,m=o.customTextColor,g=this.state.tabName,b=this.changeState;return wp.element.createElement(O,null,wp.element.createElement(_.a,{state:g,stateName:"tabName",onChangeTab:b,tabs:["general","style","advanced"]}),"general"===g&&wp.element.createElement(C,null,this.renderGeneralSettings()),"style"===g&&wp.element.createElement(C,null,wp.element.createElement(M,null,wp.element.createElement(B,{label:Object(h.__)("Overlay Opacity","getwid"),value:n,onChange:function(e){return r({backgroundOpacity:e})},min:0,max:100,step:5}),wp.element.createElement(v.a,{colorSettings:[{title:Object(h.__)("Text Color","getwid"),colors:{customColor:m,defaultColor:u},changeColor:s},{title:Object(h.__)("Overlay Color","getwid"),colors:{customColor:p,defaultColor:d},changeColor:c}]}))),"advanced"===g&&wp.element.createElement(M,{title:Object(h.__)("Animation","getwid"),initialOpen:!0},wp.element.createElement(L,{label:Object(h.__)("Block Animation","getwid"),value:a,onChange:function(e){return r({blockAnimation:e})},options:[{value:"none",label:Object(h.__)("None","getwid")},{value:"style1",label:Object(h.__)("Aries","getwid")},{value:"style2",label:Object(h.__)("Taurus","getwid")},{value:"style3",label:Object(h.__)("Gemini","getwid")},{value:"style4",label:Object(h.__)("Cancer","getwid")},{value:"style5",label:Object(h.__)("Leo","getwid")},{value:"style6",label:Object(h.__)("Virgo","getwid")}]}),wp.element.createElement(L,{label:Object(h.__)("Text Animation","getwid"),value:l,onChange:function(e){return r({textAnimation:e})},options:[{value:"none",label:Object(h.__)("None","getwid")},{value:"opacity",label:Object(h.__)("Fade In","getwid")},{value:"opacity-top",label:Object(h.__)("Fade In Up","getwid")},{value:"opacity-bottom",label:Object(h.__)("Fade In Down","getwid")},{value:"opacity-left",label:Object(h.__)("Fade In Left","getwid")},{value:"opacity-right",label:Object(h.__)("Fade In Right","getwid")},{value:"opacity-zoom-in",label:Object(h.__)("Zoom In","getwid")},{value:"opacity-zoom-out",label:Object(h.__)("Zoom Out","getwid")}]}),wp.element.createElement(A,{className:"getwid-editor-url-input",label:Object(h.__)("Link","getwid")},wp.element.createElement(x,{autoFocus:!1,value:t,onChange:function(e){return r({link:e})}})),wp.element.createElement(I,{label:Object(h.__)("Link Rel","getwid"),value:i||"",onChange:this.onSetLinkRel})))}},{key:"renderGeneralSettings",value:function(){var e=function(e){void 0!==m&&(p({imageSize:e}),u(m,e))},t=this.props.attributes,n=t.imageSize,a=t.id,l=t.url,i=t.type,o=t.minHeight,r=t.contentMaxWidth,c=t.verticalAlign,s=t.horizontalAlign,d=this.props,u=d.changeImageSize,p=d.setAttributes,m=d.imgObj,g=d.onSelectMedia;return wp.element.createElement(M,{title:Object(h.__)("Settings","getwid"),initialOpen:!0},!l&&wp.element.createElement(j,{icon:"format-image",labels:{title:Object(h.__)("Image","getwid"),instructions:Object(h.__)("Upload an image file, pick one from your media library, or add one with a URL.","getwid")},onSelect:g,accept:"image/*",allowedTypes:P}),l&&wp.element.createElement(S,{onSelect:g,allowedTypes:P,value:a,render:function(e){var t=e.open;return wp.element.createElement(A,null,!!l&&"video"!=i&&wp.element.createElement("div",{onClick:t,className:"getwid-background-image-wrapper"},wp.element.createElement("img",{src:l})),!!l&&"video"==i&&wp.element.createElement(C,null,wp.element.createElement("video",{controls:!0},wp.element.createElement("source",{src:l,type:"video/mp4"}),wp.element.createElement("span",null,Object(h.__)("Your browser does not support the video tag.","getwid")))),wp.element.createElement(N,{isPrimary:!0,onClick:t},"image"==i&&wp.element.createElement(C,null,!a&&Object(h.__)("Select Image","getwid"),!!a&&Object(h.__)("Replace Image","getwid")),"video"==i&&wp.element.createElement(C,null,!a&&Object(h.__)("Select Video","getwid"),!!a&&Object(h.__)("Replace Video","getwid"))))}}),m&&"image"==i&&wp.element.createElement(L,{label:Object(h.__)("Image Size","getwid"),help:Object(h.__)("For images from Media Library only.","getwid"),value:n,onChange:e,options:Getwid.settings.image_sizes}),wp.element.createElement(L,{label:Object(h.__)("Text Horizontal Alignment","getwid"),value:s||"center",onChange:function(e){return p({horizontalAlign:e})},options:[{value:"left",label:Object(h.__)("Left","getwid")},{value:"center",label:Object(h.__)("Center","getwid")},{value:"right",label:Object(h.__)("Right","getwid")}]}),wp.element.createElement(L,{label:Object(h.__)("Text Vertical Alignment","getwid"),value:c||"center",onChange:function(e){return p({verticalAlign:e})},options:[{value:"top",label:Object(h.__)("Top","getwid")},{value:"center",label:Object(h.__)("Middle","getwid")},{value:"bottom",label:Object(h.__)("Bottom","getwid")}]}),wp.element.createElement(f.a,{label:Object(h.__)("Block Height","getwid"),value:o,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return p({minHeight:e})}}),wp.element.createElement(f.a,{label:Object(h.__)("Text Width","getwid"),value:r,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return p({contentMaxWidth:e})}}))}}]),t}(k)},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(7)),h=n.n(w),f=window,_=(f.jQuery,wp.data.select,wp.element),v=_.Component,y=_.Fragment,k=wp.blocks,C=(k.registerBlockType,k.createBlock,wp.blockEditor||wp.editor),E=C.RichText,O=C.getColorClassName,j="wp-block-getwid-banner",S=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,a=t.url,i=t.type,o=t.title,r=t.text,c=t.link,s=t.align,d=t.minHeight,u=t.contentMaxWidth,p=t.verticalAlign,m=t.horizontalAlign,g=t.rel,b=t.linkTarget,w=t.backgroundColor,f=t.textColor,_=t.customBackgroundColor,v=t.customTextColor,k=t.backgroundOpacity,C=t.blockAnimation,S=t.textAnimation,x=t.className,T=O("color",f),N=O("background-color",w),A={className:h()("".concat(j,"__wrapper"),l()({"has-background":w||_},N,N)),style:{backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor}},M={className:h()("".concat(j,"__caption"),l()({"has-text-color":f||v},T,T)),style:{color:void 0!==f?void 0:v,minHeight:d}},B={className:h()(x,(e={},l()(e,"has-animation-".concat(C),"none"!=C),l()(e,"has-text-animation-".concat(S),"none"!=S),l()(e,"has-foreground-".concat(k),35!=k),l()(e,"has-vertical-alignment-".concat(p),"center"!=p),l()(e,"has-horizontal-alignment-".concat(m),"center"!=m),e),s?"align".concat(s):null)};return wp.element.createElement("div",B,wp.element.createElement("a",{href:void 0!==c?c:"#",target:b,rel:g,className:"".concat(j,"__link")},!!a&&wp.element.createElement("div",A,"video"===i&&a?wp.element.createElement("video",{className:"".concat(j,"__video ").concat(j,"__source"),autoPlay:!0,muted:!0,loop:!0,src:a}):wp.element.createElement("img",{src:a,alt:"",className:"".concat(j,"__image ").concat(j,"__source ")+(n?"wp-image-".concat(n):"")}),wp.element.createElement(y,null,wp.element.createElement("div",M,wp.element.createElement("div",{style:{maxWidth:u},className:"".concat(j,"__caption-wrapper")},!E.isEmpty(o)&&wp.element.createElement(E.Content,{tagName:"span",className:"".concat(j,"__title"),value:o}),!E.isEmpty(r)&&wp.element.createElement(E.Content,{tagName:"p",className:"".concat(j,"__text"),value:r})))))))}}]),t}(v);t.a=S},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(7)),h=n.n(w),f=window,_=(f.jQuery,wp.data.select,wp.element),v=_.Component,y=_.Fragment,k=wp.blocks,C=(k.registerBlockType,k.createBlock,wp.blockEditor||wp.editor),E=C.RichText,O=C.getColorClassName,j="wp-block-getwid-banner",S=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.videoAutoplay,a=t.id,i=t.url,o=t.type,r=t.title,c=t.text,s=t.link,d=t.align,u=t.minHeight,p=t.contentMaxWidth,m=t.verticalAlign,g=t.horizontalAlign,b=t.rel,w=t.linkTarget,f=t.backgroundColor,_=t.textColor,v=t.customBackgroundColor,k=t.customTextColor,C=t.backgroundOpacity,S=t.blockAnimation,x=t.textAnimation,T=t.className,N=O("color",_),A=O("background-color",f),M={className:h()("".concat(j,"__wrapper"),l()({"has-background":f||v},A,A)),style:{backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor}},B={className:h()("".concat(j,"__caption"),l()({"has-text-color":_||k},N,N)),style:{color:void 0!==_?void 0:k,minHeight:u}},I={className:h()(T,(e={},l()(e,"has-animation-".concat(S),"none"!=S),l()(e,"has-text-animation-".concat(x),"none"!=x),l()(e,"has-foreground-".concat(C),35!=C),l()(e,"has-vertical-alignment-".concat(m),"center"!=m),l()(e,"has-horizontal-alignment-".concat(g),"center"!=g),e),d?"align".concat(d):null)};return wp.element.createElement("div",I,wp.element.createElement("a",{href:void 0!==s?s:"#",target:w,rel:b,className:"".concat(j,"__link")},!!i&&wp.element.createElement("div",M,"video"===o&&i?wp.element.createElement("video",{className:"".concat(j,"__video ").concat(j,"__source"),autoPlay:n,muted:!0,loop:!0,src:i}):wp.element.createElement("img",{src:i,alt:"",className:"".concat(j,"__image ").concat(j,"__source ")+(a?"wp-image-".concat(a):null)}),wp.element.createElement(y,null,wp.element.createElement("div",B,wp.element.createElement("div",{style:{maxWidth:p},className:"".concat(j,"__caption-wrapper")},!E.isEmpty(r)&&wp.element.createElement(E.Content,{tagName:"span",className:"".concat(j,"__title"),value:r}),!E.isEmpty(c)&&wp.element.createElement(E.Content,{tagName:"p",className:"".concat(j,"__text"),value:c})))))))}}]),t}(v);t.a=S},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(9),o=n.n(i),r=(n(0),n(176)),c=n(177),s=n(13),d=n(180),u=(n.n(d),n(1)),p=(n.n(u),n(7)),m=n.n(p),g=window,b=(g.jQuery,wp.blocks),w=b.registerBlockType,h=b.createBlock,f=wp.blockEditor||wp.editor,_=f.RichText,v="wp-block-getwid-tabs";w("getwid/tabs",o()({title:Object(u.__)("Tabs","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M17,2H10V0H0V24H24V2ZM10,4h5V6H10ZM22,22H2V2H8V8H22ZM22,6H17V4h5Z"})),category:"getwid-blocks",keywords:[],supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/tabs")},transforms:{to:[{type:"block",blocks:["getwid/toggle"],transform:function(e){return h("getwid/toggle",e)}},{type:"block",blocks:["getwid/accordion"],transform:function(e){return h("getwid/accordion",e)}}]},attributes:r.a},Object(s.b)("getwid/tabs",c.a),{save:function(e){var t=e.attributes,n=t.titles,a=t.items,i=t.type,o=t.active,r=t.headerTag,c=t.className,s=r;return wp.element.createElement("div",{className:m()(c,l()({},"has-layout-".concat(i),""!==i)),"data-active-tab":o},wp.element.createElement("ul",{className:"".concat(v,"__nav-links")},n.map(function(e,t){return wp.element.createElement("li",{className:"".concat(v,"__nav-link"),key:t},wp.element.createElement(s,{className:"".concat(v,"__title-wrapper")},wp.element.createElement("a",{href:"#tab-".concat(t)},wp.element.createElement(_.Content,{tagName:"span",className:"".concat(v,"__title"),value:e.content}))))})),a.map(function(e,t){return wp.element.createElement("div",{id:"tab-".concat(t),className:"".concat(v,"__tab-content"),key:t},wp.element.createElement(_.Content,{value:e.content}))}))}}))},function(e,t,n){"use strict";var a={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-tabs__title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-tabs__tab-content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-tabs",attribute:"data-active-tab"},type:{type:"string",default:""},headerTag:{type:"string",default:"span"}};t.a=a},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(1)),v=(n.n(_),n(7)),y=n.n(v),k=n(11),C=(n.n(k),n(38)),E=n(178),O=n(179),j=(n.n(O),window),S=j.jQuery,x=wp.element.Component,T=wp.blockEditor||wp.editor,N=T.RichText,A=T.BlockControls,M=wp.components,B=M.TextControl,I=M.Button,L=M.Toolbar,P=M.IconButton,z="wp-block-getwid-tabs",R=function(e){function t(){var e;c()(this,t),e=p()(this,g()(t).apply(this,arguments));var n=e.props.attributes,a=n.items,l=n.active;return e.onConstructTabs=e.onConstructTabs.bind(w()(e)),e.onDeleteTab=e.onDeleteTab.bind(w()(e)),e.onTabActivate=e.onTabActivate.bind(w()(e)),e.moveTab=e.moveTab.bind(w()(e)),e.onMoveTabLeft=e.onMoveTabLeft.bind(w()(e)),e.onMoveTabRight=e.onMoveTabRight.bind(w()(e)),e.onDuplicate=e.onDuplicate.bind(w()(e)),e.insertTab=e.insertTab.bind(w()(e)),e.onInsertTabBefore=e.onInsertTabBefore.bind(w()(e)),e.onInsertTabAfter=e.onInsertTabAfter.bind(w()(e)),e.activateTab=e.activateTab.bind(w()(e)),e.onAddTab=e.onAddTab.bind(w()(e)),e.initTabs=e.initTabs.bind(w()(e)),e.itemsManager=new C.a({items:{isWrapper:!0,attributes:{content:{alias:"content",default:function(e){return"Content ".concat(e+1)}}}},titles:{isWrapper:!0,attributes:{content:{alias:"title",default:function(e){return"Tab #".concat(e+1)}}}}}),e.state={selectedTab:void 0!==l?parseInt(l):a.length?0:null,initialTabCount:3},e}return f()(t,e),d()(t,[{key:"renderConstructorForm",value:function(){var e=this,t=this.state.initialTabCount;return wp.element.createElement("form",{onSubmit:this.onConstructTabs},wp.element.createElement(B,{type:"number",label:Object(_.__)("Number of items","getwid"),onChange:function(t){return e.setState({initialTabCount:t})},value:t,min:"1"}),wp.element.createElement(I,{isPrimary:!0,type:"submit"},Object(_.__)("Create","getwid")))}},{key:"getTabsDropdown",value:function(){var e=this.state.selectedTab,t=this.props.attributes.items;return[{icon:"table-col-before",title:Object(_.__)("Add Item Before","getwid"),isDisabled:null===e,onClick:this.onInsertTabBefore},{icon:"table-col-after",title:Object(_.__)("Add Item After","getwid"),isDisabled:null===e,onClick:this.onInsertTabAfter},{icon:"arrow-left-alt2",title:Object(_.__)("Move Item Left","getwid"),isDisabled:null===e||0===e,onClick:this.onMoveTabLeft},{icon:"arrow-right-alt2",title:Object(_.__)("Move Item Right","getwid"),isDisabled:null===e||e===t.length-1,onClick:this.onMoveTabRight},{icon:"admin-page",title:Object(_.__)("Duplicate Item","getwid"),isDisabled:null===e,onClick:this.onDuplicate},{icon:"trash",title:Object(_.__)("Delete Item","getwid"),isDisabled:null===e,onClick:this.onDeleteTab}]}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.items,a=t.titles,i=t.type,r=t.headerTag,c=this.props,s=c.className,d=c.isSelected;if(!n.length)return this.renderConstructorForm();var u=r;return[wp.element.createElement(A,{key:"toolbar"},wp.element.createElement(L,{controls:this.getTabsDropdown()})),wp.element.createElement(E.a,o()({},this.props,{key:"inspector"})),wp.element.createElement("div",{className:y()(s,l()({"is-selected":d},"has-layout-".concat(i),""!==i)),key:"edit"},wp.element.createElement("ul",{className:"".concat(z,"__nav-links")},a.map(function(t,n){return wp.element.createElement("li",{className:"".concat(z,"__nav-link"),key:n},wp.element.createElement(u,{className:"".concat(z,"__title-wrapper")},wp.element.createElement("a",{href:"#tab-".concat(n)},wp.element.createElement(N,{tagName:"span",className:"".concat(z,"__title"),placeholder:Object(_.__)("Title","getwid"),value:t.content,onChange:function(t){return e.onChange({alias:"title",index:n,value:t})},formattingControls:["bold","italic","strikethrough"],onSplit:function(){return null},multiline:!1}))))}),d&&wp.element.createElement("li",{className:"".concat(z,"__nav-link ").concat(z,"__add-tab")},wp.element.createElement(P,{icon:"insert",onClick:this.onAddTab,label:Object(_.__)("Add Item","getwid")}))),n.map(function(t,n){return wp.element.createElement("div",{id:"tab-".concat(n),className:"".concat(z,"__tab-content"),key:n},wp.element.createElement(N,{tag:"p",placeholder:Object(_.__)("Write text…","getwid"),value:t.content,onChange:function(t){return e.onChange({alias:"content",index:n,value:t})}}))}))]}},{key:"initTabs",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.props.attributes.items.length){var n=this.props.attributes.active,a=this.props.clientId,l=S("[data-block='".concat(a,"']")),i=S(".".concat(z),l);t?i.tabs("refresh"):setTimeout(function(){i.tabs({active:void 0!==n?n:0,activate:e.onTabActivate})},0),i.find(">.wp-block-getwid-tabs__nav-links a").on("keydown",function(e){e.stopPropagation()})}}},{key:"componentDidMount",value:function(){this.initTabs()}},{key:"componentDidUpdate",value:function(e,t){var n=e.attributes,a=n.items;n.titles;Object(k.isEqual)(this.props.attributes,e.attributes)||this.initTabs(!!a.length)}},{key:"activateTab",value:function(e){var t=this.props.clientId,n=S("[data-block='".concat(t,"']")),a=S(".".concat(z),n);setTimeout(function(){a.tabs("option","active",e)},1)}},{key:"onTabActivate",value:function(e,t){var n=t.newTab.length?t.newTab.parent().children("li").index(t.newTab):null;this.setState({selectedTab:n})}},{key:"onConstructTabs",value:function(e){e.preventDefault();var t=this.props.setAttributes,n=this.state.initialTabCount,a=parseInt(n,10)||3;t(this.itemsManager.createItems({itemsCount:a})),this.setState({selectedTab:0})}},{key:"onDeleteTab",value:function(){var e=this.state.selectedTab;if(null!==e){var t=this.props.attributes,n=t.items,a=t.active,l=this.props,i=l.attributes,o=l.setAttributes,r=this.itemsManager.deleteItem(i,{index:e});a>=n.length-1&&(r.active=void 0),o(r),1===n.length&&this.setState({selectedTab:null})}}},{key:"onAddTab",value:function(){var e=this.props.attributes.items;this.insertTab({index:e.length})}},{key:"onInsertTabBefore",value:function(){var e=this.state.selectedTab;null!==e&&this.insertTab({index:e})}},{key:"onInsertTabAfter",value:function(){var e=this.state.selectedTab;null!==e&&this.insertTab({index:e+1})}},{key:"onDuplicate",value:function(){var e=this.state.selectedTab,t=this.props,n=t.attributes,a=t.setAttributes;null!==e&&(a(this.itemsManager.duplicateItem(n,{index:e})),this.activateTab(e+1))}},{key:"insertTab",value:function(e){var t=e.index,n=e.item,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.insertItem(l,{index:t,item:n})),this.activateTab(t)}},{key:"onMoveTabLeft",value:function(){var e=this.state.selectedTab;null!==e&&this.moveTab({from:e,to:e-1})}},{key:"onMoveTabRight",value:function(){var e=this.state.selectedTab;null!==e&&this.moveTab({from:e,to:e+1})}},{key:"moveTab",value:function(e){var t=e.from,n=e.to,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.moveItem(l,{index:t,toIndex:n})),this.activateTab(n)}},{key:"onChange",value:function(e){var t=e.alias,n=e.value,a=e.index,i=this.props,o=i.attributes;(0,i.setAttributes)(this.itemsManager.updateItem(o,{itemState:l()({},t,n),index:a}))}}]),t}(x);t.a=R},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(11)),b=(n.n(g),n(13)),w=wp.element.Component,h=wp.blockEditor||wp.editor,f=h.InspectorControls,_=wp.components,v=_.PanelBody,y=_.SelectControl,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,a=e.type,l=e.active,i=e.headerTag,o=this.props.setAttributes,r=Object(b.d)(t);return wp.element.createElement(f,null,wp.element.createElement(v,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(y,{label:Object(m.__)("Title Tag","getwid"),value:i,options:[{value:"span",label:Object(m.__)("Paragraph","getwid")},{value:"h2",label:Object(m.__)("Heading 2","getwid")},{value:"h3",label:Object(m.__)("Heading 3","getwid")},{value:"h4",label:Object(m.__)("Heading 4","getwid")},{value:"h5",label:Object(m.__)("Heading 5","getwid")},{value:"h6",label:Object(m.__)("Heading 6","getwid")}],onChange:function(e){return o({headerTag:e})}}),wp.element.createElement(y,{label:Object(m.__)("Layout","getwid"),value:a,options:[{value:"",label:Object(m.__)("Horizontal Left","getwid")},{value:"horizontal-center",label:Object(m.__)("Horizontal Center","getwid")},{value:"horizontal-right",label:Object(m.__)("Horizontal Right","getwid")},{value:"vertical-left",label:Object(m.__)("Vertical Left","getwid")},{value:"vertical-right",label:Object(m.__)("Vertical Right","getwid")}],onChange:function(e){return o({type:e})}}),wp.element.createElement(y,{label:Object(m.__)("Active by default","getwid"),value:l,options:Object(g.times)(n.length,function(e){return{value:e,label:r[e].length>30?r[e].substr(0,30)+"...":r[e]}}),onChange:function(e){return o({active:e})}})))}}]),t}(w);t.a=k},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(182)),o=n(183),r=n(13),c=n(186),s=(n.n(c),n(1)),d=(n.n(s),n(7)),u=n.n(d),p=wp.editor.RichText,m=wp.element.Fragment,g=wp.components,b=g.SVG,w=g.Path,h=wp.blocks,f=h.registerBlockType,_=h.createBlock,v="wp-block-getwid-accordion";f("getwid/accordion",l()({title:Object(s.__)("Accordion","getwid"),icon:wp.element.createElement(b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("g",null,wp.element.createElement(w,{d:"M0,0v6h24V0H0z M22,4H2V2h20V4z"})),wp.element.createElement("g",null,wp.element.createElement(w,{d:"M0,18v6h24v-6H0z M22,22H2v-2h20V22z"})),wp.element.createElement("g",null,wp.element.createElement(w,{d:"M0,8v8h24V8H0z M22,14H2v-4h20V14z"}))),category:"getwid-blocks",keywords:[Object(s.__)("toggle","getwid")],supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/accordion")},transforms:{to:[{type:"block",blocks:["getwid/toggle"],transform:function(e){return _("getwid/toggle",e)}},{type:"block",blocks:["getwid/tabs"],transform:function(e){return _("getwid/tabs",e)}}]},attributes:i.a},Object(r.b)("getwid/accordion",o.a),{save:function(e){var t=e.attributes,n=t.titles,a=t.items,l=t.iconPosition,i=t.iconOpen,o=t.iconClose,r=t.active,c=t.headerTag,s=t.className,d=c;return wp.element.createElement("div",{className:u()(s,{"has-icon-left":"left"===l}),"data-active-element":void 0!=r?r:"0"},n.map(function(e,t){return wp.element.createElement(m,null,wp.element.createElement("div",{className:"".concat(v,"__header-wrapper"),key:"header"},wp.element.createElement(d,{className:"".concat(v,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement(p.Content,{tagName:"span",className:"".concat(v,"__header-title"),value:e.content}),wp.element.createElement("span",{className:"".concat(v,"__icon is-active")},wp.element.createElement("i",{className:o})),wp.element.createElement("span",{className:"".concat(v,"__icon is-passive")},wp.element.createElement("i",{className:i}))))),wp.element.createElement("div",{className:"".concat(v,"__content"),key:"content"},wp.element.createElement(p.Content,{value:a[t].content})))}))}}))},function(e,t,n){"use strict";var a={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-accordion__header-title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-accordion__content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion",attribute:"data-active-element",default:"0"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return D});var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(1)),v=(n.n(_),n(7)),y=n.n(v),k=n(11),C=(n.n(k),n(38)),E=n(184),O=n(185),j=(n.n(O),window),S=j.jQuery,x=wp.element.Component,T=wp.blockEditor||wp.editor,N=T.RichText,A=T.BlockControls,M=wp.components,B=M.TextControl,I=M.Button,L=M.Toolbar,P=M.IconButton,z=wp.element.Fragment,R="wp-block-getwid-accordion",D=function(e){function t(){var e;c()(this,t),e=p()(this,g()(t).apply(this,arguments));var n=e.props.attributes,a=n.items,l=n.active;return e.onConstructAcc=e.onConstructAcc.bind(w()(e)),e.onDeleteItem=e.onDeleteItem.bind(w()(e)),e.onAccActivate=e.onAccActivate.bind(w()(e)),e.moveAcc=e.moveAcc.bind(w()(e)),e.onMoveAccTop=e.onMoveAccTop.bind(w()(e)),e.onMoveAccBottom=e.onMoveAccBottom.bind(w()(e)),e.onDuplicate=e.onDuplicate.bind(w()(e)),e.insertAcc=e.insertAcc.bind(w()(e)),e.onInsertAccBefore=e.onInsertAccBefore.bind(w()(e)),e.onInsertAccAfter=e.onInsertAccAfter.bind(w()(e)),e.activateAcc=e.activateAcc.bind(w()(e)),e.onAddAcc=e.onAddAcc.bind(w()(e)),e.initAcc=e.initAcc.bind(w()(e)),e.itemsManager=new C.a({items:{isWrapper:!0,attributes:{content:{alias:"content",default:function(e){return"Content ".concat(e+1)}}}},titles:{isWrapper:!0,attributes:{content:{alias:"title",default:function(e){return"Element #".concat(e+1)}}}}}),e.state={selectedAcc:void 0!==l?parseInt(l):a.length?0:null,initialAccCount:3},e}return f()(t,e),d()(t,[{key:"renderConstructorForm",value:function(){var e=this,t=this.state.initialAccCount;return wp.element.createElement("form",{onSubmit:this.onConstructAcc},wp.element.createElement(B,{type:"number",label:Object(_.__)("Number of items","getwid"),onChange:function(t){return e.setState({initialAccCount:t})},value:t,min:"1"}),wp.element.createElement(I,{isPrimary:!0,type:"submit"},Object(_.__)("Create","getwid")))}},{key:"getAccordionDropdown",value:function(){var e=this.state.selectedAcc,t=this.props.attributes.items;return[{icon:"table-row-before",title:Object(_.__)("Add Item Before","getwid"),isDisabled:null===e,onClick:this.onInsertAccBefore},{icon:"table-row-after",title:Object(_.__)("Add Item After","getwid"),isDisabled:null===e,onClick:this.onInsertAccAfter},{icon:"arrow-up-alt2",title:Object(_.__)("Move Item Up","getwid"),isDisabled:null===e||0===e,onClick:this.onMoveAccTop},{icon:"arrow-down-alt2",title:Object(_.__)("Move Item Down","getwid"),isDisabled:null===e||e===t.length-1,onClick:this.onMoveAccBottom},{icon:"admin-page",title:Object(_.__)("Duplicate Item","getwid"),isDisabled:null===e,onClick:this.onDuplicate},{icon:"trash",title:Object(_.__)("Delete Item","getwid"),isDisabled:null===e,onClick:this.onDeleteItem}]}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.items,a=t.titles,l=t.iconPosition,i=t.iconOpen,r=t.iconClose,c=t.active,s=t.headerTag,d=this.props,u=d.className,p=d.isSelected;if(!n.length)return this.renderConstructorForm();var m=s;return[wp.element.createElement(A,{key:"toolbar"},wp.element.createElement(L,{controls:this.getAccordionDropdown()})),wp.element.createElement(E.a,o()({},this.props,{key:"inspector"})),wp.element.createElement("div",{className:y()(u,{"has-icon-left":"left"===l,"is-selected":p}),"data-active-element":c,key:"edit"},a.map(function(t,a){return wp.element.createElement(z,null,wp.element.createElement("div",{className:"".concat(R,"__header-wrapper"),key:"header"},wp.element.createElement(m,{className:"".concat(R,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement("div",{className:"".concat(R,"__edit-area")},wp.element.createElement(N,{tagName:"span",className:"".concat(R,"__header-title"),placeholder:Object(_.__)("Title","getwid"),value:t.content,onChange:function(t){return e.onChange({alias:"title",index:a,value:t})},formattingControls:["bold","italic","strikethrough"],onSplit:function(){return null},multiline:!1})),wp.element.createElement("span",{className:"".concat(R,"__icon is-active")},wp.element.createElement("i",{className:r})),wp.element.createElement("span",{className:"".concat(R,"__icon is-passive")},wp.element.createElement("i",{className:i}))))),wp.element.createElement("div",{className:"".concat(R,"__content"),key:"content"},wp.element.createElement(N,{tag:"p",placeholder:Object(_.__)("Write text…","getwid"),value:n[a].content,onChange:function(t){return e.onChange({alias:"content",index:a,value:t})}})))}),p&&wp.element.createElement(z,null,wp.element.createElement("div",{className:"".concat(R,"__add-accordion")},wp.element.createElement(P,{icon:"insert",onClick:this.onAddAcc,label:Object(_.__)("Add Item","getwid")}))))]}},{key:"initAcc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.props.attributes.items.length){var t=this.props,n=t.className,a=t.clientId,l=this.props.attributes.active,i=S("#block-".concat(a)),o=i.find(".".concat(n));e?o.accordion("refresh"):(o.accordion({header:".".concat(R,"__header-wrapper"),icons:!1,active:void 0!==l?parseInt(l,10):0,activate:this.onAccActivate,heightStyle:"content"}),this.waitLoadContent=setInterval(function(){if("complete"==document.readyState){var e=S(".".concat(R,"__header-wrapper"));if(e.length){var t=S._data(e[0],"events");if(Object(k.has)(t,["keydown"])){var n=t.keydown[0].handler;S(".".concat(R,"__header-wrapper")).off("keydown",n)}}}},1))}}},{key:"componentDidMount",value:function(){this.initAcc()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.className,n=e.clientId;S("#block-".concat(n)).find(".".concat(t)).accordion("destroy")}},{key:"componentDidUpdate",value:function(e,t){var n=e.attributes,a=n.items;n.titles;Object(k.isEqual)(this.props.attributes,e.attributes)||this.initAcc(!!a.length)}},{key:"activateAcc",value:function(e){var t=this.props.clientId,n=S("[data-block='".concat(t,"']"));S(".".concat(R),n).accordion("option","active",e)}},{key:"onAccActivate",value:function(e,t){var n=t.newHeader.length?t.newHeader.parent().children(".wp-block-getwid-accordion__header-wrapper").index(t.newHeader):null;this.setState({selectedAcc:n})}},{key:"onConstructAcc",value:function(e){e.preventDefault();var t=this.props.setAttributes,n=this.state.initialAccCount,a=parseInt(n,10)||3;t(this.itemsManager.createItems({itemsCount:a})),this.setState({selectedAcc:0})}},{key:"onDeleteItem",value:function(){var e=this.state.selectedAcc;if(null!==e){var t=this.props.attributes,n=t.items,a=t.active,l=this.props,i=l.attributes,o=l.setAttributes,r=this.itemsManager.deleteItem(i,{index:e});a>=n.length-1&&(r.active=void 0),o(r),1===n.length&&this.setState({selectedAcc:null})}}},{key:"onAddAcc",value:function(){var e=this.props.attributes.items;this.insertAcc({index:e.length})}},{key:"onInsertAccBefore",value:function(){var e=this.state.selectedAcc;null!==e&&this.insertAcc({index:e})}},{key:"onInsertAccAfter",value:function(){var e=this.state.selectedAcc;null!==e&&this.insertAcc({index:e+1})}},{key:"onDuplicate",value:function(){var e=this.state.selectedAcc,t=this.props,n=t.attributes,a=t.setAttributes;null!==e&&(a(this.itemsManager.duplicateItem(n,{index:e})),this.activateAcc(e+1))}},{key:"insertAcc",value:function(e){var t=e.index,n=e.item,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.insertItem(l,{index:t,item:n})),this.activateAcc(t)}},{key:"onMoveAccTop",value:function(){var e=this.state.selectedAcc;null!==e&&this.moveAcc({from:e,to:e-1})}},{key:"onMoveAccBottom",value:function(){var e=this.state.selectedAcc;null!==e&&this.moveAcc({from:e,to:e+1})}},{key:"moveAcc",value:function(e){var t=e.from,n=e.to,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.moveItem(l,{index:parseInt(t,10),toIndex:n})),this.activateAcc(n)}},{key:"onChange",value:function(e){var t=e.alias,n=e.value,a=e.index,i=this.props,o=i.attributes;(0,i.setAttributes)(this.itemsManager.updateItem(o,{itemState:l()({},t,n),index:a}))}}]),t}(x)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(11)),b=(n.n(g),n(18)),w=n(13),h=wp.element.Component,f=wp.editor.InspectorControls,_=wp.components,v=_.PanelBody,y=_.SelectControl,k=_.BaseControl,C=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,a=e.iconPosition,l=e.iconOpen,i=e.iconClose,o=e.active,r=e.headerTag,c=this.props.setAttributes,s=Object(w.d)(t);return wp.element.createElement(f,null,wp.element.createElement(v,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(m.__)("Icon","getwid")},wp.element.createElement(b.a,{value:i,onChange:function(e){return c({iconClose:e})}})),wp.element.createElement(k,{label:Object(m.__)("Active Icon","getwid")},wp.element.createElement(b.a,{value:l,onChange:function(e){return c({iconOpen:e})}})),wp.element.createElement(y,{label:Object(m.__)("Icon Position","getwid"),value:a,options:[{value:"left",label:Object(m.__)("Left","getwid")},{value:"right",label:Object(m.__)("Right","getwid")}],onChange:function(e){return c({iconPosition:e})}}),wp.element.createElement(y,{label:Object(m.__)("Title Tag","getwid"),value:r,options:[{value:"span",label:Object(m.__)("Paragraph","getwid")},{value:"h2",label:Object(m.__)("Heading 2","getwid")},{value:"h3",label:Object(m.__)("Heading 3","getwid")},{value:"h4",label:Object(m.__)("Heading 4","getwid")},{value:"h5",label:Object(m.__)("Heading 5","getwid")},{value:"h6",label:Object(m.__)("Heading 6","getwid")}],onChange:function(e){return c({headerTag:e})}}),wp.element.createElement(y,{label:Object(m.__)("Active by default","getwid"),value:o,options:Object(g.times)(n.length,function(e){return{value:e,label:s[e].length>30?s[e].substr(0,30)+"...":s[e]}}),onChange:function(e){c({active:e})}})))}}]),t}(h);t.a=C},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(188)),o=n(189),r=n(13),c=n(192),s=(n.n(c),n(1)),d=(n.n(s),n(7)),u=n.n(d),p=window,m=(p.jQuery,wp.blocks),g=m.registerBlockType,b=m.createBlock,w=wp.blockEditor||wp.editor,h=w.RichText,f="wp-block-getwid-toggle";g("getwid/toggle",l()({title:Object(s.__)("Toggle","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M0,0v11h24V0H0z M22,9H2V2h20V9z"}),wp.element.createElement("path",{d:"M0,13v11h24V13H0z M22,22H2v-7h20V22z"}),wp.element.createElement("rect",{x:"4",y:"4",width:"3",height:"3"}),wp.element.createElement("rect",{x:"4",y:"17",width:"3",height:"3"})),category:"getwid-blocks",keywords:[Object(s.__)("accordion","getwid")],supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/toggle")},transforms:{to:[{type:"block",blocks:["getwid/accordion"],transform:function(e){return b("getwid/accordion",e)}},{type:"block",blocks:["getwid/tabs"],transform:function(e){return b("getwid/tabs",e)}}]},attributes:i.a},Object(r.b)("getwid/toggle",o.a),{save:function(e){var t=e.attributes,n=t.titles,a=t.items,l=t.iconPosition,i=t.iconOpen,o=t.iconClose,r=t.active,c=t.headerTag,s=t.className,d=c;return wp.element.createElement("div",{className:u()(s,{"has-icon-left":"left"===l}),"data-active-element":r},n.map(function(e,t){return wp.element.createElement("div",{className:"".concat(f,"__row")},wp.element.createElement("div",{className:"".concat(f,"__header-wrapper")},wp.element.createElement(d,{className:"".concat(f,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement(h.Content,{tagName:"span",className:"".concat(f,"__header-title"),value:e.content}),wp.element.createElement("span",{className:"".concat(f,"__icon is-active")},wp.element.createElement("i",{className:o})),wp.element.createElement("span",{className:"".concat(f,"__icon is-passive")},wp.element.createElement("i",{className:i}))))),wp.element.createElement("div",{className:"".concat(f,"__content")},wp.element.createElement(h.Content,{value:a[t].content})))}))}}))},function(e,t,n){"use strict";var a={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-toggle__header-title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-toggle__content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle",attribute:"data-active-element",default:"false"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return V});var a=n(8),l=n.n(a),i=n(20),o=n.n(i),r=n(10),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(1)),k=(n.n(y),n(7)),C=n.n(k),E=n(11),O=(n.n(E),n(38)),j=n(190),S=n(191),x=(n.n(S),window),T=x.jQuery,N=wp.element.Component,A=wp.blockEditor||wp.editor,M=A.RichText,B=A.BlockControls,I=wp.components,L=I.TextControl,P=I.Button,z=I.Toolbar,R=I.IconButton,D="wp-block-getwid-toggle",V=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.onConstructToggle=e.onConstructToggle.bind(f()(e)),e.onDeleteItem=e.onDeleteItem.bind(f()(e)),e.onToggleActivate=e.onToggleActivate.bind(f()(e)),e.moveToggle=e.moveToggle.bind(f()(e)),e.onMoveToggleTop=e.onMoveToggleTop.bind(f()(e)),e.onMoveToggleBottom=e.onMoveToggleBottom.bind(f()(e)),e.onDuplicate=e.onDuplicate.bind(f()(e)),e.insertToggle=e.insertToggle.bind(f()(e)),e.onInsertToggleBefore=e.onInsertToggleBefore.bind(f()(e)),e.onInsertToggleAfter=e.onInsertToggleAfter.bind(f()(e)),e.activateToggle=e.activateToggle.bind(f()(e)),e.onAddToggle=e.onAddToggle.bind(f()(e)),e.initToggle=e.initToggle.bind(f()(e)),e.itemsManager=new O.a({items:{isWrapper:!0,attributes:{content:{alias:"content",default:function(e){return"Content ".concat(e+1)}}}},titles:{isWrapper:!0,attributes:{content:{alias:"title",default:function(e){return"Element #".concat(e+1)}}}}}),e.state={selectedToggle:null,activeToggles:[],initialToggleCount:3},e}return v()(t,e),p()(t,[{key:"renderConstructorForm",value:function(){var e=this,t=this.state.initialToggleCount;return wp.element.createElement("form",{onSubmit:this.onConstructToggle},wp.element.createElement(L,{type:"number",label:Object(y.__)("Number of items","getwid"),onChange:function(t){return e.setState({initialToggleCount:t})},value:t,min:"1"}),wp.element.createElement(P,{isPrimary:!0,type:"submit"},Object(y.__)("Create","getwid")))}},{key:"getToggleDropdown",value:function(){var e=this.state.selectedToggle,t=this.props.attributes.items;return[{icon:"table-row-before",title:Object(y.__)("Add Item Before","getwid"),isDisabled:null===e,onClick:this.onInsertToggleBefore},{icon:"table-row-after",title:Object(y.__)("Add Item After","getwid"),isDisabled:null===e,onClick:this.onInsertToggleAfter},{icon:"arrow-up-alt2",title:Object(y.__)("Move Item Up","getwid"),isDisabled:null===e||0===e,onClick:this.onMoveToggleTop},{icon:"arrow-down-alt2",title:Object(y.__)("Move Item Down","getwid"),isDisabled:null===e||e===t.length-1,onClick:this.onMoveToggleBottom},{icon:"admin-page",title:Object(y.__)("Duplicate Item","getwid"),isDisabled:null===e,onClick:this.onDuplicate},{icon:"trash",title:Object(y.__)("Delete Item","getwid"),isDisabled:null===e,onClick:this.onDeleteItem}]}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.items,a=t.titles,l=t.iconPosition,i=t.iconOpen,o=t.iconClose,r=t.active,s=t.headerTag,d=this.props,u=d.className,p=d.isSelected;if(!n.length)return this.renderConstructorForm();var m=this.state.selectedToggle,g=s;return[wp.element.createElement(B,{key:"toolbar"},wp.element.createElement(z,{controls:this.getToggleDropdown()})),wp.element.createElement(j.a,c()({},this.props,{key:"inspector"})),wp.element.createElement("div",{className:C()(u,{"is-selected":p,"has-icon-left":"left"===l}),"data-active-element":r,key:"edit"},a.map(function(t,a){var l="".concat(D,"__row");return l=C()(l,{"getwid-active":m==a,"is-active":p||a==parseInt(r)||Object(E.isEqual)(r,"all")}),wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:"".concat(D,"__header-wrapper")},wp.element.createElement(g,{className:"".concat(D,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement("div",{className:"".concat(D,"__edit-area")},wp.element.createElement(M,{tagName:"span",className:"".concat(D,"__header-title"),placeholder:Object(y.__)("Title","getwid"),value:t.content,onChange:function(t){return e.onChange({alias:"title",index:a,value:t})},formattingControls:["bold","italic","strikethrough"],unstableOnSplit:function(){return null},multiline:!1})),wp.element.createElement("span",{className:"".concat(D,"__icon is-active")},wp.element.createElement("i",{className:o})),wp.element.createElement("span",{className:"".concat(D,"__icon is-passive")},wp.element.createElement("i",{className:i}))))),wp.element.createElement("div",{className:"".concat(D,"__content")},wp.element.createElement(M,{tag:"p",placeholder:Object(y.__)("Write text…","getwid"),value:n[a].content,onChange:function(t){return e.onChange({alias:"content",index:a,value:t})}})))}),p&&wp.element.createElement("div",{className:"".concat(D,"__add-toggle")},wp.element.createElement(R,{icon:"insert",onClick:this.onAddToggle,label:Object(y.__)("Add Item","getwid")})))]}},{key:"initToggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.clientId,n=T("#block-".concat(t)),a=this;if(!e){var l=n.find(".".concat(D,"__row"));T.each(l,function(e,t){T(t).click(function(e){e.preventDefault();var n=T(t);a.onToggleActivate(n,!0)})})}}},{key:"componentDidMount",value:function(){this.initToggle()}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.items,a=t.titles,l=this.props.attributes,i=l.items,r=l.titles,c=this.props.isSelected,s=this.state.selectedToggle;c||"object"==o()(s)||this.setState({selectedToggle:null}),n===i&&a===r||this.initToggle(!!n.length),Object(E.isEqual)(e.attributes.items,i)||this.initToggle()}},{key:"activateToggle",value:function(e){var t=this.props.clientId,n=T("[data-block='".concat(t,"']"));T(".wp-block-getwid-toggle__row",n).eq(e).addClass("wp-block-getwid-toggle__row--active")}},{key:"onToggleActivate",value:function(e,t){var n=this.state.activeToggles,a=e.length?e.parent().children(".wp-block-getwid-toggle__row").index(e):null;t?n=Object(E.without)(n,a):n.push(a),this.setState({activeToggles:n,selectedToggle:a})}},{key:"onConstructToggle",value:function(e){e.preventDefault();var t=this.props.setAttributes,n=this.state.initialToggleCount,a=parseInt(n,10)||3;t(this.itemsManager.createItems({itemsCount:a})),this.setState({selectedToggle:0})}},{key:"onDeleteItem",value:function(){var e=this.state.selectedToggle;if(null!==e){var t=this.props.attributes,n=t.items,a=t.active,l=this.props,i=l.attributes,o=l.setAttributes,r=this.itemsManager.deleteItem(i,{index:e});parseInt(a)>=n.length-1&&(r.active=void 0),o(r),1===n.length&&this.setState({selectedToggle:null})}}},{key:"onAddToggle",value:function(){var e=this.props.attributes.items;this.insertToggle({index:e.length})}},{key:"onInsertToggleBefore",value:function(){var e=this.state.selectedToggle;null!==e&&this.insertToggle({index:e})}},{key:"onInsertToggleAfter",value:function(){var e=this.state.selectedToggle;null!==e&&this.insertToggle({index:e+1})}},{key:"onDuplicate",value:function(){var e=this.state.selectedToggle,t=this.props,n=t.attributes,a=t.setAttributes;null!==e&&(a(this.itemsManager.duplicateItem(n,{index:e})),this.activateToggle(e+1))}},{key:"insertToggle",value:function(e){var t=e.index,n=e.item,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.insertItem(l,{index:t,item:n})),this.activateToggle(t)}},{key:"onMoveToggleTop",value:function(){var e=this.state.selectedToggle;null!==e&&this.moveToggle({from:e,to:e-1})}},{key:"onMoveToggleBottom",value:function(){var e=this.state.selectedToggle;null!==e&&this.moveToggle({from:e,to:e+1})}},{key:"moveToggle",value:function(e){var t=e.from,n=e.to,a=this.props,l=a.attributes;(0,a.setAttributes)(this.itemsManager.moveItem(l,{index:t,toIndex:n}));var i=n;this.setState({selectedToggle:i}),this.activateToggle(n)}},{key:"onChange",value:function(e){var t=e.alias,n=e.value,a=e.index,i=this.props,o=i.attributes;(0,i.setAttributes)(this.itemsManager.updateItem(o,{itemState:l()({},t,n),index:a}))}}]),t}(N)},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(11)),h=(n.n(w),n(18)),f=n(13),_=wp.element.Component,v=wp.blockEditor||wp.editor,y=v.InspectorControls,k=wp.components,C=k.PanelBody,E=k.SelectControl,O=k.BaseControl,j=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,a=e.iconPosition,i=e.iconOpen,o=e.iconClose,r=e.active,c=e.headerTag,s=this.props.setAttributes,d=Object(f.d)(t);return wp.element.createElement(y,null,wp.element.createElement(C,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(b.__)("Icon","getwid")},wp.element.createElement(h.a,{value:o,onChange:function(e){return s({iconClose:e})}})),wp.element.createElement(O,{label:Object(b.__)("Active Icon","getwid")},wp.element.createElement(h.a,{value:i,onChange:function(e){return s({iconOpen:e})}})),wp.element.createElement(E,{label:Object(b.__)("Icon Position","getwid"),value:a,options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return s({iconPosition:e})}}),wp.element.createElement(E,{label:Object(b.__)("Title Tag","getwid"),value:c,options:[{value:"span",label:Object(b.__)("Paragraph","getwid")},{value:"h2",label:Object(b.__)("Heading 2","getwid")},{value:"h3",label:Object(b.__)("Heading 3","getwid")},{value:"h4",label:Object(b.__)("Heading 4","getwid")},{value:"h5",label:Object(b.__)("Heading 5","getwid")},{value:"h6",label:Object(b.__)("Heading 6","getwid")}],onChange:function(e){return s({headerTag:e})}}),wp.element.createElement(E,{label:Object(b.__)("Active by default","getwid"),value:r,options:[{value:"false",label:Object(b.__)("None","getwid")}].concat([{value:"all",label:Object(b.__)("All","getwid")}],l()(Object(w.times)(n.length,function(e){return{value:e,label:d[e].length>30?d[e].substr(0,30)+"...":d[e]}}))),onChange:function(e){s({active:e})}})))}}]),t}(_);t.a=j},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(194)),o=n(198),r=n(199),c=n(61),s=n(13),d=n(200),u=(n.n(d),n(11)),p=(n.n(u),n(1)),m=(n.n(p),window),g=(m.jQuery,wp.blocks),b=g.registerBlockType,w=g.createBlock,h=["center","wide","full"],f="getwid/images-stack";b(f,l()({title:Object(p.__)("Image Stack Gallery","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M14,10h8V2H14Zm6-6V8H16V4Z"}),wp.element.createElement("path",{d:"M12,12V0H0V18H7v6H24V12ZM2,16V2h8V16H2Zm20,6H9V18h3V14H22Z"})),keywords:[Object(p.__)("photo","getwid")],supports:{html:!1,inserter:!Getwid.disabled_blocks.includes(f)},deprecated:[{attributes:c.a,save:r.a}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(u.every)(e,["align",t])?t:void 0;var n=Object(u.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return w("getwid/images-stack",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){return w("getwid/images-stack",e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return w("core/gallery",e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return w("getwid/images-slider",e)}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,a=e.url,l=e.alt,i=e.caption;return w("core/image",{id:t,url:a,alt:l,caption:i,align:n})}):w("core/image",{align:n})}}]},attributes:c.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==h.indexOf(t))return{"data-align":t}}},Object(s.b)(f,i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(16),o=n.n(i),r=n(30),c=n.n(r),s=n(9),d=n.n(s),u=n(8),p=n.n(u),m=n(2),g=n.n(m),b=n(4),w=n.n(b),h=n(5),f=n.n(h),_=n(3),v=n.n(_),y=n(12),k=n.n(y),C=n(6),E=n.n(C),O=(n(0),n(1)),j=(n.n(O),n(7)),S=n.n(j),x=n(11),T=(n.n(x),n(61)),N=n(195),A=n(196),M=n(197),B=(n.n(M),wp.element),I=B.Component,L=B.Fragment,P=wp.components,z=P.IconButton,R=P.DropZone,D=P.Toolbar,V=wp.blockEditor||wp.editor,F=V.BlockControls,H=V.MediaUpload,W=V.MediaPlaceholder,U=V.mediaUpload,G=V.BlockAlignmentToolbar,q=wp.data.withSelect,Q=wp.compose.compose,K=window,J=(K.jQuery,["wide","full"]),Z=["image"],$="wp-block-getwid-images-stack",Y=function(e,t){var n=Object(x.pick)(e,["id","link","caption"]);return n.original_url=e.url||e.source_url,n.alt=e.alt||e.alt_text,n.url=Object(x.get)(e,["sizes",t,"url"])||Object(x.get)(e,["media_details","sizes",t,"source_url"])||e.url,n},X=function(e){function t(){var e;return g()(this,t),e=f()(this,v()(t).apply(this,arguments)),e.setImageAttributes=e.setImageAttributes.bind(k()(e)),e.uploadFromFiles=e.uploadFromFiles.bind(k()(e)),e.setAttributes=e.setAttributes.bind(k()(e)),e.addFiles=e.addFiles.bind(k()(e)),e.getState=e.getState.bind(k()(e)),e.onSelectImages=e.onSelectImages.bind(k()(e)),e}return E()(t,e),w()(t,[{key:"changeState",value:function(e,t){this.setState(p()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"onRemoveImage",value:function(e){var t=Object(x.filter)(this.props.attributes.images,function(t,n){return e!=t.url});this.setAttributes({images:t})}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=d()({},e,{ids:Object(x.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImages",value:function(e){var t=this.props.setAttributes,n=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(c()("imageSize"),n=T.a.imageSize.default,t({imageSize:n})),this.setAttributes({images:e.map(function(e){return Y(e,n)})})}},{key:"setImageAttributes",value:function(e,t){var n=this.setAttributes,a=this.props.attributes.images;a[e]&&n({images:[].concat(o()(a.slice(0,e)),[d()({},a[e],t)],o()(a.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.setAttributes,a=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(a)||(a=T.a.imageSize.default,n({imageSize:a})),U({allowedTypes:Z,filesList:e,onFileChange:function(e){if(void 0!==e[0].id){var l=e.map(function(e){return Y(e,a)});n({images:t.concat(l)})}}})}},{key:"render",value:function(){var e=this,t=this.onSelectImages,n=this.addFiles,a=this.props,i=a.setAttributes,o=a.isSelected,r=a.className,c=this.props.attributes,s=c.align,u=c.images,m=c.stackStyle,g=wp.element.createElement(R,{onFilesDrop:n}),b=wp.element.createElement(L,null,wp.element.createElement(F,null,wp.element.createElement(G,{controls:J,value:s,onChange:function(e){return i({align:e})}}),!!u.length&&wp.element.createElement(D,null,wp.element.createElement(H,{onSelect:t,allowedTypes:Z,multiple:!0,gallery:!0,value:u.map(function(e){return e.id}),render:function(e){var t=e.open;return wp.element.createElement(z,{className:"components-toolbar__control",label:Object(O.__)("Edit Gallery","getwid"),icon:"edit",onClick:t})}}))));if(0===u.length)return wp.element.createElement(L,null,b,wp.element.createElement(W,{icon:"format-gallery",className:r,labels:{title:Object(O.__)("Image Stack Gallery","getwid"),instructions:Object(O.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:t,accept:"image/*",allowedTypes:Z,multiple:!0}));var w=S()(r,p()({},"is-layout-".concat(m),"default"!=m),s?"align".concat(s):null),h=Object(x.chunk)(u,3),f=!!u.length,_=f&&Object(x.some)(u,function(e){return e.id});return wp.element.createElement(L,null,b,wp.element.createElement(N.a,l()({},d()({pickRelevantMediaFiles:Y},this.props),{key:"inspector"})),wp.element.createElement("div",{className:w},g,wp.element.createElement("div",{className:"".concat($,"__wrapper")},h.map(function(t){return wp.element.createElement("div",{className:"".concat($,"__chunk")},t.map(function(t,n){return wp.element.createElement("div",{className:"".concat($,"__media-wrapper"),key:t.id||t.url},wp.element.createElement("div",{className:"".concat($,"__media-inner-wrapper")},wp.element.createElement(A.a,{url:t.url,alt:t.alt,id:t.id,isSelected:o,setAttributes:function(t){return e.setImageAttributes(n,t)}})))}))})),o&&wp.element.createElement(W,{addToGallery:_,isAppender:f,className:"components-form-file-upload",disableMediaButtons:f&&!o,icon:!f&&wp.element.createElement(BlockIcon,{icon:icon}),labels:{title:!f&&Object(O.__)("Gallery"),instructions:!f&&Object(O.__)("Drag images, upload new ones or select files from your library.")},onSelect:t,accept:"image/*",allowedTypes:Z,multiple:!0,value:_?u:void 0})))}}]),t}(I);t.a=Q([q(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.ids;if(void 0!==l)return{imgObj:l?l.map(function(e){return a(e)}):null}})])(X)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components,_=f.PanelBody,v=f.SelectControl,y=function(e){function t(e){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.align,t.images,t.ids,t.linkTo),a=t.imageSize,l=t.stackStyle,i=(t.stackOverlap,e.setAttributes),o=e.pickRelevantMediaFiles,r=(e.isSelected,e.className,e.imgObj),c=function(e){r.some(function(e){return void 0===e})||i({imageSize:e,images:r.map(function(t){return o(t,e)})})};return wp.element.createElement(h,null,wp.element.createElement(_,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},0!=r.length&&wp.element.createElement(v,{label:Object(m.__)("Image Size","getwid"),help:Object(m.__)("For images from Media Library only.","getwid"),value:a,onChange:c,options:Getwid.settings.image_sizes}),wp.element.createElement(v,{label:Object(m.__)("Style","getwid"),value:l,onChange:function(e){return i({stackStyle:e})},options:[{value:"default",label:Object(m.__)("Default","getwid")},{value:"alpha",label:Object(m.__)("Alpha","getwid")},{value:"beta",label:Object(m.__)("Beta","getwid")},{value:"gamma",label:Object(m.__)("Gamma","getwid")},{value:"delta",label:Object(m.__)("Delta","getwid")},{value:"epsilon",label:Object(m.__)("Epsilon","getwid")},{value:"zeta",label:Object(m.__)("Zeta","getwid")}]}),wp.element.createElement(v,{label:Object(m.__)("Link to","getwid"),value:n,onChange:function(e){return i({linkTo:e})},options:[{value:"none",label:Object(m.__)("None","getwid")},{value:"attachment",label:Object(m.__)("Attachment Page","getwid")},{value:"media",label:Object(m.__)("Media File","getwid")}]})))}}]),t}(b);t.a=y},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(12),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(11)),h=(n.n(w),wp.data.withSelect),f=wp.blob.isBlobURL,_=wp.components,v=_.Spinner,y=(_.IconButton,wp.element),k=y.Component,C=y.Fragment,E=function(e){function t(){var e;return l()(this,t),e=c()(this,d()(t).apply(this,arguments)),e.bindContainer=e.bindContainer.bind(p()(e)),e}return g()(t,e),o()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.image,n=e.url;t&&!n&&this.props.setAttributes({url:t.source_url,alt:t.alt_text})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.alt,a=e.id,l=e.linkTo,i=e.link,o=(e.isSelected,Object(w.isEqual)(l,"media")?t:Object(w.isEqual)(l,"attachment")?i:void 0),r=wp.element.createElement(C,null,wp.element.createElement("img",{className:"".concat("wp-block-getwid-images-stack","__media"),src:t,alt:n,"data-id":a,tabIndex:"0"}),f(t)&&wp.element.createElement(v,null));return wp.element.createElement(C,null,o?wp.element.createElement("a",{href:o},r):r)}}]),t}(k);t.a=h(function(e,t){var n=e("core"),a=n.getMedia,l=t.id;return{image:l?a(l):null}})(E)},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(11)),w=(n.n(b),n(1)),h=(n.n(w),n(7)),f=n.n(h),_=window,v=(_.jQuery,wp.element),y=v.Component,k=v.Fragment,C="wp-block-getwid-images-stack",E=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.images,a=(e.ids,e.linkTo),i=(e.imageSize,e.stackStyle),o=(e.stackOverlap,e.className),r=f()(o,l()({},"is-layout-".concat(i),"default"!=i),t?"align".concat(t):null),c=Object(b.chunk)(n,3);return wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:"".concat(C,"__wrapper")},c.map(function(e,t){return wp.element.createElement("div",{className:"".concat(C,"__chunk")},e.map(function(e){var t;switch(a){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=f()("".concat(C,"__media"),e.id?"wp-image-".concat(e.id):""),l=wp.element.createElement("img",{className:n,src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return wp.element.createElement("div",{key:e.id||e.url,className:"".concat(C,"__media-wrapper")},wp.element.createElement("div",{className:"".concat(C,"__media-inner-wrapper")},wp.element.createElement(k,null,t?wp.element.createElement("a",{href:t},l):l)))}))})))}}]),t}(y);t.a=E},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(11)),w=(n.n(b),n(1)),h=(n.n(w),n(7)),f=n.n(h),_=window,v=(_.jQuery,wp.element),y=v.Component,k=v.Fragment,C="wp-block-getwid-images-stack",E=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.images,a=(e.ids,e.linkTo),i=(e.imageSize,e.stackStyle),o=(e.stackOverlap,e.className),r=f()(o,l()({},"is-layout-".concat(i),"default"!=i),t?"align".concat(t):null),c=Object(b.chunk)(n,3);return wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:"".concat(C,"__wrapper")},c.map(function(e,t){return wp.element.createElement("div",{className:"".concat(C,"__chunk")},e.map(function(e){var t;switch(a){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=f()("".concat(C,"__media"),e.id?"wp-image-".concat(e.id):null),l=wp.element.createElement("img",{className:n,src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return wp.element.createElement("div",{key:e.id||e.url,className:"".concat(C,"__media-wrapper")},wp.element.createElement("div",{className:"".concat(C,"__media-inner-wrapper")},wp.element.createElement(k,null,t?wp.element.createElement("a",{href:t},l):l)))}))})))}}]),t}(y);t.a=E},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(202)),o=n(203),r=n(205),c=n(13),s=n(1),d=(n.n(s),window),u=(d.jQuery,wp.blocks.registerBlockType);u("getwid/map",l()({title:Object(s.__)("Google Maps","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12,2C8.1,2,5,5.1,5,9c0,3.9,7,13,7,13s7-9.1,7-13C19,5.1,15.9,2,12,2z M6.9,9.1C6.9,6.3,9.2,4,12,4s5.1,2.3,5.1,5.1 c0,2.8-5.1,9.5-5.1,9.5S6.9,11.9,6.9,9.1z"}),wp.element.createElement("circle",{cx:"12",cy:"9",r:"3"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/map")},attributes:i.a,getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t)return{"data-align":t}}},Object(c.b)("getwid/map",o.a),{save:r.a}))},function(e,t,n){"use strict";var a={mapHeight:{type:"number",default:600},mapCenter:{type:"object",default:{lat:37.9106161839889,lng:25.1221243506071}},mapZoom:{type:"number",default:2},interaction:{type:"string",source:"attribute",default:"cooperative",selector:".wp-block-getwid-map",attribute:"data-interaction"},zoomControl:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},mapStyle:{type:"string",source:"attribute",default:"default",selector:".wp-block-getwid-map",attribute:"data-map-style"},customStyle:{type:"string",source:"attribute",selector:".wp-block-getwid-map",attribute:"data-custom-style"},blockAlignment:{type:"string"},mapMarkers:{type:"string",source:"attribute",selector:".wp-block-getwid-map",attribute:"data-map-markers",default:""}};t.a=a},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends__=__webpack_require__(10),__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends__),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_objectSpread__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_objectSpread___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_objectSpread__),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty__),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_typeof__=__webpack_require__(20),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_classCallCheck__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_classCallCheck___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_classCallCheck__),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_createClass__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_createClass___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_createClass__),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_possibleConstructorReturn__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_possibleConstructorReturn___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_possibleConstructorReturn__),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_getPrototypeOf__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_getPrototypeOf___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_getPrototypeOf__),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized__=__webpack_require__(12),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized__),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_inherits__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_inherits___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_inherits__),__WEBPACK_IMPORTED_MODULE_10__wordpress_element__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_11_lodash__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_11_lodash___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_lodash__),__WEBPACK_IMPORTED_MODULE_12_classnames__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_12_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_classnames__),__WEBPACK_IMPORTED_MODULE_13__inspector__=__webpack_require__(204),__WEBPACK_IMPORTED_MODULE_14__editor_scss__=__webpack_require__(62),__WEBPACK_IMPORTED_MODULE_14__editor_scss___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14__editor_scss__),__WEBPACK_IMPORTED_MODULE_15_wp_i18n__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_15_wp_i18n___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__),_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,_ref=wp.blockEditor||wp.editor,BlockControls=_ref.BlockControls,BlockAlignmentToolbar=_ref.BlockAlignmentToolbar,_wp$components=wp.components,Button=_wp$components.Button,Toolbar=_wp$components.Toolbar,TextControl=_wp$components.TextControl,_window=window,$=_window.jQuery,baseClass="wp-block-getwid-map",Edit=function(_Component){function Edit(e){var t;return __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_classCallCheck___default()(this,Edit),t=__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_possibleConstructorReturn___default()(this,__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_getPrototypeOf___default()(Edit).apply(this,arguments)),t.changeState=t.changeState.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.getState=t.getState.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.updateArrValues=t.updateArrValues.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.initMapEvents=t.initMapEvents.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.initMarkers=t.initMarkers.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.mapStyles=t.mapStyles.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.cancelMarker=t.cancelMarker.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.onDeleteMarker=t.onDeleteMarker.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.manageGoogleAPIKey=t.manageGoogleAPIKey.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.removeGoogleAPIScript=t.removeGoogleAPIScript.bind(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_assertThisInitialized___default()(t)),t.state={currentMarker:null,googleApiKey:""!=Getwid.settings.google_api_key?Getwid.settings.google_api_key:"",checkApiKey:""!=Getwid.settings.google_api_key?Getwid.settings.google_api_key:"",mapObj:{},markerArrTemp:[],action:!1,editModal:!1,firstInit:!0},t}return __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_inherits___default()(Edit,_Component),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_createClass___default()(Edit,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var a={};return Object.keys(t).forEach(function(l){var i;i=null!==t[l]&&"object"===__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_typeof___default()(t[l])?e(t[l],n):n(t[l],l),a[l]=i}),a}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,a=n.attributes,l=n.setAttributes,i=a.mapMarkers,o=""!=i?JSON.parse(i):[],r=o.map(function(n,a){return t===a&&(n=Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.merge)(n,e)),n});l({mapMarkers:JSON.stringify(r)})}},{key:"addGoogleAPIScript",value:function(){function e(e){t("firstInit",!0)}var t=this.changeState;this.getState;$("#google_api_js").length?t("firstInit",!0):function(t,n){var a=document.createElement("script");a.type="text/javascript",a.src=t+n,a.id="google_api_js";var l=!1;document.getElementsByTagName("head")[0].appendChild(a),a.onload=a.onreadystatechange=function(){l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(l=!0,a.onload=a.onreadystatechange=null,e(n))}}("https://maps.googleapis.com/maps/api/js?key=",Getwid.settings.google_api_key)}},{key:"removeGoogleAPIScript",value:function(){var e=$("#google_api_js");e.length&&e.remove();var t=$("script[src*='maps.googleapis.com']");t.length&&$.each(t,function(e,t){$(t).remove()}),window.google={}}},{key:"manageGoogleAPIKey",value:function(e,t){e.preventDefault();var n={action:"get_google_api_key",data:this.getState("checkApiKey"),option:t,nonce:Getwid.nonces.google_api_key};"set"==t?(Getwid.settings.google_api_key=this.getState("checkApiKey"),this.addGoogleAPIScript()):"delete"==t&&(Getwid.settings.google_api_key=""),jQuery.post(Getwid.ajax_url,n,function(e){})}},{key:"enterGoogleAPIKeyForm",value:function(){var e=this;return wp.element.createElement("form",{className:"".concat(baseClass,"__key-form"),onSubmit:function(t){return e.manageGoogleAPIKey(t,"set")}},wp.element.createElement("span",{className:"form-title"},Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Google Maps API key.","getwid")," ",wp.element.createElement("a",{href:"https://developers.google.com/maps/documentation/embed/get-api-key",target:"_blank"},Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Get your key.","getwid"))),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement(TextControl,{placeholder:Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Google Maps API Key","getwid"),onChange:function(t){return e.changeState("checkApiKey",t)}}),wp.element.createElement(Button,{isPrimary:!0,type:"submit",disabled:""==this.getState("checkApiKey")||null},Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Save API Key","getwid"))))}},{key:"mapStyles",value:function mapStyles(){var _this$props$attribute=this.props.attributes,mapStyle=_this$props$attribute.mapStyle,customStyle=_this$props$attribute.customStyle;if("object"==__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_typeof___default()(mapStyle))return null;if("custom"!=mapStyle)return stylesArr[mapStyle];try{return eval(customStyle)}catch(e){if(!(e instanceof SyntaxError))throw e;console.error(e.message)}}},{key:"initMap",value:function(){var e,t=this,n=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1?arguments[1]:void 0),a=this.props,l=a.attributes,i=l.mapCenter,o=l.mapZoom,r=(l.interaction,l.zoomControl),c=l.mapTypeControl,s=l.streetViewControl,d=l.fullscreenControl,u=l.mapMarkers,p=a.clientId,m=(a.className,a.setAttributes,""!=u?JSON.parse(u):[]),g=!Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.isEqual)(this.props.attributes.mapCenter,n.attributes.mapCenter),b=this.initMapEvents,w=this.initMarkers,h=this.onDeleteMarker,f=(this.changeState,this.getState),_=this.mapStyles;1==this.getState("firstInit")?this.waitLoadGoogle=setInterval(function(){if("undefined"!=typeof google){var n=$("[data-block='".concat(p,"']")),a=$(".".concat(baseClass,"__container"),n)[0];n.on("keydown",function(e){46===e.keyCode&&null!==f("currentMarker")&&"drop"!=f("action")&&confirm(Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Delete Marker","getwid"))&&h(f("currentMarker"))}),e=new google.maps.Map(a,{center:i,styles:_(),gestureHandling:"cooperative",zoomControl:r,mapTypeControl:c,streetViewControl:s,fullscreenControl:d,zoom:o}),t.setState({mapObj:e,firstInit:!1}),m.length&&$.each(m,function(t,n){w(!0,!1,t,e)}),b(e),clearInterval(t.waitLoadGoogle)}},1):(e=this.getState("mapObj"),e.setOptions({styles:_(),zoomControl:r,mapTypeControl:c,streetViewControl:s,fullscreenControl:d}),g&&e.panTo(i))}},{key:"initMapEvents",value:function(e){var t=this.props.setAttributes,n=this.updateArrValues,a=this.changeState,l=this.getState,i=new google.maps.Geocoder;e.addListener("click",function(e){if("drop"==l("action")){var t={lat:e.latLng.lat(),lng:e.latLng.lng()};i.geocode({location:t},function(e,t){"OK"===t&&e[0]&&n({description:Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.escape)(e[0].formatted_address)},l("currentMarker"))}),n({coords:t},l("currentMarker")),a("editModal",!0)}else a("currentMarker",null)}),e.addListener("zoom_changed",function(n){t({mapZoom:e.getZoom()})}),e.addListener("dragend",function(n){t({mapCenter:{lat:e.getCenter().lat(),lng:e.getCenter().lng()}})})}},{key:"cancelMarker",value:function(){var e=this.props,t=e.attributes.mapMarkers,n=e.setAttributes,a=""!=t?JSON.parse(t):[],l=this.getState,i=this.changeState,o=a.filter(function(e,t){return t!==l("currentMarker")});i("currentMarker",null),n({mapMarkers:JSON.stringify(o)})}},{key:"initMarkers",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.props,o=i.attributes.mapMarkers,r=(i.className,this.state.markerArrTemp),c=""!=o?JSON.parse(o):[],s=c[a].coords;0==n?(e=new google.maps.Marker({id:a,position:s,map:l,draggable:!0,animation:t?google.maps.Animation.DROP:null}),r.push(e),c[a].bounce&&setTimeout(function(){e.setAnimation(google.maps.Animation.BOUNCE)},2e3)):(e=r[a],e.setPosition(s));var d="";""!=Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.unescape)(c[a].description)&&(d="\n\t\t\t\t<div class='getwid-poi-info-window'>\n\t\t\t\t\t".concat(Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.unescape)(c[a].description),"\n\t\t\t\t</div>\n\t\t\t")),this.attachMessage(a,e,d,c[a].popUpOpen,c[a].popUpMaxWidth,n)}},{key:"attachMessage",value:function(e,t,n,a,l,i){var o,r=this.props,c=(r.className,r.setAttributes,this.getState,this.changeState),s=this.updateArrValues;0==i?(o=new google.maps.InfoWindow({content:n,maxWidth:l}),t.popUp=o):(o=t.popUp,o.setContent(n),o.setOptions({maxWidth:l})),i&&o.close(),a&&o.open(t.get("map"),t),t.addListener("click",function(){""!=o.content&&o.open(t.get("map"),t),c("currentMarker",t.id)}),t.addListener("rightclick",function(){null!==t.getAnimation()?(t.setAnimation(null),s({bounce:!1},t.id)):(t.setAnimation(google.maps.Animation.BOUNCE),s({bounce:!0},t.id))}),t.addListener("dragend",function(e){s({coords:{lat:e.latLng.lat(),lng:e.latLng.lng()}},t.id)})}},{key:"changeState",value:function(e,t){this.setState(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentWillUnmount",value:function(){clearInterval(this.waitLoadGoogle)}},{key:"componentDidMount",value:function(){""!=this.getState("googleApiKey")&&this.addGoogleAPIScript()}},{key:"componentDidUpdate",value:function(e,t){var n=e.attributes.mapMarkers,a=1==this.state.firstInit||!Object(__WEBPACK_IMPORTED_MODULE_11_lodash__.isEqual)(this.props.attributes,e.attributes);""!=Getwid.settings.google_api_key&&a&&this.initMap(!!n.length,e)}},{key:"onAddMarker",value:function(){var e=this.props,t=e.attributes.mapMarkers,n=e.setAttributes,a=""!=t?JSON.parse(t):[],l=a,i=this.changeState;l.push({name:"#"+(l.length+1),description:"",popUpOpen:!1,popUpMaxWidth:250,bounce:!1,coords:{lat:0,lng:0}}),n({mapMarkers:JSON.stringify(l)}),i("currentMarker",1==l.length?0:l.length-1)}},{key:"onDeleteMarker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props,n=t.attributes.mapMarkers,a=t.setAttributes,l=""!=n?JSON.parse(n):[],i=this.state.markerArrTemp,o=(this.getState,this.changeState),r=l.filter(function(t,n){return n!==e}),c=i.filter(function(t,n){return n!==e});$.each(c,function(e,t){c[e].id=e}),i[e].setMap(null),o("currentMarker",null),o("markerArrTemp",c),a({mapMarkers:JSON.stringify(r)})}},{key:"render",value:function(){var e=this;if(""==Getwid.settings.google_api_key)return this.enterGoogleAPIKeyForm();var t=this.props,n=t.attributes,a=n.mapHeight,l=(n.mapCenter,n.mapZoom,n.interaction,n.zoomControl,n.mapTypeControl,n.streetViewControl,n.fullscreenControl,n.mapStyle,n.customStyle,n.blockAlignment),i=(n.mapMarkers,t.className),o=t.setAttributes,r=this.initMarkers,c=this.cancelMarker,s=this.onDeleteMarker,d=this.updateArrValues,u=this.changeState,p=this.getState,m=this.manageGoogleAPIKey,g=this.removeGoogleAPIScript,b=__WEBPACK_IMPORTED_MODULE_12_classnames___default()(i,__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default()({},"".concat(baseClass,"--dropMarker"),"drop"==p("action")));return wp.element.createElement(Fragment,null,wp.element.createElement(BlockControls,null,wp.element.createElement(BlockAlignmentToolbar,{value:l,controls:["wide","full"],onChange:function(e){return o({blockAlignment:e})}}),wp.element.createElement(Toolbar,{controls:[{icon:"location",title:Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Drop Marker","getwid"),isDisabled:null!=p("currentMarker"),isActive:"drop"==p("action"),onClick:function(){"drop"!=p("action")&&(e.onAddMarker(),u("action","drop"))}},{icon:"edit",title:Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Edit Marker","getwid"),isDisabled:null===p("currentMarker")||"drop"==p("action"),isActive:"edit"==p("action")&&1==p("editModal"),onClick:function(){u("action","edit"),u("editModal",!0)}},{icon:"trash",title:Object(__WEBPACK_IMPORTED_MODULE_15_wp_i18n__.__)("Delete Marker","getwid"),isDisabled:null===p("currentMarker")||"drop"==p("action"),onClick:function(){e.onDeleteMarker(p("currentMarker"))}}]})),wp.element.createElement(__WEBPACK_IMPORTED_MODULE_13__inspector__.a,__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends___default()({},__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_objectSpread___default()({},this.props,{initMarkers:r},{cancelMarker:c},{onDeleteMarker:s},{updateArrValues:d},{changeState:u},{getState:p},{manageGoogleAPIKey:m},{removeGoogleAPIScript:g}),{key:"inspector"})),wp.element.createElement("div",{className:b},wp.element.createElement("div",{style:{height:a+"px"},className:"".concat(baseClass,"__container")})))}}]),Edit}(Component);__webpack_exports__.a=Edit},function(e,t,n){"use strict";var a=n(20),l=n.n(a),i=n(16),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(11)),v=(n.n(_),n(44)),y=n(19),k=n(1),C=(n.n(k),window),E=(C.jQuery,wp.element),O=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,T=wp.components,N=T.Button,A=T.BaseControl,M=T.ButtonGroup,B=T.PanelBody,I=T.RangeControl,L=T.ToggleControl,P=T.SelectControl,z=T.Modal,R=T.TextControl,D=T.TextareaControl,V=T.ExternalLink,F=T.RadioControl,H=function(e){function t(e){var n;return d()(this,t),n=g()(this,w()(t).apply(this,arguments)),n.state={tabName:"general"},n}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,a=n.mapHeight,i=n.mapCenter,r=n.mapZoom,s=n.mapStyle,d=n.interaction,u=n.zoomControl,p=n.mapTypeControl,m=n.streetViewControl,g=n.fullscreenControl,b=n.customStyle,w=n.mapMarkers,h=(n.blockAlignment,t.initMarkers),f=t.cancelMarker,C=t.onDeleteMarker,E=t.updateArrValues,O=t.changeState,S=t.getState,T=t.manageGoogleAPIKey,H=t.removeGoogleAPIScript,W=t.setAttributes,U=t.className,G=this.state.tabName,q=""!=w?JSON.parse(w):[],Q=function(e){if(void 0!==q[e])return wp.element.createElement(v.a,{title:Object(k.__)("Marker","getwid")+": "+q[e].name,initialOpen:!1,onOpen:function(){S("markerArrTemp")[e].setAnimation(google.maps.Animation.BOUNCE)},onClose:function(){S("markerArrTemp")[e].setAnimation(null)}},wp.element.createElement(R,{label:Object(k.__)("Name","getwid"),value:q[e].name,onChange:function(t){E({name:t},e)}}),wp.element.createElement(D,{label:Object(k.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(_.unescape)(q[e].description),onChange:function(t){E({description:Object(_.escape)(t)},e)}}),wp.element.createElement(L,{label:Object(k.__)("Opened by default","getwid"),checked:q[e].popUpOpen,onChange:function(t){E({popUpOpen:t},e)}}),wp.element.createElement(R,{label:Object(k.__)("Popup Width","getwid"),value:q[e].popUpMaxWidth,type:"number",onChange:function(t){E({popUpMaxWidth:t},e)}}),wp.element.createElement(R,{label:Object(k.__)("Latitude","getwid"),value:q[e].coords.lat,type:"number",onChange:function(t){E({coords:{lat:parseFloat(t),lng:q[e].coords.lng}},e)}}),wp.element.createElement(R,{label:Object(k.__)("Longitude","getwid"),value:q[e].coords.lng,type:"number",onChange:function(t){E({coords:{lat:q[e].coords.lat,lng:parseFloat(t)}},e)}}),wp.element.createElement(M,null,wp.element.createElement(N,{isPrimary:!0,onClick:function(){h(!1,!0,e,S("mapObj"))}},Object(k.__)("Update","getwid")),wp.element.createElement(N,{isDefault:!0,onClick:function(){C(e)}},Object(k.__)("Delete","getwid"))))};return wp.element.createElement(x,{key:"inspector"},wp.element.createElement(y.a,{state:G,stateName:"tabName",onChangeTab:function(t,n){e.setState(c()({},t,n))},tabs:["general","style"].concat(o()(q.length>0?["layout"]:[]))}),"general"===G&&wp.element.createElement(j,null,wp.element.createElement(B,{title:Object(k.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(F,{label:Object(k.__)("Zoom & Pan Interaction","getwid"),help:Object(k.__)("These options are applied on frontend only.","getwid"),selected:d,options:[{value:"cooperative",label:Object(k.__)("Prevent zoom on page scroll","getwid")},{value:"none",label:Object(k.__)("Disable zoom and pan","getwid")},{value:"greedy",label:Object(k.__)("Enable zoom and pan","getwid")}],onChange:function(e){return W({interaction:e})}})),wp.element.createElement(B,{title:Object(k.__)("Map Center & Zoom","getwid"),initialOpen:!1},wp.element.createElement(R,{label:Object(k.__)("Zoom","getwid"),help:Object(k.__)("Drag and zoom map in preview area to apply.","getwid"),value:r,type:"number",min:1,max:22,step:1,onChange:function(e){S("mapObj").setZoom(""==e||0==e?1:parseInt(e,10))}}),wp.element.createElement(R,{label:Object(k.__)("Center Latitude","getwid"),value:i.lat,type:"number",onChange:function(e){W({mapCenter:{lat:parseFloat(e),lng:i.lng}})}}),wp.element.createElement(R,{label:Object(k.__)("Center Longitude","getwid"),value:i.lng,type:"number",onChange:function(e){W({mapCenter:{lat:i.lat,lng:parseFloat(e)}})}})),wp.element.createElement(B,{title:Object(k.__)("Google Maps API Key","getwid"),initialOpen:!1},wp.element.createElement(R,{label:Object(k.__)("Google Maps API Key","getwid"),value:S("checkApiKey"),onChange:function(e){return O("checkApiKey",e)}}),wp.element.createElement(A,null,wp.element.createElement(M,null,wp.element.createElement(N,{isPrimary:!0,disabled:""==S("checkApiKey")||null,onClick:function(e){H(),T(e,"set")}},Object(k.__)("Update","getwid")),wp.element.createElement(N,{isDefault:!0,onClick:function(e){O("checkApiKey",""),O("googleApiKey",""),T(e,"delete"),H()}},Object(k.__)("Delete","getwid")))),wp.element.createElement(A,null,wp.element.createElement(V,{href:"https://developers.google.com/maps/documentation/embed/get-api-key"},Object(k.__)("Get your key.","getwid"))))),"style"===G&&wp.element.createElement(j,null,wp.element.createElement(B,{initialOpen:!0},wp.element.createElement(I,{label:Object(k.__)("Map Height","getwid"),value:a,onChange:function(e){void 0===e&&(e=600),W({mapHeight:e})},allowReset:!0,min:100,max:1080,step:1}),wp.element.createElement(L,{label:Object(k.__)("Show Zoom","getwid"),checked:u,onChange:function(e){W({zoomControl:e})}}),wp.element.createElement(L,{label:Object(k.__)("Show Map Type","getwid"),checked:p,onChange:function(e){W({mapTypeControl:e})}}),wp.element.createElement(L,{label:Object(k.__)("Show Street View","getwid"),checked:m,onChange:function(e){W({streetViewControl:e})}}),wp.element.createElement(L,{label:Object(k.__)("Show Full Screen","getwid"),checked:g,onChange:function(e){W({fullscreenControl:e})}}),wp.element.createElement(P,{label:Object(k.__)("Map Style","getwid"),value:s,onChange:function(e){return W({mapStyle:e})},options:[{value:"default",label:Object(k.__)("Default","getwid")},{value:"silver",label:Object(k.__)("Silver","getwid")},{value:"retro",label:Object(k.__)("Retro","getwid")},{value:"dark",label:Object(k.__)("Dark","getwid")},{value:"night",label:Object(k.__)("Night","getwid")},{value:"aubergine",label:Object(k.__)("Aubergine","getwid")},{value:"blue_water",label:Object(k.__)("Blue Water","getwid")},{value:"ultra_light",label:Object(k.__)("Ultra Light","getwid")},{value:"dark_silver",label:Object(k.__)("Dark Silver","getwid")},{value:"shades_of_grey",label:Object(k.__)("Shades of Grey","getwid")},{value:"no_labels",label:Object(k.__)("No Labels","getwid")},{value:"wild_west",label:Object(k.__)("Wild West","getwid")},{value:"vintage",label:Object(k.__)("Vintage","getwid")},{value:"wireframe",label:Object(k.__)("Wireframe","getwid")},{value:"light_dream",label:Object(k.__)("Light Dream","getwid")},{value:"custom",label:Object(k.__)("Custom","getwid")}]}),"object"!=l()(s)&&"custom"==s&&wp.element.createElement(j,null,wp.element.createElement(D,{label:Object(k.__)("Custom Style (JSON)","getwid"),rows:"8",value:b,onChange:function(e){W({customStyle:e})}}),wp.element.createElement(V,{href:"https://mapstyle.withgoogle.com/"},Object(k.__)("Google Maps Styling Wizard","getwid")),wp.element.createElement("br",null),wp.element.createElement(V,{href:"https://snazzymaps.com/explore"},Object(k.__)("Snazzy Maps","getwid"))))),function(e){if(void 0!==q[e])return wp.element.createElement(j,null,"edit"!=S("action")&&"drop"!=S("action")||1!=S("editModal")?null:wp.element.createElement(z,{className:"".concat(U,"__modal"),title:Object(k.__)("Edit Marker","getwid"),onRequestClose:function(){O("action",!1),O("editModal",!1),"drop"==S("action")?f():O("currentMarker",null)}},wp.element.createElement(j,null,wp.element.createElement(R,{label:Object(k.__)("Name","getwid"),value:q[e].name,onChange:function(t){E({name:t},e)}}),wp.element.createElement(D,{label:Object(k.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(_.unescape)(q[e].description),onChange:function(t){E({description:Object(_.escape)(t)},e)}}),wp.element.createElement(L,{label:Object(k.__)("Opened by default","getwid"),checked:q[e].popUpOpen,onChange:function(t){E({popUpOpen:t},e)}}),wp.element.createElement(R,{label:Object(k.__)("Popup Maximum Width, px.","getwid"),value:q[e].popUpMaxWidth,type:"number",onChange:function(t){E({popUpMaxWidth:t},e)}}),wp.element.createElement(R,{label:Object(k.__)("Latitude","getwid"),value:q[e].coords.lat,type:"number",onChange:function(t){E({coords:{lat:parseFloat(t),lng:q[e].coords.lng}},e)}}),wp.element.createElement(R,{label:Object(k.__)("Longitude","getwid"),value:q[e].coords.lng,type:"number",onChange:function(t){E({coords:{lat:q[e].coords.lat,lng:parseFloat(t)}},e)}}),wp.element.createElement(M,null,wp.element.createElement(N,{isPrimary:!0,onClick:function(){"drop"==S("action")?h(!1,!1,S("currentMarker"),S("mapObj")):"edit"==S("action")&&h(!1,!0,S("currentMarker"),S("mapObj")),O("currentMarker",null),O("action",!1),O("editModal",!1)}},"drop"==S("action")?Object(k.__)("Save","getwid"):Object(k.__)("Update","getwid")),"drop"==S("action")&&wp.element.createElement(N,{isDefault:!0,onClick:function(){O("action",!1),O("editModal",!1),f()}},Object(k.__)("Cancel","getwid"))))))}(S("currentMarker")),q.length>0&&wp.element.createElement(j,null,"layout"===G&&wp.element.createElement(j,null,wp.element.createElement(B,{title:Object(k.__)("Markers","getwid")},Object(_.times)(q.length,function(e){return Q(e)})))))}}]),t}(O);t.a=H},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=n(11),f=(n.n(h),n(62)),_=(n.n(f),n(206)),v=(n.n(_),wp.element),y=v.Component,k=v.Fragment,C="wp-block-getwid-map",E=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this.props.attributes,t=e.mapHeight,n=e.mapCenter,a=e.mapZoom,i=e.interaction,o=e.zoomControl,r=e.mapTypeControl,c=e.streetViewControl,s=e.fullscreenControl,d=e.mapStyle,u=e.customStyle,p=e.blockAlignment,m=e.mapMarkers,g=e.className,b=""!=m?JSON.parse(m):[],f=w()(C,g,p?"align".concat(p):null),_={"data-map-zoom":a,"data-interaction":i,"data-map-style":d,"data-custom-style":u},v={"data-map-center":JSON.stringify(n)},y={"data-zoom-control":o,"data-type-control":r,"data-street-view-control":c,"data-full-screen-control":s},E={"data-map-markers":Object(h.escape)(m)},O=function(e){if(void 0!==b[e])return wp.element.createElement(k,null,wp.element.createElement("li",null,wp.element.createElement("a",{href:"https://maps.google.com/?q=".concat(b[e].coords.lat,",").concat(b[e].coords.lng,"&ll=").concat(b[e].coords.lat,",").concat(b[e].coords.lng,"&z=").concat(a)},"".concat(b[e].name))))};return wp.element.createElement(k,null,wp.element.createElement("div",l()({},_,v,y,E,{className:f}),wp.element.createElement("div",{style:{height:t+"px"},className:"".concat(C,"__container")}),0!=b.length&&wp.element.createElement(k,null,wp.element.createElement("ul",{className:"".concat(C,"__points")},Object(h.times)(b.length,function(e){return O(e)})))))}}]),t}(y);t.a=E},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(208)),o=n(209),r=n(13),c=n(212),s=(n.n(c),n(1)),d=(n.n(s),window),u=(d.jQuery,wp.blocks),p=u.registerBlockType,m=u.createBlock,g="getwid/recent-posts";p(g,l()({title:Object(s.__)("Recent Posts","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M0,0v10h10V0H0z M8,8H2V2h6V8z"}),wp.element.createElement("rect",{x:"12",y:"2",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"6",width:"8",height:"2"}),wp.element.createElement("path",{d:"M0,14v10h10V14H0z M8,22H2v-6h6V22z"}),wp.element.createElement("rect",{x:"12",y:"16",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"20",width:"8",height:"2"})),category:"getwid-blocks",keywords:[Object(s.__)("latest","getwid")],supports:{inserter:!Getwid.disabled_blocks.includes(g)},transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return m("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,postLayout:e.postLayout,columns:e.columns,order:e.order,orderBy:e.orderBy,align:e.align})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return m("getwid/post-carousel",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:1==e.showContent?"excerpt":"none",contentLength:e.contentLength,showFeaturedImage:e.showFeaturedImage,order:e.order,orderBy:e.orderBy})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return m("getwid/post-slider",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:1==e.showContent?"excerpt":"none",contentLength:e.contentLength,order:e.order,orderBy:e.orderBy})}}]},attributes:i.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(r.b)(g,o.a),{save:function(){return null}}))},function(e,t,n){"use strict";var a={titleTag:{type:"string",default:"h3"},imageSize:{type:"string",default:"full"},cropImages:{type:"boolean",default:!0},categories:{type:"string"},postsToShow:{type:"number",default:5},showTitle:{type:"boolean",default:!0},showDate:{type:"boolean",default:!1},showCategories:{type:"boolean",default:!1},showCommentsCount:{type:"boolean",default:!1},showContent:{type:"boolean",default:!1},contentLength:{type:"number",default:55},showFeaturedImage:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},align:{type:"string"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(11)),k=(n.n(y),n(210)),C=n(211),E=(n.n(C),n(1)),O=(n.n(E),wp.element),j=O.Component,S=O.Fragment,x=wp.components,T=x.Placeholder,N=x.Spinner,A=x.ServerSideRender,M=x.Disabled,B=x.Toolbar,I=wp.apiFetch,L=wp.url.addQueryArgs,P=window,z=(P.jQuery,wp.blockEditor||wp.editor),R=z.BlockAlignmentToolbar,D=z.BlockControls,V=wp.data.withSelect,F={per_page:-1},H=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.state={categoriesList:[]},e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=I({path:L("/wp/v2/categories",F)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,a=t.postLayout,i=e.setAttributes,r=e.recentPosts,c=(e.className,this.changeState),s=this.getState,d=Array.isArray(r)&&r.length;return d?wp.element.createElement(S,null,wp.element.createElement(k.a,l()({},o()({},this.props,{changeState:c},{getState:s},{hasPosts:d}),{key:"inspector"})),wp.element.createElement(D,null,wp.element.createElement(R,{value:n,controls:["wide","full"],onChange:function(e){i({align:e})}}),wp.element.createElement(B,{controls:[{icon:"list-view",title:Object(E.__)("List View","getwid"),onClick:function(){return i({postLayout:"list"})},isActive:"list"===a},{icon:"grid-view",title:Object(E.__)("Grid View","getwid"),onClick:function(){return i({postLayout:"grid"})},isActive:"grid"===a}]})),wp.element.createElement(M,null,wp.element.createElement(A,{block:"getwid/recent-posts",attributes:this.props.attributes}))):wp.element.createElement(S,null,wp.element.createElement(k.a,l()({},o()({},this.props,{changeState:c},{getState:s},{hasPosts:d}),{key:"inspector"})),wp.element.createElement(T,{icon:"admin-post",label:Object(E.__)("Recent Posts","getwid")},Array.isArray(r)?Object(E.__)("No posts found.","getwid"):wp.element.createElement(N,null)))}}]),t}(j);t.a=V(function(e,t){var n=t.attributes,a=n.postsToShow,l=n.order,i=n.orderBy,o=n.categories,r=e("core"),c=r.getEntityRecords;r.getMedia;return{recentPosts:c("postType","post",Object(y.pickBy)({categories:o,order:l,orderby:i,per_page:a},function(e){return!Object(y.isUndefined)(e)}))}})(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return x});var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),window),h=(w.jQuery,wp.element),f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,k=wp.components,C=k.SelectControl,E=k.PanelBody,O=k.QueryControls,j=k.RangeControl,S=k.ToggleControl,x=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.imageSize,a=t.titleTag,i=t.showContent,o=t.showTitle,r=t.showDate,c=t.showCategories,s=t.showCommentsCount,d=t.showFeaturedImage,u=(t.align,t.postLayout),p=t.columns,m=t.order,g=t.orderBy,w=t.categories,h=t.postsToShow,f=t.contentLength,v=t.cropImages,k=e.setAttributes,x=e.recentPosts,T=e.hasPosts,N=(e.changeState,e.getState);return wp.element.createElement(y,null,wp.element.createElement(E,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(C,{label:Object(b.__)("Layout","getwid"),value:u,onChange:function(e){return k({postLayout:e})},options:[{value:"list",label:Object(b.__)("List","getwid")},{value:"grid",label:Object(b.__)("Grid","getwid")}]}),"grid"===u&&wp.element.createElement(j,{label:Object(b.__)("Columns","getwid"),value:p,onChange:function(e){return k({columns:e})},min:1,max:T?Math.min(6,x.length):6}),wp.element.createElement(S,{label:Object(b.__)("Display Title","getwid"),checked:o,onChange:function(){k({showTitle:!o})}}),o&&wp.element.createElement(C,{label:Object(b.__)("Title Tag","getwid"),value:a,options:[{value:"p",label:Object(b.__)("Paragraph","getwid")},{value:"h2",label:Object(b.__)("Heading 2","getwid")},{value:"h3",label:Object(b.__)("Heading 3","getwid")},{value:"h4",label:Object(b.__)("Heading 4","getwid")},{value:"h5",label:Object(b.__)("Heading 5","getwid")},{value:"h6",label:Object(b.__)("Heading 6","getwid")}],onChange:function(e){return k({titleTag:e})}}),wp.element.createElement(S,{label:Object(b.__)("Display Featured Image","getwid"),checked:d,onChange:function(){k({showFeaturedImage:!d})}}),d&&wp.element.createElement(_,null,wp.element.createElement(C,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:n,onChange:function(e){k({imageSize:e})},options:Getwid.settings.image_sizes}),wp.element.createElement(S,{label:Object(b.__)("Crop Images","getwid"),checked:v,onChange:function(){k({cropImages:!v})}})),wp.element.createElement(S,{label:Object(b.__)("Display Excerpt","getwid"),checked:i,onChange:function(){k({showContent:!i})}}),i&&wp.element.createElement(j,{label:Object(b.__)("Number of words","getwid"),value:f,onChange:function(e){return k({contentLength:e})},min:5,max:Getwid.settings.excerpt_length}),wp.element.createElement(S,{label:Object(b.__)("Display Date","getwid"),checked:r,onChange:function(){k({showDate:!r})}}),wp.element.createElement(S,{label:Object(b.__)("Display Categories","getwid"),checked:c,onChange:function(){k({showCategories:!c})}}),wp.element.createElement(S,{label:Object(b.__)("Display Comments","getwid"),checked:s,onChange:function(){k({showCommentsCount:!s})}}),wp.element.createElement(O,l()({order:m,orderBy:g},{numberOfItems:h,categoriesList:N("categoriesList"),selectedCategoryId:w,onOrderChange:function(e){return k({order:e})},onOrderByChange:function(e){return k({orderBy:e})},onCategoryChange:function(e){return k({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return k({postsToShow:e})}}))))}}]),t}(f)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(214)),o=n(215),r=n(222),c=n(13),s=n(223),d=n(1),u=(n.n(d),window),p=(u.jQuery,wp.blocks),m=p.registerBlockType,g=p.createBlock,b="getwid/advanced-heading";m(b,l()({title:Object(d.__)("Advanced Heading","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M5.22,12.67h1.87v6.01c0,0.53-0.06,1.07-0.18,1.58c-0.1,0.45-0.29,0.87-0.55,1.25c-0.24,0.34-0.56,0.62-0.94,0.81\tc-0.42,0.2-0.89,0.3-1.36,0.29c-0.23,0.01-0.45-0.03-0.66-0.11c-0.17-0.07-0.32-0.16-0.46-0.28c-0.12-0.11-0.22-0.23-0.31-0.36\tc-0.08-0.13-0.15-0.25-0.21-0.36c-0.05-0.1-0.11-0.2-0.18-0.29c-0.04-0.07-0.12-0.11-0.2-0.11c-0.12,0-0.24,0.03-0.33,0.1\tc-0.1,0.07-0.18,0.16-0.25,0.26c-0.07,0.11-0.12,0.22-0.15,0.34c-0.03,0.12-0.05,0.25-0.05,0.37c0.01,0.18,0.09,0.34,0.22,0.46\tc0.17,0.16,0.37,0.28,0.59,0.36c0.27,0.11,0.56,0.19,0.85,0.24c0.33,0.06,0.66,0.09,1,0.09c0.86,0.01,1.73-0.11,2.56-0.34\tc0.75-0.2,1.46-0.55,2.08-1.03c0.59-0.46,1.06-1.05,1.39-1.73c0.35-0.76,0.53-1.59,0.51-2.43v-5.11h3.77v5.83\tc0,0.26,0.03,0.52,0.08,0.77c0.05,0.25,0.16,0.48,0.31,0.68c0.18,0.22,0.41,0.38,0.67,0.49c0.36,0.14,0.74,0.2,1.13,0.18\tc0.29,0,0.58-0.03,0.87-0.1c0.27-0.06,0.53-0.14,0.78-0.25c0.23-0.09,0.45-0.2,0.67-0.32c0.2-0.11,0.38-0.22,0.53-0.32l-0.17-0.38\tc-0.12,0.06-0.27,0.13-0.43,0.19c-0.17,0.07-0.35,0.1-0.53,0.1c-0.15,0.01-0.3-0.06-0.4-0.18c-0.09-0.14-0.14-0.31-0.13-0.48v-6.23\th2.06v-0.9h-2.06V6.48c0-0.85,0.02-1.6,0.06-2.26c0.02-0.56,0.11-1.11,0.25-1.65c0.1-0.38,0.29-0.72,0.56-1\tc0.27-0.24,0.63-0.36,1-0.34c0.16,0,0.32,0.04,0.46,0.11c0.13,0.08,0.25,0.17,0.35,0.28c0.1,0.11,0.2,0.24,0.28,0.37\tc0.08,0.13,0.17,0.26,0.25,0.37c0.08,0.11,0.17,0.2,0.27,0.28c0.09,0.07,0.21,0.11,0.33,0.11c0.08,0,0.15-0.02,0.22-0.07\tc0.07-0.05,0.14-0.11,0.19-0.18c0.11-0.16,0.17-0.35,0.17-0.54c0-0.23-0.08-0.44-0.24-0.61c-0.18-0.19-0.39-0.34-0.63-0.44\tc-0.3-0.13-0.61-0.21-0.92-0.26c-0.37-0.06-0.74-0.09-1.11-0.09c-0.59,0-1.17,0.12-1.71,0.34c-0.6,0.24-1.13,0.62-1.56,1.1\tc-0.5,0.57-0.89,1.23-1.14,1.94c-0.32,0.93-0.46,1.9-0.44,2.88v4.93h-3.77V5.72c0-0.14-0.02-0.27-0.04-0.41\tc-0.04-0.18-0.13-0.35-0.26-0.47c-0.2-0.18-0.43-0.31-0.69-0.38C9.03,4.33,8.59,4.28,8.15,4.3c-0.51,0-1.02,0.04-1.52,0.12\tC6.14,4.49,5.65,4.61,5.18,4.77c-0.45,0.15-0.89,0.35-1.3,0.59c-0.39,0.22-0.74,0.5-1.05,0.82C2.54,6.5,2.3,6.86,2.13,7.25\tC1.96,7.66,1.87,8.1,1.87,8.55c0,0.29,0.05,0.58,0.14,0.85c0.09,0.26,0.23,0.5,0.42,0.7c0.19,0.2,0.42,0.36,0.67,0.47\tc0.49,0.2,1.03,0.22,1.53,0.07c0.21-0.06,0.4-0.16,0.57-0.3c0.17-0.14,0.31-0.31,0.41-0.5c0.11-0.22,0.17-0.46,0.16-0.71\tC5.79,8.96,5.76,8.79,5.7,8.64C5.65,8.52,5.59,8.41,5.5,8.31C5.43,8.24,5.34,8.18,5.24,8.14C5.16,8.1,5.07,8.08,4.98,8.08\tc-0.1,0-0.19,0.03-0.27,0.09L4.46,8.35c-0.1,0.07-0.2,0.13-0.3,0.19C4.03,8.6,3.88,8.63,3.74,8.62c-0.06,0-0.11-0.01-0.17-0.02\tC3.49,8.58,3.41,8.54,3.34,8.48C3.25,8.4,3.19,8.3,3.14,8.19C3.08,8.02,3.05,7.84,3.05,7.66c0-0.25,0.06-0.49,0.18-0.71\tc0.13-0.22,0.29-0.42,0.48-0.6c0.2-0.18,0.43-0.35,0.67-0.48c0.24-0.14,0.49-0.25,0.74-0.35c0.23-0.09,0.46-0.16,0.7-0.22\tC6.01,5.27,6.2,5.24,6.38,5.24c0.09,0,0.19,0.01,0.28,0.03c0.08,0.01,0.16,0.05,0.22,0.1C6.95,5.42,7,5.49,7.03,5.57\tc0.04,0.12,0.06,0.24,0.05,0.36v5.83H5.22V12.67L5.22,12.67z"})),category:"getwid-blocks",keywords:[Object(d.__)("Title","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(b)},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:i.a,save:s.a}],transforms:{from:[{type:"block",blocks:["core/heading"],transform:function(e){return g("getwid/advanced-heading",e)}},{type:"block",blocks:["core/paragraph"],transform:function(e){return g("getwid/advanced-heading",e)}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){return g("core/heading",{content:e.content})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return g("core/paragraph",{content:e.content})}}]},attributes:i.a},Object(c.b)(b,o.a),{save:function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:"wp-block-getwid-advanced-heading"}))}}))},function(e,t,n){"use strict";var a={content:{type:"string",source:"html",selector:".wp-block-getwid-advanced-heading__content",default:""},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},titleTag:{type:"string",default:"span"},fontFamily:{type:"string",default:""},fontSize:{type:"string"},fontSizeTablet:{type:"string",default:"fs-tablet-100"},fontSizeMobile:{type:"string",default:"fs-mobile-100"},fontWeight:{type:"string"},fontStyle:{type:"string"},textTransform:{type:"string"},lineHeight:{type:"string"},letterSpacing:{type:"string"},align:{type:"string"},textAlignment:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(216)),k=n(64),C=n.n(k),E=n(221),O=(n.n(E),n(1)),j=(n.n(O),n(7)),S=n.n(j),x=window,T=x.jQuery,N=wp.compose.compose,A=wp.element,M=A.Component,B=A.Fragment,I=wp.blockEditor||wp.editor,L=I.RichText,P=I.BlockControls,z=I.AlignmentToolbar,R=I.withColors,D=function(e){function t(e){var n;return d()(this,t),n=g()(this,w()(t).apply(this,arguments)),n.changeState=n.changeState.bind(f()(n)),n.state={isLockedMargins:!1,isLockedPaddings:!1},n}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"componentDidMount",value:function(){var e=this.props.clientId;this.textWrapper=T("[data-block='".concat(e,"'] .wp-block-getwid-advanced-heading"))}},{key:"render",value:function(){var e,t,n=this.props,a=n.className,i=n.backgroundColor,r=n.textColor,s=n.setAttributes,d=this.props.attributes,u=d.content,p=d.titleTag,m=d.fontFamily,g=d.fontWeight,b=d.fontStyle,w=d.textTransform,h=d.lineHeight,f=d.letterSpacing,_=this.props.attributes,v=_.paddingLeft,k=_.paddingRight,E=_.marginTop,j=_.marginBottom,x=_.marginLeft,T=_.marginRight,N=_.customTextColor,A=this.props.attributes,M=A.fontSize,I=A.fontSizeTablet,R=A.fontSizeMobile,D=A.align,V=A.textAlignment,F=A.paddingTop,H=A.paddingBottom,W=this.changeState,U={className:S()(a,(e={alignfull:"full"===D,alignwide:"wide"===D},c()(e,"has-custom-font-size",void 0!=M),c()(e,"".concat(I),I&&"fs-tablet-100"!=I?I:void 0),c()(e,"".concat(R),R&&"fs-mobile-100"!=R?R:void 0),e)),style:{fontSize:void 0!=M?M:void 0,marginBottom:j,marginTop:E}},G=S()("".concat("wp-block-getwid-advanced-heading","__content"),(t={"has-text-color":r.color},c()(t,r.class,r.class),c()(t,"has-background",i.color),c()(t,i.class,i.class),t)),q=this.state,Q=q.isLockedMargins,K=q.isLockedPaddings;return wp.element.createElement(B,null,m&&wp.element.createElement(C.a,{fonts:[{font:m,weights:[g]}]}),wp.element.createElement(P,null,wp.element.createElement(z,{value:V,onChange:function(e){s({textAlignment:e})}})),wp.element.createElement(y.a,l()({},o()({},this.props,{isLockedMargins:Q,isLockedPaddings:K,changeState:W}),{key:"inspector"})),wp.element.createElement("div",U,wp.element.createElement(L,{className:G,tagName:p,value:u,onChange:function(e){return s({content:e})},style:{textAlign:V,fontFamily:m?'"'.concat(m,'"'):"",fontWeight:g&&""!=g?g:void 0,fontStyle:"normal"!=b?b:void 0,textTransform:w,lineHeight:h,letterSpacing:f,paddingTop:F,paddingBottom:H,paddingLeft:v,paddingRight:k,marginLeft:x,marginRight:T,color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:N||void 0,backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:this.props.attributes.customBackgroundColor},placeholder:Object(O.__)("Write heading…","getwid")})))}}]),t}(M);t.a=N([R("backgroundColor",{textColor:"color"})])(D)},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(19)),f=n(17),_=n(63),v=n(14),y=n(1),k=(n.n(y),wp.element),C=k.Component,E=k.Fragment,O=wp.components,j=O.PanelBody,S=O.SelectControl,x=wp.blockEditor||wp.editor,T=x.InspectorControls,N=x.PanelColorSettings,A=function(e){function t(e){var n;return o()(this,t),n=d()(this,p()(t).apply(this,arguments)),n.changeState=n.changeState.bind(g()(n)),n.state={tabName:"general"},n}return w()(t,e),c()(t,[{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"render",value:function(){var e=this.state.tabName,t=this.changeState;return wp.element.createElement(T,{key:"inspector"},wp.element.createElement(h.a,{state:e,stateName:"tabName",onChangeTab:t,tabs:["general","style"]}),"general"===e&&wp.element.createElement(E,null,this.renderGeneralSettings()),"style"===e&&wp.element.createElement(E,null,this.renderStyleSettings()))}},{key:"renderGeneralSettings",value:function(){var e=this.props.attributes,t=e.fontFamily,n=e.fontWeight,a=e.fontStyle,l=e.textTransform,i=e.lineHeight,o=e.letterSpacing,r=this.props.setAttributes,c=this.props.attributes.titleTag;return wp.element.createElement(E,null,wp.element.createElement(j,{initialOpen:!0},wp.element.createElement(_.a,{label:Object(y.__)("Font Family","getwid"),value:t,onChangeFontFamily:function(e){r({fontFamily:e,fontWeight:"normal"})},valueWeight:n,onChangeFontWeight:function(e){r({fontWeight:e})}}),Object(v.a)(this),wp.element.createElement(S,{label:Object(y.__)("Font Style","getwid"),value:a,options:[{value:"normal",label:Object(y.__)("Normal","getwid")},{value:"italic",label:Object(y.__)("Italic","getwid")},{value:"inherit",label:Object(y.__)("Inherit","getwid")}],onChange:function(e){return r({fontStyle:e})}}),wp.element.createElement(S,{label:Object(y.__)("Text Transform","getwid"),value:l,options:[{value:"none",label:Object(y.__)("None","getwid")},{value:"capitalize",label:Object(y.__)("Capitalize","getwid")},{value:"lowercase",label:Object(y.__)("Lowercase","getwid")},{value:"uppercase",label:Object(y.__)("Uppercase","getwid")},{value:"inherit",label:Object(y.__)("Inherit","getwid")}],onChange:function(e){return r({textTransform:e})}}),wp.element.createElement(f.a,{label:Object(y.__)("Line Height","getwid"),value:i,onChange:function(e){r({lineHeight:e})}}),wp.element.createElement(f.a,{label:Object(y.__)("Letter Spacing","getwid"),value:o,allowNegative:!0,units:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"pt",value:"pt"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){r({letterSpacing:e})}})),wp.element.createElement(j,{title:Object(y.__)("Html Attributes","getwid"),initialOpen:!0},wp.element.createElement(S,{label:Object(y.__)("Title Tag","getwid"),value:c,options:[{value:"span",label:Object(y.__)("Span","getwid")},{value:"p",label:Object(y.__)("Paragraph","getwid")},{value:"h1",label:Object(y.__)("Heading 1","getwid")},{value:"h2",label:Object(y.__)("Heading 2","getwid")},{value:"h3",label:Object(y.__)("Heading 3","getwid")},{value:"h4",label:Object(y.__)("Heading 4","getwid")},{value:"h5",label:Object(y.__)("Heading 5","getwid")},{value:"h6",label:Object(y.__)("Heading 6","getwid")}],onChange:function(e){return r({titleTag:e})}})))}},{key:"renderStyleSettings",value:function(){var e=this.props,t=e.setBackgroundColor,n=e.setTextColor,a=e.backgroundColor,l=e.textColor;return wp.element.createElement(E,null,wp.element.createElement(N,{title:Object(y.__)("Colors","getwid"),initialOpen:!0,colorSettings:[{value:l.color,onChange:n,label:Object(y.__)("Text Color","getwid")},{value:a.color,onChange:t,label:Object(y.__)("Background Color","getwid")}]}),wp.element.createElement(j,{title:Object(y.__)("Padding","getwid"),initialOpen:!1},Object(v.e)(this)),wp.element.createElement(j,{title:Object(y.__)("Margin","getwid"),initialOpen:!1},Object(v.b)(this)))}}]),t}(C);t.a=A},function(e,t,n){e.exports=n(218)},function(e,t,n){var a=function(e){"use strict";function t(e,t,n,l){var i=t&&t.prototype instanceof a?t:a,o=Object.create(i.prototype),r=new p(l||[]);return o._invoke=c(e,n,r),o}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function a(){}function l(){}function i(){}function o(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function r(e){function t(a,l,i,o){var r=n(e[a],e,l);if("throw"!==r.type){var c=r.arg,s=c.value;return s&&"object"==typeof s&&h.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,o)},function(e){t("throw",e,i,o)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,o)})}o(r.arg)}function a(e,n){function a(){return new Promise(function(a,l){t(e,n,a,l)})}return l=l?l.then(a,a):a()}var l;this._invoke=a}function c(e,t,a){var l=k;return function(i,o){if(l===E)throw new Error("Generator is already running");if(l===O){if("throw"===i)throw o;return g()}for(a.method=i,a.arg=o;;){var r=a.delegate;if(r){var c=s(r,a);if(c){if(c===j)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===k)throw l=O,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=E;var d=n(e,t,a);if("normal"===d.type){if(l=a.done?O:C,d.arg===j)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(l=O,a.method="throw",a.arg=d.arg)}}}function s(e,t){var a=e.iterator[t.method];if(a===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,s(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var l=n(a,e.iterator,t.arg);if("throw"===l.type)return t.method="throw",t.arg=l.arg,t.delegate=null,j;var i=l.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,j):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function u(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(h.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return a.next=a}}return{next:g}}function g(){return{value:b,done:!0}}var b,w=Object.prototype,h=w.hasOwnProperty,f="function"==typeof Symbol?Symbol:{},_=f.iterator||"@@iterator",v=f.asyncIterator||"@@asyncIterator",y=f.toStringTag||"@@toStringTag";e.wrap=t;var k="suspendedStart",C="suspendedYield",E="executing",O="completed",j={},S={};S[_]=function(){return this};var x=Object.getPrototypeOf,T=x&&x(x(m([])));T&&T!==w&&h.call(T,_)&&(S=T);var N=i.prototype=a.prototype=Object.create(S);return l.prototype=N.constructor=i,i.constructor=l,i[y]=l.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,y in e||(e[y]="GeneratorFunction")),e.prototype=Object.create(N),e},e.awrap=function(e){return{__await:e}},o(r.prototype),r.prototype[v]=function(){return this},e.AsyncIterator=r,e.async=function(n,a,l,i){var o=new r(t(n,a,l,i));return e.isGeneratorFunction(a)?o:o.next().then(function(e){return e.done?e.value:o.next()})},o(N),N[y]="Generator",N[_]=function(){return this},N.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var a=t.pop();if(a in e)return n.value=a,n.done=!1,n}return n.done=!0,n}},e.values=m,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(u),!e)for(var t in this)"t"===t.charAt(0)&&h.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,a){return i.type="throw",i.arg=e,n.next=t,a&&(n.method="next",n.arg=b),!!a}if(this.done)throw e;for(var n=this,a=this.tryEntries.length-1;a>=0;--a){var l=this.tryEntries[a],i=l.completion;if("root"===l.tryLoc)return t("end");if(l.tryLoc<=this.prev){var o=h.call(l,"catchLoc"),r=h.call(l,"finallyLoc");if(o&&r){if(this.prev<l.catchLoc)return t(l.catchLoc,!0);if(this.prev<l.finallyLoc)return t(l.finallyLoc)}else if(o){if(this.prev<l.catchLoc)return t(l.catchLoc,!0)}else{if(!r)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return t(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&h.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var l=a;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var i=l?l.completion:{};return i.type=e,i.arg=t,l?(this.method="next",this.next=l.finallyLoc,j):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),u(n),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var l=a.arg;u(n)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),j}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},function(e,t){function n(e,t,n,a,l,i,o){try{var r=e[i](o),c=r.value}catch(e){return void n(e)}r.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise(function(l,i){function o(e){n(c,l,i,o,r,"next",e)}function r(e){n(c,l,i,o,r,"throw",e)}var c=e.apply(t,a);o(void 0)})}}e.exports=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(65)),w=(n.n(b),n(7)),h=n.n(w),f=wp.element.Component,_=wp.blockEditor||wp.editor,v=_.RichText,y=_.getColorClassName,k=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t,n=this.props,a=n.className,i=n.baseClass,o=this.props.attributes,r=o.paddingLeft,c=o.paddingRight,s=o.marginTop,d=o.marginBottom,u=o.marginLeft,p=this.props.attributes,m=p.marginRight,g=p.backgroundColor,b=p.textColor,w=p.customBackgroundColor,f=p.customTextColor,_=this.props.attributes,k=_.textTransform,C=_.lineHeight,E=_.letterSpacing,O=_.align,j=_.textAlignment,S=_.paddingTop,x=_.paddingBottom,T=this.props.attributes,N=T.content,A=T.titleTag,M=T.fontFamily,B=T.fontSize,I=T.fontSizeTablet,L=T.fontSizeMobile,P=T.fontWeight,z=T.fontStyle,R=y("color",b),D=y("background-color",g),V={className:h()(a,(e={alignfull:"full"==O,alignwide:"wide"==O},l()(e,"has-custom-font-size",void 0!=B),l()(e,"".concat(I),I&&"fs-tablet-100"!=I?I:void 0),l()(e,"".concat(L),L&&"fs-mobile-100"!=L?L:void 0),e)),style:{fontSize:void 0!=B?B:void 0,marginBottom:d,marginTop:s}},F=h()("".concat(i,"__content"),(t={"has-text-color":b||f},l()(t,R,R),l()(t,"has-background",g||w),l()(t,D,D),t));return wp.element.createElement("div",V,wp.element.createElement(v.Content,{className:F,tagName:A,value:N,style:{textAlign:j,fontFamily:M?'"'.concat(M,'"'):void 0,fontWeight:P&&""!=P?P:void 0,fontStyle:"normal"!=z?z:void 0,textTransform:k,lineHeight:C,letterSpacing:E,paddingTop:S,paddingBottom:x,paddingLeft:r,paddingRight:c,marginLeft:u,marginRight:m,color:void 0!==b?void 0:f,backgroundColor:g?void 0:w}}))}}]),t}(f);t.a=k},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(65)),w=(n.n(b),n(7)),h=n.n(w),f=wp.element.Component,_=wp.blockEditor||wp.editor,v=_.RichText,y=_.getColorClassName,k=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.content,a=t.titleTag,i=t.fontFamily,o=t.fontSize,r=t.fontWeight,c=t.fontStyle,s=t.textTransform,d=t.lineHeight,u=t.letterSpacing,p=t.align,m=t.textAlignment,g=t.paddingTop,b=t.paddingBottom,w=t.paddingLeft,f=t.paddingRight,_=t.marginTop,k=t.marginBottom,C=t.marginLeft,E=t.marginRight,O=t.backgroundColor,j=t.textColor,S=t.customBackgroundColor,x=t.customTextColor,T=t.className,N=y("color",j),A=y("background-color",O),M=h()(T,{alignfull:"full"===p,alignwide:"wide"===p}),B=h()("".concat("wp-block-getwid-advanced-heading","__content"),(e={"has-text-color":j||x},l()(e,N,N),l()(e,"has-background",O||S),l()(e,A,A),e));return wp.element.createElement("div",{className:M,style:{marginTop:_,marginBottom:k}},wp.element.createElement(v.Content,{className:B,tagName:a,value:n,style:{textAlign:m,fontFamily:i?'"'.concat(i,'"'):void 0,fontSize:o,fontWeight:r&&""!=r?r:void 0,fontStyle:c,textTransform:s,lineHeight:d,letterSpacing:u,paddingTop:g,paddingBottom:b,paddingLeft:w,paddingRight:f,marginLeft:C,marginRight:E,color:void 0!==j?void 0:x,backgroundColor:O?void 0:S}}))}}]),t}(f);t.a=k},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=(n(0),n(225)),c=n(228),s=n(229),d=n(230),u=n(13),p=n(66),m=(n.n(p),n(1)),g=(n.n(m),n(11)),b=(n.n(g),window),w=(b.jQuery,wp.data.select),h=wp.element.Fragment,f=wp.components,_=f.Toolbar,v=f.IconButton,y=wp.blocks,k=y.registerBlockType,C=y.createBlock,E=wp.blockEditor||wp.editor,O=E.BlockControls,j=E.AlignmentToolbar,S=(E.InnerBlocks,E.MediaPlaceholder),x=E.MediaUpload,T=E.MediaUploadCheck,N=["image"];k("getwid/image-box",o()({title:Object(m.__)("Image Box","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("rect",{y:"18",width:"24",height:"2"}),wp.element.createElement("rect",{y:"22",width:"17.6",height:"2"}),wp.element.createElement("path",{d:"M0,0v16h24V0H0z M22,2v6.59l-2.5-2.5L16,9.59l-6-6l-8,8V2H22z M2.41,14L10,6.41l6,6l3.5-3.5l2.5,2.5V14H2.41z"})),keywords:[Object(m.__)("feature","getwid"),Object(m.__)("service","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/image-box")},deprecated:[{attributes:d.a,save:s.a}],transforms:{to:[{type:"block",blocks:["core/image"],transform:function(e){var t=w("core/editor").getSelectedBlockClientId(),n=w("core/editor").getBlock(t).innerBlocks,a={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(a.heading=t.attributes.content),"core/paragraph"==t.name&&(a.text=t.attributes.content)}),C("core/image",{id:e.id,url:e.url,caption:a.heading?a.heading:a.text?a.text:""})}},{type:"block",blocks:["getwid/banner"],transform:function(e){var t=w("core/editor").getSelectedBlockClientId(),n=w("core/editor").getBlock(t).innerBlocks,a={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(a.heading=t.attributes.content),"core/paragraph"==t.name&&(a.text=t.attributes.content)}),C("getwid/banner",{id:e.id,url:e.url,title:a.heading,text:a.text})}},{type:"block",blocks:["getwid/video-popup"],transform:function(e){var t=w("core/editor").getSelectedBlockClientId(),n=w("core/editor").getBlock(t).innerBlocks,a={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(a.heading=t.attributes.content),"core/paragraph"==t.name&&(a.text=t.attributes.content)}),C("getwid/video-popup",{id:e.id,url:e.url,title:a.heading,text:a.text})}},{type:"block",blocks:["getwid/icon-box"],transform:function(e){var t=w("core/editor").getSelectedBlockClientId(),n=w("core/editor").getBlock(t).innerBlocks;return C("getwid/icon-box",e,n)}},{type:"block",blocks:["core/heading"],transform:function(e){var t,n=w("core/editor").getSelectedBlockClientId(),a=w("core/editor").getBlock(n).innerBlocks;return a.length&&jQuery.each(a,function(e,n){"core/heading"==n.name&&(t=n.attributes.content)}),C("core/heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t,n=w("core/editor").getSelectedBlockClientId(),a=w("core/editor").getBlock(n).innerBlocks;return a.length&&jQuery.each(a,function(e,n){"core/paragraph"==n.name&&(t=n.attributes.content)}),C("core/paragraph",{content:t})}}]},attributes:d.a},Object(u.b)("getwid/image-box",function(e){var t=e.attributes,n=t.textAlignment,a=t.id,i=t.url,c=t.layout,s=e.setAttributes,u=function(e){s(void 0!==e?{textAlignment:e}:{textAlignment:"center"})},p=[{icon:"align-left",title:Object(m.__)("Align Image Left","getwid"),isActive:"left"==c,onClick:function(){return s({layout:"left"==c?null:"left"})}},{icon:"align-right",title:Object(m.__)("Align Image Right","getwid"),isActive:"right"==c,onClick:function(){return s({layout:"right"==c?null:"right"})}}],b=function(e,t){if(!e)return void s({url:void 0,id:void 0});s({id:e.id,alt:e.alt,url:Object(g.get)(e,["sizes",t,"url"])||Object(g.get)(e,["media_details","sizes",t,"source_url"])||e.url})},w=function(t){var n=e.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(n=d.a.imageSize.default,s({imageSize:n})),b(t,n)},f=wp.element.createElement(h,null,!i&&wp.element.createElement(S,{icon:"format-image",className:"wp-block-getwid-image-box",labels:{title:Object(m.__)("Image Box","getwid")},onSelect:w,accept:"image/*",allowedTypes:N}),wp.element.createElement(O,null,!!i&&wp.element.createElement(h,null,wp.element.createElement(T,null,wp.element.createElement(_,null,wp.element.createElement(x,{onSelect:w,allowedTypes:N,value:a,render:function(e){var t=e.open;return wp.element.createElement(v,{className:"components-toolbar__control",label:Object(m.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))));return wp.element.createElement(h,null,f,wp.element.createElement(r.a,l()({},o()({setAttributes:s},e,{changeImageSize:b,onSelectMedia:w}),{key:"edit"})),wp.element.createElement(h,null,wp.element.createElement(O,null,wp.element.createElement(_,{controls:p})),wp.element.createElement(O,null,wp.element.createElement(j,{value:n,onChange:u}))))}),{save:c.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(7)),k=n.n(y),C=n(226),E=(n.n(C),n(66)),O=(n.n(E),n(227)),j=n(21),S=n(1),x=(n.n(S),window),T=x.jQuery,N=wp.compose.compose,A=wp.blockEditor||wp.editor,M=A.InnerBlocks,B=wp.data.withSelect,I=wp.element,L=I.Component,P=I.Fragment,z=[["core/heading",{level:3,placeholder:Object(S.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(S.__)("Write text…","getwid")}]],R="wp-block-getwid-image-box",D=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.state={isLockedMargins:!1},e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"render",value:function(){var e,t=this,n=this.props,a=n.attributes,i=(a.imageSize,a.id,a.url),r=a.alt,s=a.marginTop,d=a.marginBottom,u=a.marginLeft,p=a.marginRight,m=a.textAlignment,g=a.layout,b=a.imagePosition,w=a.link,h=a.hoverAnimation,f=a.mobileLayout,_=a.mobileAlignment,v=n.className,y=n.isSelected,C=n.setAttributes,E=n.changeImageSize,j=n.onSelectMedia,S={className:k()(v,(e={"getwid-animation":!!h},c()(e,"has-image-left","left"===g),c()(e,"has-image-right","right"===g),c()(e,"has-text-left","left"===m),c()(e,"has-text-center","center"===m),c()(e,"has-text-right","right"===m),c()(e,"is-selected",y),e),"has-mobile-layout-".concat(f),"has-mobile-alignment-".concat(_)),"data-animation":h||void 0,onMouseEnter:function(e){return t.onimageHoverIn()}},x=k()("".concat(R,"__image-container"),{"is-position-top":"top"===b,"is-position-middle":"middle"===b,"is-position-bottom":"bottom"===b}),T=i?wp.element.createElement("img",{src:i,alt:void 0!==r?r:null,className:"".concat(R,"__image")}):null,N={marginTop:s,marginBottom:d,marginLeft:u,marginRight:p},A={className:k()("".concat(R,"__image-wrapper"))},B=this.changeState,I=this.state.isLockedMargins;return wp.element.createElement(P,null,!!i&&wp.element.createElement(O.a,l()({},o()({setAttributes:C},this.props,{changeState:B,changeImageSize:E,isLockedMargins:I,onSelectMedia:j}),{key:"inspector"})),wp.element.createElement("div",S,wp.element.createElement("div",{style:N,className:x},w&&wp.element.createElement("a",l()({href:w},A,{onClick:function(e){return e.preventDefault()}}),T),!w&&wp.element.createElement("div",A,T)),wp.element.createElement("div",{className:"".concat(R,"__content")},wp.element.createElement(M,{template:z,templateInsertUpdatesSelection:!1,templateLock:!1}))))}},{key:"setupimageWrapper",value:function(){var e=this.props.clientId;this.imageWrapper=T("[data-block='".concat(e,"'] .wp-block-getwid-image-box__image-wrapper"))}},{key:"componentDidMount",value:function(){this.setupimageWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupimageWrapper()}},{key:"onimageHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(j.a)(this.imageWrapper,{animation:e})}}]),t}(L);t.a=N([B(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.id;if(void 0!==l)return{imgObj:l?a(l):null}})])(D)},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(19)),_=n(25),v=n(14),y=wp.element,k=y.Component,C=y.Fragment,E=wp.blockEditor||wp.editor,O=E.InspectorControls,j=E.URLInput,S=wp.components,x=S.PanelBody,T=S.BaseControl,N=S.SelectControl,A=S.ToggleControl,M=S.TextControl,B=S.RadioControl,I=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.onSetNewTab=e.onSetNewTab.bind(g()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(g()(e)),e.changeTab=e.changeTab.bind(g()(e)),e.state={tabName:"general"},e}return w()(t,e),c()(t,[{key:"changeTab",value:function(e,t){this.setState(l()({},e,t))}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,a=t;n&&!t?a="noreferrer noopener":n||"noreferrer noopener"!==t||(a=void 0),this.props.setAttributes({linkTarget:n,rel:a})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,a=e.imageSize,l=e.layout,i=e.imagePosition,o=e.link,r=e.linkTarget,c=e.rel,s=e.hoverAnimation,d=this.props,u=d.setAttributes,p=d.changeImageSize,m=d.onSelectMedia,g=d.imgObj,b=this.state.tabName,w=this.changeTab,y=function(e){void 0!==g&&(u({imageSize:e}),p(g,e))};return wp.element.createElement(O,null,wp.element.createElement(f.a,{state:b,stateName:"tabName",onChangeTab:w,tabs:["general","style","advanced"]}),"general"===b&&wp.element.createElement(C,null,wp.element.createElement(x,null,wp.element.createElement(B,{label:Object(h.__)("Layout","getwid"),selected:l||"",options:[{value:"",label:Object(h.__)("Default","getwid")},{value:"left",label:Object(h.__)("Align Image Left","getwid")},{value:"right",label:Object(h.__)("Align Image Right","getwid")}],onChange:function(e){return u({layout:e})}}),wp.element.createElement(_.a,{label:Object(h.__)("Image Hover Animation","getwid"),value:void 0!==s?s:"",onChange:function(e){return u({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]}),wp.element.createElement(v.d,{label:Object(h.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:m,onRemoveMedia:function(){return u({url:void 0,id:void 0})}}),g&&wp.element.createElement(N,{label:Object(h.__)("Image Size","getwid"),help:Object(h.__)("For images from Media Library only.","getwid"),value:a,onChange:y,options:Getwid.settings.image_sizes}))),"style"===b&&wp.element.createElement(C,null,wp.element.createElement(x,null,Object(v.b)(this),("left"==l||"right"==l)&&wp.element.createElement(N,{label:Object(h.__)("Image Vertical Alignment","getwid"),value:i,options:[{value:"top",label:Object(h.__)("Top","getwid")},{value:"middle",label:Object(h.__)("Middle","getwid")},{value:"bottom",label:Object(h.__)("Bottom","getwid")}],onChange:function(e){return u({imagePosition:e})}}))),"advanced"===b&&wp.element.createElement(C,null,wp.element.createElement(x,null,wp.element.createElement(T,{label:Object(h.__)("Image Link","getwid"),className:"getwid-editor-url-input"},wp.element.createElement(j,{autoFocus:!1,value:o,onChange:function(e){return u({link:e})}})),wp.element.createElement(T,null,wp.element.createElement(A,{label:Object(h.__)("Open in New Tab","getwid"),checked:"_blank"===r,onChange:this.onSetNewTab})),wp.element.createElement(M,{label:Object(h.__)("Link Rel","getwid"),value:c||"",onChange:this.onSetLinkRel}))))}}]),t}(k);t.a=I},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element.Component),k=wp.blockEditor||wp.editor,C=k.InnerBlocks,E="wp-block-getwid-image-box",O=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,a=t.url,i=t.alt,r=t.textAlignment,c=t.layout,s=t.imagePosition,d=t.link,u=t.hoverAnimation,p=t.marginTop,m=t.marginBottom,g=t.marginLeft,b=t.marginRight,w=t.mobileLayout,h=t.mobileAlignment,f=t.rel,v=t.linkTarget,y=t.className,k={className:_()(y,(e={"getwid-animation":!!u},o()(e,"has-image-left","left"===c),o()(e,"has-image-right","right"===c),o()(e,"has-text-left","left"===r),o()(e,"has-text-center","center"===r),o()(e,"has-text-right","right"===r),e),"has-mobile-layout-".concat(w),"has-mobile-alignment-".concat(h)),"data-animation":u||void 0},O=_()("".concat(E,"__image-container"),{"is-position-top":"top"===s,"is-position-middle":"middle"===s,"is-position-bottom":"bottom"===s}),j=a?wp.element.createElement("img",{src:a,alt:void 0!==i?i:null,className:"".concat(E,"__image")+(n?" wp-image-".concat(n):"")}):null,S={marginTop:p,marginBottom:m,marginLeft:g,marginRight:b},x={className:_()("".concat(E,"__image-wrapper"))};return wp.element.createElement("div",k,wp.element.createElement("div",{style:S,className:O},d&&wp.element.createElement("a",l()({href:d,target:v,rel:f},x),j),!d&&wp.element.createElement("div",x,j)),wp.element.createElement("div",{className:"".concat(E,"__content")},wp.element.createElement(C.Content,null)))}}]),t}(y);t.a=O},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element.Component),k=wp.blockEditor||wp.editor,C=k.InnerBlocks,E="wp-block-getwid-image-box",O=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,a=t.url,i=t.alt,r=t.textAlignment,c=t.layout,s=t.imagePosition,d=t.link,u=t.hoverAnimation,p=t.marginTop,m=t.marginBottom,g=t.marginLeft,b=t.marginRight,w=t.mobileLayout,h=t.mobileAlignment,f=t.rel,v=t.linkTarget,y=t.className,k={className:_()(y,(e={"getwid-animation":!!u},o()(e,"has-image-left","left"===c),o()(e,"has-image-right","right"===c),o()(e,"has-text-left","left"===r),o()(e,"has-text-center","center"===r),o()(e,"has-text-right","right"===r),e),"has-mobile-layout-".concat(w),"has-mobile-alignment-".concat(h)),"data-animation":u||void 0},O=_()("".concat(E,"__image-container"),{"is-position-top":"top"===s,"is-position-middle":"middle"===s,"is-position-bottom":"bottom"===s}),j=a?wp.element.createElement("img",{src:a,alt:void 0!==i?i:null,className:"".concat(E,"__image")+" wp-image-".concat(n)}):null,S={marginTop:p,marginBottom:m,marginLeft:g,marginRight:b},x={className:_()("".concat(E,"__image-wrapper"))};return wp.element.createElement("div",k,wp.element.createElement("div",{style:S,className:O},d&&wp.element.createElement("a",l()({href:d,target:v,rel:f},x),j),!d&&wp.element.createElement("div",x,j)),wp.element.createElement("div",{className:"".concat(E,"__content")},wp.element.createElement(C.Content,null)))}}]),t}(y);t.a=O},function(e,t,n){"use strict";var a={imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box__image-wrapper img",attribute:"src"},alt:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box__image-wrapper img",attribute:"alt"},textAlignment:{type:"string",default:"center"},layout:{type:"string"},imagePosition:{type:"string",default:"top"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"href"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box",attribute:"data-animation"},mobileLayout:{type:"string",default:"default"},mobileAlignment:{type:"string",default:"default"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"rel"}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(232)),o=n(235),r=n(237),c=n(13),s=n(1),d=(n.n(s),window),u=(d.jQuery,wp.blocks),p=u.registerBlockType,m=u.createBlock,g="getwid/advanced-spacer";p(g,l()({title:Object(s.__)("Advanced Spacer","getwid"),category:"getwid-blocks",supports:{inserter:!Getwid.disabled_blocks.includes(g)},icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),transforms:{to:[{type:"block",blocks:["core/spacer"],transform:function(e){return m("core/spacer",{height:parseInt(e.height,10)})}}]},attributes:r.a},Object(c.b)(g,i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(233)),g=n(7),b=n.n(g),w=n(234),h=(n.n(w),n(1)),f=(n.n(h),window),_=(f.jQuery,wp.element),v=_.Component,y=_.Fragment,k=wp.components.ResizableBox,C=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.height,a=t.isHideDesktop,l=t.isHideTablet,i=t.isHideMobile,o=e.isSelected,r=e.className,c=e.setAttributes,s=e.toggleSelection,d=/\d+(\w+)/g.exec(n)[1];return wp.element.createElement(y,null,wp.element.createElement(m.a,this.props),wp.element.createElement(k,{className:b()(r,{"is-selected":o,"getwid-hide-desktop":a,"getwid-hide-tablet":l,"getwid-hide-mobile":i}),size:{height:n},minHeight:"20",enable:{top:!1,right:!1,bottom:"px"==d,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,a,l){var i=parseInt(n,10)+l.height;c({height:i+d}),s(!0)},onResizeStart:function(){s(!1)}}))}}]),t}(v);t.a=C},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(17)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.InspectorControls,_=wp.components,v=_.PanelBody,y=_.CheckboxControl,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.height,a=t.isHideDesktop,l=t.isHideTablet,i=t.isHideMobile,o=e.setAttributes;return wp.element.createElement(f,null,wp.element.createElement(v,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(m.a,{label:Object(g.__)("Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){void 0!==e&&o({height:e})}}),wp.element.createElement(y,{label:Object(g.__)("Hide on Desktop","getwid"),checked:a,onChange:function(e){o({isHideDesktop:e})}}),wp.element.createElement(y,{label:Object(g.__)("Hide on Tablet","getwid"),checked:l,onChange:function(e){o({isHideTablet:e})}}),wp.element.createElement(y,{label:Object(g.__)("Hide on Mobile","getwid"),checked:i,onChange:function(e){o({isHideMobile:e})}})))}}]),t}(w);t.a=k},function(e,t){},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(7)),g=n.n(m),b=n(236),w=(n.n(b),n(1)),h=(n.n(w),window),f=(h.jQuery,wp.element.Component),_=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.height,n=e.isHideDesktop,a=e.isHideTablet,l=e.isHideMobile,i=e.className;return wp.element.createElement("div",{className:g()(i,{"getwid-hide-desktop":n,"getwid-hide-tablet":a,"getwid-hide-mobile":l}),style:{height:t},"aria-hidden":!0})}}]),t}(f);t.a=_},function(e,t){},function(e,t,n){"use strict";var a={height:{type:"string",default:"100px"},isHideDesktop:{type:"boolean",default:!1},isHideTablet:{type:"boolean",default:!1},isHideMobile:{type:"boolean",default:!1}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(239)),o=n(240),r=n(243),c=n(13),s=n(244),d=(n.n(s),n(1)),u=(n.n(d),window),p=(u.jQuery,wp.blocks.registerBlockType),m="getwid/social-links";p(m,l()({title:Object(d.__)("Social Links","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M18,16c-1,0-1.9,0.4-2.6,1l-6.6-3.8C8.9,12.8,9,12.4,9,12s-0.1-0.8-0.2-1.2L15.4,7C16.1,7.6,17,8,18,8c2.2,0,4-1.8,4-4 s-1.8-4-4-4s-4,1.8-4,4c0,0.5,0.1,0.9,0.3,1.4L7.8,9.1C7,8.4,6.1,8,5,8c-2.2,0-4,1.8-4,4s1.8,4,4,4c1.1,0,2-0.4,2.8-1.1l6.5,3.7\tC14.1,19.1,14,19.5,14,20c0,2.2,1.8,4,4,4s4-1.8,4-4S20.2,16,18,16z M18,2c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S16.9,2,18,2z M5,14c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S6.1,14,5,14z M18,22c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S19.1,22,18,22z"})),category:"getwid-blocks",keywords:[Object(d.__)("facebook","getwid"),Object(d.__)("twitter","getwid"),Object(d.__)("share","getwid")],supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(m)},attributes:i.a},Object(c.b)(m,o.a),{save:r.a}))},function(e,t,n){"use strict";var a={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},align:{type:"string"},textAlignmentDesktop:{type:"string"},textAlignmentTablet:{type:"string"},textAlignmentMobile:{type:"string"},icons:{type:"array",default:[{icon:"fab fa-facebook-f",link:"https://www.facebook.com/",linkTarget:void 0,rel:""},{icon:"fab fa-twitter",link:"https://twitter.com/",linkTarget:void 0,rel:""},{icon:"fab fa-instagram",link:"https://www.instagram.com/",linkTarget:void 0,rel:""},{icon:"fab fa-youtube",link:"https://www.youtube.com/",linkTarget:void 0,rel:""}],source:"query",selector:".wp-block-getwid-social-links__link",query:{icon:{source:"attribute",selector:"i",attribute:"class"},title:{type:"string",source:"html",selector:".wp-block-getwid-social-links__label"},link:{source:"attribute",attribute:"href",type:"string",default:"#"},linkTarget:{source:"attribute",attribute:"target"},rel:{source:"attribute",attribute:"rel"}}},iconsStyle:{type:"string",default:"default"},iconsSize:{type:"number"},iconsSpacing:{type:"string",default:"default"}};t.a=a},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(10),o=n.n(i),r=n(8),c=n.n(r),s=n(9),d=n.n(s),u=n(20),p=n.n(u),m=n(2),g=n.n(m),b=n(4),w=n.n(b),h=n(5),f=n.n(h),_=n(3),v=n.n(_),y=n(12),k=n.n(y),C=n(6),E=n.n(C),O=(n(0),n(7)),j=n.n(O),S=n(241),x=n(60),T=n.n(x),N=n(242),A=(n.n(N),n(18)),M=n(1),B=(n.n(M),window),I=B.jQuery,L=wp.element,P=L.Component,z=L.Fragment,R=wp.blockEditor||wp.editor,D=R.BlockControls,V=R.withColors,F=wp.compose.compose,H=wp.components,W=H.TextControl,U=H.Toolbar,G=H.IconButton,q=H.Popover,Q=H.BaseControl,K=H.ToggleControl,J="wp-block-getwid-social-links",Z=function(e){function t(){var e;return g()(this,t),e=f()(this,v()(t).apply(this,arguments)),e.changeState=e.changeState.bind(k()(e)),e.getState=e.getState.bind(k()(e)),e.updateArrValues=e.updateArrValues.bind(k()(e)),e.onDeleteIcon=e.onDeleteIcon.bind(k()(e)),e.moveIcon=e.moveIcon.bind(k()(e)),e.onMoveIconLeft=e.onMoveIconLeft.bind(k()(e)),e.onMoveIconRight=e.onMoveIconRight.bind(k()(e)),e.onDuplicate=e.onDuplicate.bind(k()(e)),e.insertIcon=e.insertIcon.bind(k()(e)),e.onInsertIconBefore=e.onInsertIconBefore.bind(k()(e)),e.onInsertIconAfter=e.onInsertIconAfter.bind(k()(e)),e.onSelectIcon=e.onSelectIcon.bind(k()(e)),e.activateIcon=e.activateIcon.bind(k()(e)),e.onAddIcon=e.onAddIcon.bind(k()(e)),e.icon_render=e.icon_render.bind(k()(e)),e.renderIconSettings=e.renderIconSettings.bind(k()(e)),e.icon_block=e.icon_block.bind(k()(e)),e.state={selectedIcon:void 0,openPopUp:!1},e}return E()(t,e),w()(t,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var a={};return Object.keys(t).forEach(function(l){var i;i=null!==t[l]&&"object"===p()(t[l])?e(t[l],n):n(t[l],l),a[l]=i}),a}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,a=n.attributes;(0,n.setAttributes)({icons:a.icons.map(function(n,a){return t===a&&(n=d()({},n,e)),n})})}},{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"getIcosDropdown",value:function(){var e=this.state.selectedIcon,t=this.props.attributes.icons;return[{icon:"table-col-before",title:Object(M.__)("Add Item Before","getwid"),isDisabled:null===e,onClick:this.onInsertIconBefore},{icon:"table-col-after",title:Object(M.__)("Add Item After","getwid"),isDisabled:null===e,onClick:this.onInsertIconAfter},{icon:"arrow-left-alt2",title:Object(M.__)("Move Item Left","getwid"),isDisabled:null===e||0===e||void 0==e,onClick:this.onMoveIconLeft},{icon:"arrow-right-alt2",title:Object(M.__)("Move Item Right","getwid"),isDisabled:null===e||e===t.length-1||void 0==e,onClick:this.onMoveIconRight},{icon:"admin-page",title:Object(M.__)("Duplicate Item","getwid"),isDisabled:null===e||void 0==e,onClick:this.onDuplicate},{icon:"trash",title:Object(M.__)("Delete Item","getwid"),isDisabled:null===e||void 0==e,onClick:this.onDeleteIcon}]}},{key:"renderIconSettings",value:function(e){var t=this,n=this.props.attributes.icons,a=this.updateArrValues;if(void 0!==n[e])return wp.element.createElement(z,null,wp.element.createElement("div",{class:"wp-block-getwid-social-links__popover-close"},wp.element.createElement(G,{icon:"no-alt",className:"alignright",onClick:function(e){e.preventDefault(),e.stopPropagation(),t.setState({openPopUp:!1})}})),wp.element.createElement(Q,{label:Object(M.__)("Icon","getwid")},wp.element.createElement(A.a,{value:n[e].icon,onChange:function(t){a({icon:t},e)}})),wp.element.createElement(W,{label:Object(M.__)("Link","getwid"),value:n[e].link,onChange:function(t){a({link:t},e)}}),wp.element.createElement(K,{label:Object(M.__)("Open in New Tab","getwid"),checked:"_blank"===n[e].linkTarget,onChange:function(t){var l=n[e].rel,i=t?"_blank":void 0,o=l;i&&!l?o="noreferrer noopener":i||"noreferrer noopener"!==l||(o=void 0),a({linkTarget:i,rel:o},e)}}),wp.element.createElement(W,{label:Object(M.__)("Link Rel","getwid"),value:n[e].rel||"",onChange:function(t){a({rel:t},e)}}))}},{key:"icon_block",value:function(e){var t,n=this.props,a=n.attributes.iconsStyle,l=(n.className,n.backgroundColor),i=n.textColor;return wp.element.createElement(z,null,wp.element.createElement("span",{className:j()("".concat(J,"__wrapper"),(t={"has-background":l.color&&"stacked"==a},c()(t,l.class,l.class&&"stacked"==a),c()(t,"has-text-color",i.color),c()(t,i.class,i.class),t)),style:{color:i.color?i.color:void 0,backgroundColor:"stacked"==a&&l.color?l.color:void 0}},wp.element.createElement("i",{className:e.icon})))}},{key:"icon_render",value:function(e,t){var n=(this.props.className,this.state),a=n.selectedIcon,l=n.openPopUp;return wp.element.createElement(z,null,a==t&&l&&wp.element.createElement(q,{className:"".concat(J,"__popover"),focusOnMount:"container",position:"bottom left"},this.renderIconSettings(a)),wp.element.createElement("a",{className:"".concat(J,"__link"),href:""!=e.link?e.link:"#",target:"_blank"==e.linkTarget?e.linkTarget:void 0,rel:e.rel?e.rel:void 0,onClick:function(e){e.preventDefault()}},this.icon_block(e)))}},{key:"render",value:function(){var e,t,n=this,a=this.props,l=a.attributes,i=(l.align,l.textAlignmentDesktop),r=l.textAlignmentTablet,s=l.textAlignmentMobile,u=l.icons,p=l.iconsStyle,m=l.iconsSize,g=l.iconsSpacing,b=a.className,w=(a.setAttributes,a.isSelected),h=(a.setBackgroundColor,a.setTextColor,a.backgroundColor,a.textColor,this.getState),f=this.changeState,_=this.updateArrValues,v=this.state.selectedIcon;return[wp.element.createElement(D,{key:"toolbar"},wp.element.createElement(U,{controls:this.getIcosDropdown()})),wp.element.createElement(S.a,o()({},d()({},this.props,{changeState:f},{getState:h},{updateArrValues:_}),{key:"inspector"})),wp.element.createElement("div",{className:j()(b,"has-".concat(g,"-spacing"),(e={},c()(e,"has-icons-stacked","stacked"===p),c()(e,"has-icons-framed","framed"===p),e)),key:"edit",style:{fontSize:m}},wp.element.createElement("ul",{className:j()("".concat(J,"__list"),(t={},c()(t,"getwid-justify-content-flex-start","left"===i),c()(t,"getwid-justify-content-center","center"===i),c()(t,"getwid-justify-content-flex-end","right"===i),c()(t,"getwid-justify-content-tablet-flex-start","left"===r),c()(t,"getwid-justify-content-tablet-center","center"===r),c()(t,"getwid-justify-content-tablet-flex-end","right"===r),c()(t,"getwid-justify-content-mobile-flex-start","left"===s),c()(t,"getwid-justify-content-mobile-center","center"===s),c()(t,"getwid-justify-content-mobile-flex-end","right"===s),t))},u.map(function(e,t){var a=j()("".concat(J,"__item"),{"icon-selected":v==t});return wp.element.createElement("li",{className:a,onClick:function(){n.onSelectIcon(t)}},n.icon_render(e,t))}),w&&wp.element.createElement("span",{className:"".concat(J,"__link ").concat(J,"__add-icon")},wp.element.createElement(G,{icon:"insert",onClick:this.onAddIcon,label:Object(M.__)("Add Icon","getwid")}))))]}},{key:"componentDidUpdate",value:function(e,t){var n=this,a=this.props,l=a.clientId,i=a.isSelected,o=this.state.selectedIcon;if(i&&null!=o){var r=I("[data-block='".concat(l,"']")),c=I(".".concat(J,"__popover .components-popover__content"));I(r).off(),I(document).off("keydown",".".concat(J,"__popover")),I(document).on("keydown",".".concat(J,"__popover"),function(e){"Delete"==e.key&&e.target==c[0]&&n.onDeleteIcon()}),I(r).on("keydown",function(e){"Delete"==e.key&&n.onDeleteIcon()})}i||"object"==p()(o)||this.setState({selectedIcon:null})}},{key:"activateIcon",value:function(e){this.setState({selectedIcon:e})}},{key:"onSelectIcon",value:function(e){this.state.selectedIcon;this.setState({selectedIcon:e,openPopUp:!0})}},{key:"onDeleteIcon",value:function(){var e=this.state.selectedIcon;if(null!==e){var t=this.props,n=t.attributes.icons;(0,t.setAttributes)({icons:n.filter(function(t,n){return n!==e})}),this.setState({selectedIcon:null})}}},{key:"onAddIcon",value:function(){var e=this.props.attributes.icons;this.insertIcon({index:e.length})}},{key:"onInsertIconBefore",value:function(){var e=this.state.selectedIcon;null!==e&&this.insertIcon({index:e})}},{key:"onInsertIconAfter",value:function(){var e=this.state.selectedIcon;null!==e&&this.insertIcon({index:e+1})}},{key:"onDuplicate",value:function(){var e=this.state.selectedIcon,t=this.props,n=t.attributes.icons,a=t.setAttributes;null!==e&&(a({icons:[].concat(l()(n.slice(0,e)),[n[e]],l()(n.slice(e)))}),this.activateIcon(e+1))}},{key:"insertIcon",value:function(e){var t=e.index,n=this.props,a=n.attributes.icons,i=n.setAttributes,o={icon:"fab fa-wordpress",link:"#",linkTarget:void 0,rel:""};i({icons:[].concat(l()(a.slice(0,t)),[o],l()(a.slice(t)))})}},{key:"onMoveIconLeft",value:function(){var e=this.state.selectedIcon;null!==e&&this.moveIcon({from:e,to:e-1})}},{key:"onMoveIconRight",value:function(){var e=this.state.selectedIcon;null!==e&&this.moveIcon({from:e,to:e+1})}},{key:"moveIcon",value:function(e){var t=e.from,n=e.to,a=this.props,l=a.attributes.icons;(0,a.setAttributes)({icons:T()(l,t,n)}),this.activateIcon(n)}}]),t}(P);t.a=F([V("backgroundColor",{textColor:"color"})])(Z)},function(e,t,n){"use strict";n.d(t,"a",function(){return x});var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(15)),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,k=wp.components,C=k.PanelBody,E=k.SelectControl,O=k.RadioControl,j=k.TextControl,S=k.TabPanel,x=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"renderResponsiveAlignmentTabs",value:function(e){var t=this.props.attributes,n=t.textAlignmentDesktop,a=t.textAlignmentTablet,l=t.textAlignmentMobile,i=this.props.setAttributes;switch(e.name){case"desktop":return wp.element.createElement(_,null,wp.element.createElement(O,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==n?n:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentDesktop:e})}}));case"tablet":return wp.element.createElement(_,null,wp.element.createElement(O,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==a?a:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentTablet:e})}}));case"mobile":return wp.element.createElement(_,null,wp.element.createElement(O,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==l?l:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentMobile:e})}}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,a=t.customTextColor,i=t.customBackgroundColor,o=t.setBackgroundColor,r=t.setTextColor,c=t.backgroundColor,s=t.textColor,d=this.props.attributes,u=d.iconsStyle,p=d.iconsSize,m=d.iconsSpacing,g="stacked"===u||"framed"===u;return wp.element.createElement(y,null,wp.element.createElement(C,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(S,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(b.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(b.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(b.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return e.renderResponsiveAlignmentTabs(t)}),wp.element.createElement(w.a,{colorSettings:[{title:Object(b.__)("Icon Color","getwid"),colors:{customColor:a,defaultColor:s},changeColor:r}].concat(l()(g&&"stacked"==u?[{title:Object(b.__)("Background Color","getwid"),colors:{customColor:i,defaultColor:c},changeColor:o}]:[]))}),wp.element.createElement(O,{label:Object(b.__)("Layout","getwid"),selected:void 0!==u?u:"default",options:[{value:"default",label:Object(b.__)("Icon","getwid")},{value:"stacked",label:Object(b.__)("Background","getwid")},{value:"framed",label:Object(b.__)("Outline","getwid")}],onChange:function(e){return n({iconsStyle:e})}}),wp.element.createElement(j,{type:"number",label:Object(b.__)("Icon Size","getwid"),value:p,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),n({iconsSize:e})},min:0,step:1}),wp.element.createElement(E,{label:Object(b.__)("Space between icons","getwid"),value:m,options:[{value:"none",label:Object(b.__)("None","getwid")},{value:"default",label:Object(b.__)("Default","getwid")},{value:"small",label:Object(b.__)("Small","getwid")},{value:"medium",label:Object(b.__)("Medium","getwid")},{value:"large",label:Object(b.__)("Large","getwid")}],onChange:function(e){return n({iconsSpacing:e})}})))}}]),t}(f)},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return S});var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(1),v=(n.n(_),window),y=(v.jQuery,wp.element),k=y.Component,C=y.Fragment,E=wp.blockEditor||wp.editor,O=E.getColorClassName,j="wp-block-getwid-social-links",S=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.icon_render=e.icon_render.bind(g()(e)),e.icon_block=e.icon_block.bind(g()(e)),e}return w()(t,e),c()(t,[{key:"icon_block",value:function(e){var t,n=this.props.attributes,a=n.iconsStyle,i=n.backgroundColor,o=n.textColor,r=n.customBackgroundColor,c=n.customTextColor,s=O("color",o),d=O("background-color",i);return wp.element.createElement(C,null,wp.element.createElement("span",{className:f()("".concat(j,"__wrapper"),(t={"has-text-color":o||c},l()(t,s,s),l()(t,"has-background",(i||r)&&"stacked"==a),l()(t,d,d&&"stacked"==a),t)),style:{color:c||void 0,backgroundColor:"stacked"==a?r||void 0:void 0}},wp.element.createElement("i",{className:e.icon})))}},{key:"icon_render",value:function(e,t){return wp.element.createElement(C,null,wp.element.createElement("a",{className:"".concat(j,"__link"),href:""!=e.link?e.link:"#",target:"_blank"==e.linkTarget?e.linkTarget:void 0,rel:e.rel?e.rel:void 0},this.icon_block(e)))}},{key:"render",value:function(){var e,t,n=this,a=this.props.attributes,i=a.textAlignmentDesktop,o=a.textAlignmentTablet,r=a.textAlignmentMobile,c=a.icons,s=a.iconsStyle,d=a.iconsSize,u=a.iconsSpacing,p=a.className;return wp.element.createElement("div",{className:f()(p,"has-".concat(u,"-spacing"),(e={},l()(e,"has-icons-stacked","stacked"===s),l()(e,"has-icons-framed","framed"===s),e)),style:{fontSize:d}},wp.element.createElement("ul",{className:f()("".concat(j,"__list"),(t={},l()(t,"getwid-justify-content-flex-start","left"===i),l()(t,"getwid-justify-content-center","center"===i),l()(t,"getwid-justify-content-flex-end","right"===i),l()(t,"getwid-justify-content-tablet-flex-start","left"===o),l()(t,"getwid-justify-content-tablet-center","center"===o),l()(t,"getwid-justify-content-tablet-flex-end","right"===o),l()(t,"getwid-justify-content-mobile-flex-start","left"===r),l()(t,"getwid-justify-content-mobile-center","center"===r),l()(t,"getwid-justify-content-mobile-flex-end","right"===r),t))},c.map(function(e,t){var a=f()("".concat(j,"__item"));return wp.element.createElement("li",{className:a},n.icon_render(e,t))})))}}]),t}(k)},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(246)),o=n(247),r=n(250),c=n(13),s=n(251),d=(n.n(s),n(1)),u=(n.n(d),window),p=(u.jQuery,wp.blocks),m=p.registerBlockType,g=p.createBlock,b=wp.data.select,w="getwid/button-group";m(w,l()({title:Object(d.__)("Button Group","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M22,3v6H2V3H22 M24,1H0v10h24V1L24,1z"}),wp.element.createElement("g",null,wp.element.createElement("rect",{x:"4",y:"5",width:"16",height:"2"})),wp.element.createElement("path",{d:"M22,15v6H2v-6H22 M24,13H0v10h24V13L24,13z"}),wp.element.createElement("g",null,wp.element.createElement("rect",{x:"4",y:"17",width:"16",height:"2"}))),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes(w)},transforms:{to:[{type:"block",blocks:["core/button"],transform:function(e){var t=b("core/editor").getSelectedBlockClientId(),n=b("core/editor").getBlock(t).innerBlocks,a=[];return n.length&&jQuery.each(n,function(e,t){""!=t.attributes.text&&a.push({text:t.attributes.text,url:t.attributes.url})}),a.map(function(e){var t=e.text,n=e.url;return g("core/button",{text:t,url:n})})}}]},attributes:i.a},Object(c.b)(w,o.a),{save:r.a}))},function(e,t,n){"use strict";var a={spacing:{type:"string",default:""},alignment:{type:"string",default:"left"},alignmentTablet:{type:"string",default:""},alignmentMobile:{type:"string",default:""},direction:{type:"string",default:"row"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},width:{type:"string",default:"auto"},widthTablet:{type:"string",default:"auto"},widthMobile:{type:"string",default:"auto"}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(248),v=n(249),y=(n.n(v),n(1)),k=(n.n(y),window),C=(k.jQuery,wp.element),E=C.Fragment,O=C.Component,j=wp.blockEditor||wp.editor,S=j.InnerBlocks,x=[["core/button",{text:Object(y.__)("Button","getwid")}],["core/button",{text:Object(y.__)("Button","getwid")}]],T=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=n.spacing,i=n.alignment,r=n.alignmentTablet,c=n.alignmentMobile,s=n.direction,d=n.directionTablet,u=n.directionMobile,p=n.width,m=n.widthTablet,g=n.widthMobile,b=(t.setAttributes,t.className),w=f()("".concat("wp-block-getwid-button-group","__wrapper"),(e={},o()(e,"has-spacing-".concat(a),""!==a),o()(e,"has-alignment-".concat(i),"left"!==i),o()(e,"has-alignment-tablet-".concat(r),""!==r),o()(e,"has-alignment-mobile-".concat(c),""!==c),o()(e,"has-direction-".concat(s),"row"!==s),o()(e,"has-direction-tablet-".concat(d),""!==d),o()(e,"has-direction-mobile-".concat(u),""!==u),o()(e,"has-width-".concat(p),"auto"!==p),o()(e,"has-width-tablet-".concat(m),"auto"!==m),o()(e,"has-width-mobile-".concat(g),"auto"!==g),e));return wp.element.createElement(E,null,wp.element.createElement(_.a,l()({},this.props,{key:"inspector"})),wp.element.createElement("div",{className:b,key:"edit"},wp.element.createElement("div",{className:w},wp.element.createElement(S,{template:x,allowedBlocks:["core/button"],templateInsertUpdatesSelection:!1}))))}}]),t}(O);t.a=T},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element),w=b.Component,h=b.Fragment,f=wp.blockEditor||wp.editor,_=f.InspectorControls,v=wp.components,y=v.PanelBody,k=v.SelectControl,C=v.TabPanel,E=(v.RadioControl,function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacing,a=t.alignment,l=t.alignmentTablet,i=t.alignmentMobile,o=t.direction,r=t.directionTablet,c=t.directionMobile,s=t.width,d=t.widthTablet,u=t.widthMobile,p=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(y,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(m.__)("Horizontal space between buttons","getwid"),value:void 0!==n?n:"",onChange:function(e){return p({spacing:e})},options:[{value:"",label:Object(m.__)("Default","getwid")},{value:"small",label:Object(m.__)("Small","getwid")},{value:"medium",label:Object(m.__)("Medium","getwid")},{value:"normal",label:Object(m.__)("Normal","getwid")},{value:"large",label:Object(m.__)("Large","getwid")},{value:"none",label:Object(m.__)("None","getwid")}]}),wp.element.createElement(C,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(m.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(m.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(m.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(h,null,wp.element.createElement(k,{label:Object(m.__)("Horizontal Alignment","getwid"),value:a,onChange:function(e){return p({alignment:e})},options:[{value:"left",label:Object(m.__)("Left","getwid")},{value:"center",label:Object(m.__)("Center","getwid")},{value:"right",label:Object(m.__)("Right","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Direction","getwid"),value:o,onChange:function(e){return p({direction:e})},options:[{value:"row",label:Object(m.__)("Horizontal","getwid")},{value:"column",label:Object(m.__)("Vertical","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Button Width","getwid"),value:s,onChange:function(e){return p({width:e})},options:[{value:"auto",label:Object(m.__)("Auto","getwid")},{value:"100",label:Object(m.__)("100%","getwid")},{value:"50",label:Object(m.__)("50%","getwid")},{value:"33",label:Object(m.__)("33%","getwid")},{value:"25",label:Object(m.__)("25%","getwid")},{value:"20",label:Object(m.__)("20%","getwid")}]}));case"tablet":return wp.element.createElement(h,null,wp.element.createElement(k,{label:Object(m.__)("Horizontal Alignment","getwid"),value:l,onChange:function(e){return p({alignmentTablet:e})},options:[{value:"",label:Object(m.__)("Default","getwid")},{value:"left",label:Object(m.__)("Left","getwid")},{value:"center",label:Object(m.__)("Center","getwid")},{value:"right",label:Object(m.__)("Right","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Direction","getwid"),value:r,onChange:function(e){return p({directionTablet:e})},options:[{value:"",label:Object(m.__)("Default","getwid")},{value:"row",label:Object(m.__)("Horizontal","getwid")},{value:"column",label:Object(m.__)("Vertical","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Button Width","getwid"),value:d,onChange:function(e){return p({widthTablet:e})},options:[{value:"auto",label:Object(m.__)("Auto","getwid")},{value:"100",label:Object(m.__)("100%","getwid")},{value:"50",label:Object(m.__)("50%","getwid")},{value:"33",label:Object(m.__)("33%","getwid")},{value:"25",label:Object(m.__)("25%","getwid")},{value:"20",label:Object(m.__)("20%","getwid")}]}));case"mobile":return wp.element.createElement(h,null,wp.element.createElement(k,{label:Object(m.__)("Horizontal Alignment","getwid"),value:i,onChange:function(e){return p({alignmentMobile:e})},options:[{value:"",label:Object(m.__)("Default","getwid")},{value:"left",label:Object(m.__)("Left","getwid")},{value:"center",label:Object(m.__)("Center","getwid")},{value:"right",label:Object(m.__)("Right","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Direction","getwid"),value:c,onChange:function(e){return p({directionMobile:e})},options:[{value:"",label:Object(m.__)("Default","getwid")},{value:"row",label:Object(m.__)("Horizontal","getwid")},{value:"column",label:Object(m.__)("Vertical","getwid")}]}),wp.element.createElement(k,{label:Object(m.__)("Button Width","getwid"),value:u,onChange:function(e){return p({widthMobile:e})},options:[{value:"auto",label:Object(m.__)("Auto","getwid")},{value:"100",label:Object(m.__)("100%","getwid")},{value:"50",label:Object(m.__)("50%","getwid")},{value:"33",label:Object(m.__)("33%","getwid")},{value:"25",label:Object(m.__)("25%","getwid")},{value:"20",label:Object(m.__)("20%","getwid")}]}))}})))}}]),t}(w))},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element.Component,f=wp.blockEditor||wp.editor,_=f.InnerBlocks,v=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.spacing,a=t.alignment,i=t.alignmentTablet,o=t.alignmentMobile,r=t.direction,c=t.directionTablet,s=t.directionMobile,d=t.width,u=t.widthTablet,p=t.widthMobile,m=t.className,g=w()("".concat("wp-block-getwid-button-group","__wrapper"),(e={},l()(e,"has-spacing-".concat(n),""!==n),l()(e,"has-alignment-".concat(a),"left"!==a),l()(e,"has-alignment-tablet-".concat(i),""!==i),l()(e,"has-alignment-mobile-".concat(o),""!==o),l()(e,"has-direction-".concat(r),"row"!==r),l()(e,"has-direction-tablet-".concat(c),""!==c),l()(e,"has-direction-mobile-".concat(s),""!==s),l()(e,"has-width-".concat(d),"auto"!==d),l()(e,"has-width-tablet-".concat(u),"auto"!==u),l()(e,"has-width-mobile-".concat(p),"auto"!==p),e));return wp.element.createElement("div",{className:m},wp.element.createElement("div",{className:g},wp.element.createElement(_.Content,null)))}}]),t}(h);t.a=v},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(9),o=n.n(i),r=(n(0),n(253)),c=n(256),s=n(257),d=n(258),u=n(13),p=n(259),m=(n.n(p),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.blocks),w=b.registerBlockType,h=b.createBlock,f="getwid/testimonial";w(f,o()({title:Object(m.__)("Testimonial","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M22,2v15h-4h-0.7l-0.6,0.5L12,21.4l-4.7-3.9L6.7,17H6H2V2H22 M24,0H0v19h6l6,5l6-5h6V0L24,0z"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"6,6 6,11 8,11 8,14 9.5,12.5 11,11 11,6 \t"})),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"13,6 13,11 15,11 15,14 16.5,12.5 18,11 18,6 \t"}))),category:"getwid-blocks",keywords:[Object(m.__)("review","getwid"),Object(m.__)("feedback","getwid")],deprecated:[{attributes:d.a,save:s.a}],supports:{inserter:!Getwid.disabled_blocks.includes(f)},attributes:d.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("getwid/testimonial",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/price-list"],transform:function(e){var t;return h("getwid/price-list",(t={title:e.title,description:e.subtitle},l()(t,"title",e.content),l()(t,"id",e.imgId),l()(t,"url",e.imgUrl),t))}},{type:"block",blocks:["getwid/price-box"],transform:function(e){return h("getwid/price-box",{title:e.title})}}]}},Object(u.b)(f,r.a),{save:c.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(254)),k=(n.n(y),n(7)),C=n.n(k),E=n(255),O=n(1),j=(n.n(O),window),S=(j.jQuery,wp.element),x=S.Fragment,T=S.Component,N=wp.blockEditor||wp.editor,A=N.BlockControls,M=N.MediaPlaceholder,B=N.MediaUpload,I=N.MediaUploadCheck,L=N.RichText,P=wp.components,z=P.Toolbar,R=P.IconButton,D="wp-block-getwid-testimonial",V=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.onSelectMedia=e.onSelectMedia.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.title,a=t.subtitle,i=t.content,r=t.imgId,s=t.imgUrl,d=t.imgAlt,u=e.className,p=e.setAttributes,m=this.onSelectMedia,g=C()(u,c()({},"has-image",void 0!==s));return wp.element.createElement(x,null,wp.element.createElement(A,{key:"toolbar"},!!s&&wp.element.createElement(x,null,wp.element.createElement(I,null,wp.element.createElement(z,null,wp.element.createElement(B,{onSelect:this.onSelectMedia,allowedTypes:["image"],value:r,render:function(e){var t=e.open;return wp.element.createElement(R,{className:"components-toolbar__control",label:Object(O.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),wp.element.createElement(E.a,l()({},o()({},this.props,{onSelectMedia:m}),{key:"inspector"})),wp.element.createElement("div",{className:g,key:"edit"},!s&&wp.element.createElement(M,{icon:"format-image",labels:{title:Object(O.__)("Testimonial","getwid")},onSelect:this.onSelectMedia,accept:"image/*",allowedTypes:["image"]}),wp.element.createElement("div",{className:"".concat(D,"__wrapper")},wp.element.createElement("div",{className:"".concat(D,"__content-wrapper")},wp.element.createElement(L,{tagName:"p",className:"".concat(D,"__content"),placeholder:Object(O.__)("Write text…","getwid"),value:i,onChange:function(e){return p({content:e})},formattingControls:["bold","italic","strikethrough","link"]})),wp.element.createElement("div",{className:"".concat(D,"__header")},s&&wp.element.createElement("div",{className:"".concat(D,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(D,"__image")},wp.element.createElement("img",{src:s,alt:d,className:r?"wp-image-".concat(r):null}))),wp.element.createElement("div",{className:"".concat(D,"__heading")},wp.element.createElement(L,{tagName:"span",className:"".concat(D,"__title"),placeholder:Object(O.__)("Write heading…","getwid"),value:n,onChange:function(e){return p({title:e})}}),wp.element.createElement(L,{tagName:"span",className:"".concat(D,"__subtitle"),placeholder:Object(O.__)("Write subtitle…","getwid"),value:a,onChange:function(e){return p({subtitle:e})}}))))))}},{key:"onSelectMedia",value:function(e){this.props.setAttributes({imgId:e.id,imgUrl:void 0!==e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url,imgAlt:e.alt})}}]),t}(T);t.a=V},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components.PanelBody,_=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.imgId,n=e.imgUrl,a=this.props,l=a.setAttributes,i=a.onSelectMedia;return wp.element.createElement(h,null,wp.element.createElement(f,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(g.d,{label:Object(m.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:i,onRemoveMedia:function(){return l({imgUrl:void 0,imgId:void 0})}})))}}]),t}(b)},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element.Component,f=wp.blockEditor||wp.editor,_=f.RichText,v="wp-block-getwid-testimonial",y=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.subtitle,a=e.content,i=e.imgId,o=e.imgUrl,r=e.imgAlt,c=e.className,s=w()(c,l()({},"has-image",void 0!==o));return wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:"".concat(v,"__wrapper")},!_.isEmpty(a)&&wp.element.createElement("div",{className:"".concat(v,"__content-wrapper")},wp.element.createElement(_.Content,{tagName:"p",value:a,className:"".concat(v,"__content")})),wp.element.createElement("div",{className:"".concat(v,"__header")},o&&wp.element.createElement("div",{className:"".concat(v,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(v,"__image")},wp.element.createElement("img",{src:o,alt:r,className:i?"wp-image-".concat(i):void 0}))),!_.isEmpty(t)&&!_.isEmpty(n)&&wp.element.createElement("div",{className:"".concat(v,"__heading")},!_.isEmpty(t)&&wp.element.createElement(_.Content,{tagName:"span",value:t,className:"".concat(v,"__title")}),!_.isEmpty(n)&&wp.element.createElement(_.Content,{tagName:"span",value:n,className:"".concat(v,"__subtitle")})))))}}]),t}(h);t.a=y},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element.Component,f=wp.blockEditor||wp.editor,_=f.RichText,v="wp-block-getwid-testimonial",y=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.subtitle,a=e.content,i=e.imgId,o=e.imgUrl,r=e.imgAlt,c=e.className,s=w()(c,l()({},"has-image",void 0!==o));return wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:"".concat(v,"__wrapper")},!_.isEmpty(a)&&wp.element.createElement("div",{className:"".concat(v,"__content-wrapper")},wp.element.createElement(_.Content,{tagName:"p",value:a,className:"".concat(v,"__content")})),wp.element.createElement("div",{className:"".concat(v,"__header")},o&&wp.element.createElement("div",{className:"".concat(v,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(v,"__image")},wp.element.createElement("img",{src:o,alt:r,className:i?"wp-image-".concat(i):null}))),!_.isEmpty(t)&&!_.isEmpty(n)&&wp.element.createElement("div",{className:"".concat(v,"__heading")},!_.isEmpty(t)&&wp.element.createElement(_.Content,{tagName:"span",value:t,className:"".concat(v,"__title")}),!_.isEmpty(n)&&wp.element.createElement(_.Content,{tagName:"span",value:n,className:"".concat(v,"__subtitle")})))))}}]),t}(h);t.a=y},function(e,t,n){"use strict";var a={title:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__title"},subtitle:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__subtitle"},content:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__content"},imgId:{type:"number"},imgUrl:{type:"string",source:"attribute",attribute:"src",selector:".wp-block-getwid-testimonial__image img"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:".wp-block-getwid-testimonial__image img"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(261)),o=n(264),r=n(265),c=n(67),s=n(13),d=n(266),u=(n.n(d),n(1)),p=(n.n(u),window),m=(p.jQuery,wp.blocks),g=m.registerBlockType,b=m.createBlock;g("getwid/person",l()({title:Object(u.__)("Person","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.7,12.7C17.1,11.6,18,9.9,18,8c0-3.3-2.6-6-6-6S6,4.6,6,8c0,1.9,0.9,3.7,2.3,4.7C4.6,14.2,2,17.8,2,22h20\r C22,17.8,19.4,14.2,15.7,12.7z M12,4c2.2,0,4,1.7,4,4c0,2.2-1.7,4-4,4s-4-1.7-4-4C8,5.7,9.8,4,12,4z M12,14c3.7,0,6.9,2.6,7.7,6H4.3\tC5.1,16.6,8.3,14,12,14z"})),category:"getwid-blocks",keywords:[Object(u.__)("team","getwid"),Object(u.__)("member","getwid")],deprecated:[{attributes:c.a,save:r.a}],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/person")},attributes:c.a,transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return b("getwid/person",{id:e.imgId,url:e.imgUrl,content:e.caption})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){return b("core/image",{id:e.imgId,url:e.imgUrl,caption:e.content})}}]}},Object(s.b)("getwid/person",i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(11),v=(n.n(_),n(262)),y=n(67),k=n(263),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Fragment,j=E.Component,S=wp.components,x=S.Toolbar,T=S.IconButton,N=wp.blockEditor||wp.editor,A=N.InnerBlocks,M=N.BlockControls,B=N.MediaPlaceholder,I=N.MediaUpload,L=N.MediaUploadCheck,P=N.RichText,z=wp.compose.compose,R=wp.data.withSelect,D=["getwid/social-links"],V=[["getwid/social-links",{textAlignmentDesktop:"center"}]],F="wp-block-getwid-person",H=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.imageCrop,a=t.title,i=t.subtitle,r=t.content,c=t.imgId,s=t.imgUrl,d=t.imgAlt,u=this.props,p=u.className,m=u.setAttributes,g=function(e,t){if(!e)return void m({imgId:void 0,imgUrl:void 0});var n=Object(_.get)(e,["sizes",t,"url"])||Object(_.get)(e,["media_details","sizes",t,"source_url"])||e.url;m({imgId:e.id,imgUrl:void 0!==n?n:s})},b=function(t){var n=e.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(n=y.a.imageSize.default,m({imageSize:n})),g(t,n)};return wp.element.createElement(O,null,wp.element.createElement(M,{key:"toolbar"},!!s&&wp.element.createElement(O,null,wp.element.createElement(L,null,wp.element.createElement(x,null,wp.element.createElement(I,{onSelect:b,allowedTypes:["image"],value:c,render:function(e){var t=e.open;return wp.element.createElement(T,{className:"components-toolbar__control",label:Object(C.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),wp.element.createElement("div",{className:f()(p,n?"is-image-cropped":null),key:"edit"},!s&&wp.element.createElement(B,{icon:"format-image",labels:{title:Object(C.__)("Person","getwid")},onSelect:b,accept:"image/*",allowedTypes:["image"]}),s&&wp.element.createElement(O,null,wp.element.createElement(v.a,l()({},o()({},this.props,{changeImageSize:g},{onSelectMedia:b}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(F,"__image")},wp.element.createElement("img",{src:s,alt:d,className:c?"wp-image-".concat(c):null})),wp.element.createElement("div",{className:"".concat(F,"__content-wrapper")},wp.element.createElement("div",{className:"editor-testimonial__title-wrapper"},wp.element.createElement(P,{tagName:"span",className:"".concat(F,"__title"),placeholder:Object(C.__)("Write heading…","getwid"),value:a,onChange:function(e){return m({title:e})}})),wp.element.createElement("div",{className:"editor-testimonial__subtitle-wrapper"},wp.element.createElement(P,{tagName:"span",className:"".concat(F,"__subtitle"),placeholder:Object(C.__)("Write subtitle…","getwid "),value:i,onChange:function(e){return m({subtitle:e})}})),wp.element.createElement("div",{className:"editor-testimonial__content-wrapper"},wp.element.createElement(P,{tagName:"p",className:"".concat(F,"__content"),placeholder:Object(C.__)("Write text…","getwid"),value:r,onChange:function(e){return m({content:e})},formattingControls:["bold","italic","strikethrough","link"]})),wp.element.createElement("div",{className:"editor-testimonial__social-links-wrapper"},wp.element.createElement(A,{template:V,templateLock:"all",templateInsertUpdatesSelection:!1,allowedBlocks:D}))))))}}]),t}(j);t.a=z([R(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.imgId;if(void 0!==l)return{imgObj:l?a(l):null}})])(H)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components,_=f.PanelBody,v=f.SelectControl,y=f.ToggleControl,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.imageSize,n=e.imageCrop,a=e.imgId,l=e.imgUrl,i=this.props,o=i.setAttributes,r=i.changeImageSize,c=i.onSelectMedia,s=i.imgObj,d=function(e){void 0!==s&&(o({imageSize:e}),r(s,e))};return wp.element.createElement(h,null,wp.element.createElement(_,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(g.d,{label:Object(m.__)("Image","getwid"),removeButton:!1,url:l,id:a,onSelectMedia:c,onRemoveMedia:function(){return o({imgUrl:void 0,imgId:void 0})}}),s&&wp.element.createElement(v,{label:Object(m.__)("Image Size","getwid"),help:Object(m.__)("For images from Media Library only.","getwid"),value:t,onChange:d,options:Getwid.settings.image_sizes}),wp.element.createElement(y,{label:Object(m.__)("Crop Image","getwid"),checked:n,onChange:function(){o({imageCrop:!n})}})))}}]),t}(b);t.a=k},function(e,t){},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(7)),g=n.n(m),b=wp.element,w=b.Component,h=b.Fragment,f=wp.blockEditor||wp.editor,_=f.RichText,v=f.InnerBlocks,y="wp-block-getwid-person",k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=(e.imageSize,e.imageCrop),n=e.title,a=e.subtitle,l=e.content,i=e.imgId,o=e.imgUrl,r=e.imgAlt,c=e.className;return wp.element.createElement("div",{className:g()(c,t?"is-image-cropped":null)},o&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(y,"__image")},wp.element.createElement("img",{src:o,alt:r,className:i?"wp-image-".concat(i):void 0})),wp.element.createElement("div",{className:"".concat(y,"__content-wrapper")},!_.isEmpty(n)&&wp.element.createElement(_.Content,{tagName:"span",value:n,className:"".concat(y,"__title")}),!_.isEmpty(a)&&wp.element.createElement(_.Content,{tagName:"span",value:a,className:"".concat(y,"__subtitle")}),!_.isEmpty(l)&&wp.element.createElement(_.Content,{tagName:"p",value:l,className:"".concat(y,"__content")}),wp.element.createElement(v.Content,null))))}}]),t}(w);t.a=k},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(7)),g=n.n(m),b=wp.element,w=b.Component,h=b.Fragment,f=wp.blockEditor||wp.editor,_=f.RichText,v=f.InnerBlocks,y="wp-block-getwid-person",k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes,t=(e.imageSize,e.imageCrop),n=e.title,a=e.subtitle,l=e.content,i=e.imgId,o=e.imgUrl,r=e.imgAlt,c=e.className;return wp.element.createElement("div",{className:g()(c,t?"is-image-cropped":null)},o&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(y,"__image")},wp.element.createElement("img",{src:o,alt:r,className:i?"wp-image-".concat(i):null})),wp.element.createElement("div",{className:"".concat(y,"__content-wrapper")},!_.isEmpty(n)&&wp.element.createElement(_.Content,{tagName:"span",value:n,className:"".concat(y,"__title")}),!_.isEmpty(a)&&wp.element.createElement(_.Content,{tagName:"span",value:a,className:"".concat(y,"__subtitle")}),!_.isEmpty(l)&&wp.element.createElement(_.Content,{tagName:"p",value:l,className:"".concat(y,"__content")}),wp.element.createElement(v.Content,null))))}}]),t}(w);t.a=k},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(68)),o=n(268),r=n(13),c=n(1),s=(n.n(c),window),d=(s.jQuery,wp.blocks.registerBlockType);d("getwid/instagram",l()({title:Object(c.__)("Instagram","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("path",{d:"M17.11,2C19.81,2,22,4.19,22,6.89v10.22c0,2.7-2.19,4.89-4.89,4.89H6.89C4.19,22,2,19.81,2,17.11V6.89C2,4.19,4.19,2,6.89,2 H17.11 M17.11,0H6.89C3.09,0,0,3.09,0,6.89v10.22C0,20.91,3.09,24,6.89,24h10.22c3.81,0,6.89-3.09,6.89-6.89V6.89 C24,3.09,20.91,0,17.11,0L17.11,0z"}),wp.element.createElement("path",{d:"M18.5,4L18.5,4C19.33,4,20,4.67,20,5.5v0C20,6.33,19.33,7,18.5,7h0C17.67,7,17,6.33,17,5.5v0C17,4.67,17.67,4,18.5,4z"}),wp.element.createElement("path",{d:"M12,8c2.21,0,4,1.79,4,4s-1.79,4-4,4s-4-1.79-4-4S9.79,8,12,8 M12,6c-3.31,0-6,2.69-6,6s2.69,6,6,6s6-2.69,6-6S15.31,6,12,6 L12,6z"})),category:"getwid-blocks",keywords:[],attributes:i.a,supports:{inserter:!Getwid.disabled_blocks.includes("getwid/instagram")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(r.b)("getwid/instagram",o.a),{save:function(){return null}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(269)),k=n(270),C=(n.n(k),n(271)),E=(n.n(C),n(1)),O=(n.n(E),window),j=(O.jQuery,wp.element),S=j.Component,x=j.Fragment,T=wp.blockEditor||wp.editor,N=T.BlockControls,A=T.BlockAlignmentToolbar,M=wp.components,B=M.ServerSideRender,I=M.Button,L=M.Disabled,P=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e.state={checkToken:!1,getTokenURL:"https://instagram.com/oauth/authorize/?client_id=4a65e04032894be69e06239a6d620d69&redirect_uri=https://api.getmotopress.com/get_instagram_token.php&response_type=code&state="+Getwid.options_writing_url+"&hl=en"},e}return v()(t,e),p()(t,[{key:"manageInstagramToken",value:function(e,t){e.preventDefault();var n=this.changeState,a={action:"get_instagram_token",data:"",option:t};jQuery.post(Getwid.ajax_url,a,function(e){""!=e.data&&(Getwid.settings.instagram_token=e.data,n("checkToken",!0))})}},{key:"enterInstagramTokenForm",value:function(){var e=this,t=this.state.getTokenURL;return wp.element.createElement("form",{className:"".concat(this.props.className,"__key-form"),onSubmit:function(t){t.preventDefault(),e.manageInstagramToken(t,"get")}},wp.element.createElement("span",{className:"form-title"},Object(E.__)("Connect Instagram Account","getwid")),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement("a",{href:t,target:"_blank",className:"components-button is-button is-primary getwid-instagram-auth-button"},Object(E.__)("Connect Instagram Account","getwid")),wp.element.createElement(I,{isDefault:!0,type:"submit"},Object(E.__)("Update","getwid"))),wp.element.createElement("span",{className:"form-description"},Object(E.__)("Click Connect Instagram Account and authorize the app in a new tab to receive access token. Then return to this tab and click Update. You can revoke the granted access any time in your Instagram profile settings.","getwid")))}},{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){if(""==Getwid.settings.instagram_token)return this.enterInstagramTokenForm();var e=this.props,t=e.attributes.align,n=e.setAttributes,a=this.changeState,i=this.getState;return wp.element.createElement(x,null,wp.element.createElement(N,null,wp.element.createElement(A,{value:t,controls:["wide","full"],onChange:function(e){return n({align:e})}})),wp.element.createElement(y.a,l()({},o()({},this.props,{changeState:a},{getState:i}),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(B,{block:"getwid/instagram",attributes:this.props.attributes})))}}]),t}(S);t.a=P},function(e,t,n){"use strict";var a=n(30),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(68)),w=n(1),h=(n.n(w),window),f=(h.jQuery,wp.element),_=f.Component,v=(f.Fragment,wp.blockEditor||wp.editor),y=v.InspectorControls,k=wp.components,C=(k.Button,k.BaseControl,k.ButtonGroup,k.PanelBody),E=k.RangeControl,O=k.ToggleControl,j=k.SelectControl,S=(k.Modal,k.TextControl,k.TextareaControl,k.ExternalLink,k.RadioControl,k.Notice,function(e){function t(e){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.photoCount,a=t.gridColumns,i=t.showLikes,o=t.showComments,r=t.spacing,c=(e.changeState,e.getState,e.setAttributes);e.className;return wp.element.createElement(y,{key:"inspector"},wp.element.createElement(C,{title:Object(w.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(E,{label:Object(w.__)("Number of items","getwid"),value:n,onChange:function(e){void 0===e&&(e=b.a.photoCount.default),c({photoCount:e})},allowReset:!0,min:1,max:100,step:1}),wp.element.createElement(E,{label:Object(w.__)("Columns","getwid"),value:a,onChange:function(e){void 0===e&&(l()("photoCount"),n=b.a.gridColumns.default),c({gridColumns:e})},allowReset:!0,min:1,max:6,step:1}),wp.element.createElement(O,{label:Object(w.__)("Display Likes","getwid"),checked:i,onChange:function(e){c({showLikes:e})}}),wp.element.createElement(O,{label:Object(w.__)("Display Comments","getwid"),checked:o,onChange:function(e){c({showComments:e})}}),wp.element.createElement(j,{label:Object(w.__)("Spacing","getwid"),value:r,onChange:function(e){return c({spacing:e})},options:[{value:"default",label:Object(w.__)("Default","getwid")},{value:"none",label:Object(w.__)("None","getwid")},{value:"small",label:Object(w.__)("Small","getwid")},{value:"medium",label:Object(w.__)("Medium","getwid")},{value:"normal",label:Object(w.__)("Normal","getwid")},{value:"large",label:Object(w.__)("Large","getwid")}]})))}}]),t}(_));t.a=S},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(273)),o=n(276),r=n(277),c=n(13),s=n(278),d=(n.n(s),n(1)),u=(n.n(d),window),p=(u.jQuery,wp.blocks),m=p.registerBlockType,g=p.createBlock,b="wp-block-getwid-progress-bar",w="getwid/progress-bar";m(w,l()({title:Object(d.__)("Progress Bar","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M13,14H0v6h13h11v-6H13z M22,18H12v-2h10V18z"})),wp.element.createElement("path",{d:"M12,12l4-2V4H8v6 M14,9l-2,1l-2-1V6h4V9z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(w)},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:r.a,transforms:{to:[{type:"block",blocks:["getwid/counter"],transform:function(e){return g("getwid/counter",{end:e.fillAmount})}},{type:"block",blocks:["getwid/circle-progress-bar"],transform:function(e){return g("getwid/circle-progress-bar",{fillAmount:e.fillAmount})}}]}},Object(c.b)(w,function(e){return wp.element.createElement(i.a,l()({},e,{baseClass:b}))}),{save:function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:b}))}}))},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(12),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(11)),h=(n.n(w),n(13)),f=n(274),_=(n.n(f),n(275)),v=n(7),y=n.n(v),k=wp.compose.compose,C=wp.element,E=C.Component,O=C.Fragment,j=wp.blockEditor||wp.editor,S=j.RichText,x=j.withColors,T=window,N=T.jQuery,A=function(e){function t(){var e;l()(this,t),e=c()(this,d()(t).apply(this,arguments));var n=e.props.attributes.isAnimated;return e.drawFrame=e.drawFrame.bind(p()(e)),e.drawLinearBar=e.drawLinearBar.bind(p()(e)),e.state={fillComplete:!N.parseJSON(n),holderWidth:void 0},e}return g()(t,e),o()(t,[{key:"drawFrame",value:function(){var e=this,t=this.props.clientId,n=this.props.baseClass,a=this.props.attributes.fillAmount,l=N("[data-block='".concat(t,"']")),i=N(".".concat(n,"__progress"),l),o=function(){return Math.round(i.width()/i.parent().width()*100)};i.animate({width:"".concat(a,"%")},{duration:2e3,progress:function(){N(".".concat(n,"__percent"),l).text(o()+"%")},complete:function(){e.setState({fillComplete:!0,holderWidth:i.parent().width()})}})}},{key:"drawLinearBar",value:function(){var e=this,t=this.props,n=t.baseClass,a=t.clientId,l=this.props.attributes,i=l.isAnimated,o=l.fillAmount,r=N("[data-block='".concat(a,"']")),c=N(".".concat(n,"__progress"),r),s=Object(h.e)();N.parseJSON(i)?Object(h.f)(c)?this.drawFrame(c):Object(h.g)(".".concat(s),c,function(){e.drawFrame(c)}):(N(".".concat(n,"__progress"),r).css("width","".concat(o,"%")),N(".".concat(n,"__percent"),r).text("".concat(o,"%")))}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props,a=n.baseClass,l=n.clientId,i=this.props.attributes,o=i.isAnimated,r=i.fillAmount,c=r||"0";N.parseJSON(o)||N(".".concat(l)).find(".".concat(a,"__progress")).css("width","".concat(c,"%")),Object(w.isEqual)(e.attributes,this.props.attributes)||(N("#block-".concat(l)).find(".".concat(a,"__progress")).css("width","".concat(c,"%")),N("#block-".concat(l)).find(".".concat(a,"__percent")).text("".concat(c,"%")))}}},{key:"componentDidMount",value:function(){this.drawLinearBar()}},{key:"render",value:function(){var e=this.props.backgroundColor,t=this.props,n=t.className,a=t.setAttributes,l=t.baseClass,i=this.props.attributes,o=i.title,r=i.fillAmount,c=i.customTextColor,s=i.customBackgroundColor,d=r?parseInt(r):0,u=this.state,p=u.fillComplete,m=u.holderWidth,g={className:y()("".concat(l,"__bar")),style:{backgroundColor:e.color?e.color:s}};return wp.element.createElement(O,null,wp.element.createElement(_.a,this.props),wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:"".concat(l,"__wrapper")},wp.element.createElement("div",{className:"".concat(l,"__header")},wp.element.createElement(S,{tagName:"p",className:"".concat(l,"__title"),placeholder:Object(b.__)("Write heading…","getwid"),value:o||"",onChange:function(e){return a({title:e})},keepPlaceholderOnFocus:!0,multiline:!1}),wp.element.createElement("span",{className:"".concat(l,"__percent")}," ","".concat(r||"0","%"))),wp.element.createElement("div",g,wp.element.createElement("div",{className:"".concat(l,"__progress"),style:{backgroundColor:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:c||void 0,width:p?m*d/100:"0%"}})))))}}]),t}(E);t.a=k([x("backgroundColor",{textColor:"color"})])(A)},function(e,t){},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(15)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components,_=f.RangeControl,v=f.CheckboxControl,y=f.PanelBody,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.setTextColor,n=e.textColor,a=this.props.attributes,l=a.fillAmount,i=a.isAnimated,o=this.props,r=o.setAttributes,c=o.backgroundColor,s=o.setBackgroundColor,d=o.customBackgroundColor,u=o.customTextColor;return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(_,{label:Object(m.__)("Value","getwid"),value:l,onChange:function(e){r({fillAmount:e})},initialPosition:l,min:0,max:100,step:1}),wp.element.createElement(v,{label:"Animate",checked:"true"===i,onChange:function(e){r({isAnimated:e?"true":"false"})}}),wp.element.createElement(g.a,{colorSettings:[{title:Object(m.__)("Progress Color","getwid"),colors:{customColor:u,defaultColor:n},changeColor:t},{title:Object(m.__)("Background Color","getwid"),colors:{customColor:d,defaultColor:c},changeColor:s}]})))}}]),t}(b);t.a=k},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,k=v.getColorClassName,C=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,a=this.props.attributes,i=a.fillAmount,o=a.title,r=a.isAnimated,c=a.backgroundColor,s=this.props.attributes,d=s.customBackgroundColor,u=s.textColor,p=s.customTextColor,m=k("color",u),g=k("background-color",c),b={className:w()("".concat(n,"__bar"),l()({"has-background":c||d},g,g)),style:{backgroundColor:c?void 0:d}},h={className:w()("".concat(n,"__progress"),l()({"has-text-color":u||p},m,m)),style:{color:void 0!==u?void 0:p,width:"0%"}};return wp.element.createElement(_,null,wp.element.createElement("div",{className:w()(t)},wp.element.createElement("div",{className:"".concat(n,"__wrapper"),"data-fill-amount":i,"data-is-animated":r},wp.element.createElement("div",{className:w()("".concat(n,"__header"),{"has-no-title":!o})},o&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(n,"__title"),value:o}),wp.element.createElement("span",{className:"".concat(n,"__percent")},"".concat(i,"%"))),wp.element.createElement("div",b,wp.element.createElement("div",h)))))}}]),t}(f);t.a=C},function(e,t,n){"use strict";var a={align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},fillAmount:{type:"string",source:"attribute",selector:".wp-block-getwid-progress-bar__wrapper",attribute:"data-fill-amount",default:"75"},title:{type:"string",source:"html",selector:".wp-block-getwid-progress-bar__title"},isAnimated:{type:"string",source:"attribute",selector:".wp-block-getwid-progress-bar__wrapper",attribute:"data-is-animated",default:"true"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(280)),o=n(281),r=n(283),c=n(13),s=n(284),d=(n.n(s),n(1)),u=(n.n(d),window),p=(u.jQuery,wp.blocks),m=p.registerBlockType,g=p.createBlock,b="wp-block-getwid-circle-progress-bar",w="getwid/circle-progress-bar";m(w,l()({title:Object(d.__)("Circular Progress Bar","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12,22C6.49,22,2,17.51,2,12S6.49,2,12,2V0C5.37,0,0,5.37,0,12s5.37,12,12,12s12-5.37,12-12h-2C22,17.51,17.51,22,12,22z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(w)},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:r.a,transforms:{to:[{type:"block",blocks:["getwid/counter"],transform:function(e){return g("getwid/counter",{end:e.fillAmount})}},{type:"block",blocks:["getwid/progress-bar"],transform:function(e){return g("getwid/progress-bar",{fillAmount:e.fillAmount})}}]}},Object(c.b)(w,function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:b}))}),{save:function(e){return wp.element.createElement(i.a,l()({},e,{baseClass:b}))}}))},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(7)),g=n.n(m),b=n(11),w=(n.n(b),wp.element),h=w.Component,f=w.Fragment,_=wp.blockEditor||wp.editor,v=(_.getColorObjectByAttributeValues,function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.fillAmount,a=t.isAnimated,l=t.wrapperAlign,i=t.size,o=t.thickness,r=t.backgroundColor,c=t.textColor,s=e.className,d=e.baseClass,u={className:g()("".concat(d,"__wrapper")),"data-background-color":r,"data-text-color":c,"data-fill-amount":n,"data-is-animated":a,"data-size":i,"data-thickness":o,style:{textAlign:l||null}};return wp.element.createElement(f,null,wp.element.createElement("div",{className:g()(s)},wp.element.createElement("div",u,wp.element.createElement("canvas",{className:"".concat(d,"__canvas")}))))}}]),t}(h));t.a=v},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(12),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(7)),h=n.n(w),f=n(11),_=(n.n(f),n(13)),v=n(282),y=wp.element,k=y.Component,C=y.Fragment,E=wp.blockEditor||wp.editor,O=E.BlockControls,j=E.AlignmentToolbar,S=window,x=S.jQuery,T=function(e){function t(){var e;return l()(this,t),e=c()(this,d()(t).apply(this,arguments)),e.getConfig=e.getConfig.bind(p()(e)),e.drawAnimatedArcs=e.drawAnimatedArcs.bind(p()(e)),e.drawArcs=e.drawArcs.bind(p()(e)),e.getThickness=e.getThickness.bind(p()(e)),e.setSize=e.setSize.bind(p()(e)),e}return g()(t,e),o()(t,[{key:"getConfig",value:function(){var e=this.props,t=e.attributes,n=t.size,a=t.backgroundColor,l=t.textColor,i=e.clientId,o=this.props.baseClass;return{context:x(".".concat(i)).find(".".concat(o,"__canvas"))[0].getContext("2d"),backgroundColor:a||"#eeeeee",textColor:l||"#0000ee",radius:parseFloat(n)/2,angle:Math.PI/180*-90}}},{key:"draw",value:function(){var e=this,t=this.props,n=t.clientId,a=t.baseClass,l=this.props.attributes,i=l.isAnimated,o=l.fillAmount,r=Object(_.e)();if(x.parseJSON(i)){var c=x(".".concat(n)).find(".".concat(a,"__wrapper"));Object(_.f)(c)?this.drawAnimatedArcs():Object(_.g)(".".concat(r),c,function(){e.drawAnimatedArcs()})}else this.drawArcs(o)}},{key:"drawArcs",value:function(e){var t=this.props.attributes.size,n=this.getConfig(),a=n.context,l=n.radius,i=n.angle,o=n.backgroundColor,r=n.textColor,c=parseInt(this.getThickness());this.setSize(),a.clearRect(0,0,parseFloat(t),parseFloat(t)),a.beginPath(),a.arc(l,l,l-c/2,i,i+2*Math.PI),a.lineWidth=c,a.strokeStyle=o,a.stroke(),a.beginPath(),a.arc(l,l,l-c/2,i,i+2*Math.PI*(e/100)),a.lineWidth=c,a.strokeStyle=r,a.stroke(),a.beginPath(),a.textAlign="center",a.font="16px serif",a.fillText(e+"%",l+6.5,l+5),a.stroke()}},{key:"drawAnimatedArcs",value:function(){var e=this,t=this.props.attributes.fillAmount,n=0;this.fill=setInterval(function(){e.drawArcs(n),++n>t&&clearInterval(e.fill)},35)}},{key:"getThickness",value:function(){var e=this.props.attributes,t=e.thickness,n=e.size;return x.isNumeric(t)?t:n/14}},{key:"setSize",value:function(){var e=this.props,t=e.attributes.size,n=e.clientId,a=e.baseClass,l=x(".".concat(n)).find(".".concat(a,"__canvas"))[0];l.width=parseFloat(t),l.height=parseFloat(t)}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props.attributes.fillAmount;Object(f.isEqual)(e,this.props)||this.drawArcs(n)}}},{key:"componentDidMount",value:function(){this.draw()}},{key:"componentWillUnmount",value:function(){clearInterval(this.fill)}},{key:"render",value:function(){var e=this.props.attributes.wrapperAlign,t=this.props,n=t.setAttributes,a=t.clientId,l=t.className,i=t.baseClass;return[wp.element.createElement(O,null,wp.element.createElement(j,{value:e,onChange:function(e){return n({wrapperAlign:e})}})),wp.element.createElement(v.a,this.props),wp.element.createElement(C,null,wp.element.createElement("div",{className:h()(l,a)},wp.element.createElement("div",{className:"".concat(i,"__wrapper"),style:{textAlign:e||null}},wp.element.createElement("canvas",{className:"".concat(i,"__canvas")}))))]}}]),t}(k);t.a=T},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(15)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components,_=f.RangeControl,v=f.CheckboxControl,y=f.PanelBody,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.fillAmount,a=t.isAnimated,l=t.size,i=t.thickness,o=t.backgroundColor,r=t.textColor;return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(_,{label:Object(m.__)("Value","getwid"),value:n,onChange:function(t){return e({fillAmount:t})},initialPosition:n,min:0,max:100,step:1}),wp.element.createElement(_,{label:Object(m.__)("Size","getwid"),value:l,onChange:function(t){e(i>l/2?{size:t,thickness:Math.floor(t/2)}:{size:t})},initialPosition:l,min:50,max:600,step:1}),wp.element.createElement(_,{label:Object(m.__)("Thickness","getwid"),value:isNaN(i)?(l/14).toFixed():parseFloat(i),onChange:function(t){e({thickness:t.toString()})},initialPosition:i,min:1,max:Math.floor(l/2),step:1}),wp.element.createElement(v,{label:Object(m.__)("Animate","getwid"),checked:"true"===a,onChange:function(t){e({isAnimated:t?"true":"false"})}}),wp.element.createElement(g.a,{colorSettings:[{title:Object(m.__)("Background Color","getwid"),colors:{customColor:o},changeColor:function(t){return e({backgroundColor:t})}},{title:Object(m.__)("Bar Color","getwid"),colors:{customColor:r},changeColor:function(t){return e({textColor:t})}}]})))}}]),t}(b);t.a=k},function(e,t,n){"use strict";var a={align:{type:"string"},wrapperAlign:{type:"string"},backgroundColor:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-background-color"},textColor:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-text-color"},fillAmount:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-fill-amount",default:"75"},isAnimated:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-is-animated",default:"true"},size:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-size",default:"200"},thickness:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-thickness",default:"auto"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(286)),o=n(287),r=n(288),c=n(291),s=n(13),d=n(292),u=(n.n(d),n(1)),p=(n.n(u),window),m=(p.jQuery,wp.blocks),g=m.registerBlockType,b=m.createBlock,w="wp-block-getwid-counter";g("getwid/counter",l()({title:Object(u.__)("Counter","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M22,2v20H2V2H22 M24,0H0v24h24V0L24,0z"})),wp.element.createElement("polygon",{points:"7,6 7,6 7,6 3.46,9.54 4.88,10.95 7,8.83 7,18 9,18 9,6"}),wp.element.createElement("polygon",{points:"18,3 18,3 18,3 14.46,6.54 15.88,7.95 18,5.83 18,11 20,11 20,3"}),wp.element.createElement("path",{d:"M21,16c0-0.61,0.01-1.54-0.69-2.24C19.79,13.25,19.04,13,18,13c-3,0-3,2.03-3,3h2c-0.01-0.07-0.04-0.44,0.22-0.73 C17.47,15,17.83,15,18,15c0.13,0,0.52,0,0.77,0.27c0,0,0.23,0.25,0.23,0.72c-0.01,1.1-3.73,2.8-4,2.92V21h6v-2h-3 C19.25,18.41,20.99,17.17,21,16z"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"14,18 13,18 13,6 14,6 14,4 11,4 11,20 14,20"}),wp.element.createElement("polygon",{points:"21,4 21,6 22,6 22,18 21,18 21,20 24,20 24,4"})),wp.element.createElement("rect",{x:"11",y:"2",width:"2",height:"20"})),wp.element.createElement("g",null)),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/counter")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:c.a,save:function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:w}))}}],attributes:c.a,transforms:{to:[{type:"block",blocks:["getwid/progress-bar"],transform:function(e){return b("getwid/progress-bar",{fillAmount:e.end})}},{type:"block",blocks:["getwid/circle-progress-bar"],transform:function(e){return b("getwid/circle-progress-bar",{fillAmount:e.end})}}]}},Object(s.b)("getwid/counter",function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:w,isInViewport:s.f,scrollHandler:s.g}))}),{save:function(e){return wp.element.createElement(i.a,l()({},e,{baseClass:w}))}}))},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,k=v.getColorClassName,C=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.start,a=t.end,i=t.decimalPlaces,o=t.duration,r=t.useEasing,c=t.useGrouping,s=t.easing,d=t.separator,u=t.decimal,p=t.numerals,m=t.prefix,g=t.suffix,b=t.textColor,h=t.customTextColor,f=t.wrapperAlign,v=e.className,C=e.baseClass,E=k("color",b),O={className:w()("".concat(C,"__wrapper")),style:{textAlign:f||null},"data-start":n,"data-end":a,"data-decimal-places":i,"data-duration":o,"data-use-easing":r,"data-use-grouping":c,"data-separator":d,"data-decimal":u,"data-easing-fn":s,"data-numerals":p},j={className:w()("".concat(C,"__number"),l()({"has-text-color":b||h},E,E)),style:{color:void 0!==b?void 0:h}};return wp.element.createElement(_,null,wp.element.createElement("div",{className:w()(v)},wp.element.createElement("div",O,m&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(C,"__prefix"),value:m}),wp.element.createElement("span",j,"0"),g&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(C,"__suffix"),value:g}))))}}]),t}(f);t.a=C},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,k=v.getColorClassName,C=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.start,a=t.end,i=t.decimalPlaces,o=t.duration,r=t.useEasing,c=t.useGrouping,s=t.easing,d=t.separator,u=t.decimal,p=t.numerals,m=t.prefix,g=t.suffix,b=t.textColor,h=t.customTextColor,f=e.className,v=e.baseClass,C=k("color",b),E={className:w()("".concat(v,"__wrapper")),"data-start":n,"data-end":a,"data-decimal-places":i,"data-duration":o,"data-use-easing":r,"data-use-grouping":c,"data-separator":d,"data-decimal":u,"data-easing-fn":s,"data-numerals":p},O={className:w()("".concat(v,"__number"),l()({"has-text-color":b||h},C,C)),style:{color:void 0!==b?void 0:h}};return wp.element.createElement(_,null,wp.element.createElement("div",{className:w()(f)},wp.element.createElement("div",E,m&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(v,"__prefix"),value:m}),wp.element.createElement("span",O,"0"),g&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(v,"__suffix"),value:g}))))}}]),t}(f);t.a=C},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=n(11),y=(n.n(v),n(289)),k=(n.n(y),n(290)),C=n(13),E=wp.compose.compose,O=wp.element.Component,j=wp.blockEditor||wp.editor,S=j.RichText,x=j.withColors,T=j.BlockControls,N=j.AlignmentToolbar,A=window,M=A.jQuery,B=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.getEasingFunction=e.getEasingFunction.bind(g()(e)),e.getNumerals=e.getNumerals.bind(g()(e)),e.startCounter=e.startCounter.bind(g()(e)),e.startCounter=e.startCounter.bind(g()(e)),e}return w()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setAttributes,a=this.props,i=a.clientId,o=a.className,r=a.baseClass,c=this.props.attributes,s=c.prefix,d=c.suffix,u=c.wrapperAlign,p=c.customTextColor,m={className:_()("".concat(r,"__number"),l()({"has-text-color":t.color},t.class,t.class)),style:{color:t.color?t.color:p}};return[wp.element.createElement(T,null,wp.element.createElement(N,{value:u,onChange:function(e){n({wrapperAlign:e})}})),wp.element.createElement(k.a,this.props),wp.element.createElement("div",{className:_()(o,i)},wp.element.createElement("div",{className:"".concat(r,"__wrapper"),style:{textAlign:u||null}},wp.element.createElement(S,{tagName:"p",className:"".concat(r,"__prefix"),placeholder:Object(h.__)("Prefix","getwid"),value:s||"",onChange:function(e){return n({prefix:e})},keepPlaceholderOnFocus:!0,multiline:!1}),wp.element.createElement("span",m,"0"),wp.element.createElement(S,{tagName:"p",className:"".concat(r,"__suffix"),placeholder:Object(h.__)("Suffix","getwid"),value:d||"",onChange:function(e){return n({suffix:e})},keepPlaceholderOnFocus:!0,multiline:!1})))]}},{key:"getEasingFunction",value:function(){var e=this.props.attributes,t=e.easing,n=e.useEasing;if(!M.parseJSON(n))return null;switch(t){case"outExpo":return function(e,t,n,a){return n*(1-Math.pow(2,-10*e/a))*1024/1023+t};case"outQuintic":return function(e,t,n,a){var l=(e/=a)*e,i=l*e;return t+n*(i*l+-5*l*l+10*i+-10*l+5*e)};case"outCubic":return function(e,t,n,a){var l=(e/=a)*e;return t+n*(l*e+-3*l+3*e)}}}},{key:"getNumerals",value:function(){switch(this.props.attributes.numerals){case"eastern_arabic":return["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"];case"farsi":return["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];default:return null}}},{key:"startCounter",value:function(){var e=this.props,t=e.baseClass,n=e.clientId,a=this.props.attributes,l=a.useEasing,i=a.useGrouping,o=a.separator,r=this.props.attributes,c=r.start,s=r.end,d=r.decimalPlaces,u=r.duration,p=r.decimal,m=M(".".concat(n)).find(".".concat(t,"__number")),g={startVal:parseFloat(c),decimalPlaces:parseInt(d),duration:parseInt(u),useEasing:M.parseJSON(l),useGrouping:M.parseJSON(i),separator:o,decimal:p,easingFn:this.getEasingFunction(),numerals:this.getNumerals()};"function"==typeof CountUp&&new CountUp(m.get(0),parseFloat(s),g).start()}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props,a=n.className,l=n.textColor,i=this.props.attributes,o=i.align,r=i.title,c=i.prefix,s=i.suffix,d=i.wrapperAlign;if(!Object(v.isEqual)(e.attributes.title,r)||!Object(v.isEqual)(e.attributes.prefix,c)||!Object(v.isEqual)(e.attributes.suffix,s))return;if(!Object(v.isEqual)(e.textColor,l)||!Object(v.isEqual)(e.textColor.color,l.color))return;if(!Object(v.isEqual)(e.className,a)||!Object(v.isEqual)(e.attributes.wrapperAlign,d)||!Object(v.isEqual)(e.attributes.align,o))return;this.startCounter()}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.clientId,a=t.baseClass,l=this.props,i=l.isInViewport,o=l.scrollHandler,r=Object(C.e)(),c=M(".".concat(n)).find(".".concat(a,"__number"));i(c)?this.startCounter():o(".".concat(r),c,function(){e.startCounter()})}}]),t}(O);t.a=E([x({textColor:"color"})])(B)},function(e,t){},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(15)),_=n(19),v=wp.element,y=v.Component,k=v.Fragment,C=wp.blockEditor||wp.editor,E=C.InspectorControls,O=wp.components,j=O.CheckboxControl,S=O.TextControl,x=O.SelectControl,T=O.PanelBody,N=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.changeState=e.changeState.bind(g()(e)),e.state={tabName:"general"},e}return w()(t,e),c()(t,[{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"render",value:function(){var e=this.props.attributes,t=e.start,n=e.end,a=e.decimalPlaces,l=e.duration,i=e.useEasing,o=e.useGrouping,r=e.customTextColor,c=this.props.attributes,s=c.separator,d=c.decimal,u=c.easing,p=c.numerals,m=this.props,g=m.setAttributes,b=m.textColor,w=m.setTextColor,v=this.state.tabName,y=this.changeState;return wp.element.createElement(E,null,wp.element.createElement(_.a,{state:v,stateName:"tabName",onChangeTab:y,tabs:["general","style"]}),"general"===v&&wp.element.createElement(k,null,wp.element.createElement(T,null,wp.element.createElement(S,{type:"number",label:Object(h.__)("Start","getwid"),value:isNaN(t)?0:parseFloat(t),onChange:function(e){g({start:e.toString()})}}),wp.element.createElement(S,{type:"number",label:Object(h.__)("End","getwid"),value:isNaN(n)?100:parseFloat(n),onChange:function(e){g({end:e.toString()})}}),wp.element.createElement(S,{type:"number",label:Object(h.__)("Animation Duration","getwid"),value:isNaN(l)?3:parseInt(l),onChange:function(e){g({duration:e.toString()})}}),wp.element.createElement(j,{label:Object(h.__)("Smooth Animation","getwid"),checked:"true"===i,onChange:function(e){g({useEasing:e?"true":"false"})}}))),"style"===v&&wp.element.createElement(k,null,wp.element.createElement(T,null,wp.element.createElement(x,{label:Object(h.__)("Animation Effect","getwid"),value:void 0===u?"outExpo":u,onChange:function(e){g({easing:e})},options:[{value:"outExpo",label:"OutExpo"},{value:"outQuintic",label:"OutQuintic"},{value:"outCubic",label:"OutCubic"}]}),wp.element.createElement(j,{label:Object(h.__)("Display Thousands Separator","getwid"),checked:"true"===o,onChange:function(e){g({useGrouping:e?"true":"false"})}}),wp.element.createElement(S,{label:Object(h.__)("Thousands Separator","getwid"),value:void 0===s?_x(",","Thousands separator","getwid"):s,onChange:function(e){g({separator:e})}}),wp.element.createElement(f.a,{colorSettings:[{title:Object(h.__)("Color","getwid"),colors:{customColor:r,defaultColor:b},changeColor:w}]}),wp.element.createElement(S,{type:"number",label:Object(h.__)("Decimal Places","getwid"),value:isNaN(a)?0:parseInt(a)<0?0:parseInt(a),onChange:function(e){e=e>100?100:e<0?0:e,g({decimalPlaces:parseInt(e)?parseInt(e)<0?"0":e.toString():"0"})}}),wp.element.createElement(S,{label:Object(h.__)("Decimal Separator","getwid"),value:void 0===d?_x(".","Decimal separator","getwid"):d,onChange:function(e){g({decimal:e})}}),wp.element.createElement(x,{label:Object(h.__)("Numerals","getwid"),value:void 0===p?"default":p,onChange:function(e){g({numerals:e})},options:[{value:"default",label:Object(h.__)("Default","getwid")},{value:"eastern_arabic",label:Object(h.__)("Eastern Arabic","getwid")},{value:"farsi",label:Object(h.__)("Farsi","getwid")}]}))))}}]),t}(y);t.a=N},function(e,t,n){"use strict";var a=n(1),l=(n.n(a),{align:{type:"string"},wrapperAlign:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},start:{type:"string",default:"0"},duration:{type:"string",default:"3"},useEasing:{type:"string",default:"true"},useGrouping:{type:"string",default:"true"},separator:{type:"string",default:Object(a._x)(",","Thousands separator","getwid")},decimal:{type:"string",default:Object(a._x)(".","Decimal separator","getwid")},prefix:{type:"string",source:"html",selector:".wp-block-getwid-counter__prefix"},title:{type:"string",source:"html",selector:".wp-block-getwid-counter__title"},suffix:{type:"string",source:"html",selector:".wp-block-getwid-counter__suffix"},end:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-end",default:"100"},decimalPlaces:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-decimal-places",default:"0"},easing:{type:"type",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-easing-fn",default:"outExpo"},numerals:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-numerals",default:"default"}});t.a=l},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(294)),o=n(295),r=n(297),c=n(298),s=n(13),d=n(299),u=(n.n(d),n(300)),p=(n.n(u),n(1)),m=(n.n(p),window),g=(m.jQuery,wp.blocks),b=g.registerBlockType,w=g.createBlock,h="wp-block-getwid-price-box";b("getwid/price-box",l()({title:Object(p.__)("Price Box","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("path",{d:"M12,2.24l6,3V22H6V5.24L12,2.24 M12,0L4,4v20h16V4L12,0L12,0z"}),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M12,4c-0.55,0-1,0.45-1,1s0.45,1,1,1s1-0.45,1-1S12.55,4,12,4L12,4z"})),wp.element.createElement("path",{d:"M15,7h-2V6h-2v1h0C9.9,7,9,7.9,9,9v0.99C9,11.1,9.9,12,11.01,12L13,12.01L12.98,13H9v2h2v1h2v-1h-0.02\tc1.11,0,2.02-0.91,2.02-2.02v-0.97C15,10.9,14.1,10,12.99,10L11,9.99L11,9h4V7z"}),wp.element.createElement("rect",{x:"8",y:"18",width:"8",height:"2"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/price-box")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:i.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("getwid/price-box",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/testimonial"],transform:function(e){return w("getwid/testimonial",{title:e.title})}},{type:"block",blocks:["getwid/price-list"],transform:function(e){return w("getwid/price-list",{title:e.title,currency:e.currency,amount:e.amount,description:e.features})}}]},deprecated:[{attributes:i.a,save:function(e){return wp.element.createElement(c.a,l()({},e,{baseClass:h}))}}]},Object(s.b)("getwid/price-box",function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:h}))}),{save:function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:h}))}}))},function(e,t,n){"use strict";var a={align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},title:{type:"string",source:"html",selector:".wp-block-getwid-price-box__title"},currency:{type:"string",source:"html",selector:".wp-block-getwid-price-box__currency"},amount:{type:"string",source:"html",selector:".wp-block-getwid-price-box__amount"},period:{type:"string",source:"html",selector:".wp-block-getwid-price-box__period"},features:{type:"string",source:"html",selector:".wp-block-getwid-price-box__features"},headerTag:{type:"string",default:"p"}};t.a=a},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(296)),h=n(7),f=n.n(h),_=wp.compose.compose,v=wp.element,y=v.Component,k=v.Fragment,C=wp.blockEditor||wp.editor,E=C.RichText,O=C.InnerBlocks,j=C.withColors,S=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,a=t.currency,i=t.amount,o=t.period,r=t.features,c=this.props.attributes,s=c.headerTag,d=c.customTextColor,u=c.customBackgroundColor,p=this.props,m=p.className,g=p.baseClass,h=p.setAttributes,_=p.backgroundColor,v=p.textColor,y={color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:d||void 0},C={className:f()("".concat(m),(e={"has-background":_.color},l()(e,_.class,_.class),l()(e,"has-text-color",v.color),l()(e,v.class,v.class),e)),style:{backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:u||void 0}};return wp.element.createElement(k,null,wp.element.createElement(w.a,this.props),wp.element.createElement("div",C,wp.element.createElement(E,{tagName:s,className:"".concat(g,"__title"),placeholder:Object(b.__)("Write heading…","getwid"),value:n||"",onChange:function(e){return h({title:e})},keepPlaceholderOnFocus:!0,style:y,multiline:!1}),wp.element.createElement("div",{className:"".concat(g,"__pricing")},wp.element.createElement(E,{tagName:"p",className:"".concat(g,"__currency"),placeholder:"$",value:a||"",onChange:function(e){h({currency:e})},keepPlaceholderOnFocus:!0,style:y,multiline:!1}),wp.element.createElement(E,{tagName:"p",className:"".concat(g,"__amount"),placeholder:"99",value:i||"",onChange:function(e){return h({amount:e})},keepPlaceholderOnFocus:!0,style:y,multiline:!1}),wp.element.createElement(E,{tagName:"p",className:"".concat(g,"__period"),placeholder:Object(b._x)("/month","Period, placeholder","getwid"),value:o||"",onChange:function(e){return h({period:e})},keepPlaceholderOnFocus:!0,style:y,multiline:!1})),wp.element.createElement(E,{tagName:"ul",className:"".concat(g,"__features"),placeholder:Object(b.__)("Write text…","getwid"),value:r||"",onChange:function(e){return h({features:e})},keepPlaceholderOnFocus:!0,style:y,multiline:"li"}),wp.element.createElement(O,{template:[["core/button"]],allowedBlocks:["core/button"],templateInsertUpdatesSelection:!1,templateLock:"all"})))}}]),t}(y);t.a=_([j("backgroundColor",{textColor:"color"})])(S)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(15)),b=wp.element.Component,w=wp.components,h=w.SelectControl,f=w.PanelBody,_=wp.blockEditor||wp.editor,v=_.InspectorControls,y=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes.headerTag,t=this.props,n=t.setAttributes,a=t.backgroundColor,l=t.textColor,i=t.customBackgroundColor,o=t.customTextColor,r=t.setBackgroundColor,c=t.setTextColor;return wp.element.createElement(v,null,wp.element.createElement(f,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(h,{label:Object(m.__)("Title Tag","getwid"),value:e,options:[{value:"p",label:Object(m.__)("Paragraph","getwid")},{value:"h2",label:Object(m.__)("Heading 2","getwid")},{value:"h3",label:Object(m.__)("Heading 3","getwid")},{value:"h4",label:Object(m.__)("Heading 4","getwid")},{value:"h5",label:Object(m.__)("Heading 5","getwid")},{value:"h6",label:Object(m.__)("Heading 6","getwid")}],onChange:function(e){return n({headerTag:e})}}),wp.element.createElement(g.a,{colorSettings:[{title:Object(m.__)("Text Color","getwid"),colors:{customColor:o,defaultColor:l},changeColor:c},{title:Object(m.__)("Background Color","getwid"),colors:{customColor:i,defaultColor:a},changeColor:r}]})))}}]),t}(b);t.a=y},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,k=v.getColorClassName,C=v.InnerBlocks,E=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.baseClass,i=this.props.attributes,o=i.title,r=i.currency,c=i.amount,s=i.period,d=i.features,u=i.headerTag,p=this.props.attributes,m=p.backgroundColor,g=p.textColor,b=p.customBackgroundColor,h=p.customTextColor,f=k("color",g),v=k("background-color",m),E={className:w()("".concat(n),(e={"has-background":m||b},l()(e,v,v),l()(e,"has-text-color",g||h),l()(e,f,f),e)),style:{backgroundColor:m?void 0:b,color:void 0!==g?void 0:h}};return wp.element.createElement(_,null,wp.element.createElement("div",E,o&&wp.element.createElement(y.Content,{tagName:u,className:"".concat(a,"__title"),value:o}),function(){return r||c||s?wp.element.createElement("div",{className:"".concat(a,"__pricing")},r&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__currency"),value:r}),c&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__amount"),value:c}),s&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__period"),value:s})):null}(),d&&wp.element.createElement(y.Content,{tagName:"ul",className:"".concat(a,"__features"),value:d}),wp.element.createElement(C.Content,null)))}}]),t}(f);t.a=E},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(7)),w=n.n(b),h=wp.element,f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,k=v.getColorClassName,C=v.InnerBlocks,E=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.baseClass,i=this.props.attributes,o=i.title,r=i.currency,c=i.amount,s=i.period,d=i.features,u=i.headerTag,p=this.props.attributes,m=p.backgroundColor,g=p.textColor,b=p.customBackgroundColor,h=p.customTextColor,f=k("color",g),v=k("background-color",m),E={color:void 0!==g?void 0:h},O={className:w()("".concat(n),(e={"has-background":m||b},l()(e,v,v),l()(e,"has-text-color",g||h),l()(e,f,f),e)),style:{backgroundColor:m?void 0:b}};return wp.element.createElement(_,null,wp.element.createElement("div",O,o&&wp.element.createElement(y.Content,{tagName:u,className:"".concat(a,"__title"),value:o,style:E}),function(){return r||c||s?wp.element.createElement("div",{className:"".concat(a,"__pricing")},r&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__currency"),value:r,style:E}),c&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__amount"),value:c,style:E}),s&&wp.element.createElement(y.Content,{tagName:"p",className:"".concat(a,"__period"),value:s,style:E})):null}(),d&&wp.element.createElement(y.Content,{tagName:"ul",className:"".concat(a,"__features"),value:d,style:E}),wp.element.createElement(C.Content,null)))}}]),t}(f);t.a=E},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(1)),o=(n.n(i),n(11)),r=(n.n(o),n(13)),c=n(302),s=n(303),d=n(70),u=n(71),p=n(304),m=n(305),g=(n.n(m),n(306)),b=(n.n(g),wp.blockEditor||wp.editor),w=b.InnerBlocks,h=wp.blocks,f=h.getBlockType,_=(h.createBlock,l()({title:Object(i.__)("Contact Form","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"9,0 0,0 0,2 9,2 9,0 "}),wp.element.createElement("polygon",{points:"9,4 0,4 0,6 9,6 9,4 "}),wp.element.createElement("polygon",{points:"9,8 0,8 0,10 9,10 9,8 "}),wp.element.createElement("path",{d:"M22,14v8H2v-8H22 M24,12H0v12h24V12L24,12z"}),wp.element.createElement("path",{d:"M11,0v10h13V0H11z M20.18,2L17.5,4.11L14.82,2H20.18z M13,8V3.11l4.5,3.55L22,3.11V8H13z"})),supports:{align:["wide","full"],html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/contact-form")},keywords:[Object(i.__)("email","getwid"),Object(i.__)("message","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:{align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},subject:{type:"string"},text:{type:"string",default:"Submit"}}},Object(r.b)("getwid/contact-form",function(e){return wp.element.createElement(p.a,l()({},e,{contactFormClass:"wp-block-getwid-contact-form"}))}),{save:function(){return wp.element.createElement(w.Content,null)}})),v={category:"getwid-blocks",parent:["getwid/contact-form"],supports:{multiple:!1,reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},placeholder:{type:"string",default:""},id:{type:"string",default:""}},save:function(){return null}},y=function(e){var t=e.attributes,n=e.name;return null===t.label?f(n).title:t.label},k=function(e){return function(t){var n=t.className,a=t.isSelected,i=t.setAttributes,r=y(t);return r=Object(o.isEqual)(r,"Email")?"".concat(r," address"):r,wp.element.createElement(d.a,l()({},t.attributes,{label:r,setAttributes:i,isSelected:a,className:n,type:e}))}},C=function(e){var t=e.className,n=e.isSelected,a=e.setAttributes;return wp.element.createElement(c.a,l()({},e.attributes,{label:y(e),setAttributes:a,isSelected:n,className:t}))},E=[{name:"field-name",settings:l()({},v,{title:Object(i.__)("Name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:k("text")})},{name:"field-email",settings:l()({},v,{title:Object(i.__)("Email","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})," "),edit:k("email")})},{name:"field-textarea",settings:l()({},v,{title:Object(i.__)("Message","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})," "),edit:function(e){return C(e)}})},{name:"captcha",settings:{parent:v.parent,supports:v.supports,category:v.category,title:Object(i.__)("Captcha","getwid"),icon:"shield",attributes:{theme:{type:"string",default:"light"},size:{type:"string"}},edit:function(e){return wp.element.createElement(s.a,l()({},e,{captchaClass:"wp-block-getwid-captcha"}))},save:v.save}}];Object(u.a)("contact-form",_,E)},function(e,t,n){"use strict";var a=(n(0),n(69)),l=n(1),i=(n.n(l),window),o=(i.jQuery,wp.element.Fragment),r=wp.blockEditor||wp.editor,c=r.InspectorControls,s=wp.components,d=s.TextControl,u=s.TextareaControl,p=s.PanelBody,m=function(e){var t=e.className,n=e.required,i=e.label,r=e.setAttributes,s=e.isSelected,m=e.placeholder,g=e.id;return wp.element.createElement(o,null,wp.element.createElement("div",{className:"".concat(t)},wp.element.createElement(u,{label:wp.element.createElement(a.a,{required:n,label:i,setAttributes:r,isSelected:s}),value:m,onChange:function(e){return r({placeholder:e})},title:Object(l.__)("Set the placeholder text","getwid")})),wp.element.createElement(c,null,wp.element.createElement(p,{title:Object(l.__)("Field Settings","getwid")},wp.element.createElement(d,{label:Object(l.__)("ID","getwid"),value:g,onChange:function(e){return r({id:e})}}))))};t.a=m},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(13)),f=n(1),_=(n.n(f),n(11)),v=(n.n(_),window),y=v.jQuery,k=wp.blockEditor||wp.editor,C=k.InspectorControls,E=wp.element,O=E.Component,j=E.Fragment,S=wp.components,x=S.Button,T=S.TextControl,N=S.Disabled,A=S.PanelBody,M=S.ButtonGroup,B=S.BaseControl,I=S.ExternalLink,L=S.SelectControl,P=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.removeRecaptchaAPIScript=e.removeRecaptchaAPIScript.bind(g()(e)),e.manageRecaptchaAPIKey=e.manageRecaptchaAPIKey.bind(g()(e)),e.addRecaptchaAPIScript=e.addRecaptchaAPIScript.bind(g()(e)),e.addCaptchaElement=e.addCaptchaElement.bind(g()(e)),e.deleteCaptchaElement=e.deleteCaptchaElement.bind(g()(e)),e.renderCaptcha=e.renderCaptcha.bind(g()(e)),e.changeState=e.changeState.bind(g()(e)),e.getState=e.getState.bind(g()(e)),e.state={recaptchaSiteKey:""!=Getwid.settings.recaptcha_site_key?Getwid.settings.recaptcha_site_key:"",recaptchaSecretKey:""!=Getwid.settings.recaptcha_secret_key?Getwid.settings.recaptcha_secret_key:"",checkSiteKey:""!=Getwid.settings.recaptcha_site_key?Getwid.settings.recaptcha_site_key:" ",checkSecretKey:""!=Getwid.settings.recaptcha_secret_key?Getwid.settings.recaptcha_secret_key:"",updateCaptcha:!1},e}return w()(t,e),c()(t,[{key:"manageRecaptchaAPIKey",value:function(e,t){e.preventDefault();var n=this.getState,a=this.changeState,l=this.deleteCaptchaElement,i={action:"getwid_recaptcha_api_key_manage",data:{site_api_key:n("checkSiteKey"),secret_api_key:n("checkSecretKey")},option:t,nonce:Getwid.nonces.recaptcha_v2_contact_form};l(),"set"==t?(Getwid.settings.recaptcha_site_key=n("checkSiteKey"),Getwid.settings.recaptcha_secret_key=n("checkSecretKey")):"delete"==t&&(Getwid.settings.recaptcha_site_key="",Getwid.settings.recaptcha_secret_key=""),a("updateCaptcha",!0),y.post(Getwid.ajax_url,i)}},{key:"renderCaptcha",value:function(){var e=this,t=this.changeState,n=this.getState,a=this.props,l=a.attributes.theme,i=a.baseClass;grecaptcha.ready(function(){var a=y(".".concat(i,"__reCAPTCHA"))[0];e.captchaId=grecaptcha.render(a,{sitekey:n("checkSiteKey"),theme:l}),t("updateCaptcha",!1)})}},{key:"addRecaptchaAPIScript",value:function(){var e=this.addCaptchaElement,t=this.renderCaptcha;e(),Object(h.a)("https://www.google.com/recaptcha/api.js?render=explicit&hl=en",function(e){e.id="reCAPTCHA_api_js",t()})}},{key:"removeRecaptchaAPIScript",value:function(){var e=y("#reCAPTCHA_api_js");e.length&&e.remove();var t=y("script[src*='www.gstatic.com']");t.length&&y.each(t,function(e,t){y(t).remove()}),window.grecaptcha={}}},{key:"addCaptchaElement",value:function(){var e=this.props,t=e.className,n=e.baseClass,a=document.createElement("div");y(a).addClass("".concat(n,"__reCAPTCHA")),y(".".concat(t)).find(".".concat(t,"__wrapper")).after(y(a))}},{key:"deleteCaptchaElement",value:function(){var e=this.props.baseClass;y(".".concat(e,"__reCAPTCHA")).remove()}},{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.attributes.theme,a=this.addCaptchaElement,l=this.renderCaptcha,i=this.getState;e.isSelected===this.props.isSelected&&(!i("updateCaptcha")&&Object(_.isEqual)(n,e.attributes.theme)||(a(),l()))}},{key:"componentDidMount",value:function(){this.addRecaptchaAPIScript()}},{key:"componentWillUnmount",value:function(){this.removeRecaptchaAPIScript()}},{key:"render",value:function(){var e=this.props.attributes.theme,t=this.props,n=t.className,a=t.captchaClass,l=t.setAttributes,i=this.getState,o=this.changeState,r=this.deleteCaptchaElement,c=this.manageRecaptchaAPIKey;return wp.element.createElement(j,null,wp.element.createElement("div",{className:"".concat(n)},wp.element.createElement(N,null,wp.element.createElement("div",{className:"".concat(a,"__wrapper")}))),wp.element.createElement(C,null,wp.element.createElement(A,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(B,null,wp.element.createElement(L,{label:Object(f.__)("Color Theme","getwid"),value:e,onChange:function(e){r(),l({theme:e})},options:[{value:"dark",label:Object(f.__)("Dark","getwid")},{value:"light",label:Object(f.__)("Light","getwid")}]}),wp.element.createElement(T,{label:Object(f.__)("Recaptcha Site Key","getwid"),value:i("checkSiteKey"),onChange:function(e){o("checkSiteKey",e)}}),wp.element.createElement(T,{label:Object(f.__)("Recaptcha Secret Key","getwid"),value:i("checkSecretKey"),onChange:function(e){o("checkSecretKey",e)}})),wp.element.createElement(B,null,wp.element.createElement(M,null,wp.element.createElement(x,{isPrimary:!0,disabled:""==i("checkSiteKey")||""==i("checkSecretKey")||null,onClick:function(e){c(e,"set")}},Object(f.__)("Update","getwid")),wp.element.createElement(x,{isDefault:!0,onClick:function(e){o("checkSiteKey"," "),o("checkSecretKey",""),c(e,"delete")}},Object(f.__)("Delete","getwid")))),wp.element.createElement(B,null,wp.element.createElement(I,{href:"https://www.google.com/recaptcha/intro/v3.html"}," ",Object(f.__)("Get your key.","getwid")," ")))))}}]),t}(O);t.a=P},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(1)),w=(n.n(b),n(7)),h=n.n(w),f=n(15),_=wp.compose.compose,v=wp.element,y=v.Component,k=v.Fragment,C=wp.components,E=C.PanelBody,O=C.TextControl,j=wp.blockEditor||wp.editor,S=j.InspectorControls,x=j.InnerBlocks,T=j.RichText,N=j.withColors,A=["getwid/field-name","getwid/field-email","getwid/field-textarea","getwid/captcha","core/paragraph","core/spacer"],M=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e,t=this,n=this.props,a=n.textColor,i=n.backgroundColor,o=this.props,r=o.className,c=o.setTextColor,s=o.setBackgroundColor,d=o.contactFormClass,u=o.customBackgroundColor,p=o.customTextColor,m=h()("wp-block-button__link",(e={"has-background":i.color},l()(e,i.class,i.class),l()(e,"has-text-color",a.color),l()(e,a.class,a.class),e));return wp.element.createElement(k,null,wp.element.createElement("div",{className:"".concat(r)},wp.element.createElement("div",{className:"".concat(d,"__wrapper")},wp.element.createElement(x,{templateInsertUpdatesSelection:!1,allowedBlocks:A,template:[["getwid/field-name",{required:!0}],["getwid/field-email",{required:!0}],["getwid/field-textarea",{required:!0}]]})),wp.element.createElement("div",{className:"wp-block-button"},wp.element.createElement(T,{placeholder:Object(b.__)("Write text…","getwid"),value:this.props.attributes.text,formattingControls:["bold","italic","strikethrough"],onChange:function(e){return t.props.setAttributes({text:e})},className:m,style:{backgroundColor:i.color,color:a.color},keepPlaceholderOnFocus:!0}))),wp.element.createElement(S,null,wp.element.createElement(E,{title:Object(b.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(O,{label:Object(b.__)("Subject","getwid"),value:this.props.attributes.subject,onChange:function(e){return t.props.setAttributes({subject:e})}}),wp.element.createElement(f.a,{colorSettings:[{title:Object(b.__)("Button Text Color","getwid"),colors:{customColor:p,defaultColor:a},changeColor:c},{title:Object(b.__)("Button Background Color","getwid"),colors:{customColor:u,defaultColor:i},changeColor:s}]}))))}}]),t}(y);t.a=_([N("backgroundColor",{textColor:"color"})])(M)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(1)),o=(n.n(i),n(11)),r=(n.n(o),n(13)),c=n(72),s=n(308),d=n(317),u=(n.n(d),wp.blocks),p=u.registerBlockType,m=u.createBlock,g="getwid/post-carousel";p(g,l()({title:Object(i.__)("Post Carousel","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"16,11 8,11 8,13 16,13 16,11 "}),wp.element.createElement("polygon",{points:"14,15 8,15 8,17 14,17 14,15 "}),wp.element.createElement("polygon",{points:"16,7 8,7 8,9 16,9 16,7 "}),wp.element.createElement("path",{d:"M24,4h-4V2H4v2H0v16h4v2h16v-2h4V4z M2,18V6h2v12H2z M6,20V4h12v16H6z M22,18h-2V6h2V18z"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes(g)},deprecated:[{attributes:c.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return l()({},e,{sliderArrows:Object(o.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(o.isEqual)(n,"ouside")?"outside":n})},save:function(){return null}}],transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return m("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return m("getwid/post-slider",e)}},{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return m("getwid/recent-posts",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:"none"!=e.showContent,contentLength:e.contentLength,showFeaturedImage:e.showFeaturedImage,order:e.order,orderBy:e.orderBy})}}]},attributes:c.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(r.b)(g,s.a),{save:function(){return null}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(309)),k=n(316),C=(n.n(k),n(1)),E=(n.n(C),n(11)),O=(n.n(E),window),j=O.jQuery,S=wp.data.withSelect,x=wp.element,T=x.Component,N=x.Fragment,A=wp.blockEditor||wp.editor,M=A.BlockAlignmentToolbar,B=A.BlockControls,I=wp.components,L=I.ServerSideRender,P=I.Placeholder,z=I.Spinner,R="wp-block-getwid-post-carousel",D=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"destroySlider",value:function(){var e=this.props.clientId;clearInterval(this.waitLoadPosts);var t=j("[data-block='".concat(e,"']")),n=j(".".concat(R,"__wrapper"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this,t=this.props.attributes,n=t.sliderAutoplaySpeed,a=t.sliderInfinite,l=t.sliderDots,i=this.props.attributes,o=i.sliderAnimationSpeed,r=i.sliderCenterMode,c=i.sliderArrows,s=this.props.attributes,d=s.sliderSlidesToShowDesktop,u=s.sliderSlidesToScroll,p=s.sliderAutoplay;this.waitLoadPosts=setInterval(function(){var t=j("#block-".concat(e.props.clientId)),i=t.find(".".concat(R,"__wrapper"));i.length&&i.hasClass("no-init-slider")&&"function"==typeof i.imagesLoaded&&(i.imagesLoaded().done(function(e){i.not(".slick-initialized").slick({arrows:"none"!=c,dots:"none"!=l,slidesToShow:parseInt(d),slidesToScroll:parseInt(u),autoplaySpeed:parseInt(n),speed:parseInt(o),centerMode:r,autoplay:p,infinite:a,variableWidth:!1,pauseOnHover:!0,adaptiveHeight:!0,fade:!1,rows:0}),i.removeClass("no-init-slider")}),clearInterval(e.waitLoadPosts))},1e3)}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}},{key:"componentDidUpdate",value:function(e,t){Object(E.isEqual)(e.attributes,this.props.attributes)||(this.destroySlider(),this.initSlider())}},{key:"render",value:function(){var e=this.props.attributes.align,t=this.props,n=t.setAttributes,a=t.recentPosts,i=this.changeState,r=this.getState,c=Array.isArray(a)&&a.length;return c?wp.element.createElement(N,null,wp.element.createElement(y.a,l()({},o()({},this.props,{changeState:i},{getState:r}),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(M,{value:e,controls:["wide","full"],onChange:function(e){n({align:e})}})),wp.element.createElement(L,{block:"getwid/post-carousel",attributes:this.props.attributes})):wp.element.createElement(N,null,wp.element.createElement(y.a,l()({},o()({},this.props,{changeState:i},{getState:r},{hasPosts:c}),{key:"inspector"})),wp.element.createElement(P,{icon:"admin-post",label:Object(C.__)("Post Carousel","getwid")},Array.isArray(a)?Object(C.__)("No posts found.","getwid"):wp.element.createElement(z,null)))}}]),t}(T);t.a=S(function(e,t){var n=t.attributes,a=n.postsToShow,l=n.order,i=n.orderBy;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(E.pickBy)({order:l,orderby:i,per_page:a},function(e){return!Object(E.isUndefined)(e)}))}})(D)},function(e,t,n){"use strict";n.d(t,"a",function(){return N});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(72)),g=n(39),b=n(40),w=n(1),h=(n.n(w),window),f=(h.jQuery,wp.element),_=f.Component,v=(f.Fragment,wp.blockEditor||wp.editor),y=v.InspectorControls,k=wp.components,C=k.SelectControl,E=k.PanelBody,O=(k.RangeControl,k.ToggleControl),j=k.TextControl,S=k.RadioControl,x=k.BaseControl,T=k.Button,N=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderSlidesToShowDesktop,n=e.sliderSlidesToShowLaptop,a=e.sliderSlidesToShowTablet,l=e.sliderSlidesToShowMobile,i=e.sliderSlidesToScroll,o=e.sliderAutoplay,r=e.sliderAutoplaySpeed,c=e.sliderInfinite,s=e.sliderAnimationSpeed,d=e.sliderCenterMode,u=e.sliderSpacing;return t!=m.a.sliderSlidesToShowDesktop.default||n!=m.a.sliderSlidesToShowLaptop.default||a!=m.a.sliderSlidesToShowTablet.default||l!=m.a.sliderSlidesToShowMobile.default||i!=m.a.sliderSlidesToScroll.default||o!=m.a.sliderAutoplay.default||r!=m.a.sliderAutoplaySpeed.default||c!=m.a.sliderInfinite.default||s!=m.a.sliderAnimationSpeed.default||d!=m.a.sliderCenterMode.default||u!=m.a.sliderSpacing.default}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postTemplate,a=t.postsToShow,l=t.ignoreSticky,i=t.filterById,o=t.excludeById,r=t.excludeCurrentPost,c=t.parentPageId,s=t.postType,d=t.taxonomy,u=t.terms,p=t.relation,h=t.order,f=t.orderBy,_=(t.align,t.sliderSlidesToShowDesktop),v=t.sliderSlidesToShowLaptop,k=t.sliderSlidesToShowTablet,N=t.sliderSlidesToShowMobile,A=t.sliderSlidesToScroll,M=t.sliderAutoplay,B=t.sliderAutoplaySpeed,I=t.sliderInfinite,L=t.sliderAnimationSpeed,P=t.sliderCenterMode,z=t.sliderSpacing,R=t.sliderArrows,D=t.sliderDots,V=e.setAttributes,F=(e.changeState,e.getState,function(){V({sliderSlidesToShowDesktop:m.a.sliderSlidesToShowDesktop.default,sliderSlidesToShowLaptop:m.a.sliderSlidesToShowLaptop.default,sliderSlidesToShowTablet:m.a.sliderSlidesToShowTablet.default,sliderSlidesToShowMobile:m.a.sliderSlidesToShowMobile.default,sliderSlidesToScroll:m.a.sliderSlidesToScroll.default,sliderAutoplay:m.a.sliderAutoplay.default,sliderAutoplaySpeed:m.a.sliderAutoplaySpeed.default,sliderInfinite:m.a.sliderInfinite.default,sliderAnimationSpeed:m.a.sliderAnimationSpeed.default,sliderCenterMode:m.a.sliderCenterMode.default,sliderSpacing:m.a.sliderSpacing.default})});return wp.element.createElement(y,null,wp.element.createElement(E,{title:Object(w.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(g.a,{setValues:V,options:["sticky","parentFilter"],values:{postsToShow:a,ignoreSticky:l,filterById:i,excludeById:o,excludeCurrentPost:r,parentPageId:c,postType:s,taxonomy:d,terms:u,relation:p,order:h,orderBy:f},onChangeCallback:function(e,t){}})),wp.element.createElement(E,{title:Object(w.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(b.a,{setValues:V,values:{postTemplate:n},onChangeCallback:function(e,t){}}),wp.element.createElement(j,{label:Object(w.__)("Slides on Desktop","getwid"),type:"number",value:_,onChange:function(e){return V({sliderSlidesToShowDesktop:e.toString()})},min:1,max:10,step:1}),wp.element.createElement(j,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Laptop","getwid"),type:"number",value:parseInt(v,10),min:1,max:10,step:1,onChange:function(e){return V({sliderSlidesToShowLaptop:e.toString()})}}),wp.element.createElement(j,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Tablet","getwid"),type:"number",value:parseInt(k,10),min:1,max:10,step:1,onChange:function(e){return V({sliderSlidesToShowTablet:e.toString()})}}),wp.element.createElement(j,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Mobile","getwid"),type:"number",value:parseInt(N,10),min:1,max:10,step:1,onChange:function(e){return V({sliderSlidesToShowMobile:e.toString()})}}),wp.element.createElement(j,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides to Scroll","getwid"),type:"number",value:parseInt(A,10),min:1,max:10,step:1,onChange:function(e){return V({sliderSlidesToScroll:e.toString()})}}),wp.element.createElement(O,{label:Object(w.__)("Enable Slideshow","getwid"),checked:M,onChange:function(){V({sliderAutoplay:!M})}}),!!M&&wp.element.createElement(j,{label:Object(w.__)("Slideshow Speed","getwid"),type:"number",value:B,min:0,onChange:function(e){return V({sliderAutoplaySpeed:e})}}),wp.element.createElement(O,{label:Object(w.__)("Infinite","getwid"),checked:I,onChange:function(){V({sliderInfinite:!I})}}),wp.element.createElement(j,{label:Object(w.__)("Animation Speed","getwid"),type:"number",value:L,min:0,onChange:function(e){return V({sliderAnimationSpeed:e})}}),wp.element.createElement(O,{label:Object(w.__)("Center Mode","getwid"),checked:P,onChange:function(){V({sliderCenterMode:!P})}}),parseInt(_,10)>1&&wp.element.createElement(C,{label:Object(w.__)("Spacing","getwid"),value:z,onChange:function(e){return V({sliderSpacing:e})},options:[{value:"none",label:Object(w.__)("None","getwid")},{value:"small",label:Object(w.__)("Small","getwid")},{value:"normal",label:Object(w.__)("Medium","getwid")},{value:"large",label:Object(w.__)("Large","getwid")},{value:"huge",label:Object(w.__)("Huge","getwid")}]}),wp.element.createElement(x,null,wp.element.createElement(T,{isLink:!0,onClick:F,disabled:!this.hasSliderSettings()},Object(w.__)("Reset","getwid"))),wp.element.createElement(E,{title:Object(w.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(S,{label:Object(w.__)("Arrows","getwid"),selected:R,options:[{value:"outside",label:Object(w.__)("Outside","getwid")},{value:"inside",label:Object(w.__)("Inside","getwid")},{value:"none",label:Object(w.__)("None","getwid")}],onChange:function(e){return V({sliderArrows:e})}}),wp.element.createElement(S,{label:Object(w.__)("Dots","getwid"),selected:D,options:[{value:"outside",label:Object(w.__)("Outside","getwid")},{value:"inside",label:Object(w.__)("Inside","getwid")},{value:"none",label:Object(w.__)("None","getwid")}],onChange:function(e){return V({sliderDots:e})}}))))}}]),t}(_)},function(e,t){},function(e,t,n){"use strict";function a(e){var t=e.help,n=e.instanceId,a=e.label,l=e.multiple,o=void 0!==l&&l,c=e.groups,u=void 0!==c&&c,p=e.size,m=void 0===p?4:p,g=e.onChange,h=e.options,f=void 0===h?[]:h,_=e.className,v=s()(e,["help","instanceId","label","multiple","groups","size","onChange","options","className"]),y="inspector-select-control-".concat(n),k=function(e){if(o){var t=r()(e.target.options).filter(function(e){return e.selected}),n=t.map(function(e){return e.value});return void g(n)}g(e.target.value)};return!Object(d.isEmpty)(f)&&wp.element.createElement(b,{label:a,id:y,help:t,className:_},wp.element.createElement("select",i()({id:y,className:"components-select-control__input",onChange:k,"aria-describedby":t?"".concat(y,"__help"):void 0,multiple:o,size:m},v),function(){return u?wp.element.createElement(w,null,Object(d.map)(f,function(e,t){return wp.element.createElement(w,null,wp.element.createElement("optgroup",{label:"".concat(e.group_name)},Object(d.map)(e.group_value,function(e,n){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))})):wp.element.createElement(w,null,f.map(function(e,t){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)}))}()))}var l=n(10),i=n.n(l),o=n(16),r=n.n(o),c=n(312),s=n.n(c),d=(n(0),n(11)),u=(n.n(d),n(314)),p=(n.n(u),n(1)),m=(n.n(p),window),g=(m.jQuery,wp.compose.withInstanceId),b=wp.components.BaseControl,w=wp.element.Fragment;t.a=g(a)},function(e,t,n){function a(e,t){if(null==e)return{};var n,a,i=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=n(313);e.exports=a},function(e,t){function n(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}e.exports=n},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(1)),o=(n.n(i),n(11)),r=(n.n(o),n(73)),c=n(319),s=n(13),d=n(322),u=(n.n(d),wp.blocks),p=u.registerBlockType,m=u.createBlock,g="getwid/post-slider";p(g,l()({title:Object(i.__)("Post Slider","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"16,4 8,4 8,6 16,6 "}),wp.element.createElement("polygon",{points:"14,12 8,12 8,14 14,14 "}),wp.element.createElement("polygon",{points:"16,8 8,8 8,10 16,10 "}),wp.element.createElement("path",{d:"M18,2v14H6V2H18 M20,0H4v18h16V0L20,0z"}),wp.element.createElement("circle",{cx:"6",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"12",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"18",cy:"22",r:"2"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes(g)},deprecated:[{attributes:r.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return l()({},e,{sliderArrows:Object(o.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(o.isEqual)(n,"ouside")?"outside":n})},save:function(){return null}}],transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return m("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return m("getwid/post-carousel",e)}},{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return m("getwid/recent-posts",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:"none"!=e.showContent,contentLength:e.contentLength,showFeaturedImage:!0,order:e.order,orderBy:e.orderBy})}}]},attributes:r.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(s.b)(g,c.a),{save:function(){return null}}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(1)),k=(n.n(y),n(11)),C=(n.n(k),n(320)),E=n(321),O=(n.n(E),window),j=O.jQuery,S=wp.element,x=S.Component,T=S.Fragment,N=wp.components,A=N.ServerSideRender,M=N.Placeholder,B=N.Spinner,I=(N.Disabled,wp.blockEditor||wp.editor),L=I.BlockAlignmentToolbar,P=I.AlignmentToolbar,z=I.BlockControls,R=wp.data.withSelect,D=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"destroySlider",value:function(){var e=this.props.clientId;clearInterval(this.waitLoadPosts);var t=j("[data-block='".concat(e,"']")),n=j(".".concat("wp-block-getwid-post-slider","__content"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this,t=this.props.attributes,n=t.sliderAnimationEffect,a=t.sliderAnimationSpeed,l=t.sliderAutoplaySpeed,i=t.sliderAutoplay,o=t.sliderInfinite,r=t.sliderArrows,c=t.sliderDots;this.waitLoadPosts=setInterval(function(){var t=j("#block-".concat(e.props.clientId)),s=t.find(".".concat("wp-block-getwid-post-slider","__content"));s.length&&s.hasClass("no-init-slider")&&"function"==typeof s.imagesLoaded&&(s.imagesLoaded().done(function(){s.not(".slick-initialized").slick({arrows:"none"!=r,dots:"none"!=c,autoplay:i,infinite:o,speed:parseInt(a),autoplaySpeed:parseInt(l),fade:"fade"==n,rows:0,slidesToShow:1,slidesToScroll:1,centerMode:!1,variableWidth:!1,pauseOnHover:!0,adaptiveHeight:!0}),s.removeClass("no-init-slider")}),clearInterval(e.waitLoadPosts))},1e3)}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}},{key:"componentDidUpdate",value:function(e,t){Object(k.isEqual)(e.attributes,this.props.attributes)||(this.destroySlider(),this.initSlider())}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,a=t.postTemplate,i=t.textAlignment,r=e.setAttributes,c=e.recentPosts,s=this.changeState,d=this.getState,u=Array.isArray(c)&&c.length;return u?wp.element.createElement(T,null,wp.element.createElement(C.a,l()({},o()({},this.props,{changeState:s},{getState:d}),{key:"inspector"})),wp.element.createElement(z,null,wp.element.createElement(L,{value:n,controls:["wide","full"],onChange:function(e){r({align:e})}}),void 0!==a&&""!=a&&wp.element.createElement(P,{value:i,onChange:function(e){return r({textAlignment:e})}})),wp.element.createElement(A,{block:"getwid/post-slider",attributes:this.props.attributes})):wp.element.createElement(T,null,wp.element.createElement(C.a,l()({},o()({},this.props,{changeState:s},{getState:d},{hasPosts:u}),{key:"inspector"})),wp.element.createElement(M,{icon:"admin-post",label:Object(y.__)("Post Slider","getwid")},Array.isArray(c)?Object(y.__)("No posts found.","getwid"):wp.element.createElement(B,null)))}}]),t}(x);t.a=R(function(e,t){var n=t.attributes,a=n.postsToShow,l=n.order,i=n.orderBy;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(k.pickBy)({order:l,orderby:i,per_page:a},function(e){return!Object(k.isUndefined)(e)}))}})(D)},function(e,t,n){"use strict";n.d(t,"a",function(){return N});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(73)),g=n(17),b=n(39),w=n(40),h=n(1),f=(n.n(h),window),_=(f.jQuery,wp.element),v=_.Component,y=(_.Fragment,wp.blockEditor||wp.editor),k=y.InspectorControls,C=(y.PanelColorSettings,wp.components),E=(C.SelectControl,C.PanelBody),O=(C.RangeControl,C.ToggleControl),j=C.TextControl,S=C.RadioControl,x=C.BaseControl,T=C.Button,N=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAutoplay,a=e.sliderAutoplaySpeed,l=e.sliderInfinite,i=e.sliderAnimationSpeed;return t!=m.a.sliderAnimationEffect.default||n!=m.a.sliderAutoplay.default||a!=m.a.sliderAutoplaySpeed.default||l!=m.a.sliderInfinite.default||i!=m.a.sliderAnimationSpeed.default}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postTemplate,a=t.postsToShow,l=t.ignoreSticky,i=t.filterById,o=t.excludeById,r=t.excludeCurrentPost,c=t.parentPageId,s=t.postType,d=t.taxonomy,u=t.terms,p=t.relation,f=t.order,_=t.orderBy,v=t.minHeight,y=(t.align,t.sliderAnimationEffect),C=t.sliderAutoplay,N=t.sliderAutoplaySpeed,A=t.sliderInfinite,M=t.sliderAnimationSpeed,B=t.sliderArrows,I=t.sliderDots,L=e.setAttributes,P=(e.changeState,e.getState,function(){L({sliderAnimationEffect:m.a.sliderAnimationEffect.default,sliderAutoplay:m.a.sliderAutoplay.default,sliderAutoplaySpeed:m.a.sliderAutoplaySpeed.default,sliderInfinite:m.a.sliderInfinite.default,sliderAnimationSpeed:m.a.sliderAnimationSpeed.default})});return wp.element.createElement(k,null,wp.element.createElement(E,{title:Object(h.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(b.a,{setValues:L,options:["sticky","parentFilter"],values:{postsToShow:a,ignoreSticky:l,postType:s,filterById:i,excludeById:o,excludeCurrentPost:r,parentPageId:c,taxonomy:d,terms:u,relation:p,order:f,orderBy:_},onChangeCallback:function(e,t){}})),wp.element.createElement(E,{title:Object(h.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(g.a,{label:Object(h.__)("Slider Minimum Height","getwid"),value:v,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return L({minHeight:e})}}),wp.element.createElement(w.a,{setValues:L,values:{postTemplate:n},onChangeCallback:function(e,t){}}),wp.element.createElement(S,{label:Object(h.__)("Animation Effect","getwid"),selected:y,options:[{value:"slide",label:Object(h.__)("Slide","getwid")},{value:"fade",label:Object(h.__)("Fade","getwid")}],onChange:function(e){return L({sliderAnimationEffect:e})}}),wp.element.createElement(O,{label:Object(h.__)("Enable Slideshow","getwid"),checked:C,onChange:function(){L({sliderAutoplay:!C})}}),!!C&&wp.element.createElement(j,{label:Object(h.__)("Slideshow Speed","getwid"),type:"number",value:N,min:0,onChange:function(e){return L({sliderAutoplaySpeed:e})}}),wp.element.createElement(O,{label:Object(h.__)("Infinite","getwid"),checked:A,onChange:function(){L({sliderInfinite:!A})}}),wp.element.createElement(j,{label:Object(h.__)("Animation Speed","getwid"),type:"number",value:M,min:0,onChange:function(e){return L({sliderAnimationSpeed:e})}}),wp.element.createElement(x,null,wp.element.createElement(T,{isLink:!0,onClick:P,disabled:!this.hasSliderSettings()},Object(h.__)("Reset","getwid"))),wp.element.createElement(E,{title:Object(h.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(S,{label:Object(h.__)("Arrows","getwid"),selected:B,options:[{value:"outside",label:Object(h.__)("Outside","getwid")},{value:"inside",label:Object(h.__)("Inside","getwid")},{value:"none",label:Object(h.__)("None","getwid")}],onChange:function(e){return L({sliderArrows:e})}}),wp.element.createElement(S,{label:Object(h.__)("Dots","getwid"),selected:I,options:[{value:"outside",label:Object(h.__)("Outside","getwid")},{value:"inside",label:Object(h.__)("Inside","getwid")},{value:"none",label:Object(h.__)("None","getwid")}],onChange:function(e){return L({sliderDots:e})}}))))}}]),t}(v)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(324)),o=n(325),r=n(13),c=n(328),s=(n.n(c),n(1)),d=(n.n(s),window),u=(d.jQuery,wp.blocks),p=u.registerBlockType,m=u.createBlock,g="getwid/custom-post-type";p(g,l()({title:Object(s.__)("Custom Post Type","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M0,0v10h10V0H0z M8,8H2V2h6V8z"}),wp.element.createElement("rect",{x:"12",y:"2",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"6",width:"8",height:"2"}),wp.element.createElement("path",{d:"M0,14v10h10V14H0z M8,22H2v-6h6V22z"}),wp.element.createElement("rect",{x:"12",y:"16",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"20",width:"8",height:"2"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes(g)},transforms:{to:[{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return m("getwid/recent-posts",{postsToShow:e.postsToShow,postLayout:e.postLayout,columns:e.columns,order:e.order,orderBy:e.orderBy,showContent:!0,align:e.align})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return m("getwid/post-carousel",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return m("getwid/post-slider",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align})}}]},attributes:i.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(r.b)(g,o.a),{save:function(){return null}}))},function(e,t,n){"use strict";var a={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},pagination:{type:"boolean",default:!1},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},spacing:{type:"string",default:"default"},align:{type:"string"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(11)),k=(n.n(y),n(326)),C=n(327),E=(n.n(C),n(1)),O=(n.n(E),wp.element),j=O.Component,S=O.Fragment,x=wp.components,T=x.Placeholder,N=x.Spinner,A=x.ServerSideRender,M=x.Disabled,B=x.Toolbar,I=window,L=(I.jQuery,wp.blockEditor||wp.editor),P=L.BlockAlignmentToolbar,z=L.BlockControls,R=wp.data.withSelect,D=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,a=t.postLayout,i=e.setAttributes,r=e.recentPosts,c=(e.className,this.changeState),s=this.getState,d=Array.isArray(r)&&r.length;return d?wp.element.createElement(S,null,wp.element.createElement(k.a,l()({},o()({},this.props,{changeState:c},{getState:s},{hasPosts:d}),{key:"inspector"})),wp.element.createElement(z,null,wp.element.createElement(P,{value:n,controls:["wide","full"],onChange:function(e){i({align:e})}}),wp.element.createElement(B,{controls:[{icon:"list-view",title:Object(E.__)("List View","getwid"),onClick:function(){return i({postLayout:"list"})},isActive:"list"===a},{icon:"grid-view",title:Object(E.__)("Grid View","getwid"),onClick:function(){return i({postLayout:"grid"})},isActive:"grid"===a}]})),wp.element.createElement(M,null,wp.element.createElement(A,{block:"getwid/custom-post-type",attributes:this.props.attributes}))):wp.element.createElement(S,null,wp.element.createElement(k.a,l()({},o()({},this.props,{changeState:c},{getState:s},{hasPosts:d}),{key:"inspector"})),wp.element.createElement(T,{icon:"admin-post",label:Object(E.__)("Custom Post Type","getwid")},Array.isArray(r)?Object(E.__)("No posts found.","getwid"):wp.element.createElement(N,null)))}}]),t}(j);t.a=R(function(e,t){var n=t.attributes,a=n.postsToShow,l=n.order,i=n.orderBy;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(y.pickBy)({order:l,orderby:i,per_page:a},function(e){return!Object(y.isUndefined)(e)}))}})(D)},function(e,t,n){"use strict";n.d(t,"a",function(){return j});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(39)),g=n(40),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element),f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,k=wp.components,C=k.SelectControl,E=k.PanelBody,O=k.RangeControl,j=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postsToShow,a=t.pagination,l=t.ignoreSticky,i=t.postTemplate,o=t.filterById,r=t.excludeById,c=t.excludeCurrentPost,s=t.parentPageId,d=t.postType,u=t.taxonomy,p=t.terms,w=t.relation,h=t.order,f=t.orderBy,v=(t.align,t.postLayout),k=t.columns,j=t.spacing,S=e.setAttributes,x=e.recentPosts,T=e.hasPosts;e.changeState,e.getState;return wp.element.createElement(y,null,wp.element.createElement(E,{title:Object(b.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(m.a,{setValues:S,options:["page","sticky","parentFilter"],values:{postsToShow:n,pagination:a,ignoreSticky:l,filterById:o,excludeById:r,excludeCurrentPost:c,parentPageId:s,postType:d,taxonomy:u,terms:p,relation:w,order:h,orderBy:f},onChangeCallback:function(e,t){}})),wp.element.createElement(E,{title:Object(b.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(C,{label:Object(b.__)("Layout","getwid"),value:v,onChange:function(e){return S({postLayout:e})},options:[{value:"list",label:Object(b.__)("List","getwid")},{value:"grid",label:Object(b.__)("Grid","getwid")}]}),"grid"===v&&wp.element.createElement(_,null,wp.element.createElement(O,{label:Object(b.__)("Columns","getwid"),value:k,onChange:function(e){return S({columns:e})},min:1,max:T?Math.min(6,x.length):6})),wp.element.createElement(C,{label:Object(b.__)("Spacing","getwid"),value:j,onChange:function(e){return S({spacing:e})},options:[{value:"default",label:Object(b.__)("Default","getwid")},{value:"none",label:Object(b.__)("None","getwid")},{value:"small",label:Object(b.__)("Small","getwid")},{value:"medium",label:Object(b.__)("Medium","getwid")},{value:"normal",label:Object(b.__)("Normal","getwid")},{value:"large",label:Object(b.__)("Large","getwid")}]}),wp.element.createElement(g.a,{setValues:S,values:{postTemplate:i},onChangeCallback:function(e,t){}})))}}]),t}(f)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(330)),o=n(331),r=n(333),c=n(334),s=n(13),d=n(335),u=(n.n(d),n(336)),p=(n.n(u),n(1)),m=(n.n(p),window),g=(m.jQuery,wp.blocks),b=g.registerBlockType,w=g.createBlock;b("getwid/price-list",l()({title:Object(p.__)("Price List","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{y:"2",width:"15",height:"2"}),wp.element.createElement("rect",{y:"6",width:"10",height:"2"}),wp.element.createElement("path",{d:"M24,2h-2V1h-2v1l0,0c-1.1,0-2,0.9-2,2v0.99C18,6.1,18.9,7,20.01,7L22,7.01V8h-4v2h2v1h2v-1h-0.02C23.09,10,24,9.09,24,7.98\tV7.01C24,5.9,23.1,5,21.99,5L20,4.99V4h4V2z"}),wp.element.createElement("rect",{y:"14",width:"15",height:"2"}),wp.element.createElement("rect",{y:"18",width:"10",height:"2"}),wp.element.createElement("path",{d:"M24,14h-2v-1h-2v1l0,0c-1.1,0-2,0.9-2,2v0.99C18,18.1,18.9,19,20.01,19L22,19.01V20h-4v2h2v1h2v-1h-0.02\tc1.11,0,2.02-0.91,2.02-2.02v-0.97C24,17.9,23.1,17,21.99,17L20,16.99V16h4V14z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/price-list")},keywords:[Object(p.__)("price","getwid"),Object(p.__)("list","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:i.a,save:c.a}],attributes:i.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("getwid/price-list",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/testimonial"],transform:function(e){return w("getwid/testimonial",{imgId:e.id,imgUrl:e.url,title:e.title,subtitle:e.description})}},{type:"block",blocks:["getwid/price-box"],transform:function(e){return w("getwid/price-box",{title:e.title,currency:e.currency,amount:e.amount})}}]}},Object(s.b)("getwid/price-list",function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:"wp-block-getwid-price-list"}))}),{save:function(e){return wp.element.createElement(r.a,l()({},e,{baseClass:"wp-block-getwid-price-list"}))}}))},function(e,t,n){"use strict";var a={align:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},title:{type:"string",source:"html",selector:".wp-block-getwid-price-list__title"},amount:{type:"string",source:"html",selector:".wp-block-getwid-price-list__amount"},currency:{type:"string",source:"html",selector:".wp-block-getwid-price-list__currency"},description:{type:"string",source:"html",selector:".wp-block-getwid-price-list__description"},dotted:{type:"boolean",default:!0},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-price-list__image",attribute:"src"},titleTag:{type:"string",default:"p"},currencyPosition:{type:"string",default:"currency-before"}};t.a=a},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(332)),w=n(7),h=n.n(w),f=n(1),_=(n.n(f),n(11)),v=(n.n(_),wp.compose.compose),y=wp.element,k=y.Component,C=y.Fragment,E=wp.components,O=E.Toolbar,j=E.IconButton,S=wp.blockEditor||wp.editor,x=S.RichText,T=S.withColors,N=S.MediaUploadCheck,A=S.MediaUpload,M=S.BlockControls,B=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,a=e.textColor,i=e.setAttributes,o=this.props.attributes,r=o.title,c=o.amount,s=o.currency,d=o.description,u=o.url,p=o.id,m=o.titleTag,g=o.customTextColor,w=o.dotted,v=o.currencyPosition,y=wp.element.createElement(C,null,wp.element.createElement(M,null,wp.element.createElement(O,null,wp.element.createElement(N,null,wp.element.createElement(A,{onSelect:function(e){i({id:Object(_.get)(e,"id"),url:Object.keys(Object(_.get)(e,["sizes"])).includes("thumbnail")?Object(_.get)(e,["sizes","thumbnail","url"]):Object(_.get)(e,["sizes","full","url"])})},allowedTypes:["image"],value:p,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(j,{className:"components-toolbar__control",label:Object(f.__)("Select Image","getwid"),icon:"format-image",onClick:t}))}})),u&&wp.element.createElement("div",null,wp.element.createElement(j,{className:"components-toolbar__control",label:Object(f.__)("Delete Image","getwid"),icon:"trash",onClick:function(){i({id:void 0,url:void 0})}}))))),k={className:h()("".concat(t),{"has-dots":w})},E={className:h()("".concat(n,"__price-wrapper"),{"has-currency-after":"currency-after"==v,"has-currency-after-space":"currency-after-space"==v,"has-currency-before-space":"currency-before-space"==v})},S={className:h()("".concat(n,"__content-wrapper"),l()({"has-text-color":a.color},a.class,a.class)),style:{color:a.color?a.color:g}};return wp.element.createElement(C,null,y,wp.element.createElement(b.a,this.props),wp.element.createElement("div",k," ",u&&wp.element.createElement("div",{className:"".concat(n,"__image-wrapper")}," ",wp.element.createElement("img",{src:u,alt:"",className:"".concat(n,"__image")})),wp.element.createElement("div",S,wp.element.createElement("div",{className:"".concat(n,"__header")},wp.element.createElement(x,{tagName:m,className:"".concat(n,"__title"),placeholder:Object(f.__)("Write heading…","getwid"),value:r||"",onChange:function(e){i({title:e})},keepPlaceholderOnFocus:!0,multiline:!1}),wp.element.createElement("div",{className:"".concat(n,"__price-line")}),wp.element.createElement("div",E,wp.element.createElement(x,{tagName:m,className:"".concat(n,"__currency"),placeholder:"$",value:s||"",onChange:function(e){i({currency:e})},keepPlaceholderOnFocus:!0,multiline:!1}),wp.element.createElement(x,{tagName:m,className:"".concat(n,"__amount"),placeholder:"19.99",value:c||"",onChange:function(e){i({amount:e})},keepPlaceholderOnFocus:!0,multiline:!1}))),wp.element.createElement(x,{tagName:"p",className:"".concat(n,"__description"),placeholder:Object(f.__)("Write text…","getwid"),value:d||"",onChange:function(e){i({description:e})},keepPlaceholderOnFocus:!0,multiline:!1}))))}}]),t}(k);t.a=v([T("backgroundColor",{textColor:"color"})])(B)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(14)),b=n(15),w=n(11),h=(n.n(w),wp.element.Component),f=wp.blockEditor||wp.editor,_=f.InspectorControls,v=wp.components,y=v.SelectControl,k=v.PanelBody,C=v.CheckboxControl,E=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setTextColor,a=e.setAttributes,l=this.props.attributes,i=l.titleTag,o=l.dotted,r=l.currencyPosition,c=l.url,s=l.id,d=l.customTextColor;return wp.element.createElement(_,null,wp.element.createElement(k,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(g.d,{label:Object(m.__)("Image","getwid"),url:c,id:s,onSelectMedia:function(e){return a({id:Object(w.get)(e,"id"),url:Object.keys(Object(w.get)(e,["sizes"])).includes("thumbnail")?Object(w.get)(e,["sizes","thumbnail","url"]):Object(w.get)(e,["sizes","full","url"])})},onRemoveMedia:function(){return a({url:void 0,id:void 0})}}),wp.element.createElement(y,{label:Object(m.__)("Title Tag","getwid"),value:i,options:[{value:"p",label:Object(m.__)("Paragraph","getwid")},{value:"h2",label:Object(m.__)("Heading 2","getwid")},{value:"h3",label:Object(m.__)("Heading 3","getwid")},{value:"h4",label:Object(m.__)("Heading 4","getwid")},{value:"h5",label:Object(m.__)("Heading 5","getwid")},{value:"h6",label:Object(m.__)("Heading 6","getwid")}],onChange:function(e){return a({titleTag:e})}}),wp.element.createElement(y,{label:Object(m.__)("Currency Position","getwid"),value:r,onChange:function(e){return a({currencyPosition:e})},options:[{value:"currency-before",label:Object(m.__)("Before","getwid")},{value:"currency-before-space",label:Object(m.__)("Before with space","getwid")},{value:"currency-after",label:Object(m.__)("After","getwid")},{value:"currency-after-space",label:Object(m.__)("After with space","getwid")}]}),wp.element.createElement(C,{label:Object(m.__)("Divider","getwid"),checked:o,onChange:function(e){return a({dotted:e})}}),wp.element.createElement(b.a,{colorSettings:[{title:Object(m.__)("Colors","getwid"),colors:{customColor:d,defaultColor:t},changeColor:n}]})))}}]),t}(h);t.a=E},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=wp.element,v=_.Component,y=_.Fragment,k=wp.blockEditor||wp.editor,C=k.RichText,E=k.getColorClassName,O=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.baseClass,i=this.props.attributes,r=i.title,c=i.currency,s=i.amount,d=i.description,u=i.currencyPosition,p=this.props.attributes,m=p.id,g=p.url,b=p.titleTag,w=p.textColor,h=p.customTextColor,_=p.dotted,v=E("color",w),k={className:f()("".concat(n),(e={"has-text-color":w||h},o()(e,v,v),o()(e,"has-dots",_),e))},O={className:f()("".concat(a,"__price-wrapper"),{"has-currency-after":"currency-after"==u,"has-currency-after-space":"currency-after-space"==u,"has-currency-before-space":"currency-before-space"==u})},j={color:void 0==v?h:void 0};return wp.element.createElement(y,null,wp.element.createElement("div",l()({},k,{style:j})," ",g&&wp.element.createElement("div",{className:"".concat(a,"__image-wrapper")},wp.element.createElement("img",{src:g,alt:"",className:"".concat(a,"__image ")+(m?"wp-image-".concat(m):"")})),r||c||s||d?wp.element.createElement("div",{className:"".concat(a,"__content-wrapper")},wp.element.createElement("div",{className:"".concat(a,"__header")},r&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__title"),value:r}),r&&wp.element.createElement("div",{className:"".concat(a,"__price-line")}),wp.element.createElement("div",O,c&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__currency"),value:c}),s&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__amount"),value:s}))),d&&wp.element.createElement(C.Content,{tagName:"p",className:"".concat(a,"__description"),value:d})):null))}}]),t}(v);t.a=O},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=wp.element,v=_.Component,y=_.Fragment,k=wp.blockEditor||wp.editor,C=k.RichText,E=k.getColorClassName,O=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.baseClass,i=this.props.attributes,r=i.title,c=i.currency,s=i.amount,d=i.description,u=i.currencyPosition,p=this.props.attributes,m=p.id,g=p.url,b=p.titleTag,w=p.textColor,h=p.customTextColor,_=p.dotted,v=E("color",w),k={className:f()("".concat(n),(e={"has-text-color":w||h},o()(e,v,v),o()(e,"has-dots",_),e))},O={className:f()("".concat(a,"__price-wrapper"),{"has-currency-after":"currency-after"==u,"has-currency-after-space":"currency-after-space"==u,"has-currency-before-space":"currency-before-space"==u})},j={color:void 0==v?h:void 0};return wp.element.createElement(y,null,wp.element.createElement("div",l()({},k,{style:j})," ",g&&wp.element.createElement("div",{className:"".concat(a,"__image-wrapper")},wp.element.createElement("img",{src:g,alt:"",className:"".concat(a,"__image ")+(m?"wp-image-".concat(m):null)})),r||c||s||d?wp.element.createElement("div",{className:"".concat(a,"__content-wrapper")},wp.element.createElement("div",{className:"".concat(a,"__header")},r&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__title"),value:r}),r&&wp.element.createElement("div",{className:"".concat(a,"__price-line")}),wp.element.createElement("div",O,c&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__currency"),value:c}),s&&wp.element.createElement(C.Content,{tagName:b,className:"".concat(a,"__amount"),value:s}))),d&&wp.element.createElement(C.Content,{tagName:"p",className:"".concat(a,"__description"),value:d})):null))}}]),t}(v);t.a=O},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(338),n(343),n(348),n(353),n(359),n(365),n(370),n(375),n(380),n(385),n(390),n(395),n(400),n(405)},function(e,t,n){"use strict";var a=n(339),l=n(342),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-title",{title:Object(i.__)("Title","getwid"),icon:"editor-textcolor",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(340)),v=n(7),y=n.n(v),k=n(341),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.Toolbar,A=S.withFallbackStyles,M=window,B=(M.jQuery,wp.blockEditor||wp.editor),I=(B.BlockAlignmentToolbar,B.AlignmentToolbar),L=B.BlockControls,P=B.withColors,z=B.withFontSizes,R=wp.data.select,D=wp.compose.compose,V=window,F=V.getComputedStyle,H=A(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?F(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.headerTag,i=t.bold,r=t.italic,s=e.textColor,d=e.fontSize,u=e.setAttributes,p=R("core/editor").getCurrentPostType(),m=a;return p&&p==Getwid.templates.name?wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(I,{value:n,onChange:function(e){return u({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(C.__)("Bold","getwid"),isActive:i,onClick:function(){u({bold:!i})}},{icon:"editor-italic",title:Object(C.__)("Italic","getwid"),isActive:r,onClick:function(){u({italic:!r})}}]})),wp.element.createElement(m,{className:y()(l()({},d.class,d.class)),style:{color:s.color,textAlign:n,fontWeight:i?"bold":void 0,fontStyle:r?"italic":void 0,fontSize:d.size?d.size+"px":void 0}},Object(C.__)("Post Title","getwid"))):wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-title",attributes:this.props.attributes})))}}]),t}(O);t.a=D([P("backgroundColor",{textColor:"color"}),z("fontSize"),H])(W)},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,f=w.InspectorControls,_=w.FontSizePicker,v=wp.components,y=v.SelectControl,k=v.PanelBody,C=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.linkTo,a=t.headerTag,l=e.textColor,i=e.setTextColor,o=e.fontSize,r=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(f,null,wp.element.createElement(k,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(_,{fallbackFontSize:c,value:o.size,onChange:r}),wp.element.createElement(h,{title:Object(m.__)("Text Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(m.__)("Text Color","getwid")}]}),wp.element.createElement(y,{label:Object(m.__)("Link to","getwid"),value:n,onChange:function(e){return s({linkTo:e})},options:[{value:"none",label:Object(m.__)("None","getwid")},{value:"post",label:Object(m.__)("Post","getwid")}]}),wp.element.createElement(y,{label:Object(m.__)("Title Tag","getwid"),value:a,options:[{value:"p",label:Object(m.__)("Paragraph","getwid")},{value:"h2",label:Object(m.__)("Heading 2","getwid")},{value:"h3",label:Object(m.__)("Heading 3","getwid")},{value:"h4",label:Object(m.__)("Heading 4","getwid")},{value:"h5",label:Object(m.__)("Heading 5","getwid")},{value:"h6",label:Object(m.__)("Heading 6","getwid")}],onChange:function(e){return s({headerTag:e})}})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(344),l=n(347),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-featured-image",{title:Object(i.__)("Featured Image","getwid"),icon:"format-image",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(345)),f=n(346),_=(n.n(f),n(7)),v=n.n(_),y=n(1),k=(n.n(y),wp.element),C=k.Component,E=k.Fragment,O=wp.components,j=O.ServerSideRender,S=O.Disabled,x=O.Dashicon,T=window,N=(T.jQuery,wp.blockEditor||wp.editor),A=N.BlockAlignmentToolbar,M=N.BlockControls,B=wp.data.select,I=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.align,n=e.className,a=e.setAttributes,i=B("core/editor").getCurrentPostType(),r=v()(n,t?"align".concat(t):null);return i&&i==Getwid.templates.name?wp.element.createElement(E,null,wp.element.createElement(h.a,l()({},o()({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(A,{value:t,controls:["left","center","right"],onChange:function(e){a({align:e})}})),wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(x,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(y.__)("Featured Image","getwid"))))):wp.element.createElement(E,null,wp.element.createElement(S,null,wp.element.createElement(j,{block:"getwid/template-post-featured-image",attributes:this.props.attributes})))}}]),t}(C);t.a=I},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=wp.components,_=f.SelectControl,v=f.PanelBody,y=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.linkTo,a=t.imageSize,l=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(v,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(_,{label:Object(m.__)("Link to","getwid"),value:n,onChange:function(e){return l({linkTo:e})},options:[{value:"none",label:Object(m.__)("None","getwid")},{value:"post",label:Object(m.__)("Post","getwid")}]}),wp.element.createElement(_,{label:Object(m.__)("Image Size","getwid"),help:Object(m.__)("For images from Media Library only.","getwid"),value:a,onChange:function(e){l({imageSize:e})},options:Getwid.settings.image_sizes})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(349),l=n(352),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-content",{title:Object(i.__)("Content","getwid"),icon:"text",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(350)),v=n(7),y=n.n(v),k=n(351),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.withFallbackStyles,A=window,M=(A.jQuery,wp.blockEditor||wp.editor),B=(M.BlockAlignmentToolbar,M.AlignmentToolbar),I=M.BlockControls,L=M.withColors,P=M.withFontSizes,z=wp.data.select,R=wp.compose.compose,D=window,V=D.getComputedStyle,F=N(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?V(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),H=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.showContent,i=e.textColor,r=e.fontSize,s=e.className,d=e.setAttributes,u=z("core/editor").getCurrentPostType(),p="";return"excerpt"==a?p=Object(C.__)("Post Content (excerpt)","getwid"):"content"==a?p=Object(C.__)("Post Content (content)","getwid"):"full"==a&&(p=Object(C.__)("Post Content (full content)","getwid")),u&&u==Getwid.templates.name?wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(B,{value:n,onChange:function(e){return d({textAlignment:e})}})),wp.element.createElement("div",{className:y()(s,l()({},r.class,r.class)),style:{color:i.color,textAlign:n,fontSize:r.size?r.size+"px":void 0}},p)):wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-content",attributes:this.props.attributes})))}}]),t}(O);t.a=R([L("backgroundColor",{textColor:"color"}),P("fontSize"),F])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return j});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element),w=b.Component,h=b.Fragment,f=wp.blockEditor||wp.editor,_=f.PanelColorSettings,v=f.InspectorControls,y=f.FontSizePicker,k=wp.components,C=k.SelectControl,E=k.PanelBody,O=k.RangeControl,j=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.showContent,a=t.contentLength,l=e.textColor,i=e.setTextColor,o=e.fontSize,r=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(E,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(_,{title:Object(m.__)("Text Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(m.__)("Text Color","getwid")}]}),wp.element.createElement(C,{label:Object(m.__)("Display Content","getwid"),value:n,options:[{value:"excerpt",label:Object(m.__)("Excerpt","getwid")},{value:"content",label:Object(m.__)("Post Content","getwid")},{value:"full",label:Object(m.__)("Full Content","getwid")}],onChange:function(e){return s({showContent:e})}}),"excerpt"==n&&wp.element.createElement(h,null,wp.element.createElement(O,{label:Object(m.__)("Number of words","getwid"),value:a,onChange:function(e){return s({contentLength:e})},min:5,max:Getwid.settings.excerpt_length}),wp.element.createElement(y,{fallbackFontSize:c,value:o.size,onChange:r}))))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(354),l=n(355),i=n(358),o=(n.n(i),n(1));n.n(o);(0,wp.blocks.registerBlockType)("getwid/template-post-link",{title:Object(o.__)("Link","getwid"),icon:"admin-links",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},attributes:a.a,edit:l.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(1),l=(n.n(a),window),i=(l.jQuery,{textColor:{type:"string"},customTextColor:{type:"string"},buttonText:{type:"string",default:Object(a.__)("Read More","getwid")},align:{type:"string"},textAlignment:{type:"string"}});t.a=i},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(7)),k=n.n(y),C=n(356),E=n(357),O=(n.n(E),n(1)),j=(n.n(O),wp.element),S=j.Component,x=j.Fragment,T=wp.components,N=T.ServerSideRender,A=T.Disabled,M=window,B=(M.jQuery,wp.blockEditor||wp.editor),I=B.AlignmentToolbar,L=B.BlockControls,P=B.withColors,z=B.RichText,R=wp.data.select,D=wp.compose.compose,V=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.nodeRef=null,e.bindRef=e.bindRef.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.buttonText,i=e.textColor,r=e.setAttributes,s=e.className,d=R("core/editor").getCurrentPostType();return d&&d==Getwid.templates.name?wp.element.createElement(x,null,wp.element.createElement(C.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(I,{value:n,onChange:function(e){return r({textAlignment:e})}})),wp.element.createElement("div",{className:k()(s),style:{textAlign:n}},wp.element.createElement("div",{ref:this.bindRef},wp.element.createElement(z,{placeholder:Object(O.__)("Read More","getwid"),value:a,onChange:function(e){return r({buttonText:e})},formattingControls:["bold","italic","strikethrough"],className:k()(l()({"has-text-color":i.color},i.class,i.class)),style:{color:i.color},keepPlaceholderOnFocus:!0})))):wp.element.createElement(x,null,wp.element.createElement(A,null,wp.element.createElement(N,{block:"getwid/template-post-link",attributes:this.props.attributes})))}}]),t}(S);t.a=D([P({textColor:"color"})])(V)},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,f=w.InspectorControls,_=wp.components.PanelBody,v=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setTextColor;return wp.element.createElement(f,null,wp.element.createElement(_,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(h,{title:Object(m.__)("Text Color","getwid"),colorSettings:[{value:t.color,onChange:n,label:Object(m.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=(n(0),n(360)),l=n(361),i=n(364),o=(n.n(i),n(1));n.n(o);(0,wp.blocks.registerBlockType)("getwid/template-post-button",{title:Object(o.__)("Button","getwid"),icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},attributes:a.a,edit:l.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(1),l=(n.n(a),window),i=(l.jQuery,{backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},buttonText:{type:"string",default:Object(a.__)("Read More","getwid")},align:{type:"string"},textAlignment:{type:"string"}});t.a=i},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(7)),k=n.n(y),C=n(362),E=n(363),O=(n.n(E),n(1)),j=(n.n(O),wp.element),S=j.Component,x=j.Fragment,T=wp.components,N=T.ServerSideRender,A=T.Disabled,M=T.withFallbackStyles,B=window,I=(B.jQuery,wp.blockEditor||wp.editor),L=(I.BlockAlignmentToolbar,I.AlignmentToolbar),P=I.BlockControls,z=I.withColors,R=I.RichText,D=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,W=M(function(e,t){var n=t.textColor,a=t.backgroundColor,l=a&&a.color,i=n&&n.color,o=!i&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:l||!e?void 0:H(e).backgroundColor,fallbackTextColor:i||!o?void 0:H(o).color}}),U=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.nodeRef=null,e.bindRef=e.bindRef.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.buttonText,i=e.backgroundColor,r=e.textColor,s=e.setAttributes,d=e.className,u=D("core/editor").getCurrentPostType();if(u&&u==Getwid.templates.name){var p;return wp.element.createElement(x,null,wp.element.createElement(C.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(P,null,wp.element.createElement(L,{value:n,onChange:function(e){return s({textAlignment:e})}})),wp.element.createElement("div",{className:k()(d),style:{textAlign:n}},wp.element.createElement("div",{className:k()("wp-block-button"),ref:this.bindRef},wp.element.createElement(R,{placeholder:Object(O.__)("Read More","getwid"),value:a,onChange:function(e){return s({buttonText:e})},formattingControls:["bold","italic","strikethrough"],className:k()("wp-block-button__link",(p={"has-background":i.color},l()(p,i.class,i.class),l()(p,"has-text-color",r.color),l()(p,r.class,r.class),p)),style:{backgroundColor:i.color,color:r.color},keepPlaceholderOnFocus:!0}))))}return wp.element.createElement(x,null,wp.element.createElement(A,null,wp.element.createElement(N,{block:"getwid/template-post-link",attributes:this.props.attributes})))}}]),t}(S);t.a=V([z("backgroundColor",{textColor:"color"}),W])(U)},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,f=w.InspectorControls,_=wp.components.PanelBody,v=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.backgroundColor,n=e.setBackgroundColor,a=e.textColor,l=e.setTextColor;return wp.element.createElement(f,null,wp.element.createElement(_,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(h,{title:Object(m.__)("Colors","getwid"),colorSettings:[{value:a.color,onChange:l,label:Object(m.__)("Text Color","getwid")},{value:t.color,onChange:n,label:Object(m.__)("Background Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(366),l=n(369),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-author",{title:Object(i.__)("Author","getwid"),icon:"admin-users",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(367)),v=n(7),y=n.n(v),k=n(368),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.withFallbackStyles,A=window,M=(A.jQuery,wp.blockEditor||wp.editor),B=(M.BlockAlignmentToolbar,M.AlignmentToolbar),I=M.BlockControls,L=M.withColors,P=M.withFontSizes,z=wp.data.select,R=wp.compose.compose,D=window,V=D.getComputedStyle,F=N(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?V(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),H=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.icon,i=t.blockDivider,r=e.backgroundColor,s=e.textColor,d=e.iconColor,u=e.fontSize,p=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var b;return wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(B,{value:n,onChange:function(e){return p({textAlignment:e})}})),wp.element.createElement("div",{className:y()(m,(b={"has-background":r.color},l()(b,r.class,r.class),l()(b,"has-text-color",s.color),l()(b,s.class,s.class),l()(b,u.class,u.class),b)),style:{textAlign:n,backgroundColor:r.color,color:s.color,fontSize:u.size?u.size+"px":void 0}},a?wp.element.createElement("i",{style:{color:d.color?d.color:void 0},className:y()(a,l()({"has-text-color":d.color},d.class,d.class))}):void 0," ",Object(C.__)("Author","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-author",attributes:this.props.attributes})))}}]),t}(O);t.a=R([L("backgroundColor",{textColor:"color"},"iconColor"),P("fontSize"),F])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(18)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.PanelColorSettings,_=h.InspectorControls,v=h.FontSizePicker,y=wp.components,k=y.PanelBody,C=y.BaseControl,E=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),a=e.setTextColor,l=e.iconColor,i=e.setIconColor,o=e.fontSize,r=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(v,{fallbackFontSize:c,value:o.size,onChange:r}),wp.element.createElement(C,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(m.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(f,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:a,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(f,{initialOpen:!1,title:Object(g.__)("Icon Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(g.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(371),l=n(374),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-categories",{title:Object(i.__)("Categories","getwid"),icon:"category",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(372)),v=n(7),y=n.n(v),k=n(373),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.withFallbackStyles,A=window,M=(A.jQuery,wp.blockEditor||wp.editor),B=(M.BlockAlignmentToolbar,M.AlignmentToolbar),I=M.BlockControls,L=M.withColors,P=M.withFontSizes,z=wp.data.select,R=wp.compose.compose,D=window,V=D.getComputedStyle,F=N(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?V(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),H=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.icon,i=t.blockDivider,r=e.backgroundColor,s=e.textColor,d=e.iconColor,u=e.fontSize,p=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var b;return wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(B,{value:n,onChange:function(e){return p({textAlignment:e})}})),wp.element.createElement("div",{className:y()(m,(b={"has-background":r.color},l()(b,r.class,r.class),l()(b,"has-text-color",s.color),l()(b,s.class,s.class),l()(b,u.class,u.class),b)),style:{textAlign:n,backgroundColor:r.color,color:s.color,fontSize:u.size?u.size+"px":void 0}},a?wp.element.createElement("i",{style:{color:d.color?d.color:void 0},className:y()(a,l()({"has-text-color":d.color},d.class,d.class))}):void 0," ",Object(C.__)("Categories","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-categories",attributes:this.props.attributes})))}}]),t}(O);t.a=R([L("backgroundColor",{textColor:"color"},"iconColor"),P("fontSize"),F])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return O});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(18)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.PanelColorSettings,_=h.InspectorControls,v=h.FontSizePicker,y=wp.components,k=y.SelectControl,C=y.PanelBody,E=y.BaseControl,O=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.divider,a=t.icon,l=(e.backgroundColor,e.setBackgroundColor,e.textColor),i=e.setTextColor,o=e.iconColor,r=e.setIconColor,c=e.fontSize,s=e.setFontSize,d=e.fallbackFontSize,u=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(C,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(g.__)("Divider","getwid"),value:n,onChange:function(e){return u({divider:e})},options:[{value:"",label:Object(g.__)("None","getwid")},{value:",",label:","}]}),wp.element.createElement(v,{fallbackFontSize:d,value:c.size,onChange:s}),wp.element.createElement(E,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(m.a,{value:a,onChange:function(e){return u({icon:e})}})),wp.element.createElement(f,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(f,{initialOpen:!1,title:Object(g.__)("Icon Color","getwid"),colorSettings:[{value:o.color,onChange:r,label:Object(g.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(376),l=n(379),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-comments",{title:Object(i.__)("Comments","getwid"),icon:"admin-comments",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(377)),v=n(7),y=n.n(v),k=n(378),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.withFallbackStyles,A=window,M=(A.jQuery,wp.blockEditor||wp.editor),B=(M.BlockAlignmentToolbar,M.AlignmentToolbar),I=M.BlockControls,L=M.withColors,P=M.withFontSizes,z=wp.data.select,R=wp.compose.compose,D=window,V=D.getComputedStyle,F=N(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?V(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),H=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.icon,i=t.blockDivider,r=e.backgroundColor,s=e.textColor,d=e.iconColor,u=e.fontSize,p=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var b;return wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(B,{value:n,onChange:function(e){return p({textAlignment:e})}})),wp.element.createElement("div",{className:y()(m,(b={"has-background":r.color},l()(b,r.class,r.class),l()(b,"has-text-color",s.color),l()(b,s.class,s.class),l()(b,u.class,u.class),b)),style:{textAlign:n,backgroundColor:r.color,color:s.color,fontSize:u.size?u.size+"px":void 0}},a?wp.element.createElement("i",{style:{color:d.color?d.color:void 0},className:y()(a,l()({"has-text-color":d.color},d.class,d.class))}):void 0," ",Object(C.__)("Comments","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-comments",attributes:this.props.attributes})))}}]),t}(O);t.a=R([L("backgroundColor",{textColor:"color"},"iconColor"),P("fontSize"),F])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(18)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.PanelColorSettings,_=h.InspectorControls,v=h.FontSizePicker,y=wp.components,k=y.PanelBody,C=y.BaseControl,E=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),a=e.setTextColor,l=e.iconColor,i=e.setIconColor,o=e.fontSize,r=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(v,{fallbackFontSize:c,value:o.size,onChange:r}),wp.element.createElement(C,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(m.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(f,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:a,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(f,{initialOpen:!1,title:Object(g.__)("Icon Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(g.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(381),l=n(384),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-tags",{title:Object(i.__)("Tags","getwid"),icon:"tag",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(382)),v=n(7),y=n.n(v),k=n(383),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.withFallbackStyles,A=window,M=(A.jQuery,wp.blockEditor||wp.editor),B=(M.BlockAlignmentToolbar,M.AlignmentToolbar),I=M.BlockControls,L=M.withColors,P=M.withFontSizes,z=wp.data.select,R=wp.compose.compose,D=window,V=D.getComputedStyle,F=N(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?V(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),H=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.icon,i=t.blockDivider,r=e.backgroundColor,s=e.textColor,d=e.iconColor,u=e.fontSize,p=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var b;return wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(B,{value:n,onChange:function(e){return p({textAlignment:e})}})),wp.element.createElement("div",{className:y()(m,(b={"has-background":r.color},l()(b,r.class,r.class),l()(b,"has-text-color",s.color),l()(b,s.class,s.class),l()(b,u.class,u.class),b)),style:{textAlign:n,backgroundColor:r.color,color:s.color,fontSize:u.size?u.size+"px":void 0}},a?wp.element.createElement("i",{style:{color:d.color?d.color:void 0},className:y()(a,l()({"has-text-color":d.color},d.class,d.class))}):void 0," ",Object(C.__)("Tags","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-tags",attributes:this.props.attributes})))}}]),t}(O);t.a=R([L("backgroundColor",{textColor:"color"},"iconColor"),P("fontSize"),F])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return O});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(18)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.PanelColorSettings,_=h.InspectorControls,v=h.FontSizePicker,y=wp.components,k=y.SelectControl,C=y.PanelBody,E=y.BaseControl,O=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.divider,a=t.icon,l=e.textColor,i=e.setTextColor,o=e.iconColor,r=e.setIconColor,c=e.fontSize,s=e.setFontSize,d=e.fallbackFontSize,u=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(C,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(g.__)("Divider","getwid"),value:n,onChange:function(e){return u({divider:e})},options:[{value:"",label:Object(g.__)("None","getwid")},{value:",",label:","}]}),wp.element.createElement(v,{fallbackFontSize:d,value:c.size,onChange:s}),wp.element.createElement(E,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(m.a,{value:a,onChange:function(e){return u({icon:e})}})),wp.element.createElement(f,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(f,{initialOpen:!1,title:Object(g.__)("Icon Color","getwid"),colorSettings:[{value:o.color,onChange:r,label:Object(g.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(386),l=n(389),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-date",{title:Object(i.__)("Date","getwid"),icon:"calendar-alt",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(387)),v=n(7),y=n.n(v),k=n(388),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.Toolbar,A=S.withFallbackStyles,M=window,B=(M.jQuery,wp.blockEditor||wp.editor),I=(B.BlockAlignmentToolbar,B.AlignmentToolbar),L=B.BlockControls,P=B.withColors,z=B.withFontSizes,R=wp.data.select,D=wp.compose.compose,V=window,F=V.getComputedStyle,H=A(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?F(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.icon,i=t.bold,r=t.italic,s=t.blockDivider,d=e.backgroundColor,u=e.textColor,p=e.iconColor,m=e.fontSize,g=e.setAttributes,b=e.className,w=R("core/editor").getCurrentPostType();if(w&&w==Getwid.templates.name){var h;return wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(I,{value:n,onChange:function(e){return g({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(C.__)("Bold","getwid"),isActive:i,onClick:function(){g({bold:!i})}},{icon:"editor-italic",title:Object(C.__)("Italic","getwid"),isActive:r,onClick:function(){g({italic:!r})}}]})),wp.element.createElement("div",{className:y()(b,(h={"has-background":d.color},l()(h,d.class,d.class),l()(h,"has-text-color",u.color),l()(h,u.class,u.class),l()(h,m.class,m.class),h)),style:{textAlign:n,fontWeight:i?"bold":void 0,fontStyle:r?"italic":void 0,backgroundColor:d.color,color:u.color,fontSize:m.size?m.size+"px":void 0}},a?wp.element.createElement("i",{style:{color:p.color?p.color:void 0},className:y()(a,l()({"has-text-color":p.color},p.class,p.class))}):void 0," ",Object(C.__)("Date","getwid")," ",s?wp.element.createElement("span",{className:"getwid-post-meta-divider"},s):void 0))}return wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-date",attributes:this.props.attributes})))}}]),t}(O);t.a=D([P("backgroundColor",{textColor:"color"},"iconColor"),z("fontSize"),H])(W)},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(18)),g=n(1),b=(n.n(g),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,f=h.PanelColorSettings,_=h.InspectorControls,v=h.FontSizePicker,y=wp.components,k=y.PanelBody,C=y.BaseControl,E=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),a=e.setTextColor,l=e.iconColor,i=e.setIconColor,o=e.fontSize,r=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(v,{fallbackFontSize:c,value:o.size,onChange:r}),wp.element.createElement(C,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(m.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(f,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:a,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(f,{initialOpen:!1,title:Object(g.__)("Icon Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(g.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=(n(0),n(391)),l=n(394),i=(n.n(l),n(1)),o=(n.n(i),window),r=(o.jQuery,wp.blocks.registerBlockType),c=wp.blockEditor||wp.editor,s=c.InnerBlocks;r("getwid/template-post-featured-background-image",{title:Object(i.__)("Background Featured Image","getwid"),icon:"images-alt2",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return wp.element.createElement(s.Content,null)}})},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(392)),v=n(393),y=(n.n(v),n(7)),k=n.n(y),C=n(24),E=n(1),O=(n.n(E),wp.element),j=O.Component,S=O.Fragment,x=wp.components,T=x.ServerSideRender,N=x.Disabled,A=x.Dashicon,M=window,B=(M.jQuery,wp.blockEditor||wp.editor),I=B.InnerBlocks,L=wp.data.select,P=C.a.prepareGradientStyle,z=[["core/paragraph"]],R="wp-block-getwid-template-post-featured-background-image",D=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=n.minHeight,i=n.contentMaxWidth,r=n.foregroundOpacity,s=n.foregroundColor,d=n.foregroundFilter,u=n.verticalAlign,p=n.verticalAlignTablet,m=n.verticalAlignMobile,g=n.horizontalAlign,b=n.horizontalAlignTablet,w=n.horizontalAlignMobile,h=n.paddingTopValue,f=n.paddingBottomValue,v=n.paddingLeftValue,y=n.paddingRightValue,C=n.paddingTop,O=n.paddingRight,j=n.paddingBottom,x=n.paddingLeft,M=n.paddingTopTablet,B=n.paddingRightTablet,D=n.paddingBottomTablet,V=n.paddingLeftTablet,F=n.paddingTopMobile,H=n.paddingRightMobile,W=n.paddingBottomMobile,U=n.paddingLeftMobile,G=t.className,q=(t.setAttributes,L("core/editor").getCurrentPostType()),Q=k()(G,(e={},c()(e,"getwid-padding-top-".concat(C),"custom"!==C&&""!==C),c()(e,"getwid-padding-bottom-".concat(j),"custom"!==j&&""!==j),c()(e,"getwid-padding-left-".concat(x),"custom"!==x&&""!==x),c()(e,"getwid-padding-right-".concat(O),"custom"!==O&&""!==O),c()(e,"getwid-padding-tablet-top-".concat(M),""!==M),c()(e,"getwid-padding-tablet-bottom-".concat(D),""!==D),c()(e,"getwid-padding-tablet-left-".concat(V),""!==V),c()(e,"getwid-padding-tablet-right-".concat(B),""!==B),c()(e,"getwid-padding-mobile-top-".concat(F),""!==F),c()(e,"getwid-padding-mobile-bottom-".concat(W),""!==W),c()(e,"getwid-padding-mobile-left-".concat(U),""!==U),c()(e,"getwid-padding-mobile-right-".concat(H),""!==H),c()(e,"getwid-align-items-".concat(u),"center"!==u),c()(e,"getwid-align-items-tablet-".concat(p),""!==p),c()(e,"getwid-align-items-mobile-".concat(m),""!==m),c()(e,"getwid-justify-content-".concat(g),"center"!==g),c()(e,"getwid-justify-content-tablet-".concat(b),""!==b),c()(e,"getwid-justify-content-mobile-".concat(w),""!==w),e)),K={minHeight:a},J=k()("".concat(R,"__content")),Z=o()({maxWidth:i},"custom"===C?{paddingTop:h}:[],"custom"===j?{paddingBottom:f}:[],"custom"===x?{paddingLeft:v}:[],"custom"===O?{paddingRight:y}:[]),$=o()({backgroundColor:s},P("foreground",this.props),{mixBlendMode:d}),Y=k()("".concat(R,"__foreground"),c()({},"getwid-opacity-".concat(r),35!=r));return q&&q==Getwid.templates.name?wp.element.createElement(S,null,wp.element.createElement(_.a,l()({},o()({},this.props),{key:"inspector"})),wp.element.createElement("div",{style:K,className:Q},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder wp-block-getwid-template-post-featured-background-image__image"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(A,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(E.__)("Background Featured Image","getwid"))),wp.element.createElement("div",{className:Y,style:$}),wp.element.createElement("div",{className:J,style:Z},wp.element.createElement(I,{template:z,templateInsertUpdatesSelection:!1,templateLock:!1})))):wp.element.createElement(S,null,wp.element.createElement(N,null,wp.element.createElement(T,{block:"getwid/template-post-featured-background-image",attributes:this.props.attributes})))}}]),t}(j);t.a=D},function(e,t,n){"use strict";n.d(t,"a",function(){return T});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(17)),g=n(14),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element),f=h.Component,_=h.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,k=v.PanelColorSettings,C=wp.components,E=C.SelectControl,O=C.PanelBody,j=C.RangeControl,S=C.Button,x=C.TabPanel,T=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"renderForegroundSettings",value:function(){var e=this.props,t=e.attributes,n=t.foregroundOpacity,a=t.foregroundColor,l=t.foregroundFilter,i=t.foregroundGradientType,o=t.foregroundGradientFirstColor,r=t.foregroundGradientFirstColorLocation,c=t.foregroundGradientSecondColor,s=t.foregroundGradientSecondColorLocation,d=t.foregroundGradientAngle,u=e.setAttributes,p=function(){u({foregroundGradientType:void 0,foregroundGradientFirstColor:void 0,foregroundGradientFirstColorLocation:void 0,foregroundGradientSecondColor:void 0,foregroundGradientSecondColorLocation:void 0,foregroundGradientAngle:void 0,foregroundGradientCustomEnable:void 0,foregroundGradientCustom:void 0})};return wp.element.createElement(O,{title:Object(b.__)("Overlay","getwid"),initialOpen:!1},wp.element.createElement(j,{label:Object(b.__)("Overlay Layer Opacity","getwid"),value:void 0!==n?n:"",onChange:function(e){return u({foregroundOpacity:e})},min:0,max:100,step:5,allowReset:!0}),wp.element.createElement(E,{label:Object(b.__)("Blend Mode","getwid"),value:void 0!==l?l:"",onChange:function(e){return u({foregroundFilter:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"normal",label:Object(b.__)("Normal","getwid")},{value:"multiply",label:Object(b.__)("Multiply","getwid")},{value:"screen",label:Object(b.__)("Screen","getwid")},{value:"overlay",label:Object(b.__)("Overlay","getwid")},{value:"darken",label:Object(b.__)("Darken","getwid")},{value:"lighten",label:Object(b.__)("Lighten","getwid")},{value:"color-dodge",label:Object(b.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(b.__)("Color Burn","getwid")},{value:"hard-light",label:Object(b.__)("Hard Light","getwid")},{value:"soft-light",label:Object(b.__)("Soft Light","getwid")},{value:"difference",label:Object(b.__)("Difference","getwid")},{value:"exclusion",label:Object(b.__)("Exclusion","getwid")},{value:"hue",label:Object(b.__)("Hue","getwid")},{value:"saturation",label:Object(b.__)("Saturation","getwid")},{value:"color",label:Object(b.__)("Color","getwid")},{value:"luminosity",label:Object(b.__)("Luminosity","getwid")}]}),wp.element.createElement(k,{title:Object(b.__)("Overlay Color","getwid"),colorSettings:[{value:a,onChange:function(e){return u({foregroundColor:e})},label:Object(b.__)("Overlay Color","getwid")}],initialOpen:!1}),wp.element.createElement(O,{title:Object(b.__)("Overlay Gradient","getwid"),initialOpen:!1},wp.element.createElement(E,{value:void 0!==i?i:"",onChange:function(e){return u({foregroundGradientType:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"linear",label:Object(b.__)("Linear","getwid")},{value:"radial",label:Object(b.__)("Radial","getwid")}]}),i&&wp.element.createElement(_,null,wp.element.createElement(S,{isSmall:!0,onClick:p},Object(b.__)("Reset","getwid")),wp.element.createElement(k,{title:Object(b.__)("Gradient Colors","getwid"),colorSettings:[{value:o,onChange:function(e){return u({foregroundGradientFirstColor:e})},label:Object(b.__)("First Color","getwid")},{value:c,onChange:function(e){return u({foregroundGradientSecondColor:e})},label:Object(b.__)("Second Color","getwid")}]}),wp.element.createElement(j,{label:Object(b.__)("First Color Location","getwid"),value:void 0!==r?r:"",onChange:function(e){return u({foregroundGradientFirstColorLocation:e})},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(j,{label:Object(b.__)("Second Color Location","getwid"),value:void 0!==s?s:"",onChange:function(e){return u({foregroundGradientSecondColorLocation:e})},placeholder:100,min:0,max:100,step:1}),"linear"===i&&wp.element.createElement(j,{label:Object(b.__)("Angle","getwid"),value:void 0!==d?d:"",onChange:function(e){return u({foregroundGradientAngle:e})},placeholder:180,min:0,max:360,step:1}))))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,a=e.verticalAlignTablet,l=e.horizontalAlignTablet,i=e.verticalAlignMobile,o=e.horizontalAlignMobile,r=this.props.setAttributes;return wp.element.createElement(O,{title:Object(b.__)("Alignment","getwid"),initialOpen:!1},wp.element.createElement(x,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(b.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(b.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(b.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(_,null,wp.element.createElement(E,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return r({verticalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(E,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return r({horizontalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(_,null,wp.element.createElement(E,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return r({verticalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(E,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==l?l:"center",onChange:function(e){return r({horizontalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(_,null,wp.element.createElement(E,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return r({verticalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(E,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return r({horizontalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}))}}))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.minHeight,a=t.contentMaxWidth,l=t.imageSize,i=e.setAttributes;e.changeState,e.getState;return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(m.a,{label:Object(b.__)("Image Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return i({minHeight:e})}}),wp.element.createElement(j,{label:Object(b.__)("Content Width","getwid"),value:void 0!==a?a:"",onChange:function(e){i({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(E,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:l,onChange:function(e){i({imageSize:e})},options:Getwid.settings.image_sizes})),this.renderAlignmentSettings(),Object(g.f)(this),this.renderForegroundSettings())}}]),t}(f)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=(n(0),n(396)),l=n(399),i=(n.n(l),n(1)),o=(n.n(i),window),r=(o.jQuery,wp.blocks.registerBlockType),c=wp.blockEditor||wp.editor,s=c.InnerBlocks;r("getwid/template-post-meta",{title:Object(i.__)("Meta","getwid"),icon:"tagcloud",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return wp.element.createElement(s.Content,null)}})},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(7)),k=n.n(y),C=n(397),E=n(398),O=(n.n(E),n(11)),j=(n.n(O),n(1)),S=(n.n(j),window),x=(S.jQuery,wp.element),T=x.Fragment,N=x.Component,A=wp.blockEditor||wp.editor,M=(A.BlockAlignmentToolbar,A.AlignmentToolbar),B=A.BlockControls,I=A.InnerBlocks,L=A.withColors,P=wp.data,z=P.select,R=P.dispatch,D=wp.compose.compose,V=[["getwid/template-post-author"],["getwid/template-post-date"],["getwid/template-post-categories"],["getwid/template-post-tags"],["getwid/template-post-comments"]],F=["core/paragraph","getwid/template-post-author","getwid/template-post-date","getwid/template-post-categories","getwid/template-post-tags","getwid/template-post-comments"],H=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.setInnerBlocksAttributes=e.setInnerBlocksAttributes.bind(f()(e)),e}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.setInnerBlocksAttributes("Mount")}},{key:"componentDidUpdate",value:function(e,t){this.setInnerBlocksAttributes("Update",e,t)}},{key:"setInnerBlocksAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mount",t=arguments.length>1?arguments[1]:void 0,n=(arguments.length>2&&arguments[2],this.props.attributes.blockDivider);if("Update"!=e||!Object(O.isEqual)(this.props.attributes,t.attributes)){var a=z("core/editor").getBlock(this.props.clientId).innerBlocks;a.length&&jQuery.each(a,function(t,a){("Mount"==e&&void 0===a.attributes.blockDivider||"Update"==e)&&R("core/editor").updateBlockAttributes(a.clientId,{blockDivider:n})})}}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=n.textAlignment,i=n.direction,r=t.textColor,s=t.setAttributes,d=t.className,u=k()("wp-block-getwid-template-post-meta",d,(e={},c()(e,"has-direction-".concat(i),"row"!==i),c()(e,"has-text-color",r.color),c()(e,r.class,r.class),e)),p=z("core/editor").getCurrentPostType();return p&&p==Getwid.templates.name?wp.element.createElement(T,null,wp.element.createElement(C.a,l()({},o()({},this.props),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(M,{value:a,onChange:function(e){return s({textAlignment:e})}})),wp.element.createElement("div",{className:u,style:{textAlign:a,color:r.color}},wp.element.createElement(I,{template:V,allowedBlocks:F,templateInsertUpdatesSelection:!1}))):wp.element.createElement(T,null,wp.element.createElement(Disabled,null,wp.element.createElement(ServerSideRender,{block:"getwid/template-post-meta",attributes:this.props.attributes})))}}]),t}(N);t.a=D([L({textColor:"color"})])(H)},function(e,t,n){"use strict";n.d(t,"a",function(){return k});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,f=w.PanelColorSettings,_=wp.components,v=_.PanelBody,y=_.SelectControl,k=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.direction,a=t.blockDivider,l=e.textColor,i=e.setTextColor,o=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(v,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(y,{label:Object(m.__)("Divider","getwid"),value:a,onChange:function(e){return o({blockDivider:e})},options:[{value:"",label:Object(m.__)("None","getwid")},{value:"/",label:"/"},{value:"|",label:"|"},{value:"•",label:"•"},{value:"·",label:"·"}]}),wp.element.createElement(y,{label:Object(m.__)("Direction","getwid"),value:n,onChange:function(e){return o({direction:e})},options:[{value:"row",label:Object(m.__)("Horizontal","getwid")},{value:"column",label:Object(m.__)("Vertical","getwid")}]}),wp.element.createElement(f,{title:Object(m.__)("Text Color","getwid"),colorSettings:[{value:l.color,onChange:i,label:Object(m.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(401),l=n(404),i=(n.n(l),n(1)),o=(n.n(i),window);o.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-custom-field",{title:Object(i.__)("Custom Field","getwid"),category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(402)),v=n(7),y=n.n(v),k=n(403),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.components,x=S.ServerSideRender,T=S.Disabled,N=S.Toolbar,A=S.withFallbackStyles,M=window,B=(M.jQuery,wp.blockEditor||wp.editor),I=(B.BlockAlignmentToolbar,B.AlignmentToolbar),L=B.BlockControls,P=B.withColors,z=B.withFontSizes,R=wp.data.select,D=wp.compose.compose,V=window,F=V.getComputedStyle,H=A(function(e,t){var n=t.attributes,a=n.textColor,l=n.backgroundColor,i=n.fontSize,o=n.customFontSize,r=e.querySelector('[contenteditable="true"]'),c=r?F(r):null;return{fallbackBackgroundColor:l||!c?void 0:c.backgroundColor,fallbackTextColor:a||!c?void 0:c.color,fallbackFontSize:i||o||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,a=t.bold,i=t.italic,r=e.textColor,s=e.fontSize,d=e.className,u=e.setAttributes,p=R("core/editor").getCurrentPostType();return p&&p==Getwid.templates.name?wp.element.createElement(j,null,wp.element.createElement(_.a,o()({},c()({},this.props),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(I,{value:n,onChange:function(e){return u({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(C.__)("Bold","getwid"),isActive:a,onClick:function(){u({bold:!a})}},{icon:"editor-italic",title:Object(C.__)("Italic","getwid"),isActive:i,onClick:function(){u({italic:!i})}}]})),wp.element.createElement("div",{className:y()(d,l()({},s.class,s.class)),style:{color:r.color,textAlign:n,fontWeight:a?"bold":void 0,fontStyle:i?"italic":void 0,fontSize:s.size?s.size+"px":void 0}},Object(C.__)("Custom Field","getwid"))):wp.element.createElement(j,null,wp.element.createElement(T,null,wp.element.createElement(x,{block:"getwid/template-post-custom-field",attributes:this.props.attributes})))}}]),t}(O);t.a=D([P("backgroundColor",{textColor:"color"}),z("fontSize"),H])(W)},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),window),b=(g.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,f=w.InspectorControls,_=w.FontSizePicker,v=wp.components,y=v.PanelBody,k=v.TextControl,C=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.customField,n=e.textColor,a=e.setTextColor,l=e.fontSize,i=e.setFontSize,o=e.fallbackFontSize,r=e.setAttributes;return wp.element.createElement(f,null,wp.element.createElement(y,{title:Object(m.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(m.__)("Custom Field","getwid"),value:t,onChange:function(e){return r({customField:e})}}),wp.element.createElement(_,{fallbackFontSize:o,value:l.size,onChange:i}),wp.element.createElement(h,{title:Object(m.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:a,label:Object(m.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(406),l=n(408),i=(n.n(l),n(409)),o=n(1),r=(n.n(o),window);r.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-layout-helper",{title:Object(o.__)("Layout","getwid"),icon:"layout",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name,multiple:!1,customClassName:!1},edit:a.a,attributes:i.a,save:function(){return null}})},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(7)),g=n.n(m),b=n(407),w=(n.n(b),n(1)),h=(n.n(w),wp.element),f=h.Component,_=h.Fragment,v=wp.components,y=v.Button,k=v.Dashicon,C=window,E=(C.jQuery,wp.data),O=E.select,j=E.dispatch,S=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=(e.attributes.align,e.setAttributes,e.className),n=O("core/editor").getCurrentPostType(),a=O("core/editor").getSelectedBlockClientId(),l=[{title:Object(w.__)("Classic","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M45.99,0H2.01C0.9,0,0,0.9,0,2.01v22.98C0,26.1,0.9,27,2.01,27h43.98C47.1,27,48,26.1,48,24.99V2.01C48,0.9,47.1,0,45.99,0z M45.99,25L2,24.99L2.01,2h43.98V25z"}),wp.element.createElement("path",{d:"M5,19.66c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11L4.35,17.9 c-0.42,0.36-0.47,0.99-0.11,1.41C4.44,19.54,4.72,19.66,5,19.66z"}),wp.element.createElement("path",{d:"M28.61,19.94c0.23,0.2,0.5,0.34,0.8,0.43c0.09,0.03,0.19,0.04,0.28,0.04c0.42,0,0.8-0.29,0.93-0.73 c0.16-0.53-0.18-1.11-0.71-1.27l-1.94-1.67c-0.42-0.36-1.05-0.32-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L28.61,19.94z"}),wp.element.createElement("path",{d:"M24.35,16.27c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L24.35,16.27z"}),wp.element.createElement("path",{d:"M31.51,18.7c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.2-1.89c0.47-0.29,0.63-0.9,0.34-1.37 c-0.29-0.47-0.9-0.63-1.37-0.34c-0.1,0.06-0.19,0.13-0.28,0.21l-2.18,1.88C31.2,17.65,31.15,18.28,31.51,18.7z"}),wp.element.createElement("path",{d:"M38.88,19.85c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L38.88,19.85z"}),wp.element.createElement("path",{d:"M8.46,16.68c0.23,0,0.46-0.08,0.65-0.24l2.32-2c0.42-0.36,0.47-0.99,0.1-1.41c-0.36-0.42-0.99-0.47-1.41-0.1l-2.32,2 c-0.42,0.36-0.47,0.99-0.1,1.41C7.9,16.56,8.18,16.68,8.46,16.68z"}),wp.element.createElement("path",{d:"M19.71,12.28c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11s-0.31,1.05,0.11,1.41L19.71,12.28z"}),wp.element.createElement("path",{d:"M13.1,12.68c0.23,0,0.46-0.08,0.65-0.24l2.32-2c0.42-0.36,0.47-0.99,0.1-1.41s-0.99-0.47-1.41-0.1l-2.32,2 c-0.42,0.36-0.47,0.99-0.1,1.41C12.54,12.56,12.82,12.68,13.1,12.68z"}),wp.element.createElement("path",{d:"M42.35,22.83c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L42.35,22.83z"}),wp.element.createElement("path",{d:"M1.52,33h27.96c0.84,0,1.52-0.67,1.52-1.5S30.32,30,29.48,30H1.52C0.68,30,0,30.67,0,31.5S0.68,33,1.52,33z"}),wp.element.createElement("path",{d:"M47,36H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h46c0.55,0,1-0.45,1-1S47.55,36,47,36z"}),wp.element.createElement("path",{d:"M47,41H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h46c0.55,0,1-0.45,1-1S47.55,41,47,41z"}),wp.element.createElement("path",{d:"M30,46H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h29c0.55,0,1-0.45,1-1S30.55,46,30,46z"}),wp.element.createElement("circle",{cx:"30",cy:"10",r:"2"})),layout:[wp.blocks.createBlock("getwid/template-post-featured-image",{linkTo:"post"}),wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-meta"),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-button")]},{title:Object(w.__)("Image in background","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M45.99,0H2.01C0.9,0,0,0.9,0,2.01v43.98C0,47.1,0.9,48,2.01,48h43.98C47.1,48,48,47.1,48,45.99V2.01C48,0.9,47.1,0,45.99,0z M45.99,46L2,45.99L2.01,2h43.98V46z"}),wp.element.createElement("path",{d:"M5,36.66c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11L4.35,34.9 c-0.42,0.36-0.47,0.99-0.11,1.41C4.44,36.54,4.72,36.66,5,36.66z"}),wp.element.createElement("path",{d:"M23.34,29.76c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41L23.34,29.76z"}),wp.element.createElement("path",{d:"M14.77,25.92l-2.32,2c-0.42,0.36-0.47,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.32-2 c0.42-0.36,0.47-0.99,0.1-1.41C15.82,25.61,15.19,25.56,14.77,25.92z"}),wp.element.createElement("path",{d:"M10.13,29.92l-2.32,2c-0.42,0.36-0.47,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.32-2 c0.42-0.36,0.47-0.99,0.1-1.41C11.18,29.61,10.55,29.56,10.13,29.92z"}),wp.element.createElement("path",{d:"M30,35.46c-0.04-0.01-0.07-0.03-0.09-0.04l-1.94-1.67c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41 l1.94,1.67c0.23,0.2,0.5,0.34,0.8,0.43c0.1,0.03,0.2,0.04,0.29,0.04c0.43,0,0.82-0.28,0.96-0.71C30.82,36.19,30.53,35.63,30,35.46z"}),wp.element.createElement("path",{d:"M18.7,25.76c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.1,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.1-1.41L18.7,25.76z"}),wp.element.createElement("path",{d:"M34.08,32.21c-0.1,0.06-0.19,0.13-0.28,0.2l-2.18,1.88c-0.42,0.36-0.47,0.99-0.11,1.41c0.2,0.23,0.48,0.35,0.76,0.35 c0.23,0,0.46-0.08,0.65-0.24l2.2-1.89c0.47-0.29,0.62-0.9,0.33-1.38S34.55,31.92,34.08,32.21z"}),wp.element.createElement("path",{d:"M37.86,33.33c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41L37.86,33.33z"}),wp.element.createElement("path",{d:"M41.1,37.44c-0.36,0.42-0.31,1.05,0.11,1.41l1.14,0.98c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35 c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98C42.1,36.97,41.46,37.02,41.1,37.44z"}),wp.element.createElement("circle",{cx:"30",cy:"27",r:"2"}),wp.element.createElement("path",{d:"M7.52,12h15.96c0.84,0,1.52-0.67,1.52-1.5S24.32,9,23.48,9H7.52C6.68,9,6,9.67,6,10.5S6.68,12,7.52,12z"}),wp.element.createElement("path",{d:"M7,17h34c0.55,0,1-0.45,1-1s-0.45-1-1-1H7c-0.55,0-1,0.45-1,1S6.45,17,7,17z"})),layout:[wp.blocks.createBlock("getwid/template-post-featured-background-image",{paddingTop:"large",paddingBottom:"large",paddingLeft:"large",paddingRight:"large",foregroundColor:"#000",contentMaxWidth:"768"},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3",customTextColor:"#fff"}),wp.blocks.createBlock("getwid/template-post-content",{customTextColor:"#fff"})])]},{title:Object(w.__)("Two columns","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M25.99,0H2.01C0.9,0,0,0.9,0,2.01v43.98C0,47.1,0.9,48,2.01,48h23.98C27.1,48,28,47.1,28,45.99V2.01C28,0.9,27.1,0,25.99,0z M25.99,46L2,45.99L2.01,2h23.98V46z"}),wp.element.createElement("path",{d:"M4,29.27c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11l-1.14,0.98 c-0.42,0.36-0.47,0.99-0.11,1.41C3.44,29.15,3.72,29.27,4,29.27z"}),wp.element.createElement("path",{d:"M14.5,27.9c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.46-2.12 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L14.5,27.9z"}),wp.element.createElement("path",{d:"M7.6,26.17c0.23,0,0.46-0.08,0.65-0.24l2.1-1.81c0.5-0.12,0.82-0.61,0.75-1.12c-0.08-0.55-0.59-0.92-1.14-0.84 c-0.31,0.05-0.59,0.17-0.84,0.38l-2.18,1.88c-0.42,0.36-0.46,0.99-0.1,1.41C7.04,26.05,7.32,26.17,7.6,26.17z"}),wp.element.createElement("path",{d:"M17.12,27.69c-0.42,0.36-0.46,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l1.55-1.34 c0.39,0.18,0.87,0.09,1.17-0.25c0.36-0.42,0.32-1.05-0.1-1.41c-0.59-0.52-1.57-0.53-2.2,0L17.12,27.69z"}),wp.element.createElement("path",{d:"M23.35,30.83c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L23.35,30.83z"}),wp.element.createElement("circle",{cx:"17",cy:"21",r:"2"}),wp.element.createElement("path",{d:"M33.52,18h12.96c0.84,0,1.52-0.67,1.52-1.5S47.32,15,46.48,15H33.52C32.68,15,32,15.67,32,16.5S32.68,18,33.52,18z"}),wp.element.createElement("path",{d:"M47,21H33c-0.55,0-1,0.45-1,1s0.45,1,1,1h14c0.55,0,1-0.45,1-1S47.55,21,47,21z"}),wp.element.createElement("path",{d:"M47,26H33c-0.55,0-1,0.45-1,1s0.45,1,1,1h14c0.55,0,1-0.45,1-1S47.55,26,47,26z"}),wp.element.createElement("path",{d:"M42,31h-9c-0.55,0-1,0.45-1,1s0.45,1,1,1h9c0.55,0,1-0.45,1-1S42.55,31,42,31z"})),layout:[wp.blocks.createBlock("core/columns",{linkTo:"post",imageSize:"post-thumbnail"},[wp.blocks.createBlock("core/column",{},[wp.blocks.createBlock("getwid/template-post-featured-image",{linkTo:"post"})]),wp.blocks.createBlock("core/column",{},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-link",{buttonText:"Continue reading"})])])]},{title:Object(w.__)("Custom background","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M34.48,15H13.52C12.68,15,12,15.67,12,16.5s0.68,1.5,1.52,1.5h20.96c0.84,0,1.52-0.67,1.52-1.5S35.32,15,34.48,15z"}),wp.element.createElement("path",{d:"M35,21H13c-0.55,0-1,0.44-1,0.98c0,0.54,0.45,0.98,1,0.98h22c0.55,0,1-0.44,1-0.98C36,21.44,35.55,21,35,21z"}),wp.element.createElement("path",{d:"M35,26H13c-0.55,0-1,0.45-1,1s0.45,1,1,1h22c0.55,0,1-0.45,1-1S35.55,26,35,26z"}),wp.element.createElement("path",{d:"M35,31H13c-0.55,0-1,0.45-1,1s0.45,1,1,1h22c0.55,0,1-0.45,1-1S35.55,31,35,31z"}),wp.element.createElement("path",{d:"M47.84,1.23L47.84,1.23C47.84,1.23,47.84,1.23,47.84,1.23c-0.07-0.16-0.16-0.3-0.27-0.44c0,0,0,0,0,0l0,0 C47.21,0.31,46.64,0,45.99,0H2.41h-0.4C1.89,0,1.78,0.02,1.67,0.03l0,0c-0.83,0.14-1.49,0.8-1.63,1.63l0,0C0.02,1.78,0,1.89,0,2.01 v43.98c0,0.65,0.31,1.22,0.79,1.59l0,0c0,0,0,0,0,0c0.14,0.1,0.28,0.2,0.44,0.27c0,0,0,0,0,0l0,0C1.47,47.94,1.73,48,2.01,48h43.98 C47.1,48,48,47.1,48,45.99V2.01C48,1.73,47.94,1.47,47.84,1.23z M45.99,2v0.37l-6.94,6.94C38.74,9.12,38.38,9,37.99,9h-2.16l7-7 H45.99z M10,36.99L10.01,11h27.98v26L10,36.99z M42.12,2l-7,7h-3.53l7-7H42.12z M37.88,2l-7,7h-3.53l7-7H37.88z M33.64,2l-7,7h-3.53 l7-7H33.64z M29.4,2l-7,7h-3.53l7-7H29.4z M25.16,2l-7,7h-3.55l7-7H25.16z M20.9,2l-7,7h-3.53l7-7H20.9z M2.01,2h1.93L2.01,3.93 L2.01,2z M2.01,4.64L4.65,2h3.53L2.01,8.17L2.01,4.64z M2.01,8.88L8.89,2h3.53L2.01,12.42L2.01,8.88z M2.01,13.12L13.13,2h3.53 L9.62,9.04C9.75,9.01,9.88,9,10.01,9C8.9,9,8,9.9,8,11.01c0-0.13,0.01-0.26,0.04-0.39l-6.03,6.03L2.01,13.12z M2.01,17.36L8,11.37 v3.53L2.01,20.9L2.01,17.36z M2.01,21.61L8,15.61v3.55l-6,6L2.01,21.61z M2,25.86l6-6v3.53l-6,6L2,25.86z M2,30.1l6-6v3.53l-6,6 L2,30.1z M2,34.35l6-6v3.53l-6,6L2,34.35z M2,38.59l6-6v3.53l-6,6L2,38.59z M2,45.99l0-3.16l6-6v0.16c0,0.91,0.62,1.68,1.45,1.92 l-7.08,7.08L2,45.99z M3.08,45.99L10.07,39h3.53l-6.99,6.99L3.08,45.99z M7.32,45.99L14.31,39h3.55l-6.99,6.99L7.32,45.99z M11.57,45.99L18.57,39h3.53l-6.99,6.99L11.57,45.99z M15.81,45.99L22.81,39h3.53l-6.99,6.99L15.81,45.99z M20.05,45.99L27.05,39 h3.53l-6.99,6.99L20.05,45.99z M24.29,46l7-7h3.53l-7,7L24.29,46z M45.99,46l-0.48,0l0.48-0.48V46z M45.99,44.81L44.8,46l-3.55,0 l4.74-4.74V44.81z M45.99,40.55L40.55,46l-3.53,0l8.98-8.98V40.55z M45.99,36.31L36.31,46l-3.53,0l13.22-13.22V36.31z M45.99,32.07 L32.07,46l-3.53,0l7-7h2.46C39.1,39,40,38.1,40,36.99v-2.46l5.99-5.99V32.07z M45.99,27.83L40,33.82v-3.53l5.99-5.99V27.83z M45.99,23.59L40,29.58v-3.53l5.99-5.99V23.59z M45.99,19.35L40,25.34v-3.53l5.99-5.99V19.35z M45.99,15.11L40,21.1v-3.53l5.99-5.99 V15.11z M45.99,10.87L40,16.86v-3.55l5.99-5.99V10.87z M40,12.6v-1.59c0-0.54-0.21-1.02-0.56-1.38l6.55-6.55v3.53L40,12.6z"})),layout:[wp.blocks.createBlock("getwid/section",{customBackgroundColor:"#f3f8fb",paddingTop:"large",paddingBottom:"large",paddingLeft:"large",paddingRight:"large",verticalAlign:"flex-start",horizontalAlign:"flex-start"},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-link",{buttonText:"Continue reading"})])]}];if(n&&n==Getwid.templates.name)return wp.element.createElement(_,null,wp.element.createElement("div",{className:g()(t)},wp.element.createElement("div",{className:"components-placeholder block-editor-inner-blocks__template-picker has-many-options"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(k,{icon:"layout"}),Object(w.__)("Choose Layout","getwid")),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(w.__)("Select a layout to start with, or make one yourself.","getwid")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement("ul",{className:"block-editor-inner-blocks__template-picker-options"},l.map(function(e,t){return wp.element.createElement("li",null,wp.element.createElement(y,{className:"components-icon-button block-editor-inner-blocks__template-picker-option is-button is-default is-large",key:t,onClick:function(){j("core/editor").replaceBlocks(a,e.layout)}},e.icon,wp.element.createElement("span",null,e.title)))}))))))}}]),t}(f);t.a=S},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={align:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(70)),o=n(411),r=n(13),c=n(414),s=(n.n(c),n(1)),d=(n.n(s),n(11)),u=(n.n(d),n(71)),p=window,m=(p.jQuery,wp.blockEditor||wp.editor),g=m.InnerBlocks,b=wp.blocks,w=b.getBlockType,h=(b.createBlock,l()({title:Object(s.__)("Mailchimp","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M23.41,15.65c-0.14-0.34-0.48-0.58-0.87-0.68C22.4,14.34,22.2,14.05,22.2,14c0.05-0.1,0.14-0.14,0.14-0.19 c0.58-0.68,0.19-1.69-0.77-1.93c-0.53-0.53-1.01-0.77-1.45-0.97c-0.39-0.19-0.24-0.1-0.58-0.29c-0.1-0.48-0.14-1.55-0.29-2.32 c-0.14-0.68-0.43-1.21-0.82-1.5c-0.19-0.39-0.39-0.72-0.68-1.01c1.35-2.03,1.69-4.06,0.72-5.12C18.05,0.19,17.43,0,16.65,0 c-1.11,0-2.41,0.43-3.77,1.26c0,0-0.87-0.72-0.92-0.72C8.2-2.41-2.47,10.67,1.3,13.52l0.97,0.72c-0.63,1.69,0.24,3.72,2.03,4.35 c0.39,0.14,0.82,0.19,1.26,0.19c0,0,2.85,5.22,8.89,5.22c6.95,0,8.74-6.81,8.74-6.86C23.12,17.19,23.7,16.32,23.41,15.65z M1.54,12.65c-0.72-1.3,0.58-3.91,1.55-5.46C5.4,3.48,9.31,0.53,11.1,0.97l0.48-0.19c0,0,1.3,1.11,1.35,1.11 c0.92-0.53,2.08-1.11,3.14-1.21c-0.68,0.14-1.45,0.48-2.41,1.06c0,0-2.27,1.55-3.62,2.9c-0.72,0.72-3.72,4.35-3.72,4.3 c0.53-1.01,0.92-1.55,1.79-2.61C8.59,5.7,9.12,5.12,9.65,4.54c0.24-0.24,0.48-0.48,0.77-0.72c0.19-0.14,0.34-0.34,0.53-0.48 c0.1-0.05,0.14-0.14,0.24-0.19l0,0L9.46,1.69l0.1,0.63l1.26,1.11c0,0-1.11,0.77-1.69,1.26c-2.27,1.93-4.44,4.88-5.26,7.73H3.9 C3.51,12.66,3.08,13,2.74,13.48C2.6,13.52,1.68,12.89,1.54,12.65z M5.26,18.01c-1.35,0-2.41-1.16-2.41-2.56s1.11-2.56,2.41-2.56 c0.34,0,0.68,0.1,0.97,0.19c0,0,0.53,0.24,0.68,1.5l0,0l0,0c0.14-0.39,0.24-0.72,0.24-0.72c0.19,0.53,0.24,1.11,0.24,1.64l0,0l0,0 c0.14-0.19,0.29-0.53,0.29-0.53C7.96,16.61,6.8,18.01,5.26,18.01z M8.25,8.98L8.25,8.98c0,0,1.06-1.98,3.33-3.33 C11.39,5.6,11,5.7,10.91,5.7c0.43-0.34,1.21-0.58,1.74-0.72c-0.14-0.1-0.53-0.14-0.72-0.14c-0.05,0-0.05,0-0.1,0 c0.48-0.29,1.45-0.43,2.27-0.29c-0.1-0.16-0.34-0.25-0.54-0.3h-0.1h0.05c0.53-0.1,1.11,0,1.59,0.19c-0.05-0.14-0.19-0.29-0.29-0.39 L14.76,4c0.48,0.1,0.97,0.34,1.35,0.58c-0.05-0.1-0.14-0.24-0.24-0.34c0.48,0.14,1.01,0.48,1.26,0.97l0,0v0.05l0,0 C16.22,4.59,13.61,4.78,11,6.47C9.84,7.24,8.93,8.06,8.25,8.98z M22.45,16.85c-0.05,0.05-0.34,1.84-2.27,3.33 c-2.37,1.88-5.51,1.69-6.71,0.63c-0.63-0.58-0.92-1.45-0.92-1.45s-0.05,0.48-0.1,0.68c-0.48-0.82-0.43-1.79-0.43-1.79 s-0.24,0.48-0.39,0.72c-0.34-0.92-0.19-1.84-0.19-1.84l-0.29,0.43c0,0-0.14-1.01,0.19-1.84c0.34-0.92,1.01-1.55,1.16-1.64 c-0.48-0.14-1.06-0.63-1.06-0.63s0.24,0,0.39,0c0,0-1.01-0.72-1.21-1.84C10.76,11.8,11.05,12,11.05,12 c-0.1-0.29-0.14-0.92-0.05-1.59l0,0c0.19-1.21,1.21-2.03,2.32-2.03c1.21,0,2.03,0.24,3.04-0.68c0.19-0.19,0.39-0.39,0.68-0.43 c0.05,0,0.1-0.05,0.29-0.05c0.14,0,0.34,0.05,0.48,0.14c0.53,0.34,0.68,1.21,0.72,1.84c0.24,2.32,0.14,1.93,1.06,2.41 c0.43,0.24,0.97,0.43,1.55,1.06l0,0l0,0c0.48,0,0.72,0.39,0.53,0.68c-1.64,1.93-3.91,2.85-6.42,2.95c-0.1,0-0.34,0-0.34,0 c-1.01,0.05-1.35,1.35-0.72,2.12c0.39,0.48,1.21,0.68,1.84,0.68l0,0c2.75,0.05,5.55-1.88,6.04-2.99l0.05-0.1 c-0.1,0.14-2.8,2.66-6.08,2.56c0,0-0.34,0-0.68-0.1c-0.43-0.1-0.77-0.29-0.92-0.72c0.29,0.05,0.63,0.1,1.01,0.1 c2.37,0,4.06-1.06,3.91-1.11c0,0,0,0-0.05,0c-0.29,0.05-3.14,1.16-4.93,0.58c0-0.05,0-0.1,0.05-0.14c0.14-0.53,0.43-0.48,0.92-0.48 l0,0c1.64-0.05,2.95-0.48,3.96-0.92c1.06-0.48,1.88-1.16,2.17-1.5c0.39,0.63,0.39,1.45,0.39,1.45s0.14-0.05,0.34-0.05 C22.79,15.74,22.88,16.27,22.45,16.85z"}),wp.element.createElement("polygon",{points:"11,1.84 11.34,1.93 11.05,0.97 10.91,1.45 "}),wp.element.createElement("path",{d:"M12.45,2.17l-0.53-0.43l0.19,0.68C12.21,2.32,12.31,2.27,12.45,2.17z"}),wp.element.createElement("path",{d:"M17.33,10.82c0.29,0,0.53,0.05,0.77,0.14c0-0.68-0.39-1.4-0.68-1.3l0,0l0,0l0,0c-0.19,0.05-0.19,0.34-0.19,0.53 C17.23,10.43,17.23,10.62,17.33,10.82z"}),wp.element.createElement("path",{d:"M11.87,2.56l-1.11-0.34l0.72,0.63C11.63,2.75,11.73,2.66,11.87,2.56z"}),wp.element.createElement("path",{d:"M14.72,11.78c0.24,0.1,0.39,0.14,0.39,0.1c0,0,0-0.1-0.05-0.14c-0.14-0.19-0.39-0.39-0.63-0.43 c-0.53-0.19-1.16-0.1-1.59,0.29c-0.24,0.19-0.34,0.39-0.24,0.39c0.05,0,0.19-0.05,0.39-0.1C13.76,11.54,14.14,11.54,14.72,11.78z"}),wp.element.createElement("path",{d:"M14.77,12.41c0.14,0,0.24,0,0.24,0c0.05-0.1-0.29-0.34-0.82-0.29c-0.05,0-0.1,0.05-0.19,0.05h-0.05 c-0.1,0.05-0.24,0.1-0.34,0.19c-0.1,0.1-0.14,0.19-0.1,0.24c0.05,0.05,0.1,0,0.24-0.05C14.19,12.41,14.48,12.41,14.77,12.41z"}),wp.element.createElement("path",{d:"M6.13,14.58c0.14,0.19,0.1,0.29,0.14,0.34c0,0,0.05,0.05,0.1,0c0.1-0.05,0.1-0.14,0.1-0.24l0,0l0,0l0,0 c0-0.19-0.1-0.43-0.24-0.58l0,0l0,0c-0.19-0.19-0.43-0.39-0.77-0.43c-0.29-0.05-0.58,0-0.63,0.05l0,0c-0.05,0-0.1,0-0.14,0.05 c-0.77,0.29-1.11,1.06-0.97,1.79c0.05,0.19,0.14,0.39,0.24,0.53l0,0l0,0l0,0c0.14,0.19,0.34,0.14,0.24,0c0-0.05-0.1-0.24-0.14-0.53 c0-0.34,0.05-0.68,0.29-0.97c0.14-0.19,0.34-0.29,0.39-0.29l0,0c0.05,0,0.05-0.05,0.1-0.05h0.05c0.1-0.05,0.05,0,0.14-0.05l0,0 C5.6,14.1,5.98,14.34,6.13,14.58z"}),wp.element.createElement("path",{d:"M5.88,15.16c-0.05-0.05-0.1-0.1-0.1-0.14c0-0.1,0-0.14,0.1-0.19c0.05-0.05,0.1-0.05,0.1-0.1s-0.19-0.1-0.39,0.05 c-0.14,0.14-0.14,0.43,0.05,0.63c0.24,0.24,0.58,0.29,0.63,0.58c0,0.05,0,0.1,0,0.14c0,0.05,0,0.14,0,0.14 c-0.05,0.29-0.34,0.58-0.82,0.48c-0.1,0-0.14,0-0.14,0C5.26,16.8,5.45,17.05,5.84,17c0.53,0,0.92-0.53,0.82-1.11 C6.61,15.4,6.08,15.31,5.88,15.16z"}),wp.element.createElement("ellipse",{transform:"matrix(0.1541 -0.9881 0.9881 0.1541 3.5429 27.9174)",cx:"18.08",cy:"11.89",rx:"0.34",ry:"0.24"}),wp.element.createElement("ellipse",{transform:"matrix(0.4806 -0.877 0.877 0.4806 -1.9651 21.2287)",cx:"16.94",cy:"12.27",rx:"0.29",ry:"0.39"})),supports:{align:["wide","full"],html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/mailchimp")},keywords:[Object(s.__)("email","getwid"),Object(s.__)("subscribe","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:{align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},text:{type:"string",default:"Subscribe"},ids:{type:"array",default:[]}}},Object(r.b)("getwid/mailchimp",function(e){return wp.element.createElement(o.a,l()({},e,{baseClass:"wp-block-getwid-mailchimp"}))}),{save:function(){return wp.element.createElement(g.Content,null)}})),f={category:"getwid-blocks",parent:["getwid/mailchimp"],supports:{multiple:!1,reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},placeholder:{type:"string",default:""},name:{type:"string",default:""},id:{type:"string",default:""}},save:function(){return null}},_=function(e){var t=e.attributes,n=e.name;return null===t.label?w(n).title:t.label},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){var a=n.className,o=n.isSelected,r=n.setAttributes,c=_(n);return wp.element.createElement(i.a,l()({},n.attributes,{requiredDefault:t,setAttributes:r,isSelected:o,className:a,label:c,type:e}))}},y=[{name:"".concat("mailchimp","-field-email"),settings:l()({},f,{title:Object(s.__)("Email address","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})," "),edit:v("email",!0)})},{name:"".concat("mailchimp","-field-first-name"),settings:l()({},f,{title:Object(s.__)("First name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:v("text")})},{name:"".concat("mailchimp","-field-last-name"),settings:l()({},f,{title:Object(s.__)("Last name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:v("text")})}];Object(u.a)("mailchimp",h,y)},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(9),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(412)),k=n(413),C=(n.n(k),n(1)),E=(n.n(C),n(7)),O=n.n(E),j=n(11),S=(n.n(j),window),x=S.jQuery,T=wp.compose.compose,N=wp.element,A=N.Component,M=N.Fragment,B=wp.blockEditor||wp.editor,I=B.InnerBlocks,L=B.RichText,P=B.withColors,z=wp.components,R=z.TextControl,D=z.Button,V=["getwid/".concat("mailchimp","-field-email"),"getwid/".concat("mailchimp","-field-first-name"),"getwid/".concat("mailchimp","-field-last-name"),"core/paragraph"],F=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeData=e.changeData.bind(f()(e)),e.getData=e.getData.bind(f()(e)),e.manageMailchimpApiKey=e.manageMailchimpApiKey.bind(f()(e)),e.renderMailchimpApiKeyForm=e.renderMailchimpApiKeyForm.bind(f()(e)),e.setGroupsName=e.setGroupsName.bind(f()(e)),e.state={mailchimpApiKey:""!=Getwid.settings.mailchimp_api_key?Getwid.settings.mailchimp_api_key:"",checkApiKey:""!=Getwid.settings.mailchimp_api_key?Getwid.settings.mailchimp_api_key:"",firstInit:!1,waitLoadList:!0,error:"",list:[]},e}return v()(t,e),p()(t,[{key:"changeData",value:function(e){this.setState(c()({},e))}},{key:"getData",value:function(e){return this.state[e]}},{key:"renderMailchimpApiKeyForm",value:function(){var e=this,t=this.props.baseClass;return wp.element.createElement("form",{className:"".concat(t,"__key-form"),onSubmit:function(t){return e.manageMailchimpApiKey(t,"sync")}},wp.element.createElement("span",{className:"form-title"},Object(C.__)("Mailchimp API key.","getwid")," ",wp.element.createElement("a",{href:"https://mailchimp.com/help/about-api-keys/#Find_or_Generate_Your_API_Key",target:"_blank"},Object(C.__)("Get your key.","getwid"))),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement(R,{placeholder:Object(C.__)("Mailchimp API Key","getwid"),onChange:function(t){return e.changeData({checkApiKey:t})}}),wp.element.createElement(D,{isPrimary:!0,type:"submit",disabled:""==this.getData("checkApiKey")||null},Object(C.__)("Save API Key","getwid"))))}},{key:"manageMailchimpApiKey",value:function(e,t){e&&e.preventDefault();var n=this.getData,a=this.changeData,l={action:"getwid_mailchimp_api_key_manage",data:{api_key:n("checkApiKey")},option:t,nonce:Getwid.nonces.mailchimp_api_key};if("sync"==t||"save"==t){Getwid.settings.mailchimp_api_key=n("checkApiKey");this.state.waitLoadList||a({waitLoadList:!0}),x.post(Getwid.ajax_url,l,function(e){a({waitLoadList:!1}),a(e.success?{error:"",list:e.data}:{error:e.data,list:[]})}),a({firstInit:!0})}else"delete"==t&&(Getwid.settings.mailchimp_api_key="",x.post(Getwid.ajax_url,l))}},{key:"setGroupsName",value:function(){var e=this.state.list,t=[];return e.length&&Object(j.map)(e,function(e){t.push({value:e.id,label:e.title});var n=e.id;Object(j.map)(e.categories,function(e){Object(j.map)(e.interests,function(e){t.push({value:"".concat(n,"/").concat(e.id),label:e.title})})})}),t}},{key:"componentDidUpdate",value:function(){}},{key:"componentDidMount",value:function(){""!=Getwid.settings.mailchimp_api_key&&this.manageMailchimpApiKey(null,"save")}},{key:"render",value:function(){var e,t=this;if(""==Getwid.settings.mailchimp_api_key)return this.renderMailchimpApiKeyForm();var n=this.props,a=n.className,i=n.textColor,r=n.backgroundColor,s=n.baseClass,d=O()("wp-block-button__link",(e={"has-background":r.color},o()(e,r.class,r.class),o()(e,"has-text-color",i.color),o()(e,i.class,i.class),e)),u=this.changeData,p=this.getData,m=this.setGroupsName,g=this.manageMailchimpApiKey;return wp.element.createElement(M,null,wp.element.createElement(y.a,l()({},c()({},this.props,{setGroupsName:m},{manageMailchimpApiKey:g},{changeData:u},{getData:p}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(a)},wp.element.createElement("div",{className:"".concat(s,"__wrapper")},wp.element.createElement(I,{templateInsertUpdatesSelection:!1,allowedBlocks:V,template:[["getwid/".concat("mailchimp","-field-first-name"),{required:!1}],["getwid/".concat("mailchimp","-field-last-name"),{required:!1}],["getwid/".concat("mailchimp","-field-email"),{required:!0}]]})),wp.element.createElement("div",{className:"wp-block-button"},wp.element.createElement(L,{placeholder:Object(C.__)("Write text…","getwid"),value:this.props.attributes.text,formattingControls:["bold","italic","strikethrough"],onChange:function(e){return t.props.setAttributes({text:e})},className:d,style:{backgroundColor:r.color,color:i.color},keepPlaceholderOnFocus:!0}))))}}]),t}(A);t.a=T([P("backgroundColor",{textColor:"color"})])(F)},function(e,t,n){"use strict";var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(1)),g=(n.n(m),n(15)),b=wp.element,w=b.Component,h=b.Fragment,f=wp.blockEditor||wp.editor,_=f.InspectorControls,v=(f.PanelColorSettings,wp.components),y=v.TextControl,k=v.PanelBody,C=v.BaseControl,E=v.ButtonGroup,O=v.Button,j=v.ExternalLink,S=v.SelectControl,x=v.Spinner,T=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.attributes.ids,t=this.props,n=t.manageMailchimpApiKey,a=t.setGroupsName,l=t.changeData,i=t.getData,o=t.baseClass,r=this.props,c=r.textColor,s=r.backgroundColor,d=r.setTextColor,u=r.setBackgroundColor,p=r.setAttributes,b=r.customBackgroundColor,w=r.customTextColor,f=i("error"),v=i("waitLoadList");return wp.element.createElement(_,null,wp.element.createElement(k,{title:Object(m.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(y,{label:Object(m.__)("Mailchimp API Key","getwid"),value:i("checkApiKey"),onChange:function(e){l({checkApiKey:e})}}),f&&wp.element.createElement("p",null,wp.element.createElement("span",{className:"".concat(o,"__message")},"Error for site owner: ".concat(f))),wp.element.createElement(C,null,wp.element.createElement(E,null,wp.element.createElement(O,{isPrimary:!0,disabled:v,onClick:function(e){return n(e,"sync")}},Object(m.__)("Sync","getwid")),wp.element.createElement(O,{isDefault:!0,onClick:function(e){l({checkApiKey:""}),n(e,"delete")}},Object(m.__)("Delete","getwid")))),wp.element.createElement(C,null,wp.element.createElement(j,{href:"https://mailchimp.com/help/about-api-keys/#Find_or_Generate_Your_API_Key"}," ",Object(m.__)("Get your key.","getwid")," ")),wp.element.createElement(h,null,v?wp.element.createElement(x,null):void 0,wp.element.createElement(S,{multiple:!0,size:"10",label:Object(m.__)("Select the lists you wish your visitors to be subscribed to.","getwid"),help:Object(m.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),value:e,onChange:function(e){return p({ids:e})},options:v||f?[{value:"",label:""}]:a()})),wp.element.createElement(g.a,{colorSettings:[{title:Object(m.__)("Button Text Color","getwid"),colors:{customColor:w,defaultColor:c},changeColor:d},{title:Object(m.__)("Button Background Color","getwid"),colors:{customColor:b,defaultColor:s},changeColor:u}]})))}}]),t}(w);t.a=T},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(416)),o=n(419),r=n(420),c=n(74),s=n(75),d=(n.n(s),n(13)),u=n(1),p=(n.n(u),window),m=(p.jQuery,wp.data.select),g=wp.blocks,b=g.registerBlockType,w=g.createBlock,h=["left","center","right","wide","full"],f="getwid/video-popup";b(f,l()({title:Object(u.__)("Video Popup","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("polygon",{points:"18,10 11,13 11,7 "}),wp.element.createElement("path",{d:"M6,2v4H2v16h16v-4h4V2H6z M16,20H4V8h2v10h10V20z M20,16H8V4h12V16z"})),keywords:[Object(u.__)("video","getwid"),Object(u.__)("popup","getwid"),Object(u.__)("button","getwid")],deprecated:[{attributes:c.a,save:r.a}],supports:{inserter:!Getwid.disabled_blocks.includes(f)},transforms:{from:[{type:"block",blocks:["core/cover"],transform:function(e){return w("getwid/video-popup",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["core/media-text"],transform:function(e){var t=m("core/editor").getSelectedBlockClientId(),n=m("core/editor").getBlock(t).innerBlocks,a={text:""};return n.length&&jQuery.each(n,function(e,t){"core/paragraph"==t.name&&(a.text=t.attributes.content)}),w("getwid/video-popup",{id:e.mediaId,url:e.mediaUrl,text:a.text})}},{type:"block",blocks:["core/image"],transform:function(e){return w("getwid/video-popup",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return w("getwid/video-popup",{id:e.id,url:e.url,link:e.link,title:e.title,text:e.text})}},{type:"block",blocks:["getwid/image-hotspot"],transform:function(e){return w("getwid/video-popup",{id:e.id,url:e.url})}}],to:[{type:"block",blocks:["getwid/banner"],transform:function(e){return w("getwid/banner",{id:e.id,url:e.url,link:e.link,title:e.title,text:e.text})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return w("getwid/image-box",{id:e.id,url:e.url},[w("core/heading",{content:e.title}),w("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/media-text"],transform:function(e){return w("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"},[w("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/cover"],transform:function(e){return w("core/cover",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/image"],transform:function(e){return w("core/image",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/heading"],transform:function(e){return w("core/heading",{content:e.title})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return w("core/paragraph",{content:e.text})}}]},attributes:c.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==h.indexOf(t))return{"data-align":t}}},Object(d.b)(f,i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(7)),v=n.n(_),y=n(74),k=n(417),C=n(418),E=(n.n(C),n(75)),O=(n.n(E),n(11)),j=(n.n(O),n(1)),S=(n.n(j),window),x=S.jQuery,T=wp.blockEditor||wp.editor,N=T.BlockControls,A=T.BlockAlignmentToolbar,M=T.MediaUpload,B=T.MediaUploadCheck,I=T.RichText,L=(T.URLInput,T.withColors),P=wp.compose.compose,z=wp.data.withSelect,R=wp.components,D=R.IconButton,V=R.Toolbar,F=R.Dashicon,H=R.TextControl,W=wp.element,U=W.Component,G=W.Fragment,q=["wide","full"],Q=["image"],K="wp-block-getwid-video-popup",J=function(e){function t(){return d()(this,t),g()(this,w()(t).apply(this,arguments))}return f()(t,e),p()(t,[{key:"initPopUp",value:function(){var e=this.props.clientId,t=x("[data-block='".concat(e,"']"));x(".wp-block-getwid-video-popup__link",t).on("click",function(e){e.preventDefault()})}},{key:"componentDidMount",value:function(){this.initPopUp()}},{key:"componentDidUpdate",value:function(e){this.initPopUp()}},{key:"render",value:function(){var e,t,n,a=this,i=this.props,r=i.attributes,s=r.id,d=r.url,u=r.title,p=(r.text,r.link),m=r.align,g=r.minHeight,b=r.buttonMaxWidth,w=r.buttonStyle,h=r.buttonAnimation,f=r.buttonSize,_=r.overlayOpacity,C=r.imageAnimation,E=r.customTitleColor,S=r.customIconColor,x=r.customButtonColor,T=(r.customOverlayColor,i.titleColor),L=i.iconColor,P=i.buttonColor,z=i.overlayColor,R=i.setAttributes,W=i.isSelected,U=i.className,J=function(e,t){if(!e)return void R({url:void 0,id:void 0});if(e.media_type)"image"===e.media_type&&"image";else{if("image"!==e.type)return;e.type}var n=Object(O.get)(e,["sizes",t,"url"])||Object(O.get)(e,["media_details","sizes",t,"source_url"])||e.url;R({id:e.id,url:void 0!==n?n:d})},Z=function(e){var t=a.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(t)||(t=y.a.imageSize.default,R({imageSize:t})),J(e,t)},$={className:v()("".concat(K,"__wrapper"),c()({"has-background":!!d&&z.color},z.class,!!d&&z.class)),style:{backgroundColor:!!d&&(this.props.overlayColor.color?this.props.overlayColor.color:this.props.attributes.customOverlayColor),minHeight:void 0!=d?g:null}},Y={className:v()("".concat(K,"__button"),"is-style-".concat(w),(e={},c()(e,"has-animation-".concat(h),"none"!=h),c()(e,"is-size-".concat(f),"default"!=f),e)),style:{backgroundColor:"fill"==w?void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0:void 0,borderColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0}},X={className:v()("".concat(K,"__icon"),(t={"has-text-color":L.color},c()(t,L.class,L.class),c()(t,"has-background",P.color),c()(t,P.class,P.class),t)),style:{backgroundColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0,color:void 0!==this.props.attributes.iconColor&&void 0===this.props.attributes.iconColor.class?this.props.iconColor.color:S||void 0,borderColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0}},ee={className:v()("".concat(K,"__title"),c()({"has-text-color":T.color},T.class,T.class)),style:{color:void 0!==this.props.attributes.titleColor&&void 0===this.props.attributes.titleColor.class?this.props.titleColor.color:E||void 0}},te={className:v()(U,(n={},c()(n,"has-image",void 0!=d),c()(n,"has-animation-".concat(C),"none"!=C),c()(n,"has-foreground-".concat(_),35!=_),n),m?"align".concat(m):null)},ne={className:v()("".concat(K,"__link")),href:void 0!==p?p:"",style:{maxWidth:d?"":b}},ae=wp.element.createElement(G,null,wp.element.createElement(N,null,wp.element.createElement(A,{controls:q,value:m,onChange:function(e){return R({align:e})}}),wp.element.createElement(G,null,wp.element.createElement(B,null,wp.element.createElement(V,null,wp.element.createElement(M,{onSelect:Z,allowedTypes:Q,value:s,render:function(e){var t=e.open;return wp.element.createElement(D,{className:"components-toolbar__control",label:Object(j.__)("Select Image","getwid"),icon:"format-image",onClick:t})}}),!!d&&wp.element.createElement(D,{className:"components-toolbar__control",label:Object(j.__)("Delete Image","getwid"),icon:"trash",onClick:function(e){R({id:null,url:null})}}))))),wp.element.createElement(k.a,l()({},o()({setAttributes:R},this.props,{changeImageSize:J,onSelectMedia:Z}),{key:"inspector"})));return wp.element.createElement(G,null,wp.element.createElement("div",te,W&&wp.element.createElement(G,null,wp.element.createElement("div",{className:"".concat(K,"__url-field")},wp.element.createElement(F,{icon:"admin-links"}),wp.element.createElement(H,{placeholder:Object(j.__)("Video URL","getwid"),value:p,onChange:function(e){return R({link:e})}}))),ae,wp.element.createElement("a",ne,wp.element.createElement("div",$,!!d&&wp.element.createElement("img",{src:d,alt:"",className:"".concat(K,"__image ").concat(K,"__source ")+(s?"wp-image-".concat(s):"")}),wp.element.createElement("div",Y,wp.element.createElement("div",X,wp.element.createElement("i",{className:"fas fa-play"})),!d&&wp.element.createElement("div",{className:"".concat(K,"__button-caption")},wp.element.createElement(I,l()({},ee,{tagName:"p",placeholder:Object(j.__)("Write text…","getwid"),value:u,onChange:function(e){return R({title:e})},formattingControls:["bold","italic","strikethrough"]})))))),d&&wp.element.createElement("div",{className:"".concat(K,"__caption")},wp.element.createElement(I,l()({},ee,{tagName:"p",placeholder:Object(j.__)("Write text…","getwid"),value:u,onChange:function(e){return R({title:e})},formattingControls:["bold","italic","strikethrough"]})))))}}]),t}(U);t.a=P([z(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.id;if(void 0!==l)return{imgObj:l?a(l):null}}),L("titleColor","iconColor","buttonColor","overlayColor")])(J)},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var a=n(16),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(12),w=n.n(b),h=n(6),f=n.n(h),_=(n(0),n(1)),v=(n.n(_),n(17)),y=n(19),k=n(15),C=n(14),E=wp.element,O=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,T=wp.components,N=T.PanelBody,A=T.RangeControl,M=T.TextControl,B=T.SelectControl,I=function(e){function t(){var e;return c()(this,t),e=p()(this,g()(t).apply(this,arguments)),e.onSetLinkRel=e.onSetLinkRel.bind(w()(e)),e.changeState=e.changeState.bind(w()(e)),e.state={tabName:"general"},e}return f()(t,e),d()(t,[{key:"changeState",value:function(e,t){this.setState(o()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.imageSize,a=t.id,i=t.url,o=t.link,r=t.minHeight,c=t.buttonMaxWidth,s=t.imageAnimation,d=t.buttonStyle,u=t.buttonAnimation,p=t.buttonSize,m=t.overlayOpacity,g=e.titleColor,b=e.setTitleColor,w=e.iconColor,h=e.setIconColor,f=e.buttonColor,E=e.setButtonColor,O=e.overlayColor,S=e.setOverlayColor,T=e.customIconColor,I=e.customTitleColor,L=e.customOverlayColor,P=e.changeImageSize,z=e.onSelectMedia,R=e.setAttributes,D=e.imgObj,V=this.state.tabName,F=this.changeState,H=function(e){void 0!==D&&(R({imageSize:e}),P(D,e))};return wp.element.createElement(x,null,wp.element.createElement(y.a,{state:V,stateName:"tabName",onChangeTab:F,tabs:["general","style"]}),"general"===V&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},wp.element.createElement(C.d,{label:Object(_.__)("Image","getwid"),url:i,id:a,onSelectMedia:z,onRemoveMedia:function(){return R({url:void 0,id:void 0})}}),wp.element.createElement(M,{label:Object(_.__)("Video URL","getwid"),help:Object(_.__)("Link to Youtube, Vimeo or self-hosted video","getwid"),value:o,onChange:function(e){return R({link:e})}}),wp.element.createElement(B,{label:Object(_.__)("Button Animation","getwid"),value:u,onChange:function(e){return R({buttonAnimation:e})},options:[{value:"none",label:Object(_.__)("None","getwid")},{value:"pulse",label:Object(_.__)("Pulse","getwid")}]}),i&&wp.element.createElement(j,null,wp.element.createElement(B,{label:Object(_.__)("Image Animation","getwid"),value:s,onChange:function(e){return R({imageAnimation:e})},options:[{value:"none",label:Object(_.__)("None","getwid")},{value:"slide-left",label:Object(_.__)("Slide Left","getwid")},{value:"slide-right",label:Object(_.__)("Slide Right","getwid")},{value:"slide-top",label:Object(_.__)("Slide Top","getwid")},{value:"slide-bottom",label:Object(_.__)("Slide Bottom","getwid")},{value:"zoom-in",label:Object(_.__)("Zoom In","getwid")},{value:"zoom-out",label:Object(_.__)("Zoom Out","getwid")}]})))),"style"===V&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},wp.element.createElement(B,{label:Object(_.__)("Button Style","getwid"),value:d,onChange:function(e){return R({buttonStyle:e})},options:[{value:"default",label:Object(_.__)("Default","getwid")},{value:"bordered",label:Object(_.__)("Border","getwid")},{value:"outline",label:Object(_.__)("Outline","getwid")},{value:"fill",label:Object(_.__)("Fill","getwid")}]}),wp.element.createElement(B,{label:Object(_.__)("Button Size","getwid"),value:p,onChange:function(e){return R({buttonSize:e})},options:[{value:"default",label:Object(_.__)("Default","getwid")},{value:"small",label:Object(_.__)("Small","getwid")},{value:"normal",label:Object(_.__)("Normal","getwid")},{value:"large",label:Object(_.__)("Large","getwid")}]}),!i&&wp.element.createElement(v.a,{label:Object(_.__)("Button Width","getwid"),value:c,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return R({buttonMaxWidth:e})}}),i&&wp.element.createElement(j,null,D&&wp.element.createElement(B,{label:Object(_.__)("Image Size","getwid"),help:Object(_.__)("For images from Media Library only.","getwid"),value:n,onChange:H,options:Getwid.settings.image_sizes}),wp.element.createElement(v.a,{label:Object(_.__)("Image Height","getwid"),value:r,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return R({minHeight:e})}})),wp.element.createElement(k.a,{colorSettings:[{title:Object(_.__)("Button Color","getwid"),colors:{customColor:I,defaultColor:f},changeColor:function(e){E(e),R({buttonColorHEX:e})}},{title:Object(_.__)("Icon Color","getwid"),colors:{customColor:T,defaultColor:w},changeColor:h},{title:Object(_.__)("Title Color","getwid"),colors:{customColor:I,defaultColor:g},changeColor:b}].concat(l()(i?[{title:Object(_.__)("Overlay Color","getwid"),colors:{customColor:L,defaultColor:O},changeColor:S}]:[]))}),i&&wp.element.createElement(A,{label:Object(_.__)("Overlay Opacity","getwid"),value:m,onChange:function(e){return R({overlayOpacity:e})},min:0,max:100,step:5}))))}}]),t}(O)},function(e,t){},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element.Component),k=wp.blockEditor||wp.editor,C=k.RichText,E=k.getColorClassName,O="wp-block-getwid-video-popup",j=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t,n,a=this.props.attributes,i=a.id,r=a.url,c=a.title,s=a.text,d=a.link,u=a.align,p=a.minHeight,m=a.buttonMaxWidth,g=a.buttonStyle,b=a.buttonAnimation,w=a.buttonSize,h=a.overlayOpacity,f=a.imageAnimation,v=a.titleColor,y=a.iconColor,k=a.buttonColor,j=a.buttonColorHEX,S=a.overlayColor,x=a.customTitleColor,T=a.customIconColor,N=a.customButtonColor,A=a.customOverlayColor,M=a.className,B=E("color",v),I=E("color",y),L=E("background-color",k),P=E("background-color",S),z={className:_()("".concat(O,"__wrapper"),o()({"has-background":!!r&&(S||A)},P,!!r&&P)),style:{backgroundColor:r?this.props.attributes.overlayColor?void 0:this.props.attributes.customOverlayColor?this.props.attributes.customOverlayColor:void 0:void 0,minHeight:void 0!=r?p:null}},R={className:_()("".concat(O,"__button"),"is-style-".concat(g),(e={"has-background":"fill"==g&&(k||N)},o()(e,L,"fill"==g&&L),o()(e,"has-animation-".concat(b),"none"!=b),o()(e,"is-size-".concat(w),"default"!=w),e)),style:{backgroundColor:"fill"==g?void 0!==k?void 0:N||void 0:void 0,borderColor:void 0!==j?j:N||void 0}},D={className:_()("".concat(O,"__icon"),(t={"has-text-color":y||T},o()(t,I,I),o()(t,"has-background",k||N),o()(t,L,L),t)),style:{backgroundColor:void 0!==k?void 0:N||void 0,color:void 0!==y?void 0:T||void 0,borderColor:void 0!==j?j:N||void 0}},V={className:_()("".concat(O,"__title"),o()({"has-text-color":v||x},B,B)),style:{color:void 0!==v?void 0:x||void 0}},F={className:_()(M,(n={},o()(n,"has-image",void 0!=r),o()(n,"has-animation-".concat(f),"none"!=f),o()(n,"has-foreground-".concat(h),35!=h),n),u?"align".concat(u):null)},H={className:_()("".concat(O,"__link")),href:void 0!==d?d:"",style:{maxWidth:r?null:m}};return wp.element.createElement("div",F,wp.element.createElement("a",H,wp.element.createElement("div",z,!!r&&wp.element.createElement("img",{src:r,alt:"",className:"".concat(O,"__image ").concat(O,"__source ")+(i?"wp-image-".concat(i):"")}),wp.element.createElement("div",R,wp.element.createElement("div",D,wp.element.createElement("i",{className:"fas fa-play"})),!r&&(!C.isEmpty(c)||!C.isEmpty(s))&&wp.element.createElement("div",{className:"".concat(O,"__button-caption")},!C.isEmpty(c)&&wp.element.createElement(C.Content,l()({tagName:"p"},V,{value:c})))))),r&&wp.element.createElement("div",{className:"".concat(O,"__caption")},!C.isEmpty(c)&&wp.element.createElement(C.Content,l()({tagName:"p"},V,{value:c}))))}}]),t}(y);t.a=j},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=window,y=(v.jQuery,wp.element.Component),k=wp.blockEditor||wp.editor,C=k.RichText,E=k.getColorClassName,O="wp-block-getwid-video-popup",j=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e,t,n,a=this.props.attributes,i=a.id,r=a.url,c=a.title,s=a.text,d=a.link,u=a.align,p=a.minHeight,m=a.buttonMaxWidth,g=a.buttonStyle,b=a.buttonAnimation,w=a.buttonSize,h=a.overlayOpacity,f=a.imageAnimation,v=a.titleColor,y=a.iconColor,k=a.buttonColor,j=a.buttonColorHEX,S=a.overlayColor,x=a.customTitleColor,T=a.customIconColor,N=a.customButtonColor,A=a.customOverlayColor,M=a.className,B=E("color",v),I=E("color",y),L=E("background-color",k),P=E("background-color",S),z={className:_()("".concat(O,"__wrapper"),o()({"has-background":!!r&&(S||A)},P,!!r&&P)),style:{backgroundColor:r?this.props.attributes.overlayColor?void 0:this.props.attributes.customOverlayColor?this.props.attributes.customOverlayColor:void 0:void 0,minHeight:void 0!=r?p:null}},R={className:_()("".concat(O,"__button"),"is-style-".concat(g),(e={"has-background":"fill"==g&&(k||N)},o()(e,L,"fill"==g&&L),o()(e,"has-animation-".concat(b),"none"!=b),o()(e,"is-size-".concat(w),"default"!=w),e)),style:{backgroundColor:"fill"==g?void 0!==k?void 0:N||void 0:void 0,borderColor:void 0!==j?j:N||void 0}},D={className:_()("".concat(O,"__icon"),(t={"has-text-color":y||T},o()(t,I,I),o()(t,"has-background",k||N),o()(t,L,L),t)),style:{backgroundColor:void 0!==k?void 0:N||void 0,color:void 0!==y?void 0:T||void 0,borderColor:void 0!==j?j:N||void 0}},V={className:_()("".concat(O,"__title"),o()({"has-text-color":v||x},B,B)),style:{color:void 0!==v?void 0:x||void 0}},F={className:_()(M,(n={},o()(n,"has-image",void 0!=r),o()(n,"has-animation-".concat(f),"none"!=f),o()(n,"has-foreground-".concat(h),35!=h),n),u?"align".concat(u):null)},H={className:_()("".concat(O,"__link")),href:void 0!==d?d:"",style:{maxWidth:r?null:m}};return wp.element.createElement("div",F,wp.element.createElement("a",H,wp.element.createElement("div",z,!!r&&wp.element.createElement("img",{src:r,alt:"",className:"".concat(O,"__image ").concat(O,"__source ")+(i?"wp-image-".concat(i):null)}),wp.element.createElement("div",R,wp.element.createElement("div",D,wp.element.createElement("i",{className:"fas fa-play"})),!r&&(!C.isEmpty(c)||!C.isEmpty(s))&&wp.element.createElement("div",{className:"".concat(O,"__button-caption")},!C.isEmpty(c)&&wp.element.createElement(C.Content,l()({tagName:"p"},V,{value:c})))))),r&&wp.element.createElement("div",{className:"".concat(O,"__caption")},!C.isEmpty(c)&&wp.element.createElement(C.Content,l()({tagName:"p"},V,{value:c}))))}}]),t}(y);t.a=j},function(e,t,n){"use strict";var a=n(9),l=n.n(a),i=(n(0),n(422)),o=n(425),r=n(426),c=n(76),s=n(77),d=(n.n(s),n(13)),u=n(1),p=(n.n(u),window),m=(p.jQuery,wp.blocks),g=m.registerBlockType,b=m.createBlock,w="getwid/image-hotspot";g(w,l()({title:Object(u.__)("Image Hotspot","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("circle",{cx:"12",cy:"20",r:"2"}),wp.element.createElement("path",{d:"M20,4v7h-4h-0.67l-0.53,0.4L12,13.5l-2.8-2.1L8.67,11H8H4V4H20 M22,2H2v11h6l4,3l4-3h6V2L22,2z"})),keywords:[Object(u.__)("tooltip","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes(w)},deprecated:[{attributes:c.a,save:r.a}],transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return b("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["core/media-text"],transform:function(e){return b("getwid/image-hotspot",{id:e.mediaId,url:e.mediaUrl})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return b("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["core/cover"],transform:function(e){return b("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return b("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/video-popup"],transform:function(e){return b("getwid/image-hotspot",{id:e.id,url:e.url})}}],to:[{type:"block",blocks:["core/media-text"],transform:function(e){return b("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"})}},{type:"block",blocks:["core/cover"],transform:function(e){return b("core/cover",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return b("getwid/image-box",{id:e.id,url:e.url})}},{type:"block",blocks:["core/image"],transform:function(e){return b("core/image",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return b("getwid/banner",{id:e.id,url:e.url})}}]},attributes:c.a},Object(d.b)(w,i.a),{save:o.a}))},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(20),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(11)),O=(n.n(E),n(7)),j=n.n(O),S=n(76),x=n(423),T=n(424),N=(n.n(T),n(77)),A=(n.n(N),wp.compose.compose),M=wp.element,B=M.Component,I=M.Fragment,L=wp.components,P=L.Toolbar,z=L.IconButton,R=wp.blockEditor||wp.editor,D=R.BlockControls,V=R.MediaPlaceholder,F=R.MediaUpload,H=R.MediaUploadCheck,W=wp.data,U=W.withSelect,G=W.withDispatch,q=window,Q=q.jQuery,K=["image"],J="wp-block-getwid-image-hotspot",Z=function(e){function t(){var e;return p()(this,t),e=w()(this,f()(t).apply(this,arguments)),e.onCancelPoint=e.onCancelPoint.bind(v()(e)),e.onDeletePoint=e.onDeletePoint.bind(v()(e)),e.updateArrValues=e.updateArrValues.bind(v()(e)),e.changeState=e.changeState.bind(v()(e)),e.getState=e.getState.bind(v()(e)),e.isSelectedPoint=e.isSelectedPoint.bind(v()(e)),e.state={highlightDot:!1,currentPoint:null,updatePoints:!1,action:!1,editModal:!1},e}return k()(t,e),g()(t,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var a={};return Object.keys(t).forEach(function(l){var i;i=null!==t[l]&&"object"===d()(t[l])?e(t[l],n):n(t[l],l),a[l]=i}),a}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,a=n.attributes,l=n.setAttributes,i=a.imagePoints,o=""!=i?JSON.parse(i):[],r=o.map(function(n,a){return t===a&&(n=Object(E.merge)(n,e)),n});l({imagePoints:JSON.stringify(r)})}},{key:"changeState",value:function(e,t){"object"==d()(e)?this.setState(e):"string"==typeof e&&this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"getRelativePosition",value:function(e,t,n){var a,l,i=t.offset().left,o=t.offset().top,r=n||0;return a=(e.pageX-i-r/2)/t.outerWidth()*100,l=(e.pageY-o-r/2)/t.outerHeight()*100,{x:parseFloat(a).toFixed(2)+"%",y:parseFloat(l).toFixed(2)+"%"}}},{key:"initTooltips",value:function(){var e=this.props.clientId,t=this.props.attributes,n=t.imagePoints,a=t.tooltipTheme,l=t.tooltipArrow,i=t.tooltipAnimation,o=""!=n?JSON.parse(n):[];jQuery(".tippy-popper").remove();var r=Q("[data-block='".concat(e,"']")),c=Q(".".concat(J,"__wrapper .").concat(J,"__dot"),r);"function"==typeof tippy&&Q.each(c,function(e,t){var n=jQuery(t),r=n.data("point-id"),c=n.find(".".concat(J,"__dot-title")).html(),s=Object(E.unescape)(o[r].content),d=o[r].placement,u=o[r].popUpWidth;if(c||s){tippy(t,{maxWidth:parseInt(u,10),theme:a,animation:i,animateFill:!1,interactive:!0,trigger:"mouseenter",arrow:l,placement:d,content:'<div class="'.concat(J,'__tooltip"><div class="').concat(J,'__tooltip-title">').concat(c,'</div><div class="').concat(J,'__tooltip-content">').concat(s,"</div></div>")})}n.find(".".concat(J,"__dot-description")).remove()})}},{key:"setDotSelection",value:function(){var e=this,t=this.props.clientId,n=Q("[data-block='".concat(t,"']")),a=Q(".".concat(J,"__wrapper .").concat(J,"__dot"),n);a.length&&Q.each(a,function(t,n){var a=e.getState,l=Q(n).data("point-id");Object(E.isEqual)(a("currentPoint"),l)&&Q(n).addClass("is-selected")})}},{key:"isSelectedPoint",value:function(){var e=this.props.clientId,t=Q("[data-block='".concat(e,"']")),n=this.props.attributes.imagePoints,a=""!=n?JSON.parse(n):[];return Q(".".concat(J,"__wrapper .").concat(J,"__dot"),t).hasClass("is-selected")&&a.length}},{key:"initHotspotEvents",value:function(){var e=this,t=this.props.clientId,n=this.props.attributes.dotSize,a=this.onCancelPoint,l=this.getRelativePosition,i=this.updateArrValues,o=this.changeState,r=this.getState,c=Q("[data-block='".concat(t,"']")),s=Q(".".concat(J,"__wrapper"),c),d=Q(".".concat(J,"__wrapper .").concat(J,"__dot"),c);1==r("highlightDot")&&null!=r("currentPoint")&&(d.removeClass("is-selected"),s.find(".".concat(J,'__dot[data-point-id="').concat(r("currentPoint"),'"]')).addClass("is-selected"),s.find(".".concat(J,'__dot[data-point-id="').concat(r("currentPoint"),'"]')).addClass("is-selected"),o({highlightDot:!1})),d.off(),s.off(),s.contextmenu(function(){return!1}),d.contextmenu(function(){return!1}),d.click(function(n){n.stopPropagation();var a=n.currentTarget;if(!Q(a).hasClass("is-selected")){(0,e.props.selectBlock)(t),d.removeClass("is-selected"),Q(a).addClass("is-selected"),o("currentPoint",Q(a).data("point-id"))}}),d.mousedown(function(e){if(1==e.button)return e.preventDefault(),o("currentPoint",jQuery(this).data("point-id")),o({action:"edit",editModal:!0}),!1}),"function"==typeof s.imagesLoaded&&s.imagesLoaded().done(function(e){Q.each(d,function(e,t){t.oncontextmenu=function(){return!1};var n=new Draggabilly(t,{containment:s});n.on("dragStart",function(e,n){o("currentPoint",jQuery(t).data("point-id")),d.removeClass("is-selected"),jQuery(t).addClass("is-selected"),jQuery(".tippy-popper").remove()}),n.on("dragEnd",function(e,n){var a=parseFloat(t.offsetLeft/t.parentNode.offsetWidth*100).toFixed(2),l=parseFloat(t.offsetTop/t.parentNode.offsetHeight*100).toFixed(2);a=a<0?0:(a>100?100:a)+"%",l=l<0?0:(l>100?100:l)+"%",t.style.left=a,t.style.top=l,null==r("currentPoint")&&o("currentPoint",jQuery(t).data("point-id")),i({position:{x:a,y:l}},jQuery(t).data("point-id"))})})}),Q(document).keyup(function(e){null!=r("currentPoint")&&"drop"==r("action")&&27==e.which&&(o({action:!1,editModal:!1}),a())}),s.click(function(t){var a=t.target;if(d.removeClass("is-selected"),"drop"==r("action")){var c=l(t,Q(a),n),s=e.renderDot(r("currentPoint"),c.x,c.y);Q(a).append(s),i({position:{x:c.x,y:c.y}},r("currentPoint")),o("editModal",!0)}else a.className=="".concat(J,"__image")&&o("currentPoint",null)})}},{key:"renderDot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"",d=this.props.attributes,u=d.dotIcon,p=d.dotSize,m=d.dotPaddings,g=d.dotColor,b=d.dotBackground,w=d.dotOpacity,h=d.dotPulse,f=o||u,_=r||g,v=s||b,y="",k="";p&&16!=p&&(k+="font-size: "+p+"px;"),m&&6!=m&&(y+="padding: "+m+"px;"),_&&(k+="color: "+_+";"),v&&(y+="background-color: "+v+";"),w&&100!=w&&(y+="opacity: "+w/100+";");var C=j()("".concat(J,"__dot"),c()({},"has-animation-".concat(h),"none"!=h)),E="";return E=""!=l?'<a href="'.concat(l,'"')+(i?' target="_blank" rel="noopener noreferrer"':"")+">".concat(a,"</a>"):a,'<div data-point-id="'.concat(e,'" class="').concat(C,'" style="left: ').concat(t,"; top: ").concat(n,";")+(""!=y?y:"")+'">\n\t\t\t<div class="wp-block-getwid-image-hotspot__dot-wrapper">\n\t\t\t\t<div'+(""!=k?' style="'+k+'"':"")+' class="wp-block-getwid-image-hotspot__dot-content"><i class="'.concat(f," ").concat(J,'__dot-icon"></i></div>\n\t\t\t\t<div class="wp-block-getwid-image-hotspot__dot-description">\n\t\t\t\t\t<div class="wp-block-getwid-image-hotspot__dot-title">').concat(E,"</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t")}},{key:"initDot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props.clientId,a=this.renderDot(e,t.position.x,t.position.y,t.title,t.link,t.newTab,t.icon,t.color,t.backgroundColor),l=Q("[data-block='".concat(n,"']"));Q(".".concat(J,"__wrapper"),l).append(a)}},{key:"initPoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.props.clientId,a=this.changeState,l=this.props.attributes.imagePoints,i=""!=l?JSON.parse(l):[],o=Q("[data-block='".concat(n,"']"));Q(".".concat(J,"__wrapper .").concat(J,"__dot"),o).remove(),i.length&&Q.each(i,function(t,n){e.initDot(t,n)}),t&&a("updatePoints",!1),this.setDotSelection(),this.initHotspotEvents(),this.initTooltips()}},{key:"onDuplicatePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props,n=t.attributes.imagePoints,a=t.setAttributes,l=""!=n?JSON.parse(n):[],i=Object(E.cloneDeep)(l),o=i[e],r=parseInt(o.position.x,10)+3,c=parseInt(o.position.y,10)+3;r=r>98?98:r,c=c>96?96:c,o.position.x=r+"%",o.position.y=c+"%";var s=l,d=this.changeState;s.push(o),a({imagePoints:JSON.stringify(s)}),d({currentPoint:1==s.length?0:s.length-1,highlightDot:!0,updatePoints:!0})}},{key:"onAddPoint",value:function(){var e=this.props,t=e.attributes.imagePoints,n=e.setAttributes,a=""!=t?JSON.parse(t):[],l=a,i=this.changeState;l.push({link:"",icon:"",title:"",color:"",content:"",backgroundColor:"",newTab:!1,popUpOpen:!1,popUpWidth:350,placement:"top",position:{x:0,y:0}}),n({imagePoints:JSON.stringify(l)}),i("currentPoint",1==l.length?0:l.length-1)}},{key:"onDeletePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.changeState,n=this.props.attributes.imagePoints,a=this.props,l=a.clientId,i=a.setAttributes,o=""!=n?JSON.parse(n):[],r=o.filter(function(t,n){return n!==e});t({currentPoint:null,updatePoints:!0}),Q("#block-".concat(l)).find(".".concat(J,"__wrapper .").concat(J,"__dot")).removeClass("is-selected"),i({imagePoints:JSON.stringify(r)})}},{key:"onCancelPoint",value:function(){var e=this.props.setAttributes,t=this.getState,n=this.changeState,a=this.props.attributes.imagePoints,l=""!=a?JSON.parse(a):[],i=l.filter(function(e,n){return n!==t("currentPoint")});e({imagePoints:JSON.stringify(i)}),n({currentPoint:null,updatePoints:!0})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.id,a=t.url,i=t.alt,r=this.props,s=r.className,d=r.isSelected,u=r.setAttributes,p=r.clientId,m=this.onCancelPoint,g=this.onDeletePoint,b=this.updateArrValues,w=this.changeState,h=this.getState,f=this.isSelectedPoint,_=Q("[data-block='".concat(p,"']")),v=[{icon:"location",title:Object(C.__)("Drop Point","getwid"),isDisabled:null!=h("currentPoint"),isActive:"drop"==h("action"),onClick:function(){"drop"!=h("action")&&(e.onAddPoint(),w("action","drop"))}},{icon:"edit",title:Object(C.__)("Edit","getwid"),isDisabled:null===h("currentPoint")||"drop"==h("action"),isActive:"edit"==h("action")&&1==h("editModal"),onClick:function(){w({action:"edit",editModal:!0})}},{icon:"admin-page",title:Object(C.__)("Duplicate","getwid"),isDisabled:null===h("currentPoint"),onClick:function(){e.onDuplicatePoint(h("currentPoint"))}},{icon:"trash",title:Object(C.__)("Delete","getwid"),isDisabled:null===h("currentPoint")||"drop"==h("action"),onClick:function(){g(h("currentPoint"))}}],y=function(e,t){if(!e)return void u({url:void 0,id:void 0});u({id:e.id,alt:e.alt,url:Object(E.get)(e,["sizes",t,"url"])||Object(E.get)(e,["media_details","sizes",t,"source_url"])||e.url})},k=function(t){var n=e.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||u({imageSize:S.a.imageSize.default}),y(t,n)},O=wp.element.createElement(I,null,!a&&wp.element.createElement(V,{icon:"format-image",className:J,labels:{title:Object(C.__)("Image Hotspot","getwid")},onSelect:k,accept:"image/*",allowedTypes:K}),wp.element.createElement(D,null,!!a&&wp.element.createElement(I,null,wp.element.createElement(H,null,wp.element.createElement(P,null,wp.element.createElement(F,{onSelect:k,allowedTypes:K,value:n,render:function(e){var t=e.open;return wp.element.createElement(z,{className:"components-toolbar__control",label:Object(C.__)("Edit Media","getwid"),icon:"format-image",onClick:t})}})))))),T={className:j()(s,c()({"is-selected":d},"".concat(J,"--dropPoint"),"drop"==h("action")))},N=j()("".concat(J,"__wrapper")),A=a?wp.element.createElement("img",{className:"".concat(J,"__image"),src:a,alt:i||""}):"";return wp.element.createElement(I,null,wp.element.createElement("div",T,O,!!a&&wp.element.createElement(I,null,wp.element.createElement(D,null,wp.element.createElement(P,{controls:v})),wp.element.createElement(x.a,l()({},o()({setAttributes:u},this.props,{onCancelPoint:m},{onDeletePoint:g},{updateArrValues:b},{changeImageSize:y},{changeState:w},{getState:h},{thisBlock:_},{onSelectMedia:k},{isSelectedPoint:f}),{key:"inspector"}))),wp.element.createElement("div",{className:N},A)))}},{key:"componentDidMount",value:function(){this.initPoints(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.clientId,a=Q("[data-block='".concat(n,"']")),l=Q(".".concat(J,"__wrapper .").concat(J,"__dot"),a),i=this.getState,o=!Object(E.isEqual)(this.props.attributes,e.attributes)&&Object(E.isEqual)(this.props.attributes.imagePoints,e.attributes.imagePoints);1==e.isSelected&&0==this.props.isSelected&&l.removeClass("is-selected"),Q(".".concat(J,"__modal-delete")).contextmenu(function(){return!1}),Q(".components-modal__screen-overlay").contextmenu(function(){return!1}),(o||1==i("updatePoints"))&&this.initPoints(!0)}}]),t}(B);t.a=A([G(function(e,t){return{selectBlock:e("core/editor").selectBlock}}),U(function(e,t){var n=e("core"),a=n.getMedia,l=t.attributes.id;if(void 0!==l)return{imgObj:l?a(l):null}})])(Z)},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(18)),f=n(25),_=n(19),v=n(15),y=n(14),k=n(11),C=(n.n(k),n(1)),E=(n.n(C),wp.element),O=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,T=wp.components,N=T.PanelBody,A=T.BaseControl,M=T.RangeControl,B=T.SelectControl,I=T.TextareaControl,L=T.ToggleControl,P=T.TextControl,z=T.Button,R=T.Modal,D=T.ButtonGroup,V=T.RadioControl,F=T.Dashicon,H=T.TabPanel,W=wp.data.withSelect,U=wp.compose.compose,G="wp-block-getwid-image-hotspot",q=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.changeTabState=e.changeTabState.bind(g()(e)),e.state={tabName:"general"},e}return w()(t,e),c()(t,[{key:"changeTabState",value:function(e,t){this.setState(l()({},e,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.id,a=t.url,l=t.imageSize,i=t.imagePoints,o=t.tooltipTrigger,r=t.tooltipTheme,c=t.tooltipArrow,s=t.tooltipAnimation,d=t.dotIcon,u=t.dotSize,p=t.dotPaddings,m=t.dotColor,g=t.dotBackground,b=t.dotOpacity,w=t.dotPulse,E=t.dotAppearanceAnimation,O=t.hoverAnimation,S=e.setAttributes,T=e.className,W=e.imgObj,U=e.onCancelPoint,q=e.updateArrValues,Q=e.changeImageSize,K=e.changeState,J=e.getState,Z=e.onSelectMedia,$=this.state.tabName,Y=this.changeTabState,X=""!=i?JSON.parse(i):[],ee=function(e,t){return wp.element.createElement(j,null,wp.element.createElement(P,{label:Object(C.__)("Title","getwid"),value:X[e].title,onChange:function(t){q({title:t},e)}}),wp.element.createElement(j,null,wp.element.createElement("div",{className:"components-base-control ".concat(G,"__url-field")},wp.element.createElement(F,{className:"".concat(G,"__url-icon"),icon:"admin-links"}),wp.element.createElement(P,{placeholder:Object(C.__)("Enter URL","getwid"),value:X[e].link,onChange:function(t){q({link:t},e)}}),wp.element.createElement(L,{label:Object(C.__)("Open in New Tab","getwid"),checked:X[e].newTab,onChange:function(t){q({newTab:t},e)}}))),wp.element.createElement(I,{label:Object(C.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(k.unescape)(X[e].content),onChange:function(t){q({content:Object(k.escape)(t)},e)}}),wp.element.createElement(L,{label:Object(C.__)("Opened by default","getwid"),checked:X[e].popUpOpen,onChange:function(t){q({popUpOpen:t},e)}}))},te=function(e,t){return wp.element.createElement(j,null,wp.element.createElement(M,{label:Object(C.__)("X Coord (%)","getwid"),value:parseFloat(X[e].position.x),onChange:function(t){void 0===t&&(t=50),q({position:{x:parseFloat(t)+"%",y:X[e].position.y}},e)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(M,{label:Object(C.__)("Y Coord (%)","getwid"),value:parseFloat(X[e].position.y),onChange:function(t){void 0===t&&(t=50),q({position:{x:X[e].position.x,y:parseFloat(t)+"%"}},e)},allowReset:!0,min:0,max:100,step:.5}),t?wp.element.createElement(B,{label:Object(C.__)("Tooltip Position","getwid"),selected:X[e].placement,options:[{value:"top",label:Object(C.__)("Top","getwid")},{value:"right",label:Object(C.__)("Right","getwid")},{value:"bottom",label:Object(C.__)("Bottom","getwid")},{value:"left",label:Object(C.__)("Left","getwid")}],onChange:function(t){q({placement:t},e),K({updatePoints:!0,highlightDot:!0})}}):wp.element.createElement(V,{label:Object(C.__)("Tooltip Position","getwid"),selected:X[e].placement,options:[{value:"top",label:Object(C.__)("Top","getwid")},{value:"right",label:Object(C.__)("Right","getwid")},{value:"bottom",label:Object(C.__)("Bottom","getwid")},{value:"left",label:Object(C.__)("Left","getwid")}],onChange:function(t){q({placement:t},e),K({updatePoints:!0,highlightDot:!0})}}),wp.element.createElement(P,{label:Object(C.__)("Popup Maximum Width, px.","getwid"),value:X[e].popUpWidth,type:"number",onChange:function(t){q({popUpWidth:t},e)}}))},ne=function(e,t){return wp.element.createElement(j,null,wp.element.createElement(A,{label:Object(C.__)("Point Icon","getwid")},wp.element.createElement(h.a,{value:X[e].icon,onChange:function(t){q({icon:t},e),K({updatePoints:!0,highlightDot:!0})}})),wp.element.createElement(v.a,{colorSettings:[{title:Object(C.__)("Point Background","getwid"),colors:{customColor:X[e].backgroundColor},changeColor:function(t){q({backgroundColor:t},e),K({updatePoints:!0,highlightDot:!0})}},{title:Object(C.__)("Icon Color","getwid"),colors:{customColor:X[e].color},changeColor:function(t){q({color:t},e),K({updatePoints:!0,highlightDot:!0})}}]}))},ae=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];switch(t.name){case"content":return wp.element.createElement(j,null,ee(n));case"placement":return wp.element.createElement(j,null,te(n,a));case"style":return wp.element.createElement(j,null,ne(n))}},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wp.element.createElement(j,null,t?wp.element.createElement(H,{className:"getwid-modal-editor-tabs",activeClass:"is-active",tabs:[{name:"content",title:Object(C.__)("Content","getwid"),className:"components-button"},{name:"placement",title:Object(C.__)("Position","getwid"),className:"components-button"},{name:"style",title:Object(C.__)("Style","getwid"),className:"components-button"}]},function(n){return ae(self,n,e,t)}):wp.element.createElement(j,null,wp.element.createElement(N,{title:Object(C.__)("Content","getwid"),initialOpen:!0},ee(e)),wp.element.createElement(N,{title:Object(C.__)("Position","getwid"),initialOpen:!0},te(e,t)),wp.element.createElement(N,{title:Object(C.__)("Style","getwid"),initialOpen:!0},ne(e))))},ie=function(e){void 0!==W&&(S({imageSize:e}),Q(W,e))};return wp.element.createElement(x,null,!this.props.isSelectedPoint()&&wp.element.createElement(_.a,{state:$,stateName:"tabName",onChangeTab:Y,tabs:["general","style","advanced"]}),"general"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},wp.element.createElement(y.d,{label:Object(C.__)("Image","getwid"),removeButton:!1,url:a,id:n,onSelectMedia:Z,onRemoveMedia:function(){return S({url:void 0,id:void 0})}}),W&&wp.element.createElement(B,{label:Object(C.__)("Image Size","getwid"),help:Object(C.__)("For images from Media Library only.","getwid"),value:l,onChange:ie,options:Getwid.settings.image_sizes}),wp.element.createElement(V,{label:Object(C.__)("Tooltip Interactivity","getwid"),help:Object(C.__)("These options are applied on frontend only.","getwid"),selected:o,options:[{value:"hover",label:Object(C.__)("Hover","getwid")},{value:"click",label:Object(C.__)("Click","getwid")},{value:"multiple",label:Object(C.__)("Click (Multiple)","getwid")}],onChange:function(e){return S({tooltipTrigger:e})}}),wp.element.createElement(A,{label:Object(C.__)("Point Icon","getwid")},wp.element.createElement(h.a,{value:d,onChange:function(e){return S({dotIcon:e})}})),wp.element.createElement(M,{label:Object(C.__)("Point Size","getwid"),value:u,onChange:function(e){void 0===e&&(e=16),S({dotSize:e})},allowReset:!0,min:2,max:64,step:1}),wp.element.createElement(M,{label:Object(C.__)("Point Spacing","getwid"),value:p,onChange:function(e){void 0===e&&(e=6),S({dotPaddings:e})},allowReset:!0,min:2,max:100,step:1}))),"style"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(N,{initialOpen:!0},wp.element.createElement(v.a,{colorSettings:[{title:Object(C.__)("Point Background","getwid"),colors:{customColor:g},changeColor:function(e){return S({dotBackground:e})}},{title:Object(C.__)("Icon Color","getwid"),colors:{customColor:m},changeColor:function(e){return S({dotColor:e})}}]}),wp.element.createElement(M,{label:Object(C.__)("Point Opacity","getwid"),value:b,onChange:function(e){void 0===e&&(e=100),S({dotOpacity:e})},allowReset:!0,min:0,max:100,step:1})),"advanced"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},wp.element.createElement(B,{label:Object(C.__)("Tooltip Theme","getwid"),value:r,onChange:function(e){return S({tooltipTheme:e})},options:[{value:"light",label:Object(C.__)("Default","getwid")},{value:"dark",label:Object(C.__)("Dark","getwid")},{value:"light-border",label:Object(C.__)("Light with border","getwid")},{value:"google",label:Object(C.__)("Google","getwid")},{value:"translucent",label:Object(C.__)("Dark with transparency","getwid")}]}),wp.element.createElement(L,{label:Object(C.__)("Display tooltip arrow","getwid"),checked:c,onChange:function(e){S({tooltipArrow:e})}}),wp.element.createElement(B,{label:Object(C.__)("Tooltip Animation","getwid"),value:s,onChange:function(e){return S({tooltipAnimation:e})},options:[{value:"shift-away",label:Object(C.__)("Shift Away","getwid")},{value:"shift-toward",label:Object(C.__)("Shift Toward","getwid")},{value:"fade",label:Object(C.__)("Fade","getwid")},{value:"scale",label:Object(C.__)("Scale","getwid")},{value:"perspective",label:Object(C.__)("Perspective","getwid")}]}),wp.element.createElement(B,{label:Object(C.__)("Point Animation","getwid"),value:w,onChange:function(e){return S({dotPulse:e})},options:[{value:"none",label:Object(C.__)("None","getwid")},{value:"pulse",label:Object(C.__)("Pulse","getwid")}]}),wp.element.createElement(B,{label:Object(C.__)("Point Appearance Animation","getwid"),value:E,onChange:function(e){return S({dotAppearanceAnimation:e})},options:[{value:"none",label:Object(C.__)("None","getwid")},{value:"zoomIn",label:Object(C.__)("Zoom In","getwid")},{value:"slideDown",label:Object(C.__)("Slide Down","getwid")}]}),wp.element.createElement(f.a,{label:Object(C.__)("Point Animation On Hover","getwid"),help:Object(C.__)("These options are applied on frontend only.","getwid"),value:void 0!==O?O:"",onChange:function(e){return S({hoverAnimation:e})},allowAnimation:["Seeker"]}))),function(e){if(void 0!==X[e])return wp.element.createElement(j,null,"edit"!=J("action")&&"drop"!=J("action")||1!=J("editModal")?null:wp.element.createElement(R,{className:"".concat(T,"__modal"),title:Object(C.__)("Edit Point","getwid"),shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:function(){K({action:!1,editModal:!1}),"drop"==J("action")&&U()}},wp.element.createElement(j,null,le(e,!0),wp.element.createElement(D,null,wp.element.createElement(z,{isPrimary:!0,onClick:function(){return K({updatePoints:!0,editModal:!1,action:!1})}},"drop"==J("action")?Object(C.__)("Save","getwid"):Object(C.__)("Update","getwid")),"drop"==J("action")&&wp.element.createElement(z,{isDefault:!0,onClick:function(){K({action:!1,editModal:!1}),U()}},Object(C.__)("Cancel","getwid"))))))}(J("currentPoint")),this.props.isSelectedPoint()&&wp.element.createElement(N,{title:Object(C.__)("Point Settings","getwid"),initialOpen:!0},Object(y.g)(this)))}}]),t}(O);t.a=U([W(function(e,t){return{getEditorSettings:e("core/editor").getEditorSettings}})])(q)},function(e,t){},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=n(11),y=(n.n(v),window),k=(y.jQuery,wp.element),C=k.Component,E=k.Fragment,O="wp-block-getwid-image-hotspot",j=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,a=e.alt,i=e.hoverAnimation,r=e.imagePoints,c=e.tooltipTrigger,s=e.tooltipTheme,d=e.tooltipArrow,u=e.tooltipAnimation,p=e.dotIcon,m=e.dotSize,g=e.dotPaddings,b=e.dotColor,w=e.dotBackground,h=e.dotOpacity,f=e.dotPulse,y=e.dotAppearanceAnimation,k=e.className,C=""!=r?JSON.parse(r):[],j={className:_()(k,o()({"getwid-animation":!!i},"has-animated-dots","none"!==y)),"data-animation":i||void 0,"data-appearance-animation":y||void 0},S=n?wp.element.createElement("img",{src:n,alt:void 0!==a?a:null,className:"".concat(O,"__image ")+(t?"wp-image-".concat(t):"")}):null,x=function(e){if(void 0!==C[e]){var t=_()("".concat(O,"__dot"),o()({},"has-animation-".concat(f),"none"!=f)),n={padding:g&&6!=g?g:void 0,opacity:h&&100!=h?h/100:void 0,left:C[e].position.x?C[e].position.x:void 0,top:C[e].position.y?C[e].position.y:void 0,backgroundColor:C[e].backgroundColor?C[e].backgroundColor:w||void 0},a={color:C[e].color?C[e].color:b||void 0,fontSize:m&&16!=m?m:void 0},i="",r={target:C[e].newTab?"_blank":void 0,rel:C[e].newTab?"noopener noreferrer":void 0},c=C[e].icon?C[e].icon:p||void 0;return i=""!=C[e].link?wp.element.createElement("a",l()({href:C[e].link},r),C[e].title):C[e].title,wp.element.createElement(E,null,wp.element.createElement("div",{"data-point-id":e,className:t,style:n},wp.element.createElement("div",{className:"".concat(O,"__dot-wrapper")},wp.element.createElement("div",{style:a,className:"".concat(O,"__dot-content")},wp.element.createElement("i",{className:"".concat(c," ").concat(O,"__dot-icon")}))),wp.element.createElement("div",{className:"".concat(O,"__dot-description")},wp.element.createElement("div",{className:"".concat(O,"__dot-title")},i))))}},T={className:_()("".concat(O,"__wrapper"))},N={"data-image-points":Object(v.escape)(r)},A={"data-trigger":c,"data-theme":s,"data-tooltip-animation":u,"data-arrow":d};return wp.element.createElement("div",l()({},j,N,A),wp.element.createElement("div",T,S,0!=C.length&&wp.element.createElement(E,null,Object(v.times)(C.length,function(e){return x(e)}))))}}]),t}(C);t.a=j},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(8),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=n(11),y=(n.n(v),window),k=(y.jQuery,wp.element),C=k.Component,E=k.Fragment,O="wp-block-getwid-image-hotspot",j=function(e){function t(){return c()(this,t),p()(this,g()(t).apply(this,arguments))}return w()(t,e),d()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,a=e.alt,i=e.hoverAnimation,r=e.imagePoints,c=e.tooltipTrigger,s=e.tooltipTheme,d=e.tooltipArrow,u=e.tooltipAnimation,p=e.dotIcon,m=e.dotSize,g=e.dotPaddings,b=e.dotColor,w=e.dotBackground,h=e.dotOpacity,f=e.dotPulse,y=e.dotAppearanceAnimation,k=e.className,C=""!=r?JSON.parse(r):[],j={className:_()(k,o()({"getwid-animation":!!i},"has-animated-dots","none"!==y)),"data-animation":i||void 0,"data-appearance-animation":y||void 0},S=n?wp.element.createElement("img",{src:n,alt:void 0!==a?a:null,className:"".concat(O,"__image")+" wp-image-".concat(t)}):null,x=function(e){if(void 0!==C[e]){var t=_()("".concat(O,"__dot"),o()({},"has-animation-".concat(f),"none"!=f)),n={padding:g&&6!=g?g:void 0,opacity:h&&100!=h?h/100:void 0,left:C[e].position.x?C[e].position.x:void 0,top:C[e].position.y?C[e].position.y:void 0,backgroundColor:C[e].backgroundColor?C[e].backgroundColor:w||void 0},a={color:C[e].color?C[e].color:b||void 0,fontSize:m&&16!=m?m:void 0},i="",r={target:C[e].newTab?"_blank":void 0,rel:C[e].newTab?"noopener noreferrer":void 0},c=C[e].icon?C[e].icon:p||void 0;return i=""!=C[e].link?wp.element.createElement("a",l()({href:C[e].link},r),C[e].title):C[e].title
|
3 |
Licensed under the MIT License (MIT), see
|
4 |
http://jedwatson.github.io/classnames
|
5 |
*/
|
6 |
+
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var l=typeof a;if("string"===l||"number"===l)e.push(a);else if(Array.isArray(a)&&a.length){var o=n.apply(null,a);o&&e.push(o)}else if("object"===l)for(var r in a)i.call(a,r)&&a[r]&&e.push(r)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(a=[],void 0!==(l=function(){return n}.apply(t,a))&&(e.exports=l))}()},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},function(e,t,n){function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}var l=n(8);e.exports=a},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=window.lodash}()},function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},function(e,t,n){"use strict";function a(e,t){return{edit:Getwid.disabled_blocks.includes(e)?function(){var t=Object(d.sprintf)(Object(d.__)('%s block is disabled in plugin settings. <a href="%s">Manage Blocks</a>',"getwid"),e,Getwid.options_writing_url);return wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:t}})}:t}}function l(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e;var a=!1;document.getElementsByTagName("head")[0].appendChild(n),n.onload=n.onreadystatechange=function(){a||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(a=!0,n.onload=n.onreadystatechange=null,t(n))}}function i(e){return e.offset().top-p(window).scrollTop()-p(window).height()<0}function o(e,t,n){var a=this;p(e).on("scroll",{element:t},function(e){i(e.data.element)&&(n(),p(a).off(e))})}function r(){var e=p(p(".edit-post-layout__content").length?".edit-post-layout__content":".block-editor-editor-skeleton__content"),t=p(".edit-post-editor-regions__content");return e.length?e[0].className:t[0].className}function c(e,t,n){var a=document.createElement("iframe");a.style.pointerEvents="none",a.style.position="absolute",a.style.display="block",a.style.height="100%",a.style.width="100%",a.style.top="0",a.style.bottom="0",a.style.left="0",a.style.backgroundColor="transparent",a.className="".concat(t,"__resize-observer"),p(a).load(function(){p(a.contentWindow).resize(function(){n()})}),e.append(a)}function s(e){var t=function(e){return null!==e&&""!==e&&(e=e.toString(),e.replace(/<[^>]*>/g,""))};return e.map(function(e,n){return t(e.content)})}t.b=a,t.a=l,t.f=i,t.g=o,t.e=r,t.c=c,t.d=s;var d=(n(0),n(1)),u=(n.n(d),window),p=u.jQuery},function(e,t,n){"use strict";n.d(t,"f",function(){return x}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return I}),n.d(t,"h",function(){return P}),n.d(t,"b",function(){return R}),n.d(t,"e",function(){return D}),n.d(t,"d",function(){return V}),n.d(t,"g",function(){return F});var a=(n(0),n(17)),l=n(15),i=n(44),o=n(18),r=n(113),c=(n.n(r),n(1)),s=(n.n(c),window),d=s.jQuery,u=wp.blockEditor||wp.editor,p=u.MediaPlaceholder,m=u.MediaUpload,g=wp.element.Fragment,b=wp.components,w=b.SelectControl,h=b.TabPanel,f=b.BaseControl,_=b.TextControl,v=b.ToggleControl,y=b.Button,k=b.IconButton,C=b.RangeControl,E=b.TextareaControl,O=b.RadioControl,j=b.CheckboxControl,S=["image"],x=function(e){var t=e.props.attributes,n=t.paddingTop,a=t.paddingRight,l=t.paddingBottom,o=t.paddingLeft,r=e.props.attributes,s=r.paddingTopValue,d=r.paddingRightValue,u=r.paddingBottomValue,p=r.paddingLeftValue,m=function(){(0,e.props.setAttributes)({paddingTopValue:void 0,paddingBottomValue:void 0,paddingLeftValue:void 0,paddingRightValue:void 0,paddingTop:"",paddingBottom:"",paddingLeft:"",paddingRight:"",paddingTopTablet:"",paddingBottomTablet:"",paddingLeftTablet:"",paddingRightTablet:"",paddingTopMobile:"",paddingBottomMobile:"",paddingLeftMobile:"",paddingRightMobile:""})};return wp.element.createElement(i.a,{title:Object(c.__)("Padding","getwid"),initialOpen:!1,hints:[{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,4 1,4 1,15 15,15 15,4 16,4 16,16 0,16 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,5.35 8.71,9 12.35,12.65 11.65,13.35 8,9.71 4.35,13.35 3.65,12.65 7.29,9 3.65,5.35 4.35,4.65 8,8.29 11.65,4.65 "})),value:n?"custom"!=n?n:s:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{x:"13",width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12,0 12,1 1,1 1,15 12,15 12,16 0,16 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"10.65,12.35 7,8.71 3.35,12.35 2.65,11.65 6.29,8 2.65,4.35 3.35,3.65 7,7.29 10.65,3.65 11.35,4.35 7.71,8 11.35,11.65 "})),value:a?"custom"!=a?a:d:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{y:"13",width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,12 1,12 1,1 15,1 15,12 16,12 16,0 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,10.65 8.71,7 12.35,3.35 11.65,2.65 8,6.29 4.35,2.65 3.65,3.35 7.29,7 3.65,10.65 4.35,11.35 8,7.71 11.65,11.35 "})),value:l?"custom"!=l?l:u:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"4,0 4,1 15,1 15,15 4,15 4,16 16,16 16,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"5.35,12.35 9,8.71 12.65,12.35 13.35,11.65 9.71,8 13.35,4.35 12.65,3.65 9,7.29 5.35,3.65 4.65,4.35 8.29,8 4.65,11.65 "})),value:o?"custom"!=o?o:p:""}]},wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return N(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:m,disabled:!T(e)},Object(c.__)("Reset All","getwid"))))},T=function(e){var t=e.props.attributes,n=t.paddingTop,a=t.paddingRight,l=t.paddingBottom,i=t.paddingLeft,o=e.props.attributes,r=o.paddingTopValue,c=o.paddingRightValue,s=o.paddingBottomValue,d=o.paddingLeftValue,u=e.props.attributes,p=u.paddingTopTablet,m=u.paddingRightTablet,g=u.paddingBottomTablet,b=u.paddingLeftTablet,w=e.props.attributes,h=w.paddingTopMobile,f=w.paddingRightMobile,_=w.paddingBottomMobile,v=w.paddingLeftMobile;return void 0!==r||void 0!==s||void 0!==c||void 0!==d||""!==n||""!==a||""!==l||""!==i||""!==p||""!==m||""!==g||""!==b||""!==h||""!==f||""!==_||""!==v},N=function(e,t){var n=e.props.setAttributes,l=e.props.attributes,i=l.paddingTop,o=l.paddingRight,r=l.paddingBottom,s=l.paddingLeft,d=e.props.attributes,u=d.paddingTopValue,p=d.paddingRightValue,m=d.paddingBottomValue,b=d.paddingLeftValue,h=e.props.attributes,f=h.paddingTopTablet,_=h.paddingRightTablet,v=h.paddingBottomTablet,y=h.paddingLeftTablet,C=e.props.attributes,E=C.paddingTopMobile,O=C.paddingRightMobile,j=C.paddingBottomMobile,S=C.paddingLeftMobile,x=e.props,T=x.changeState,N=x.isLockedPaddingsOnDesktop,A=x.isLockedPaddingsOnTablet,M=x.isLockedPaddingsOnMobile;switch(t.name){case"desktop":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==i?i:"",onChange:function(e){N?function(){n({paddingBottom:e,paddingRight:e,paddingLeft:e,paddingTop:e})}():n({paddingTop:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:N?"lock":"unlock",onClick:function(){N?T("isLockedPaddingsOnDesktop",!1):function(){T("isLockedPaddingsOnDesktop",!0);"custom"==i?function(){n({paddingBottom:i,paddingRight:i,paddingLeft:i,paddingBottomValue:u,paddingRightValue:u,paddingLeftValue:u})}():function(){n({paddingBottom:i,paddingLeft:i,paddingRight:i})}()}()},label:N?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),"custom"===i&&wp.element.createElement(a.a,{value:u,onChange:function(e){N?function(){n({paddingBottomValue:e,paddingRightValue:e,paddingLeftValue:e,paddingTopValue:e})}():n({paddingTopValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!N||null,value:void 0!==r?r:"",onChange:function(e){return n({paddingBottom:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===r&&wp.element.createElement(a.a,{value:m,isLocked:N,onChange:function(e){return n({paddingBottomValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!N||null,value:void 0!==s?s:"",onChange:function(e){return n({paddingLeft:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===s&&wp.element.createElement(a.a,{value:b,isLocked:N,onChange:function(e){return n({paddingLeftValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!N||null,value:void 0!==o?o:"",onChange:function(e){return n({paddingRight:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===o&&wp.element.createElement(a.a,{value:p,isLocked:N,onChange:function(e){return n({paddingRightValue:void 0!==e?e:""})}}));case"tablet":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==f?f:"",onChange:function(e){A?function(){n({paddingBottomTablet:e,paddingRightTablet:e,paddingLeftTablet:e,paddingTopTablet:e})}():n({paddingTopTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:A?"lock":"unlock",onClick:function(){A?T("isLockedPaddingsOnTablet",!1):function(){T("isLockedPaddingsOnTablet",!0),n({paddingBottomTablet:f,paddingRightTablet:f,paddingLeftTablet:f})}()},label:A?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!A||null,value:void 0!==v?v:"",onChange:function(e){return n({paddingBottomTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!A||null,value:void 0!==y?y:"",onChange:function(e){return n({paddingLeftTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!A||null,value:void 0!==_?_:"",onChange:function(e){return n({paddingRightTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}));case"mobile":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Padding Top","getwid"),value:void 0!==E?E:"",onChange:function(e){M?function(){n({paddingBottomMobile:e,paddingLeftMobile:e,paddingRightMobile:e,paddingTopMobile:e})}():n({paddingTopMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:M?"lock":"unlock",onClick:function(){M?T("isLockedPaddingsOnMobile",!1):function(){T("isLockedPaddingsOnMobile",!0),n({paddingBottomMobile:E,paddingLeftMobile:E,paddingRightMobile:E})}()},label:M?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Padding Bottom","getwid"),disabled:!!M||null,value:void 0!==j?j:"",onChange:function(e){return n({paddingBottomMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Left","getwid"),disabled:!!M||null,value:void 0!==S?S:"",onChange:function(e){return n({paddingLeftMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Padding Right","getwid"),disabled:!!M||null,value:void 0!==O?O:"",onChange:function(e){return n({paddingRightMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}))}},A=function(e){var t=e.props.attributes,n=t.marginTop,a=t.marginRight,l=t.marginBottom,o=t.marginLeft,r=e.props.attributes,s=r.marginTopValue,d=r.marginRightValue,u=r.marginBottomValue,p=r.marginLeftValue,m=function(){(0,e.props.setAttributes)({marginTopValue:void 0,marginBottomValue:void 0,marginLeftValue:void 0,marginRightValue:void 0,marginTop:"",marginBottom:"",marginLeft:"",marginRight:"",marginTopTablet:"",marginBottomTablet:"",marginLeftTablet:"",marginRightTablet:"",marginTopMobile:"",marginBottomMobile:"",marginLeftMobile:"",marginRightMobile:""})};return wp.element.createElement(i.a,{title:Object(c.__)("Margin","getwid"),initialOpen:!1,hints:[{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,4 1,4 1,15 15,15 15,4 16,4 16,16 0,16 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,5.35 8.71,9 12.35,12.65 11.65,13.35 8,9.71 4.35,13.35 3.65,12.65 7.29,9 3.65,5.35 4.35,4.65 8,8.29 11.65,4.65 "})),value:n?"custom"!=n?n:s:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{x:"13",width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12,0 12,1 1,1 1,15 12,15 12,16 0,16 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"10.65,12.35 7,8.71 3.35,12.35 2.65,11.65 6.29,8 2.65,4.35 3.35,3.65 7,7.29 10.65,3.65 11.35,4.35 7.71,8 11.35,11.65 "})),value:a?"custom"!=a?a:d:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{y:"13",width:"16",height:"3"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"0,12 1,12 1,1 15,1 15,12 16,12 16,0 0,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"12.35,10.65 8.71,7 12.35,3.35 11.65,2.65 8,6.29 4.35,2.65 3.65,3.35 7.29,7 3.65,10.65 4.35,11.35 8,7.71 11.65,11.35 "})),value:l?"custom"!=l?l:u:""},{label:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",style:{enableBackground:"new 0 0 16 16;",width:16}},wp.element.createElement("rect",{width:"3",height:"16"}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"4,0 4,1 15,1 15,15 4,15 4,16 16,16 16,0 "}),wp.element.createElement("polygon",{style:{fill:"#C6C6C6"},points:"5.35,12.35 9,8.71 12.65,12.35 13.35,11.65 9.71,8 13.35,4.35 12.65,3.65 9,7.29 5.35,3.65 4.65,4.35 8.29,8 4.65,11.65 "})),value:o?"custom"!=o?o:p:""}]},wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return B(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:m,disabled:!M(e)},Object(c.__)("Reset All","getwid"))))},M=function(e){var t=e.props.attributes,n=t.marginTop,a=t.marginRight,l=t.marginBottom,i=t.marginLeft,o=e.props.attributes,r=o.marginTopValue,c=o.marginRightValue,s=o.marginBottomValue,d=o.marginLeftValue,u=e.props.attributes,p=u.marginTopTablet,m=u.marginRightTablet,g=u.marginBottomTablet,b=u.marginLeftTablet,w=e.props.attributes,h=w.marginTopMobile,f=w.marginRightMobile,_=w.marginBottomMobile,v=w.marginLeftMobile;return void 0!==r||void 0!==s||void 0!==c||void 0!==d||""!==n||""!==a||""!==l||""!==i||""!==p||""!==m||""!==g||""!==b||""!==h||""!==f||""!==_||""!==v},B=function(e,t){var n=e.props.setAttributes,l=e.props.attributes,i=l.marginTop,o=l.marginRight,r=l.marginBottom,s=l.marginLeft,d=e.props.attributes,u=d.marginTopValue,p=d.marginRightValue,m=d.marginBottomValue,b=d.marginLeftValue,h=e.props.attributes,f=h.marginTopTablet,_=h.marginRightTablet,v=h.marginBottomTablet,y=h.marginLeftTablet,C=e.props.attributes,E=C.marginTopMobile,O=C.marginRightMobile,j=C.marginBottomMobile,S=C.marginLeftMobile,x=e.props,T=x.changeState,N=x.isLockedMarginsOnDesktop,A=x.isLockedMarginsOnTablet,M=x.isLockedMarginsOnMobile;switch(t.name){case"desktop":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==i?i:"",onChange:function(e){N?function(){n({marginBottom:e,marginLeft:e,marginRight:e,marginTop:e,marginTopValue:u})}():n({marginTop:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:N?"lock":"unlock",onClick:function(){N?T("isLockedMarginsOnDesktop",!1):function(){T("isLockedMarginsOnDesktop",!0);"custom"==i?function(){n({marginBottom:i,marginRight:i,marginLeft:i,marginBottomValue:u,marginRightValue:u,marginLeftValue:u})}():function(){n({marginBottom:i,marginLeft:i,marginRight:i})}()}()},label:N?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),"custom"===i&&wp.element.createElement(a.a,{allowNegative:!0,value:u,onChange:function(e){N?function(){n({marginBottomValue:e,marginRightValue:e,marginLeftValue:e,marginTopValue:e})}():n({marginTopValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),disabled:!!N||null,value:void 0!==r?r:"",onChange:function(e){return n({marginBottom:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===r&&wp.element.createElement(a.a,{allowNegative:!0,value:m,isLocked:N,onChange:function(e){return n({marginBottomValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),disabled:!!N||null,value:void 0!==s?s:"",onChange:function(e){return n({marginLeft:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===s&&wp.element.createElement(a.a,{allowNegative:!0,value:b,isLocked:N,onChange:function(e){n({marginLeftValue:void 0!==e?e:""})}}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),disabled:!!N||null,value:void 0!==o?o:"",onChange:function(e){return n({marginRight:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"custom",label:Object(c.__)("Custom","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),"custom"===o&&wp.element.createElement(a.a,{allowNegative:!0,value:p,isLocked:N,onChange:function(e){return n({marginRightValue:void 0!==e?e:""})}}));case"tablet":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==f?f:"",onChange:function(e){A?function(){n({marginBottomTablet:e,marginRightTablet:e,marginLeftTablet:e,marginTopTablet:e})}():n({marginTopTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:A?"lock":"unlock",onClick:function(){A?T("isLockedMarginsOnTablet",!1):function(){T("isLockedMarginsOnTablet",!0),n({marginBottomTablet:f,marginRightTablet:f,marginLeftTablet:f})}()},label:A?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),disabled:!!A||null,value:void 0!==v?v:"",onChange:function(e){return n({marginBottomTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),disabled:!!A||null,value:void 0!==y?y:"",onChange:function(e){return n({marginLeftTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),disabled:!!A||null,value:void 0!==_?_:"",onChange:function(e){return n({marginRightTablet:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}));case"mobile":return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(w,{label:Object(c.__)("Margin Top","getwid"),value:void 0!==E?E:"",onChange:function(e){M?function(){n({marginBottomMobile:e,marginRightMobile:e,marginLeftMobile:e,marginTopMobile:e})}():n({marginTopMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(k,{icon:M?"lock":"unlock",onClick:function(){M?T("isLockedMarginsOnMobile",!1):function(){T("isLockedMarginsOnMobile",!0),n({marginBottomMobile:E,marginRightMobile:E,marginLeftMobile:E})}()},label:M?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(w,{label:Object(c.__)("Margin Bottom","getwid"),value:void 0!==j?j:"",disabled:!!M||null,onChange:function(e){return n({marginBottomMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Left","getwid"),value:void 0!==S?S:"",disabled:!!M||null,onChange:function(e){return n({marginLeftMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}),wp.element.createElement(w,{label:Object(c.__)("Margin Right","getwid"),value:void 0!==O?O:"",disabled:!!M||null,onChange:function(e){return n({marginRightMobile:e})},options:[{value:"",label:Object(c.__)("Default","getwid")},{value:"small",label:Object(c.__)("Small","getwid")},{value:"medium",label:Object(c.__)("Medium","getwid")},{value:"normal",label:Object(c.__)("Normal","getwid")},{value:"large",label:Object(c.__)("Large","getwid")},{value:"none",label:Object(c.__)("None","getwid")}]}))}},I=function(e){var t=e.props.attributes,n=t.fontSize,a=t.fontSizeTablet,l=t.fontSizeMobile,i=e.props.setAttributes;return wp.element.createElement(g,null,wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return L(e,t)}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,onClick:function(){return i({fontSizeTablet:"fs-tablet-100",fontSizeMobile:"fs-mobile-100",fontSize:void 0})},disabled:!("fs-tablet-100"!=a||"fs-mobile-100"!=l||void 0!=n)},Object(c.__)("Reset All","getwid"))))},L=function(e,t){var n=e.props.attributes,l=n.fontSize,i=n.fontSizeTablet,o=n.fontSizeMobile,r=e.props.setAttributes;switch(t.name){case"desktop":return wp.element.createElement(a.a,{label:Object(c.__)("Font Size","getwid"),value:l,onChange:function(e){return r({fontSize:e})}});case"tablet":return wp.element.createElement(w,{label:Object(c.__)("Font Size","getwid"),value:i,onChange:function(e){return r({fontSizeTablet:e})},options:[{value:"fs-tablet-50",label:Object(c.__)("50%","getwid")},{value:"fs-tablet-60",label:Object(c.__)("60%","getwid")},{value:"fs-tablet-70",label:Object(c.__)("70%","getwid")},{value:"fs-tablet-80",label:Object(c.__)("80%","getwid")},{value:"fs-tablet-90",label:Object(c.__)("90%","getwid")},{value:"fs-tablet-100",label:Object(c.__)("100%","getwid")},{value:"fs-tablet-110",label:Object(c.__)("110%","getwid")},{value:"fs-tablet-120",label:Object(c.__)("120%","getwid")}]});case"mobile":return wp.element.createElement(w,{label:Object(c.__)("Font Size","getwid"),value:o,onChange:function(e){return r({fontSizeMobile:e})},options:[{value:"fs-mobile-50",label:Object(c.__)("50%","getwid")},{value:"fs-mobile-60",label:Object(c.__)("60%","getwid")},{value:"fs-mobile-70",label:Object(c.__)("70%","getwid")},{value:"fs-mobile-80",label:Object(c.__)("80%","getwid")},{value:"fs-mobile-90",label:Object(c.__)("90%","getwid")},{value:"fs-mobile-100",label:Object(c.__)("100%","getwid")},{value:"fs-mobile-110",label:Object(c.__)("110%","getwid")},{value:"fs-mobile-120",label:Object(c.__)("120%","getwid")}]})}},P=function(e){var t=e.props.attributes.slideHeight,n=e.props.setAttributes;return wp.element.createElement(g,null,wp.element.createElement(f,null,wp.element.createElement(h,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(c.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(c.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(c.__)("Mobile","getwid"),disabled:!0,className:"components-button is-link is-small"}]},function(t){return z(e,t)}),wp.element.createElement(y,{isLink:!0,onClick:function(){return n({slideHeight:""})},disabled:!(""!=t&&void 0!==t)},Object(c.__)("Reset All","getwid"))))},z=function(e,t){var n=e.props.attributes,l=n.slideHeight,i=n.resetHeightOnTablet,o=n.resetHeightOnMobile,r=e.props.setAttributes,s=function(e,t){var n=e.find("button[tabindex='-1']");d.each(n,function(e,n){d(n).attr("disabled",t)})},u=setInterval(function(){var e=d(".getwid-editor-tabs");e.length&&(l?s(e,!1):s(e,!0),clearInterval(u))},1);switch(t.name){case"desktop":return wp.element.createElement(a.a,{label:Object(c.__)("Slider Height","getwid"),value:l,units:[{label:"px",value:"px"},{label:"vh",value:"vh"}],onChange:function(e){var t=d(".getwid-editor-tabs");e?(s(t,!1),r({slideHeight:e})):(s(t,!0),r({slideHeight:e,resetHeightOnTablet:!1,resetHeightOnMobile:!1}))}});case"tablet":return wp.element.createElement(j,{label:"Reset height on tablet",checked:i,onChange:function(e){r({resetHeightOnTablet:e})}});case"mobile":return wp.element.createElement(j,{label:"Reset height on mobile",checked:o,onChange:function(e){r({resetHeightOnMobile:e})}})}},R=function(e){var t=e.props,n=t.setAttributes,l=t.isLockedMargins,i=t.changeState,o=e.props.attributes,r=o.marginTop,s=o.marginBottom,d=o.marginLeft,u=o.marginRight,p=function(){return n({marginBottom:void 0,marginRight:void 0,marginLeft:void 0,marginTop:void 0})};return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(a.a,{label:Object(c.__)("Margin Top","getwid"),value:r,onChange:function(e){l?function(){n({marginBottom:e,marginRight:e,marginLeft:e,marginTop:e})}():n({marginTop:e})},allowNegative:!0}),wp.element.createElement(k,{icon:l?"lock":"unlock",onClick:function(){l?i("isLockedMargins",!1):function(){i("isLockedMargins",!0),n({marginBottom:r,marginRight:r,marginLeft:r})}()},label:l?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(a.a,{label:Object(c.__)("Margin Bottom","getwid"),isLocked:!!l||null,value:s,onChange:function(e){n({marginBottom:e})},allowNegative:!0}),wp.element.createElement(a.a,{label:Object(c.__)("Margin Left","getwid"),isLocked:!!l||null,value:d,onChange:function(e){n({marginLeft:e})},allowNegative:!0}),wp.element.createElement(a.a,{label:Object(c.__)("Margin Right","getwid"),isLocked:!!l||null,value:u,onChange:function(e){n({marginRight:e})},allowNegative:!0}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,isDestructive:!0,onClick:p,isLocked:!function(){return void 0!==s||void 0!==u||void 0!==d||void 0!==r}()},Object(c.__)("Reset","getwid"))))},D=function(e){var t=e.props,n=t.setAttributes,l=t.isLockedPaddings,i=t.changeState,o=e.props.attributes,r=o.paddingTop,s=o.paddingBottom,d=o.paddingLeft,u=o.paddingRight,p=function(){return n({paddingTop:void 0,paddingBottom:void 0,paddingLeft:void 0,paddingRight:void 0})};return wp.element.createElement(g,null,wp.element.createElement("div",{className:"components-base-control components-base-control-with-lock"},wp.element.createElement(a.a,{label:Object(c.__)("Padding Top","getwid"),value:r,onChange:function(e){l?function(){n({paddingBottom:e,paddingRight:e,paddingLeft:e,paddingTop:e})}():n({paddingTop:e})},allowNegative:!0}),wp.element.createElement(k,{icon:l?"lock":"unlock",onClick:function(){l?i("isLockedPaddings",!1):function(){i("isLockedPaddings",!0),n({paddingBottom:r,paddingRight:r,paddingLeft:r})}()},label:l?Object(c.__)("Unlock","getwid"):Object(c.__)("Lock","getwid")})),wp.element.createElement(a.a,{label:Object(c.__)("Padding Bottom","getwid"),isLocked:!!l||null,value:s,onChange:function(e){n({paddingBottom:e})}}),wp.element.createElement(a.a,{label:Object(c.__)("Padding Left","getwid"),isLocked:!!l||null,value:d,onChange:function(e){n({paddingLeft:e})}}),wp.element.createElement(a.a,{label:Object(c.__)("Padding Right","getwid"),isLocked:!!l||null,value:u,onChange:function(e){n({paddingRight:e})}}),wp.element.createElement(f,null,wp.element.createElement(y,{isLink:!0,isDestructive:!0,onClick:p,disabled:!function(){return void 0!==r||void 0!==s||void 0!==u||void 0!==d}()},Object(c.__)("Reset","getwid"))))},V=function(e){var t=e.id,n=e.url,a=e.onSelectMedia,l=e.onRemoveMedia,i=void 0===l?null:l,o=e.removeButton,r=void 0===o||o,s=(e.video,e.label),d=void 0===s?Object(c.__)("Background Image","getwid"):s,u=r?"ButtonGroup":"Fragment";return wp.element.createElement(g,null,wp.element.createElement(f,{label:d},wp.element.createElement(g,null,!n&&wp.element.createElement(p,{icon:"format-image",labels:{title:Object(c.__)("Image","getwid"),instructions:Object(c.__)("Upload an image file, pick one from your media library, or add one with a URL.","getwid")},onSelect:a,accept:"image/*",allowedTypes:S}),n&&wp.element.createElement(m,{onSelect:a,allowedTypes:S,value:t,render:function(e){var a=e.open;return wp.element.createElement(f,null,!!n&&wp.element.createElement("div",{onClick:a,className:"getwid-background-image-wrapper"},wp.element.createElement("img",{src:n})),wp.element.createElement(u,null,wp.element.createElement(y,{isPrimary:!0,onClick:a},!t&&Object(c.__)("Select Image","getwid"),!!t&&Object(c.__)("Replace Image","getwid")),!!t&&r&&wp.element.createElement(y,{isDefault:!0,onClick:i},Object(c.__)("Remove Image","getwid"))))}}))))},F=function(e){var t=e.props.attributes.imagePoints,n=e.props,a=n.getState,i=n.updateArrValues,r=n.changeState,s=t?JSON.parse(t):[],d=a("currentPoint");return wp.element.createElement(g,null,wp.element.createElement(_,{label:Object(c.__)("Title","getwid"),value:s[d].title,onChange:function(e){i({title:e},d),r("updatePoints",!0)}}),wp.element.createElement(_,{placeholder:Object(c.__)("Enter URL","getwid"),value:s[d].link,onChange:function(e){i({link:e},d)}}),wp.element.createElement(v,{label:Object(c.__)("Open in New Tab","getwid"),checked:s[d].newTab,onChange:function(e){i({newTab:e},d)}}),wp.element.createElement(E,{label:Object(c.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:unescape(s[d].content),onChange:function(e){i({content:e},d),r("updatePoints",!0)}}),wp.element.createElement(v,{label:Object(c.__)("Opened by default","getwid"),checked:s[d].popUpOpen,onChange:function(e){i({popUpOpen:e},d)}}),wp.element.createElement(C,{label:Object(c.__)("X Coord (%)","getwid"),value:parseFloat(s[d].position.x),onChange:function(e){void 0===e&&(e=50),i({position:{x:parseFloat(e)+"%",y:s[d].position.y}},d),r("updatePoints",!0)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(C,{label:Object(c.__)("Y Coord (%)","getwid"),value:parseFloat(s[d].position.y),onChange:function(e){void 0===e&&(e=50),i({position:{x:s[d].position.x,y:parseFloat(e)+"%"}},d),r("updatePoints",!0)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(l.a,{colorSettings:[{title:Object(c.__)("Point Background","getwid"),colors:{customColor:s[d].backgroundColor},changeColor:function(e){i({backgroundColor:e},d),r({updatePoints:!0,highlightDot:!0})}},{title:Object(c.__)("Icon Color","getwid"),colors:{customColor:s[d].color},changeColor:function(e){i({color:e},d),r({updatePoints:!0,highlightDot:!0})}}]}),wp.element.createElement(O,{label:Object(c.__)("Tooltip Position","getwid"),selected:s[d].placement,options:[{value:"top",label:Object(c.__)("Top","getwid")},{value:"right",label:Object(c.__)("Right","getwid")},{value:"bottom",label:Object(c.__)("Bottom","getwid")},{value:"left",label:Object(c.__)("Left","getwid")}],onChange:function(e){i({placement:e},d),r({updatePoints:!0,highlightDot:!0})}}),wp.element.createElement(_,{label:Object(c.__)("Popup Maximum Width, px.","getwid"),value:s[d].popUpWidth,type:"number",onChange:function(e){i({popUpWidth:e},d)}}),wp.element.createElement(f,{label:Object(c.__)("Point Icon","getwid")},wp.element.createElement(o.a,{value:s[d].icon,onChange:function(e){i({icon:e},d),r({updatePoints:!0,highlightDot:!0})}})))}},function(e,t,n){"use strict";var a=(n(0),n(1)),l=(n.n(a),n(7)),i=n.n(l),o=n(11),r=(n.n(o),n(99)),c=(n.n(r),wp.element.Fragment),s=wp.components,d=s.BaseControl,u=s.ColorPalette,p=s.ColorIndicator,m=wp.data.withSelect,g=wp.compose.compose,b=function(e){var t=e.props,n=e.getEditorSettings,a=t.colorSettings,l=Object(o.get)(n(),["colors"],[]);return wp.element.createElement(c,null,wp.element.createElement(d,{className:"components-getwid-color-palette-control"},a.map(function(e,t){var n=Object(o.has)(e,["colors","defaultColor"])?e.colors.defaultColor.color:void 0;return wp.element.createElement(c,null,wp.element.createElement(d.VisualLabel,null,e.title,(e.colors.customColor||n)&&wp.element.createElement(p,{colorValue:e.colors.customColor?e.colors.customColor:n})),wp.element.createElement(u,{colors:l,value:n||e.colors.customColor,onChange:e.changeColor}))})))};Object(o.has)(d,["VisualLabel"])||(d.VisualLabel=function(e){var t=e.className,n=e.children;return t=i()("components-base-control__label",t),wp.element.createElement("span",{className:t},n)}),t.a=g([m(function(e,t){return{getEditorSettings:e("core/editor").getEditorSettings,props:t}})])(b)},function(e,t,n){function a(e){return l(e)||i(e)||o()}var l=n(115),i=n(27),o=n(116);e.exports=a},function(e,t,n){"use strict";function a(e){function t(e,t){var a=void 0;return"unit"===t?f=e:h=e,f=void 0!==f?f:"",h=void 0!==h?h:"","auto"===f?a=n?e:"":void 0!==h&&""!==h&&(a=h+f),m(a)}var n=e.allowAuto,a=e.allowNegative,l=e.units,r=void 0===l?[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}]:l,s=e.value,d=e.label,m=e.onChange,g=e.isLocked,b=void 0!==g&&g,w="components-base-control components-getwid-style-length-control",h="",f="";if(n&&r.push({value:"auto",label:Object(c.__)("Auto","getwid")}),n&&"auto"===s&&(h="",f="auto"),void 0!==s){var _,v=Object(o.map)(r,"value").join("|"),y=a?"[-]?":"";(_=new RegExp("^(".concat(y,"[0-9]*\\.?[0-9]*)(").concat(v,"){0,1}$")).exec(s))?(h=_&&_[1]?_[1]:"",f=_&&_[2]?_[2]:""):(h="",f="")}return f||(f=r[0].value),wp.element.createElement("div",{className:w},wp.element.createElement(u,i()({className:["".concat(w,"__value_input")],name:"length",type:"number",label:d,value:h,onChange:function(e){return t(e,"length")},disabled:"auto"===f,min:a?void 0:0},"disabled",!!b||null)),wp.element.createElement(p,{className:["".concat(w,"__unit_select")],name:"unit",options:r,value:f,onChange:function(e){return t(e,"unit")},disabled:!!b||null}))}t.a=a;var l=n(8),i=n.n(l),o=(n(0),n(11)),r=(n.n(o),n(98)),c=(n.n(r),n(1)),s=(n.n(c),window),d=(s.jQuery,wp.components),u=d.TextControl,p=d.SelectControl},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(9),l=n.n(a),i=n(2),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=n(101),g=n.n(m),b=n(112),w=(n.n(b),Getwid.settings.iconList),h=function(e){function t(){return o()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),t}(g.a);h.defaultProps=l()({},h.defaultProps,{icons:w||[],theme:"getwid",iconsPerPage:12})},function(e,t,n){"use strict";function a(e){var t=e.state,n=e.stateName,a=e.onChangeTab,l=e.tabs,i=void 0===l?["general","style","layout","advanced"]:l;return wp.element.createElement(m,null,wp.element.createElement(p,{className:"components-getwid-tabs-control"},i.includes("general")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"general"===t}),onClick:function(){a(n,"general")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-settings"}),Object(r.__)("General","getwid")))),i.includes("style")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"style"===t}),onClick:function(){a(n,"style")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-appearance"}),Object(r.__)("Style","getwid")))),i.includes("layout")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"layout"===t}),onClick:function(){a(n,"layout")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"layout"}),Object(r.__)("Layout","getwid")))),i.includes("advanced")&&wp.element.createElement(m,null,wp.element.createElement(u,{className:o()("components-getwid-tab",{"is-selected":"advanced"===t}),onClick:function(){a(n,"advanced")}},wp.element.createElement("span",null,wp.element.createElement(d,{icon:"admin-generic"}),Object(r.__)("Advanced","getwid"))))))}t.a=a;var l=(n(0),n(117)),i=(n.n(l),n(7)),o=n.n(i),r=n(1),c=(n.n(r),window),s=(c.jQuery,wp.components),d=s.Dashicon,u=s.Button,p=s.PanelBody,m=wp.element.Fragment},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t,n){"use strict";function a(e,t,n){var a=function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]}(document.createElement("div")),l=void 0!==t.animation?t.animation:"",i=void 0!==t.duration?t.duration:"1s",o=void 0!==t.delay?t.delay:"0s";return e.css({"animation-duration":i,"animation-delay":o,"-webkit-animation-delay":o}),e.addClass("animated "+l).one(a,function(){jQuery(this).removeClass("animated "+l),"function"==typeof n&&n()}),this}t.a=a},function(e,t){!function(){e.exports=window.React}()},function(e,t,n){e.exports=n(102)()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var a=n(20),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=function(){function e(){o()(this,e)}return c()(e,null,[{key:"prepareBackgroundImageStyles",value:function(e,t){var n=t.attributes;if(!n["".concat(e,"Image")])return{};var a=n["".concat(e,"Image")];return"object"===l()(a)&&(a=a.url),{backgroundImage:"url('".concat(a,"')"),backgroundPosition:""!=n["".concat(e,"ImagePosition")]?n["".concat(e,"ImagePosition")]:null,backgroundRepeat:""!=n["".concat(e,"ImageRepeat")]?n["".concat(e,"ImageRepeat")]:null,backgroundAttachment:""!=n["".concat(e,"ImageAttachment")]?n["".concat(e,"ImageAttachment")]:null,backgroundSize:""!=n["".concat(e,"ImageSize")]?n["".concat(e,"ImageSize")]:null}}},{key:"prepareGradientStyle",value:function(e,t){var n=t.attributes["".concat(e,"GradientType")],a=t.attributes["".concat(e,"GradientAngle")],l=t.attributes["".concat(e,"GradientFirstColor")],i=t.attributes["".concat(e,"GradientSecondColor")],o=t.attributes["".concat(e,"GradientFirstColorLocation")],r=t.attributes["".concat(e,"GradientSecondColorLocation")];a=void 0!==a?"".concat(a,"deg"):"180deg",l=void 0!==l?l:"rgba(0,0,0,0)",o=void 0!==o?"".concat(o,"%"):"0%",i=void 0!==i?i:"rgba(0,0,0,0)",r=void 0!==r?"".concat(r,"%"):"100%";var c={};switch(n){case"linear":c.backgroundImage="linear-gradient(".concat(a,", ").concat(l," ").concat(o,", ").concat(i," ").concat(r,")");break;case"radial":c.backgroundImage="radial-gradient(".concat(l," ").concat(o,", ").concat(i," ").concat(r,")")}return c}},{key:"convertVerticalAlignToStyle",value:function(e){var t=void 0;switch(e){case"top":t="flex-start";break;case"bottom":t="flex-end";break;case"center":t="center"}return t}},{key:"convertHorizontalAlignToStyle",value:function(e){var t=void 0;switch(e){case"left":t="flex-start";break;case"right":t="flex-end";break;case"center":t="center"}return t}}]),e}()},function(e,t,n){"use strict";function a(e){var t=e.onChange,n=e.label,a=e.help,l=e.value,r=e.allowAnimation,s=void 0===r?["Entrance","Exit","Seeker"]:r,d=[{value:"",label:Object(o.__)("None","getwid")}],u=[{value:"bounceIn",label:Object(o.__)("Bounce In","getwid")},{value:"bounceInDown",label:Object(o.__)("Bounce In Down","getwid")},{value:"bounceInDownShort",label:Object(o.__)("Bounce In Down Short","getwid")},{value:"bounceInLeft",label:Object(o.__)("Bounce In Left","getwid")},{value:"bounceInLeftShort",label:Object(o.__)("Bounce In Left Short","getwid")},{value:"bounceInRight",label:Object(o.__)("Bounce In Right","getwid")},{value:"bounceInRightShort",label:Object(o.__)("Bounce In Right Short","getwid")},{value:"bounceInUp",label:Object(o.__)("Bounce In Up","getwid")},{value:"bounceInUpShort",label:Object(o.__)("Bounce In Up Short","getwid")},{value:"fadeIn",label:Object(o.__)("Fade In","getwid")},{value:"fadeInDown",label:Object(o.__)("Fade In Down","getwid")},{value:"fadeInDownShort",label:Object(o.__)("Fade In Down Short","getwid")},{value:"fadeInDownBig",label:Object(o.__)("Fade In Down Big","getwid")},{value:"fadeInLeft",label:Object(o.__)("Fade In Left","getwid")},{value:"fadeInLeftShort",label:Object(o.__)("Fade In Left Short","getwid")},{value:"fadeInLeftBig",label:Object(o.__)("Fade In Left Big","getwid")},{value:"fadeInRight",label:Object(o.__)("Fade In Right","getwid")},{value:"fadeInRightShort",label:Object(o.__)("Fade In Right Short","getwid")},{value:"fadeInRightBig",label:Object(o.__)("Fade In Right Big","getwid")},{value:"fadeInUp",label:Object(o.__)("Fade In Up","getwid")},{value:"fadeInUpShort",label:Object(o.__)("Fade In Up Short","getwid")},{value:"fadeInUpBig",label:Object(o.__)("Fade In Up Big","getwid")},{value:"flipInX",label:Object(o.__)("Flip In X","getwid")},{value:"flipInY",label:Object(o.__)("Flip In Y","getwid")},{value:"lightSpeedIn",label:Object(o.__)("Light Speed In","getwid")},{value:"lightSpeedInShort",label:Object(o.__)("Light Speed In Short","getwid")},{value:"rotateIn",label:Object(o.__)("Rotate In","getwid")},{value:"rotateInDownLeft",label:Object(o.__)("Rotate In Down Left","getwid")},{value:"rotateInDownRight",label:Object(o.__)("Rotate In Down Right","getwid")},{value:"rotateInUpLeft",label:Object(o.__)("Rotate In Up Left","getwid")},{value:"rotateInUpRight",label:Object(o.__)("Rotate In Up Right","getwid")},{value:"zoomIn",label:Object(o.__)("Zoom In","getwid")},{value:"zoomInDown",label:Object(o.__)("Zoom In Down","getwid")},{value:"zoomInLeft",label:Object(o.__)("Zoom In Left","getwid")},{value:"zoomInRight",label:Object(o.__)("Zoom In Right","getwid")},{value:"zoomInUp",label:Object(o.__)("Zoom In Up","getwid")},{value:"slideInDown",label:Object(o.__)("Slide In Down","getwid")},{value:"slideInDownShort",label:Object(o.__)("Slide In Down Short","getwid")},{value:"slideInLeft",label:Object(o.__)("Slide In Left","getwid")},{value:"slideInLeftShort",label:Object(o.__)("Slide In Left Short","getwid")},{value:"slideInRight",label:Object(o.__)("Slide In Right","getwid")},{value:"slideInRightShort",label:Object(o.__)("Slide In Right Short","getwid")},{value:"slideInUp",label:Object(o.__)("Slide In Up","getwid")},{value:"slideInUpShort",label:Object(o.__)("Slide In Up Short","getwid")},{value:"rollIn",label:Object(o.__)("Roll In","getwid")}],p=[{value:"bounceOut",label:Object(o.__)("Bounce Out","getwid")},{value:"bounceOutDown",label:Object(o.__)("Bounce Out Down","getwid")},{value:"bounceOutLeft",label:Object(o.__)("Bounce Out Left","getwid")},{value:"bounceOutRight",label:Object(o.__)("Bounce Out Right","getwid")},{value:"bounceOutUp",label:Object(o.__)("Bounce Out Up","getwid")},{value:"fadeOut",label:Object(o.__)("Fade Out","getwid")},{value:"fadeOutDown",label:Object(o.__)("Fade Out Down","getwid")},{value:"fadeOutDownBig",label:Object(o.__)("Fade Out Down Big","getwid")},{value:"fadeOutLeft",label:Object(o.__)("Fade Out Left","getwid")},{value:"fadeOutLeftBig",label:Object(o.__)("Fade Out Left Big","getwid")},{value:"fadeOutRight",label:Object(o.__)("Fade Out Right","getwid")},{value:"fadeOutRightBig",label:Object(o.__)("Fade Out Right Big","getwid")},{value:"fadeOutUp",label:Object(o.__)("Fade Out Up","getwid")},{value:"fadeOutUpBig",label:Object(o.__)("Fade Out Up Big","getwid")},{value:"flipOutX",label:Object(o.__)("Flip Out X","getwid")},{value:"flipOutY",label:Object(o.__)("Flip Out Y","getwid")},{value:"lightSpeedOut",label:Object(o.__)("Light Speed Out","getwid")},{value:"rotateOut",label:Object(o.__)("Rotate Out","getwid")},{value:"rotateOutDownLeft",label:Object(o.__)("Rotate Out Down Left","getwid")},{value:"rotateOutDownRight",label:Object(o.__)("Rotate Out Down Right","getwid")},{value:"rotateOutUpLeft",label:Object(o.__)("Rotate Out Up Left","getwid")},{value:"rotateOutUpRight",label:Object(o.__)("Rotate Out Up Right","getwid")},{value:"zoomOut",label:Object(o.__)("Zoom Out","getwid")},{value:"zoomOutDown",label:Object(o.__)("Zoom Out Down","getwid")},{value:"zoomOutLeft",label:Object(o.__)("Zoom Out Left","getwid")},{value:"zoomOutRight",label:Object(o.__)("Zoom Out Right","getwid")},{value:"zoomOutUp",label:Object(o.__)("Zoom Out Up","getwid")},{value:"slideOutDown",label:Object(o.__)("Slide Out Down","getwid")},{value:"slideOutLeft",label:Object(o.__)("Slide Out Left","getwid")},{value:"slideOutRight",label:Object(o.__)("Slide Out Right","getwid")},{value:"slideOutUp",label:Object(o.__)("Slide Out Up","getwid")},{value:"heartBeat",label:Object(o.__)("Heart Beat","getwid")},{value:"hinge",label:Object(o.__)("Hinge","getwid")},{value:"rollOut",label:Object(o.__)("Roll Out","getwid")}],m=[{value:"bounce",label:Object(o.__)("Bounce","getwid")},{value:"flash",label:Object(o.__)("Flash","getwid")},{value:"pulse",label:Object(o.__)("Pulse","getwid")},{value:"rubberBand",label:Object(o.__)("Rubber Band","getwid")},{value:"shake",label:Object(o.__)("Shake","getwid")},{value:"headShake",label:Object(o.__)("Head Shake","getwid")},{value:"swing",label:Object(o.__)("Swing","getwid")},{value:"tada",label:Object(o.__)("Tada","getwid")},{value:"wobble",label:Object(o.__)("Wobble","getwid")},{value:"jello",label:Object(o.__)("Jello","getwid")},{value:"jackInTheBox",label:Object(o.__)("Jack In The Box","getwid")}],g=[{value:"slideTop",label:Object(o.__)("Slide Top","getwid")},{value:"slideBottom",label:Object(o.__)("Slide Bottom","getwid")},{value:"slideLeft",label:Object(o.__)("Slide Left","getwid")},{value:"slideRight",label:Object(o.__)("Slide Right","getwid")},{value:"zoomSmall",label:Object(o.__)("Zoom Small","getwid")},{value:"zoomBig",label:Object(o.__)("Zoom Big","getwid")}];return s.includes("Entrance")&&(d=[].concat(i()(d),u)),s.includes("Exit")&&(d=[].concat(i()(d),p)),s.includes("Seeker")&&(d=[].concat(i()(d),m)),s.includes("Icon")&&(d=[].concat(i()(d),g)),wp.element.createElement(c,{label:n,help:a,value:l,onChange:t,options:d})}t.a=a;var l=n(16),i=n.n(l),o=(n(0),n(1)),r=(n.n(o),window),c=(r.jQuery,wp.components.SelectControl)},function(e,t){!function(){e.exports=window.ReactDOM}()},function(e,t){function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}e.exports=n},function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=n},function(e,t){function n(e){throw new Error('"'+e+'" is read-only')}e.exports=n},function(e,t,n){"use strict";var a=(n(32),n(33),n(22)),l=(n.n(a),n(11));n.n(l);n.o(a,"createContext")&&n.d(t,"c",function(){return a.createContext}),n.o(a,"createElement")&&n.d(t,"d",function(){return a.createElement}),n.o(a,"Fragment")&&n.d(t,"a",function(){return a.Fragment}),n.o(a,"StrictMode")&&n.d(t,"b",function(){return a.StrictMode})},function(e,t,n){"use strict";function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){Object(l.a)(e,t,n[t])})}return e}t.a=a;var l=n(82)},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,i=Object(l.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.a=a;var l=n(83)},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(92)),g=wp.element,b=g.Component,w=g.Fragment,h=(g.RawHTML,function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.dividerTop,a=t.dividersTopHeight,l=t.dividerTopColor,i=t.dividerBottom,o=t.dividersBottomHeight,r=t.dividerBottomColor,c=e.baseClass;return wp.element.createElement(w,null,n&&wp.element.createElement("div",{className:"".concat(c,"__divider is-top-divider")},this.renderSVG(n,l,a)),i&&wp.element.createElement("div",{className:"".concat(c,"__divider is-bottom-divider")},this.renderSVG(i,r,o)))}},{key:"renderSVG",value:function(e,t,n){return void 0===t&&(t="white"),m.a.hasOwnProperty(e)?m.a[e](t,n):""}}]),t}(b))},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),wp.element),w=b.Component,h=b.Fragment,f=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.backgroundVideoUrl,a=(t.backgroundVideoMute,t.backgroundVideoLoop),i=(t.backgroundVideoAutoplay,t.backgroundVideoPoster),o=e.baseClass,r={autoPlay:this.props.videoAutoplay,muted:this.props.videoMute,loop:a,poster:i||void 0};return wp.element.createElement(h,null,n.url&&wp.element.createElement("video",l()({className:"".concat(o,"__background-video")},r,{ref:this.props.videoElemRef,onEnded:this.props.onVideoEnd}),wp.element.createElement("source",{src:n.url,type:"video/mp4"})))}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}}]),t}(w)},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return y});var a=n(96),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),wp.element),w=b.Component,h=b.Fragment,f=window,_=f.jQuery,v=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.sliderImages,n=e.sliderAnimationEffect,a=e.sliderAnimationDuration,l=e.sliderAnimationSpeed,i=this.props.baseClass;return wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(i,"__background-slider"),"data-autoplay":"true","data-autoplay-speed":l,"data-slide-effect":n,"data-slide-speed":a,"data-infinite":"true"},t.map(function(e){return wp.element.createElement("div",{className:"".concat(i,"__background-slider-item"),key:e.id||e.url},wp.element.createElement("img",{src:e.url,className:e.id?"wp-image-".concat(e.id):null,alt:e.alt,"data-id":e.id}))})))}}]),t}(w),y=function(e){function t(){return o()(this,t),d()(this,p()(t).apply(this,arguments))}return g()(t,e),c()(t,[{key:"render",value:function(){return this.destroySlider(),l()(p()(t.prototype),"render",this).call(this)}},{key:"destroySlider",value:function(){var e=this.props.clientId,t=_("#block-".concat(e," .").concat(this.props.baseClass,"__background-slider")).first();t.hasClass("slick-initialized")&&t.slick("unslick")}},{key:"initSlider",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAnimationDuration,a=e.sliderAnimationSpeed,l=this.props.clientId;_("#block-".concat(l," .").concat(this.props.baseClass,"__background-slider")).first().slick({rows:0,slidesToShow:1,slidesToScroll:1,autoplay:!0,infinite:!0,arrows:!1,dots:!1,fade:"fade"===t,autoplaySpeed:a?parseInt(a):100,speed:n?parseInt(n):100})}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentDidUpdate",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}}]),t}(v)},function(e,t,n){"use strict";var a={align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__item",query:{url:{source:"attribute",selector:"img",attribute:"src"},original_url:{source:"attribute",selector:"img",attribute:"data-original-link"},link:{source:"attribute",selector:"img",attribute:"data-link"},custom_link:{source:"attribute",selector:"img",attribute:"data-custom-link"},custom_link_target:{source:"attribute",selector:"img",attribute:"data-link-target"},custom_link_rel:{source:"attribute",selector:"img",attribute:"data-link-rel"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},imageSize:{type:"string",default:"full"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},imageAlignment:{type:"string",default:"center"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-effect",default:"slide"},sliderSlidesToShow:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show",default:"1"},sliderSlidesToShowLaptop:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-laptop",default:"1"},sliderSlidesToShowTablet:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-tablet",default:"1"},sliderSlidesToShowMobile:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-show-mobile",default:"1"},sliderSlidesToScroll:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-slides-scroll",default:"1"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-autoplay-speed",default:6e3},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-animation-speed",default:800},sliderCenterMode:{type:"boolean",default:!1},sliderVariableWidth:{type:"boolean",default:!1},sliderSpacing:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-spacing",default:"none"},sliderArrows:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-arrows",default:"inside"},sliderDots:{type:"string",source:"attribute",selector:".wp-block-getwid-images-slider .wp-block-getwid-images-slider__wrapper",attribute:"data-dots",default:"inside"},slideHeight:{type:"string"},resetHeightOnTablet:{type:"bool"},resetHeightOnMobile:{type:"bool"}};t.a=a},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var a=n(9),l=n.n(a),i=n(16),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(11),p=(n.n(u),n(60)),m=n.n(p),g=function(){function e(t){c()(this,e),this.schema=t}return d()(e,[{key:"_getDefault",value:function(e,t){return"function"==typeof e.default?e.default(t):e.default}},{key:"createItems",value:function(e){var t=this,n=e.itemsCount;return Object(u.mapValues)(this.schema,function(e,a){return Object(u.times)(n,function(n){return e.isWrapper?Object(u.mapValues)(e.attributes,function(e){return t._getDefault(e,n)}):t._getDefault(e,n)})})}},{key:"deleteItem",value:function(e,t){var n=t.index;return Object(u.mapValues)(this.schema,function(t,a){return e[a].filter(function(e,t){return t!==n})})}},{key:"insertItem",value:function(e,t){var n=this,a=t.index,l=t.item;return Object(u.mapValues)(this.schema,function(t,i){return[].concat(o()(e[i].slice(0,a)),[t.isWrapper?Object(u.mapValues)(t.attributes,function(e){return void 0!==l?l[e.alias]:n._getDefault(e,a)}):void 0!==l?l[t.alias]:n._getDefault(t,a)],o()(e[i].slice(a)))})}},{key:"duplicateItem",value:function(e,t){var n=t.index;return Object(u.mapValues)(this.schema,function(t,a){return[].concat(o()(e[a].slice(0,n)),[e[a][n]],o()(e[a].slice(n)))})}},{key:"updateItem",value:function(e,t){var n=t.index,a=t.itemState,i=(this.schema.attributes,{});return Object(u.mapValues)(this.schema,function(t,o){return i=Object(u.mapValues)(Object(u.pickBy)(t.attributes,function(e){return a.hasOwnProperty(e.alias)}),function(e){return a[e.alias]}),e[o].map(function(e,t){return t!==n?e:l()({},e,i)})})}},{key:"moveItem",value:function(e,t){var n=t.index,a=t.toIndex;return Object(u.mapValues)(this.schema,function(t,l){return m()(e[l],n,a)})}}]),e}()},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(310)),w=(n.n(b),n(311)),h=n(11),f=(n.n(h),n(7)),_=n.n(f),v=n(1),y=(n.n(v),window),k=(y.jQuery,wp.element),C=k.Component,E=k.Fragment,O=(wp.compose.withInstanceId,wp.apiFetch),j=wp.url.addQueryArgs,S=wp.components,x=S.SelectControl,T=S.RangeControl,N=S.RadioControl,A=S.ToggleControl,M=S.Spinner,B=S.TextControl,I=S.PanelBody,L=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.firstCheckTaxonomy=!0,e.firstCheckTerms=!0,e.state={postTypeList:null,taxonomyList:null,termsList:null},e}return g()(t,e),c()(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.waitLoadPostTypes=!0,this.fetchRequest=O({path:j("/wp/v2/types")}).then(function(t){e.waitLoadPostTypes=!1,e.isStillMounted&&e.setState({postTypeList:t})}).catch(function(){e.waitLoadPostTypes=!1})}},{key:"getTaxonomyFromCustomPostType",value:function(e){var t=this;void 0!==e&&""!=e&&(this.waitLoadTaxonomy=!0,this.firstCheckTaxonomy=!1,this.fetchRequest=O({path:j("/getwid/v1/taxonomies",{post_type_name:e})}).then(function(e){t.waitLoadTaxonomy=!1,t.isStillMounted&&Array.isArray(e)&&e.length?t.setState({taxonomyList:e}):t.setState({taxonomyList:null})}).catch(function(){t.waitLoadTaxonomy=!1}))}},{key:"getTermsFromTaxonomy",value:function(e){var t=this;void 0!==e&&""!=e&&(this.waitLoadTerms=!0,this.firstCheckTerms=!1,this.fetchRequest=O({path:j("/getwid/v1/terms",{taxonomy_name:e})}).then(function(e){t.waitLoadTerms=!1,t.isStillMounted&&e instanceof Object&&!Object(h.isEmpty)(e)?t.setState({termsList:e}):t.setState({termsList:null})}).catch(function(){t.waitLoadTerms=!1}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t="components-getwid-custom-query-control",n=[];if(this.state.postTypeList)for(var a in this.state.postTypeList)if(!["attachment","wp_block","getwid_template_part","getwid_template"].includes(a)){var i={};i.value=this.state.postTypeList[a].slug,i.label=this.state.postTypeList[a].name,n.push(i)}return wp.element.createElement("div",{className:_()("components-base-control",t)},function(){return null==e.state.taxonomyList&&e.props.values.postType&&e.firstCheckTaxonomy&&e.getTaxonomyFromCustomPostType(e.props.values.postType),wp.element.createElement(E,null,e.waitLoadPostTypes?wp.element.createElement(M,null):void 0,wp.element.createElement(x,{label:Object(v.__)("Choose what to display","getwid"),className:["".concat(t,"__post-type")],value:e.props.values.postType?e.props.values.postType:"",onChange:function(t){e.setState({taxonomyList:null,termsList:null}),e.props.callbackOn&&e.props.callbackOn.includes("postType")?e.props.onChangeCallback(t,"postType"):""==t?e.props.setValues({postType:void 0,taxonomy:void 0,terms:void 0}):e.props.setValues({postType:t,taxonomy:void 0,terms:void 0}),e.getTaxonomyFromCustomPostType(t)},options:l()(n||[{value:"",label:"-"}]),disabled:null==e.state.postTypeList}))}(),wp.element.createElement(T,{label:this.props.options&&this.props.options.includes("page")&&this.props.values.pagination?Object(v.__)("Number of items per page","getwid"):Object(v.__)("Number of items","getwid"),value:this.props.values.postsToShow,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("postsToShow")?e.props.onChangeCallback(t,"postsToShow"):e.props.setValues({postsToShow:t})},min:-1,max:100,step:1}),function(){if(e.props.options&&e.props.options.includes("page"))return wp.element.createElement(E,null,wp.element.createElement(A,{label:Object(v.__)("Use pagination","getwid"),checked:!!e.props.values.pagination&&e.props.values.pagination,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("pagination")?e.props.onChangeCallback(t,"pagination"):e.props.setValues({pagination:!e.props.values.pagination})}}))}(),wp.element.createElement(I,{title:Object(v.__)("Sorting and Filtering","getwid"),initialOpen:!1},wp.element.createElement(x,{label:Object(v.__)("Order","getwid"),className:["".concat(t,"__order")],value:this.props.values.order?this.props.values.order:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("order")?e.props.onChangeCallback(t,"order"):e.props.setValues({order:t})},options:[{value:"desc",label:Object(v.__)("Z → A, 9 → 1","getwid")},{value:"asc",label:Object(v.__)("A → Z, 1 → 9","getwid")}]}),wp.element.createElement(x,{label:Object(v.__)("Order by","getwid"),className:["".concat(t,"__order-by")],value:this.props.values.orderBy?this.props.values.orderBy:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("orderBy")?e.props.onChangeCallback(t,"orderBy"):e.props.setValues({orderBy:t})},options:[{value:"title",label:Object(v.__)("Title","getwid")},{value:"date",label:Object(v.__)("Date","getwid")}].concat(l()("page"==this.props.values.postType?[{value:"menu_order",label:Object(v.__)("Menu order","getwid")},{value:"rand",label:Object(v.__)("Random","getwid")}]:[]))}),"page"!=this.props.values.postType&&function(){if(e.props.options&&e.props.options.includes("sticky"))return wp.element.createElement(E,null,wp.element.createElement(A,{label:Object(v.__)("Ignore Sticky posts","getwid"),checked:!!e.props.values.ignoreSticky&&e.props.values.ignoreSticky,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("ignoreSticky")?e.props.onChangeCallback(t,"ignoreSticky"):e.props.setValues({ignoreSticky:!e.props.values.ignoreSticky})}}))}(),wp.element.createElement(B,{label:Object(v.__)("Display only the specific posts","getwid"),help:Object(v.__)("Comma-separated IDs","getwid"),value:this.props.values.filterById?this.props.values.filterById:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("filterById")?e.props.onChangeCallback(t,"filterById"):e.props.setValues({filterById:t})}}),wp.element.createElement(B,{label:Object(v.__)("Display all posts but NOT the specified ones","getwid"),help:Object(v.__)("Comma-separated IDs","getwid"),value:this.props.values.excludeById?this.props.values.excludeById:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("excludeById")?e.props.onChangeCallback(t,"excludeById"):e.props.setValues({excludeById:t})}}),wp.element.createElement(A,{label:Object(v.__)("Exclude Current Post","getwid"),checked:!!this.props.values.excludeCurrentPost&&this.props.values.excludeCurrentPost,onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("excludeCurrentPost")?e.props.onChangeCallback(t,"excludeCurrentPost"):e.props.setValues({excludeCurrentPost:!e.props.values.excludeCurrentPost})}}),"page"==this.props.values.postType&&function(){if(e.props.options&&e.props.options.includes("parentFilter"))return wp.element.createElement(E,null,wp.element.createElement(B,{label:Object(v.__)("Enter page ID to display its child pages","getwid"),help:Object(v.__)("Parent page ID","getwid"),value:e.props.values.parentPageId?e.props.values.parentPageId:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("parentPageId")?e.props.onChangeCallback(t,"parentPageId"):e.props.setValues({parentPageId:t})}}))}(),"page"!=this.props.values.postType&&function(){return null==e.state.termsList&&e.props.values.taxonomy&&e.firstCheckTerms&&e.getTermsFromTaxonomy(e.props.values.taxonomy),wp.element.createElement(E,null,e.waitLoadTaxonomy?wp.element.createElement(M,null):void 0,wp.element.createElement(x,{label:Object(v.__)("Taxonomies","getwid"),help:Object(v.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),className:["".concat(t,"__taxonomy")],value:e.props.values.taxonomy?e.props.values.taxonomy:"",onChange:function(t){e.setState({termsList:null}),e.props.callbackOn&&e.props.callbackOn.includes("taxonomy")?e.props.onChangeCallback(t,"taxonomy"):""==t?e.props.setValues({taxonomy:void 0,terms:void 0}):e.props.setValues({taxonomy:t,terms:void 0}),e.getTermsFromTaxonomy(t)},multiple:!0,size:5,options:e.state.taxonomyList?e.state.taxonomyList:[{value:"",label:""}],disabled:null==e.state.taxonomyList}))}(),"page"!=this.props.values.postType&&function(){return wp.element.createElement(E,null,e.waitLoadTerms?wp.element.createElement(M,null):void 0,wp.element.createElement(w.a,{label:Object(v.__)("Terms","getwid"),help:Object(v.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),className:["".concat(t,"__terms")],multiple:!0,groups:!0,size:5,value:e.props.values.terms?e.props.values.terms:[],onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("terms")?e.props.onChangeCallback(t,"terms"):t.length?e.props.setValues({terms:t}):e.props.setValues({terms:void 0})},options:e.state.termsList?e.state.termsList:{"":{group_name:"",group_value:[{value:"",label:""}]}},disabled:null==e.state.termsList}))}(),"page"!=this.props.values.postType&&wp.element.createElement(N,{label:Object(v.__)("Terms Relation","getwid"),selected:this.props.values.relation?this.props.values.relation:"",options:[{value:"AND",label:Object(v.__)("Item should have all of selected terms.","getwid")},{value:"OR",label:Object(v.__)("Item should have at least one of selected terms.","getwid")}],onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("relation")?e.props.onChangeCallback(t,"relation"):e.props.setValues({relation:t})}})))}}]),t}(C);t.a=L},function(e,t,n){"use strict";var a=n(16),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(6),g=n.n(m),b=(n(0),n(315)),w=(n.n(b),n(7)),h=n.n(w),f=n(1),_=(n.n(f),window),v=(_.jQuery,wp.element),y=v.Component,k=v.Fragment,C=wp.apiFetch,E=wp.url.addQueryArgs,O=wp.components,j=O.SelectControl,S=O.BaseControl,x=O.ButtonGroup,T=O.Button,N=O.Spinner,A=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.state={postTemplates:null,waitLoadTemplates:!1},e}return g()(t,e),c()(t,[{key:"componentWillMount",value:function(){this.isStillMounted=!0,this.updateTemplates()}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"updateTemplates",value:function(){var e=this;this.fetchRequest=C({path:E("/getwid/v1/templates",{template_name:"getwid_template_part"})}).then(function(t){e.waitLoadTemplates=!1,e.isStillMounted&&t instanceof Object?e.setState({postTemplates:t,waitLoadTemplates:!1}):e.setState({postTemplates:null,waitLoadTemplates:!1})}).catch(function(){e.setState({waitLoadTemplates:!1})})}},{key:"resetTemplates",value:function(){this.props.setValues({postTemplate:null})}},{key:"render",value:function(){var e=this,t=[];this.state.postTemplates&&(t=this.state.postTemplates);return wp.element.createElement("div",{className:h()("components-base-control","components-getwid-custom-post-template-control")},function(){return wp.element.createElement(k,null,e.state.waitLoadTemplates?wp.element.createElement(N,null):void 0,wp.element.createElement(j,{label:Object(f.__)("Post Template","getwid"),className:["".concat("components-getwid-custom-post-template-control","__post-template")],value:e.props.values.postTemplate?e.props.values.postTemplate:"",onChange:function(t){e.props.callbackOn&&e.props.callbackOn.includes("postTemplate")?e.props.onChangeCallback(t,"postTemplate"):e.props.setValues({postTemplate:t})},options:[{value:"",label:"Default"}].concat(l()(t||[]))}),wp.element.createElement(x,null,e.props.values.postTemplate&&wp.element.createElement("a",{href:"".concat(Getwid.templates.edit).concat(e.props.values.postTemplate,"&action=edit"),className:"components-button is-button is-default",target:"_blank"},Object(f.__)("Edit","getwid")),wp.element.createElement("a",{href:Getwid.templates.new,className:"components-button is-button is-default",target:"_blank"},Object(f.__)("New","getwid")),wp.element.createElement("a",{href:Getwid.templates.view,className:"components-button is-button is-default",target:"_blank"},Object(f.__)("View All","getwid")),wp.element.createElement(T,{isDefault:!0,onClick:function(t){e.setState({waitLoadTemplates:!0}),e.updateTemplates()}},Object(f.__)("Update","getwid"))),e.props.values.postTemplate&&wp.element.createElement(S,null,wp.element.createElement(T,{isLink:!0,onClick:function(t){e.resetTemplates()}},Object(f.__)("Reset to default","getwid"))))}())}}]),t}(y);t.a=A},function(e,t,n){function a(e){return l(e)||i(e)||o()}var l=n(28),i=n(27),o=n(29);e.exports=a},function(e,t,n){"use strict";function a(e){var t=e.children,n=Object(i.a)(e,["children"]);return Object(o.d)("div",Object(l.a)({dangerouslySetInnerHTML:{__html:t}},n))}t.a=a;var l=n(32),i=n(33),o=n(31)},function(e,t,n){"use strict";var a={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string"},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},foregroundGradientType:{type:"string"},foregroundGradientFirstColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColor:{type:"string"},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientAngle:{type:"number",default:180},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(100)),f=(n.n(h),n(7)),_=n.n(f),v=wp.element,y=v.Component,k=v.Fragment,C=v.forwardRef,E=wp.components,O=E.Button,j=E.SVG,S=E.Path,x=E.G,T=function(e){function t(e){var n;return o()(this,t),n=d()(this,p()(t).apply(this,arguments)),n.state={opened:void 0===e.initialOpen||e.initialOpen,onOpen:void 0===e.onOpen?void 0:e.onOpen,onClose:void 0===e.onClose?void 0:e.onClose},n.toggle=n.toggle.bind(g()(n)),n}return w()(t,e),c()(t,[{key:"toggle",value:function(e){e.preventDefault(),this.state.opened?void 0!==this.state.onClose&&this.state.onClose():void 0!==this.state.onOpen&&this.state.onOpen(),void 0===this.props.opened&&this.setState(function(e){return{opened:!e.opened}}),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,a=e.opened,l=e.className,i=e.icon,o=e.forwardedRef,r=e.hints,c=void 0===a?this.state.opened:a,s=_()("components-panel__body","components-getwid-panel-body",l,{"is-opened":c});return wp.element.createElement("div",{className:s,ref:o},!!t&&wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement(O,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":c},wp.element.createElement("span",{"aria-hidden":"true"},c?wp.element.createElement(j,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(x,null,wp.element.createElement(S,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(x,null,wp.element.createElement(S,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):wp.element.createElement(j,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(x,null,wp.element.createElement(S,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(x,null,wp.element.createElement(S,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),r?c?t:wp.element.createElement(k,null,wp.element.createElement("span",null,t),wp.element.createElement("div",{className:"components-getwid-panel-body-row"},r.map(function(e,t){return wp.element.createElement("div",{className:"components-getwid-panel-body-columns"},wp.element.createElement("span",null,""!=e.value&&e.label," "),""!=e.value&&e.value)}))):t,i&&wp.element.createElement(Icon,{icon:i,className:"components-panel__icon",size:20}))),c&&n)}}]),t}(y),N=function(e,t){return wp.element.createElement(T,l()({},e,{forwardedRef:t}))};N.displayName="PanelBody",t.a=C(N)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(23)),c=a(n(22)),s=a(n(26)),d=n(46),u=(n(47),"unmounted");t.UNMOUNTED=u;var p="exited";t.EXITED=p;var m="entering";t.ENTERING=m;var g="entered";t.ENTERED=g;t.EXITING="exiting";var b=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var l,i=n.transitionGroup,o=i&&!i.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?o?(l=p,a.appearStatus=m):l=g:l=t.unmountOnExit||t.mountOnEnter?u:p,a.state={status:l},a.nextCallback=null,a}i(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:p}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):n!==m&&n!==g||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,a=this.props.timeout;return e=t=n=a,null!=a&&"number"!=typeof a&&(e=a.exit,t=a.enter,n=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=s.default.findDOMNode(this);t===m?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},n.performEnter=function(e,t){var n=this,a=this.props.enter,l=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),o=l?i.appear:i.enter;if(!t&&!a)return void this.safeSetState({status:g},function(){n.props.onEntered(e)});this.props.onEnter(e,l),this.safeSetState({status:m},function(){n.props.onEntering(e,l),n.onTransitionEnd(e,o,function(){n.safeSetState({status:g},function(){n.props.onEntered(e,l)})})})},n.performExit=function(e){var t=this,n=this.props.exit,a=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,a.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var a=null==t&&!this.props.addEndListener;if(!e||a)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,a=l(t,["children"]);if(delete a.in,delete a.mountOnEnter,delete a.unmountOnExit,delete a.appear,delete a.enter,delete a.exit,delete a.timeout,delete a.addEndListener,delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,"function"==typeof n)return n(e,a);var i=c.default.Children.only(n);return c.default.cloneElement(i,a)},t}(c.default.Component);b.contextTypes={transitionGroup:r.object},b.childContextTypes={transitionGroup:function(){}},b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:o,onEntering:o,onEntered:o,onExit:o,onExiting:o,onExited:o},b.UNMOUNTED=0,b.EXITED=1,b.ENTERING=2,b.ENTERED=3,b.EXITING=4;var w=(0,d.polyfill)(b);t.default=w},function(e,t,n){"use strict";function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function l(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==r){var c=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=l),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var d=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;d.call(this,e,t,a)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return o}),a.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;!function(e){e&&e.__esModule}(n(23));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.__esModule=!0,t.default=void 0;var c=a(n(23)),s=a(n(22)),d=n(46),u=n(111),p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},m={component:"div",childFactory:function(e){return e}},g=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var l=a.handleExited.bind(r(r(a)));return a.state={handleExited:l,firstRender:!0},a}o(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,a=t.handleExited;return{children:t.firstRender?(0,u.getInitialChildMapping)(e,a):(0,u.getNextChildMapping)(e,n,a),firstRender:!1}},n.handleExited=function(e,t){var n=(0,u.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=i({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,a=l(e,["component","childFactory"]),i=p(this.state.children).map(n);return delete a.appear,delete a.enter,delete a.exit,null===t?i:s.default.createElement(t,a,i)},t}(s.default.Component);g.childContextTypes={transitionGroup:c.default.object.isRequired},g.propTypes={},g.defaultProps=m;var b=(0,d.polyfill)(g);t.default=b,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",function(){return V});var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(2),d=n.n(s),u=n(4),p=n.n(u),m=n(5),g=n.n(m),b=n(3),w=n.n(b),h=n(12),f=n.n(h),_=n(6),v=n.n(_),y=(n(0),n(1)),k=(n.n(y),n(130)),C=n.n(k),E=n(7),O=n.n(E),j=n(11),S=(n.n(j),n(131)),x=n(132),T=(n.n(x),wp.components.IconButton),N=wp.element,A=N.Component,M=N.Fragment,B=N.createContext,I=wp.blockEditor||wp.editor,L=I.InnerBlocks,P=I.RichText,z=window,R=z.jQuery,D=B(),V=D.Consumer,F=D.Provider,H=["getwid/media-text-slider-slide"],W=C()(function(e){return Object(j.times)(e,function(e){return["getwid/media-text-slider-slide",{slideId:++e}]})}),U=function(e){function t(){var e;return d()(this,t),e=g()(this,w()(t).apply(this,arguments)),e.changeState=e.changeState.bind(f()(e)),e.addNewSlide=e.addNewSlide.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e.updateContentAttributes=e.updateContentAttributes.bind(f()(e)),e.setInnerBlocksAttributes=e.setInnerBlocksAttributes.bind(f()(e)),e.state={currentSlide:1,selectedSlide:0,isLockedPaddings:!1},e}return v()(t,e),p()(t,[{key:"changeState",value:function(e,t){this.setState(c()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"setInnerBlocksAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mount",t=arguments.length>1?arguments[1]:void 0,n=(arguments.length>2&&arguments[2],window.wp.data),a=n.select,l=n.dispatch,i=this.props.attributes,o=i.paddingRight,r=i.textColor,c=i.overlayColor,s=i.overlayOpacity,d=i.imageSize,u=this.props.attributes,p=u.contentMaxWidth,m=u.minHeight,g=u.verticalAlign,b=u.horizontalAlign,w=u.paddingTop,h=u.paddingBottom,f=u.paddingLeft,_={attributes:{contentMaxWidth:p,minHeight:m,verticalAlign:g,horizontalAlign:b,paddingTop:w,paddingBottom:h,paddingLeft:f,paddingRight:o,textColor:r,overlayColor:c,overlayOpacity:s,imageSize:d}};if("Update"!=e||!Object(j.isEqual)(this.props.attributes,t.attributes)){var v,y=a("core/editor"),k=y.getBlock,C=k(this.props.clientId);C&&(v=C.innerBlocks),v&&v.length&&jQuery.each(v,function(t,n){("Mount"==e&&Object(j.isEmpty)(n.attributes.outerParent)||"Update"==e)&&(l("core/editor").updateBlockAttributes(n.clientId,{outerParent:_}),void 0!==n.clientId&&n.innerBlocks.length&&l("core/editor").updateBlockAttributes(n.innerBlocks[0].clientId,{innerParent:_}))})}}},{key:"updateContentAttributes",value:function(e){var t=window.wp.data,n=t.dispatch,a=t.select,l=this.props.clientId,i=a("core/editor").getBlock(l).innerBlocks,o=this.props.attributes,r=o.contentMaxWidth,c=o.minHeight,s=o.textColor,d=o.overlayColor,u=o.overlayOpacity,p=o.imageSize,m=this.props.attributes,g=m.verticalAlign,b=m.horizontalAlign,w=m.paddingTop,h=m.paddingBottom,f=m.paddingLeft,_=m.paddingRight,v={attributes:{contentMaxWidth:r,minHeight:c,verticalAlign:g,horizontalAlign:b,paddingTop:w,paddingBottom:h,paddingLeft:f,paddingRight:_,textColor:s,overlayColor:d,overlayOpacity:u,imageSize:p}};R.each(i,function(t,a){Object(j.isEqual)(e,a.innerBlocks[0].clientId)&&n("core/editor").updateBlockAttributes(e,{innerParent:v})})}},{key:"addNewSlide",value:function(e){var t=this.props.setAttributes,n=this.props.attributes.sliderArrays,a=JSON.parse(n),l=this.changeState,i=this.getState;if(a.length<e){var o=Math.abs(e-a.length);Object(j.times)(o,function(t){var n=e-t;a.push(sprintf(Object(y.__)("Slide %d","getwid"),n))}),t({sliderArrays:JSON.stringify(a),slideCount:e})}else e-1<i("selectedSlide")&&(l("selectedSlide",e-1),l("currentSlide",e)),t({sliderArrays:JSON.stringify(a.slice(0,e)),slideCount:e})}},{key:"componentDidMount",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.sliderArrows,a=t.sliderDots;n&&a||e({sliderArrows:"outside",sliderDots:"outside"}),this.setInnerBlocksAttributes("Mount")}},{key:"componentDidUpdate",value:function(e,t){this.setInnerBlocksAttributes("Update",e,t)}},{key:"render",value:function(){var e,t=this,n=this.changeState,a=this.getState,i=this.props.attributes,r=i.slideCount,s=i.align,d=i.sliderArrays,u=this.props,p=u.className,m=u.baseClass,g=JSON.parse(d),b=O()(p,(e={},c()(e,"".concat(m,"--current-slide-").concat(a("currentSlide")),!0),c()(e,"alignfull","full"===s),c()(e,"alignwide","wide"===s),e)),w=function(e,n){var a=t.props.setAttributes,l=JSON.parse(d);l[n]=e,a({sliderArrays:JSON.stringify(l)})},h=function(e){if(void 0!==g[e])return wp.element.createElement(M,null,wp.element.createElement("li",{className:"".concat(m,"__title-wrapper ").concat(m,"__title-wrapper-").concat(e," ").concat(m,"__title-wrapper--").concat(1+e===a("currentSlide")?"active":"inactive")},wp.element.createElement("span",{className:"".concat(m,"__title ").concat(m,"__title-").concat(1+e),onClick:function(){n("currentSlide",1+e),n("selectedSlide",e)}},wp.element.createElement(P,{tagName:"div",className:"".concat(m,"__title_text"),placeholder:Object(y.__)("Slide","getwid"),value:g[e]?void 0!==g[e].text?g[e].text:g[e]:Object(y.__)("Slide","getwid"),unstableOnFocus:function(){return n("currentSlide",1+e)},onChange:function(t){w(t,e)},formattingControls:[]}))))},f=this.addNewSlide,_=this.state.isLockedPaddings;return wp.element.createElement(M,null,wp.element.createElement(S.a,l()({},o()({},this.props,{isLockedPaddings:_,changeState:n,addNewSlide:f,getState:a}),{key:"inspector"})),wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"".concat(m,"__slides-wrapper")},wp.element.createElement("ul",{className:"".concat(m,"__titles")},wp.element.createElement(M,null,Object(j.times)(r,function(e){return h(e)}),wp.element.createElement("li",{className:"".concat(m,"__add-item")},wp.element.createElement(T,{icon:"insert",onClick:function(){return f(r+1)},label:Object(y.__)("Add Item","getwid")})))),wp.element.createElement("div",{className:"".concat(m,"__content")},wp.element.createElement(F,{value:this},wp.element.createElement(L,{template:W(r),templateLock:"all",templateInsertUpdatesSelection:!1,allowedBlocks:H}))))))}}]),t}(A);t.b=U},function(e,t,n){"use strict";var a={slideCount:{type:"number",default:3},imageSize:{type:"string",default:"full"},align:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},verticalAlign:{type:"string"},horizontalAlign:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},textColor:{type:"string"},overlayColor:{type:"string"},overlayOpacity:{type:"number",default:"30"},contentAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-animation",default:"fadeIn"},contentAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-duration",default:"1500ms"},contentAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-delay",default:"0ms"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-effect"},sliderAutoplay:{type:"boolean",default:!1},pauseOnHover:{type:"boolean",default:!0},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-autoplay-speed",default:5e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"slide-speed",default:1e3},sliderArrays:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-labels",default:'["Slide 1","Slide 2","Slide 3"]'},sliderArrows:{type:"string"},sliderDots:{type:"string"}};t.a=a},function(e,t){},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return m});var a=n(8),l=n.n(a),i=n(1),o=(n.n(i),n(11)),r=(n.n(o),n(53)),c=window,s=c.jQuery,d=wp.data.select,u=wp.blocks.createBlock,p=function(e){var t=s.isPlainObject(e)?e.images:e,n=JSON.stringify(Object(o.times)(t.length,function(e){return"Slide ".concat(e+1)})),a=function(e){return[u("core/heading",{placeholder:Object(i.__)("Write heading…","getwid"),content:e.caption}),u("core/paragraph",{placeholder:Object(i.__)("Write text…","getwid")})]};return u("getwid/media-text-slider",{slideCount:t.length,sliderArrays:n},t.map(function(e,t){return u("getwid/media-text-slider-slide",{slideId:++t},[u("getwid/media-text-slider-slide-content",{mediaId:e.id,mediaUrl:e.url},a(e))])}))},m=function(e,t,n){var a=[],i=d("core/editor").getSelectedBlockClientId(),c=d("core/editor").getBlock(i).innerBlocks;if(c.length&&s.each(c,function(e,t){if(void 0!==t.innerBlocks[0].attributes.mediaUrl){var i;if(n&&n.push(t.innerBlocks[0].attributes.mediaId),a.push((i={},l()(i,!n&&"caption",""),l()(i,"id",t.innerBlocks[0].attributes.mediaId),l()(i,"url",t.innerBlocks[0].attributes.mediaUrl),i)),!n){var o=t.innerBlocks[0].innerBlocks[0];""!=o.attributes.content&&(a[a.length-1].caption=o.attributes.content)}}}),"image"==t.split("/").pop())return a.length?a.map(function(e){var n=e.id,a=e.url,l=e.caption;return u(t,{id:n,url:a,caption:l})}):u(t,{});if(Object(o.isEqual)(t,"getwid/content-timeline"))return Object(r.a)(a);var p;return u(t,(p={},l()(p,n&&"imageSize",e.imageSize),l()(p,"images",a.length?a.map(function(e){return{id:e.id,url:e.url,caption:e.caption}}):[]),l()(p,n&&"ids",n?n.length?n:[]:null),p))}},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return b});var a=n(135),l=n.n(a),i=n(16),o=n.n(i),r=n(1),c=(n.n(r),n(11)),s=(n.n(c),n(52)),d=wp.data.select,u=wp.blocks.createBlock,p=window,m=p.jQuery,g=function(e){var t=m.isPlainObject(e)?o()(e.images):o()(e);return u("getwid/content-timeline",{},t.map(function(t,n){return u("getwid/content-timeline-item",{id:t.id,alt:t.alt,url:t.url,imageSize:e.imageSize},[u("core/heading",{placeholder:Object(r.__)("Write heading…","getwid"),content:t.caption}),u("core/paragraph",{placeholder:Object(r.__)("Write heading…","getwid")})])}))},b=function(e){var t=d("core/editor"),n=t.getBlock,a=t.getSelectedBlockClientId,i=a(),o=n(i).innerBlocks,r=[];return o.length&&m.each(o,function(e,t){var n=l()(t.innerBlocks,1),a=n[0];void 0!==t.attributes.url&&r.push({id:t.attributes.id,url:t.attributes.url,alt:t.attributes.alt,caption:a.attributes.content})}),Object(c.isEqual)(e,"core/image")?r.length?r.map(function(t){var n=t.id,a=t.url,l=t.alt,i=t.caption;return u(e,{id:n,url:a,alt:l,caption:i})}):u(e,{}):Object(c.isEqual)(e,"getwid/media-text-slider")?Object(s.b)(r):u(e,{imageSize:o[0].attributes.imageSize,images:r.length?r.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}):[],ids:r.map(function(e){return e.id})})}},function(e,t,n){"use strict";n.d(t,"a",function(){return E});var a=n(2),l=n.n(a),i=n(4),o=n.n(i),r=n(5),c=n.n(r),s=n(3),d=n.n(s),u=n(6),p=n.n(u),m=(n(0),n(24)),g=n(1),b=(n.n(g),m.a.convertHorizontalAlignToStyle),w=m.a.convertVerticalAlignToStyle,h=wp.blockEditor||wp.editor,f=h.InnerBlocks,_=wp.element,v=_.Component,y=_.Fragment,k=_.createContext,C=k(),E=C.Consumer,O=C.Provider,j=["getwid/media-text-slider-slide-content"],S=[["getwid/media-text-slider-slide-content"]],x=function(e){function t(){return l()(this,t),c()(this,d()(t).apply(this,arguments))}return p()(t,e),o()(t,[{key:"render",value:function(){var e,t,n,a,l,i,o,r,c=this.props.className,s=this.props.attributes,d=s.slideId,u=s.outerParent;if(void 0!==u.attributes){var p=u.attributes;e=p.paddingTop,t=p.paddingBottom,n=p.paddingLeft,a=p.paddingRight,l=p.minHeight,i=p.horizontalAlign,o=p.verticalAlign,r=p.contentMaxWidth}var m={};void 0!==u.attributes&&(m={paddingTop:e||null,paddingBottom:t||null,paddingLeft:n||null,paddingRight:a||null,minHeight:l||null,justifyContent:i?b(i):null,alignItems:o?w(o):null});var g;void 0!==u.attributes&&(g=void 0!==u&&void 0!==r?r:"80%");var h={maxWidth:g||null,width:"100%"};return wp.element.createElement(y,null,wp.element.createElement("div",{className:"".concat(c,"__content-wrapper slide-").concat(d)},wp.element.createElement("div",{style:m,className:"".concat(c,"__content")},wp.element.createElement("div",{style:h},wp.element.createElement(O,{value:this.props},wp.element.createElement(f,{templateLock:"all",template:S,templateInsertUpdatesSelection:!1,allowedBlocks:j}))))))}}]),t}(v);t.b=x},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__source",attribute:"src"},type:{type:"string",default:"image"},title:{type:"string",source:"html",selector:"span"},text:{type:"string",source:"html",selector:"p"},link:{type:"string",source:"attribute",selector:".wp-block-getwid-banner a",attribute:"href"},align:{type:"string"},minHeight:{type:"string"},contentMaxWidth:{type:"string"},verticalAlign:{type:"string",default:"center"},horizontalAlign:{type:"string",default:"center"},backgroundOpacity:{type:"number",default:35},blockAnimation:{type:"string",default:"style4"},textAnimation:{type:"string",default:"opacity-bottom"},linkTarget:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__link",attribute:"target"},rel:{type:"string",source:"attribute",selector:".wp-block-getwid-banner__link",attribute:"rel"}};t.a=a},function(e,t){},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){var l=e[t],i=e.length,o=t-n;return o>0?[].concat(a(e.slice(0,n)),[l],a(e.slice(n,t)),a(e.slice(t+1,i))):o<0?[].concat(a(e.slice(0,t)),a(e.slice(t+1,n+1)),[l],a(e.slice(n+1,i))):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=l},function(e,t,n){"use strict";var a={align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-getwid-images-stack .wp-block-getwid-images-stack__media-wrapper",query:{url:{source:"attribute",selector:"img",attribute:"src"},original_url:{source:"attribute",selector:"a",attribute:"href"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},imageSize:{type:"string",default:"full"},linkTo:{type:"string",default:"none"},stackStyle:{type:"string",default:"default"},stackOverlap:{type:"string",default:"default"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a=n(217),l=n.n(a),i=n(219),o=n.n(i),r=n(2),c=n.n(r),s=n(4),d=n.n(s),u=n(5),p=n.n(u),m=n(3),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(7)),f=n.n(h),_=n(1),v=(n.n(_),n(220)),y=(n.n(v),lodash),k=y.startCase,C=y.toLower,E=window,O=(E.jQuery,wp.compose.withInstanceId),j=wp.components,S=j.Button,x=j.BaseControl,T=j.Dropdown,N=j.MenuGroup,A=j.MenuItem,M=j.SelectControl,B=j.TextControl,I=wp.element.Component,L=function(e){function t(){var e;return c()(this,t),e=p()(this,g()(t).apply(this,arguments)),e.search=React.createRef(),e.state={fonts:null,font:[],variants:null,search:""},e}return w()(t,e),d()(t,[{key:"componentDidMount",value:function(){function e(){return t.apply(this,arguments)}var t=o()(l.a.mark(function e(){var t=this;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyAWN8pd8HMruaR92oVbykdg-Q2HpgsikKU").then(function(e){return e.json()}).then(function(e){t.setState({fonts:e.items}),t.props.value&&e.items.find(function(e){if(t.props.value===e.family){var n=e.variants.filter(function(e){return!1===e.includes("italic")}).map(function(e){return e={label:"regular"==C(e)?"400":k(C(e)),value:"regular"==e?"normal":e}});return t.setState({variants:n})}})});case 2:case"end":return e.stop()}},e)}));return e}()},{key:"render",value:function(){var e=this,t="inspector-google-fonts-control-".concat(this.props.instanceId);return wp.element.createElement("div",{className:"components-getwid-google-fonts-control"},wp.element.createElement(x,{label:this.props.label,id:t},null!==this.state.fonts?wp.element.createElement(T,{contentClassName:"components-getwid-google-fonts-popover",position:"bottom center",renderToggle:function(n){var a=n.isOpen,l=n.onToggle;return wp.element.createElement(S,{isLarge:!0,className:"components-getwid-google-fonts-button",id:t,onClick:l,"aria-expanded":a},e.props.value?e.props.value:Object(_.__)("Select Font Family","getwid"))},renderContent:function(t){var n=t.onToggle;return wp.element.createElement(N,{label:Object(_.__)("Google Fonts","getwid")},wp.element.createElement(B,{value:e.state.search,onChange:function(t){return e.setState({search:t})}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(A,{onClick:function(){n(),e.props.onChangeFontFamily(""),e.props.onChangeFontWeight(""),e.setState({font:[],variants:null,search:""})}},Object(_.__)("Default","getwid")),e.state.fonts.map(function(t){if(!e.state.search||t.family.toLowerCase().includes(e.state.search.toLowerCase()))return wp.element.createElement(A,{className:f()({"is-selected":t.family===e.props.value}),onClick:function(){n(),e.props.onChangeFontFamily(t.family),e.props.onChangeFontWeight("normal");var a=t.variants.filter(function(e){return!1===e.includes("italic")}).map(function(e){return e={label:"regular"==C(e)?"400":k(C(e)),value:"regular"==e?"normal":e}});e.setState({font:t,variants:a,search:""})}},t.family)})))}}):Object(_.__)("Loading…","getwid")),wp.element.createElement(M,{label:Object(_.__)("Font Weight","getwid"),value:this.props.valueWeight||"",options:this.state.variants?this.state.variants:[{value:"",label:Object(_.__)("Default","getwid")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"normal",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],onChange:this.props.onChangeFontWeight}))}}]),t}(I);t.a=O(L)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(22),s=a(c),d=n(23),u=a(d),p=function(e){function t(){var e,n,a,o;l(this,t);for(var r=arguments.length,c=Array(r),s=0;s<r;s++)c[s]=arguments[s];return n=a=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.link=null,a.createLink=function(){var e=a.props,t=e.fonts,n=e.subsets,l=t.reduce(function(e,t){var n=t.font.replace(/ +/g,"+"),a=(t.weights||[]).join(",");return e.push(n+(a&&":"+a)),e},[]).join("|"),i=document.createElement("link");return i.rel="stylesheet",i.href="https://fonts.googleapis.com/css?family="+l,n&&Array.isArray(n)&&n.length>0&&(i.href+="&subset="+n.join(",")),i},a.appendLink=function(){return document.head.appendChild(a.link)},a.removeLink=function(){return document.head.removeChild(a.link)},a.replaceLink=function(){a.removeLink(),a.link=a.createLink(),a.appendLink()},a.render=function(){return null},o=n,i(a,o)}return o(t,e),r(t,[{key:"componentDidMount",value:function(){this.link=this.createLink(),this.appendLink()}},{key:"componentDidUpdate",value:function(e){JSON.stringify(e.fonts)!==JSON.stringify(this.props.fonts)&&this.replaceLink()}},{key:"componentWillUnmount",value:function(){this.removeLink()}}]),t}(s.default.PureComponent);p.propTypes={fonts:u.default.arrayOf(u.default.shape({font:u.default.string.isRequired,weights:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number]))})).isRequired,subsets:u.default.arrayOf(u.default.string)},t.default=p},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={imageSize:{type:"string",default:"full"},imageCrop:{type:"boolean",default:!0},title:{type:"string",source:"html",selector:".wp-block-getwid-person__title"},subtitle:{type:"string",source:"html",selector:".wp-block-getwid-person__subtitle"},content:{type:"string",source:"html",selector:".wp-block-getwid-person__content"},imgId:{type:"number"},imgUrl:{type:"string",source:"attribute",attribute:"src",selector:".wp-block-getwid-person__image img"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:".wp-block-getwid-person__image img"}};t.a=a},function(e,t,n){"use strict";var a={photoCount:{type:"number",default:6},gridColumns:{type:"number",default:3},showLikes:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},spacing:{type:"string",default:"default"},align:{type:"string"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a=(n(0),n(1)),l=(n.n(a),window),i=(l.jQuery,wp.blockEditor||wp.editor),o=i.PlainText,r=wp.components.ToggleControl,c="getwid-field-label",s=function(e){var t=e.setAttributes,n=e.label,l=e.isSelected,i=e.required,s=e.requiredDefault;return wp.element.createElement("div",{className:"".concat(c)},wp.element.createElement(o,{value:n,className:"".concat(c,"__input"),onChange:function(e){return t({label:e})},placeholder:Object(a.__)("Write label…","getwid")}),l&&!s&&wp.element.createElement(r,{label:Object(a.__)("Required","getwid"),className:"".concat(c,"__required"),checked:i,onChange:function(e){return t({required:e})}}),!l&&i&&!s&&wp.element.createElement("span",{className:"required"},Object(a.__)("Required","getwid")),s&&wp.element.createElement("span",{className:"required"},Object(a.__)("Required","getwid")))};t.a=s},function(e,t,n){"use strict";var a=(n(0),n(69)),l=n(1),i=(n.n(l),window),o=(i.jQuery,wp.element.Fragment),r=wp.blockEditor||wp.editor,c=r.InspectorControls,s=wp.components,d=s.TextControl,u=s.PanelBody,p=function(e){var t=e.type,n=e.className,i=e.setAttributes,r=e.label,s=e.isSelected,p=e.required,m=e.requiredDefault,g=e.placeholder,b=e.id;return wp.element.createElement(o,null,wp.element.createElement("div",{className:"".concat(n)},wp.element.createElement(d,{type:t,label:wp.element.createElement(a.a,{label:r,required:p,isSelected:s,setAttributes:i,requiredDefault:m}),value:g,onChange:function(e){return i({placeholder:e})},title:Object(l.__)("Set the placeholder text","getwid")})),wp.element.createElement(c,null,wp.element.createElement(u,{title:Object(l.__)("Settings","getwid")},wp.element.createElement(d,{label:Object(l.__)("ID","getwid"),value:b,onChange:function(e){return i({id:e})}}))))};t.a=p},function(e,t,n){"use strict";function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];l("getwid/".concat(e),t),n.length&&n.forEach(function(e){l("getwid/".concat(e.name),e.settings)})}t.a=a;var l=wp.blocks.registerBlockType},function(e,t,n){"use strict";var a={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},align:{type:"string"},sliderSlidesToShowDesktop:{type:"string",default:"2"},sliderSlidesToShowLaptop:{type:"string",default:"1"},sliderSlidesToShowTablet:{type:"string",default:"1"},sliderSlidesToShowMobile:{type:"string",default:"1"},sliderSlidesToScroll:{type:"string",default:"1"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",default:6e3},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",default:800},sliderCenterMode:{type:"boolean",default:!1},sliderSpacing:{type:"string",default:"small"},sliderArrows:{type:"string",default:"inside"},sliderDots:{type:"string",default:"outside"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},minHeight:{type:"string"},align:{type:"string"},textAlignment:{type:"string",default:"left"},sliderAnimationEffect:{type:"string",default:"slide"},sliderAutoplay:{type:"boolean",default:!1},sliderAutoplaySpeed:{type:"string",default:"6000"},sliderInfinite:{type:"boolean",default:!0},sliderAnimationSpeed:{type:"string",default:"800"},sliderArrows:{type:"string",default:"inside"},sliderDots:{type:"string",default:"inside"},className:{type:"string"}};t.a=a},function(e,t,n){"use strict";var a={titleColor:{type:"string"},customTitleColor:{type:"string"},iconColor:{type:"string"},customIconColor:{type:"string"},buttonColorHEX:{type:"string"},buttonColor:{type:"string"},customButtonColor:{type:"string"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-video-popup__source",attribute:"src"},title:{type:"string",source:"html",selector:".wp-block-getwid-video-popup__title"},link:{type:"string"},align:{type:"string"},minHeight:{type:"string"},buttonMaxWidth:{type:"string"},overlayOpacity:{type:"number",default:35},imageAnimation:{type:"string",default:"none"},buttonStyle:{type:"string",default:"default"},buttonAnimation:{type:"string",default:"none"},buttonSize:{type:"string",default:"default"}};t.a=a},function(e,t){},function(e,t,n){"use strict";var a={imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot__wrapper img",attribute:"src"},alt:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot__wrapper img",attribute:"alt"},tooltipTrigger:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-trigger",default:"click"},tooltipTheme:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-theme",default:"light"},tooltipArrow:{type:"boolean",default:!0},tooltipAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-tooltip-animation",default:"shift-toward"},dotIcon:{type:"string",default:"fas fa-plus"},dotSize:{type:"number",default:16},dotPaddings:{type:"number",default:6},dotColor:{type:"string"},dotBackground:{type:"string"},dotOpacity:{type:"number",default:100},dotPulse:{type:"string",default:"pulse"},dotAppearanceAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-appearance-animation",default:"none"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-animation",default:""},imagePoints:{type:"string",source:"attribute",selector:".wp-block-getwid-image-hotspot",attribute:"data-image-points",default:""}};t.a=a},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return G});var a=n(41),l=n.n(a),i=n(10),o=n.n(i),r=n(9),c=n.n(r),s=n(8),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(11)),O=(n.n(E),n(435)),j=n(436),S=(n.n(j),wp.compose.compose),x=wp.data,T=x.withSelect,N=x.withDispatch,A=wp.blockEditor||wp.editor,M=A.withColors,B=A.InnerBlocks,I=A.getColorObjectByAttributeValues,L=wp.element,P=L.Component,z=L.Fragment,R=L.createContext,D=wp.components.IconButton,V=wp.blocks.createBlock,F=window,H=F.jQuery,W=["getwid/content-timeline-item"],U=R(),G=U.Consumer,q=U.Provider,Q=function(e){function t(){var e;return p()(this,t),e=w()(this,f()(t).apply(this,arguments)),e.updateLineHeight=e.updateLineHeight.bind(v()(e)),e.updateBarHeight=e.updateBarHeight.bind(v()(e)),e.setColorByScroll=e.setColorByScroll.bind(v()(e)),e.changeState=e.changeState.bind(v()(e)),e.addItem=e.addItem.bind(v()(e)),e.state={isLockedPaddings:!1},e}return k()(t,e),g()(t,[{key:"changeState",value:function(e,t){this.setState(d()({},e,t))}},{key:"getColor",value:function(){var e=this.props.getEditorSettings,t=this.props.attributes,n=t.fillColor,a=t.customFillColor;if(n){var l=Object(E.get)(e(),["colors"],[]);return I(l,n).color}if(a)return a}},{key:"render",value:function(){var e=this,t=this.changeState,n=this.state.isLockedPaddings,a=this.props,l=a.className,i=a.baseClass,r=this.getColor(),s={style:{backgroundColor:r||void 0}};return wp.element.createElement(z,null,wp.element.createElement(O.a,o()({},c()({},this.props,{isLockedPaddings:n},{changeState:t}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(l)},wp.element.createElement("div",{className:"".concat(i,"__line")},wp.element.createElement("div",o()({className:"".concat(i,"__bar")},s))),wp.element.createElement(q,{value:this},wp.element.createElement(B,{templateInsertUpdatesSelection:!1,allowedBlocks:W,template:[["getwid/content-timeline-item"]],templateLock:!1,renderAppender:function(){return wp.element.createElement("div",{className:"".concat(i,"__add-item")},wp.element.createElement(D,{icon:"insert",onClick:e.addItem,label:Object(C.__)("Add Item","getwid")}))}}))))}},{key:"addItem",value:function(){var e,t=this.props,n=t.insertBlock,a=t.getBlock,l=t.clientId,i=a(l);if(i){var o=V("getwid/content-timeline-item");e=i.innerBlocks,n(o,e.length,l)}}},{key:"componentDidUpdate",value:function(e,t){var n,a=this,l=this.props.clientId,i=this.props,o=i.getBlock,r=i.updateBlockAttributes,c=o(l);c&&(n=c.innerBlocks);var s=H("#block-".concat(l)),d=this.props.attributes,u=d.backgroundColor,p=d.customBackgroundColor,m=this.props.attributes,g=m.paddingTop,b=m.paddingBottom,w=m.paddingLeft,h=m.paddingRight,f=m.animation,_=this.props.attributes,v=_.horizontalSpace,y=_.marginBottom,k=this.getColor();n&&n.length&&H.each(n,function(e,t){r(t.clientId,{outerParent:{attributes:{backgroundColor:u,customBackgroundColor:p,paddingTop:g,paddingBottom:b,paddingLeft:w,paddingRight:h,horizontalSpace:v,marginBottom:y,pointColor:k,animation:f}}})});var C=this.props.attributes.filling;if(!Object(E.isEqual)(e.attributes.filling,C)){var O=H(".edit-post-layout").find("div[class$=__content]");if(H.parseJSON(C)){var j=function(){a.setColorByScroll(s),a.updateBarHeight(s)};j(),O.scroll(function(){j()})}else O.off(),this.disableFilling(s)}var S=this.props.attributes,x=S.fillColor,T=S.customFillColor;if(!Object(E.isEqual)(e.attributes.fillColor,x)||!Object(E.isEqual)(e.attributes.customFillColor,T)){var N=s.find("div[class$=__point]"),A=this.getColor();H.each(N,function(e,t){H(t).offset().top<=H(window).height()/2&&H(t).find(":first-child").css({borderColor:A||""})})}}},{key:"updateLineHeight",value:function(){var e=this.props.clientId,t=H("#block-".concat(e)),n=t.find("div[class$=__point]"),a=0;H.each(n,function(e,t){n[e+1]&&(a+=H(n[e+1]).offset().top-H(t).offset().top)});var l=t.find("div[class$=__line]"),i=t.find("div[class*=__wrapper]")[0],o=parseFloat(H(i).css("height"))/2;l.css({height:a,top:o})}},{key:"updateBarHeight",value:function(e){var t=e.find("div[class$=__point]"),n=e.find("div[class$=__bar]"),a=n.offset().top,i=H(window).height()/2,o=t.toArray(),r=l()(o),c=r[0],s=r.slice(1);if(c){var d=i-H(c).offset().top;if(s.length){var u=s.slice(-1).pop(),p=H(u).offset().top;a<=i&&p>=i&&n.css({height:d}),a>=i&&n.css({height:0}),p<=i&&(this.updateLineHeight(),n.css({height:"100%"}))}}}},{key:"setColorByScroll",value:function(e){var t=this,n=this.props.baseClass,a=e.find("div[class$=__point]"),i=a.get(),o=l()(i),r=(o[0],o.slice(1));r.length&&H.each(a,function(e,a){var l=H(a).offset().top,i=H(a).parents(".".concat(n,"-item"))[0],o=t.getColor(),r=H(a).height()/2;l<=H(window).height()/2+r?(H(i).hasClass("is-active")||H(i).addClass("is-active"),H(a).find(":first-child").css({borderColor:o||""})):(H(i).hasClass("is-active")&&H(i).removeClass("is-active"),H(a).find(":first-child").css({borderColor:""}))}),r.length||this.disableFilling(e)}},{key:"disableFilling",value:function(e){e.find("div[class$=__bar]").css({height:0})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.clientId,n=H("#block-".concat(t)),a=this.props.attributes.filling;H.parseJSON(a)&&(this.waitLoadMarkup=setInterval(function(){n.find("div[class*=__wrapper]").length&&(H(".edit-post-layout").find("div[class$=__content]").scroll(function(){e.setColorByScroll(n),e.updateBarHeight(n)}),clearInterval(e.waitLoadMarkup))},1)),this.waitLoadContent=setInterval(function(){if("complete"==document.readyState){e.updateLineHeight();var t=e.props.className,a=n.find(".".concat(t)),l=e.props.attributes.filling;H.parseJSON(l)&&(e.setColorByScroll(n),e.updateBarHeight(n)),e.mutationObserver=new MutationObserver(function(t){H.each(t,function(t,a){if("childList"==a.type&&(a.addedNodes.length||a.removedNodes.length)){var l,i=a.addedNodes.length?a.addedNodes[0]:a.removedNodes[0],o=e.props,r=o.getBlock,c=o.clientId,s=r(c);if(s&&(l=s.innerBlocks),l&&l.length&&(H(i).is("div[class*=__block]")||H(i).is("div[class*=__image-wrapper]"))){e.updateLineHeight();var d=e.props.attributes.filling;H.parseJSON(d)&&(e.setColorByScroll(n),e.updateBarHeight(n))}}})}),e.mutationObserver.observe(a.get(0),{childList:!0,subtree:!0}),clearInterval(e.waitLoadContent)}},1)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.className,n=e.clientId,a=H("#block-".concat(n)),l=a.find(".".concat(t));this.mutationObserver.disconnect(l.get(0)),H(".edit-post-layout").find("div[class$=__content]").off()}}]),t}(P);t.b=S([T(function(e,t){var n=e("core/editor"),a=n.getBlock;return{getEditorSettings:n.getEditorSettings,getBlock:a}}),N(function(e,t){var n=e("core/editor"),a=n.updateBlockAttributes;return{insertBlock:n.insertBlock,updateBlockAttributes:a}}),M("fillColor","backgroundColor")])(Q)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=(n(80),n(453),n(454)),l=(n.n(a),n(455));n.n(l)},function(e,t,n){"use strict";n(81),n(128),n(150),n(158),n(164),n(169),n(175),n(181),n(187),n(193),n(201),n(207),n(213),n(224),n(231),n(238),n(245),n(252),n(260),n(267),n(272),n(279),n(285),n(293),n(301),n(307),n(318),n(323),n(329),n(337),n(410),n(415),n(421),n(427),n(433),n(446)},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=(n(0),n(1)),c=(n.n(r),n(90)),s=n(124),d=n(24),u=n(13),p=n(125),m=n(43),g=n(126),b=(n.n(g),n(127)),w=(n.n(b),wp.blocks.registerBlockType),h=d.a.prepareGradientStyle,f=d.a.prepareBackgroundImageStyles,_=d.a.convertHorizontalAlignToStyle,v=d.a.convertVerticalAlignToStyle;w("getwid/section",o()({title:Object(r.__)("Section","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M13,0v24h11V0H13z M22,22h-7V2h7V22z"}),wp.element.createElement("path",{d:"M0,0v11h11V0H0z M9,9H2V2h7V9z"}),wp.element.createElement("path",{d:"M0,13v11h11V13H0z M9,22H2v-7h7V22z"})),category:"getwid-blocks",keywords:[Object(r.__)("container","getwid"),Object(r.__)("wrapper","getwid"),Object(r.__)("row","getwid")],supports:{anchor:!0,inserter:!Getwid.disabled_blocks.includes("getwid/section")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:o()({},m.a,{foregroundImage:{type:"string"}}),isEligible:function(e,t){return!0},migrate:function(e){return o()({},e,e.foregroundImage?[{foregroundImage:{id:void 0,alt:void 0,url:e.foregroundImage}}]:[])},save:p.a}],attributes:m.a},Object(u.b)("getwid/section",function(e){return wp.element.createElement(c.a,l()({},o()({},e,{baseClass:"wp-block-getwid-section",prepareGradientStyle:h,prepareBackgroundImageStyles:f,convertHorizontalAlignToStyle:_,convertVerticalAlignToStyle:v}),{key:"edit"}))}),{save:s.a}))},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=a},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}t.a=a},function(e,t,n){"use strict";var a=n(26);n.n(a)},function(e,t,n){"use strict";var a=n(11);n.n(a)},function(e,t,n){"use strict";var a=(n(32),n(33),n(87),n(11)),l=(n.n(a),n(88),n(31)),i=(n(42),Object(l.c)());i.Provider,i.Consumer,new Set(["string","boolean","number"]),new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"])},function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return(l="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)})(e)}t.a=l},function(e,t,n){"use strict";function a(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function l(e){return e.replace(/"/g,""")}function i(e){return e.replace(/</g,"<")}function o(e){return Object(s.a)(l(a(e)))}function r(e){return i(a(e))}function c(e){return!d.test(e)}t.a=o,t.b=r,t.c=c;var s=n(89),d=/[\u007F-\u009F "'>\/="\uFDD0-\uFDEF]/},function(e,t,n){"use strict";function a(e){return e.replace(/>/g,">")}t.a=a},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(9),o=n.n(i),r=n(8),c=n.n(r),s=n(20),d=n.n(s),u=n(2),p=n.n(u),m=n(4),g=n.n(m),b=n(5),w=n.n(b),h=n(3),f=n.n(h),_=n(12),v=n.n(_),y=n(6),k=n.n(y),C=(n(0),n(1)),E=(n.n(C),n(7)),O=n.n(E),j=n(11),S=(n.n(j),n(43)),x=n(34),T=n(35),N=n(93),A=n(94),M=n(36),B=n(14),I=n(13),L=n(114),P=wp.hooks.addFilter,z=wp.element,R=z.Component,D=z.Fragment,V=wp.data,F=V.select,H=V.withSelect,W=wp.components,U=W.Button,G=W.IconButton,q=W.SelectControl,Q=(W.ButtonGroup,W.BaseControl,W.Dashicon),K=W.Tooltip,J=W.Toolbar,Z=W.DropdownMenu,$=W.Path,Y=W.SVG,X=wp.blockEditor||wp.editor,ee=X.InnerBlocks,te=X.withColors,ne=X.BlockControls,ae=X.BlockAlignmentToolbar,le=(X.MediaPlaceholder,X.MediaUpload,X.PanelColorSettings),ie=wp.compose.compose,oe=window,re=oe.jQuery,ce=[],se="wp-block-getwid-section";P("blocks.getSaveElement","getwid/set-skip-layout-attribute",function(e,t,n){return"getwid/section"==t.name&&(t.attributes.skipLayout={type:"boolean",default:!1},n.skipLayout=!0),e});var de=function(e){function t(e){var n;return p()(this,t),n=w()(this,f()(t).call(this,e)),n.videoRef=null,n.videoButtonRef=null,n.state={draggablesObj:{},showRullers:!0,videoPlayState:"paused",videoMuteState:!0,isLockedPaddingsOnDesktop:!1,isLockedPaddingsOnTablet:!1,isLockedPaddingsOnMobile:!1,isLockedMarginsOnDesktop:!1,isLockedMarginsOnTablet:!1,isLockedMarginsOnMobile:!1},n.playBackgroundVideo=n.playBackgroundVideo.bind(v()(n)),n.onBackgroundVideoEnd=n.onBackgroundVideoEnd.bind(v()(n)),n.muteBackgroundVideo=n.muteBackgroundVideo.bind(v()(n)),n.changeState=n.changeState.bind(v()(n)),n}return k()(t,e),g()(t,[{key:"changeState",value:function(e,t){"object"==d()(e)?this.setState(e):"string"==typeof e&&this.setState(c()({},e,t))}},{key:"render",value:function(){var e,t,n=this,a=this.props.attributes,i=a.align,r=a.minHeight,s=a.gapSize,d=a.anchor,u=a.customBackgroundColor,p=this.props.attributes,m=p.resetMinHeightTablet,g=p.resetMinHeightMobile,b=p.sliderImages,w=p.backgroundVideoUrl,h=this.props.attributes,f=h.backgroundVideoControlsPosition,_=h.foregroundOpacity,v=h.foregroundColor,y=h.foregroundFilter,k=h.dividersBringTop,E=this.props.attributes,I=E.contentMaxWidth,P=E.contentMaxWidthPreset,z=E.entranceAnimation,R=E.entranceAnimationDuration,V=E.entranceAnimationDelay,H=this.props.attributes,W=H.backgroundImage,X=H.backgroundImagePosition,te=H.backgroundImageAttachment,ie=H.backgroundImageRepeat,oe=H.backgroundImageSize,de=this.props.attributes,ue=de.paddingTopValue,pe=de.paddingBottomValue,me=de.paddingLeftValue,ge=de.paddingRightValue,be=de.marginTopValue,we=de.marginBottomValue,he=de.marginLeftValue,fe=de.marginRightValue,_e=this.props.attributes,ve=_e.paddingTop,ye=_e.paddingRight,ke=_e.paddingBottom,Ce=_e.paddingLeft,Ee=this.props.attributes,Oe=Ee.paddingTopTablet,je=Ee.paddingRightTablet,Se=Ee.paddingBottomTablet,xe=Ee.paddingLeftTablet,Te=this.props.attributes,Ne=Te.paddingTopMobile,Ae=Te.paddingRightMobile,Me=Te.paddingBottomMobile,Be=Te.paddingLeftMobile,Ie=this.props.attributes,Le=Ie.marginTop,Pe=Ie.marginRight,ze=Ie.marginBottom,Re=Ie.marginLeft,De=this.props.attributes,Ve=De.marginTopTablet,Fe=De.marginRightTablet,He=De.marginBottomTablet,We=De.marginLeftTablet,Ue=this.props.attributes,Ge=Ue.verticalAlign,qe=Ue.verticalAlignTablet,Qe=Ue.verticalAlignMobile,Ke=Ue.horizontalAlign,Je=Ue.horizontalAlignTablet,Ze=Ue.horizontalAlignMobile,$e=this.props.attributes,Ye=$e.marginTopMobile,Xe=$e.marginRightMobile,et=$e.marginBottomMobile,tt=$e.marginLeftMobile,nt=this.props,at=nt.className,lt=nt.backgroundColor,it=nt.setBackgroundColor,ot=nt.prepareGradientStyle,rt=nt.prepareBackgroundImageStyles,ct=nt.setAttributes,st=nt.isSelected,dt=this.state.showRullers,ut=this.state,pt=ut.isLockedPaddingsOnDesktop,mt=ut.isLockedPaddingsOnTablet,gt=ut.isLockedPaddingsOnMobile,bt=this.state,wt=bt.isLockedMarginsOnDesktop,ht=bt.isLockedMarginsOnTablet,ft=bt.isLockedMarginsOnMobile,_t=this.changeState,vt=this.props.clientId,yt=o()({},"custom"===Le?{marginTop:be}:[],"custom"===ze?{marginBottom:we}:[]),kt=o()({minHeight:r},"custom"===Re?{marginLeft:he}:[],"custom"===Pe?{marginRight:fe}:[],"custom"===ve?{paddingTop:ue}:[],"custom"===ke?{paddingBottom:pe}:[],"custom"===Ce?{paddingLeft:me}:[],"custom"===ye?{paddingRight:ge}:[]),Ct=O()("".concat(se,"__wrapper"),(e={},c()(e,"getwid-padding-top-".concat(ve),"custom"!==ve&&""!==ve),c()(e,"getwid-padding-bottom-".concat(ke),"custom"!==ke&&""!==ke),c()(e,"getwid-padding-left-".concat(Ce),"custom"!==Ce&&""!==Ce),c()(e,"getwid-padding-right-".concat(ye),"custom"!==ye&&""!==ye),c()(e,"getwid-padding-tablet-top-".concat(Oe),""!==Oe),c()(e,"getwid-padding-tablet-bottom-".concat(Se),""!==Se),c()(e,"getwid-padding-tablet-left-".concat(xe),""!==xe),c()(e,"getwid-padding-tablet-right-".concat(je),""!==je),c()(e,"getwid-padding-mobile-top-".concat(Ne),""!==Ne),c()(e,"getwid-padding-mobile-bottom-".concat(Me),""!==Me),c()(e,"getwid-padding-mobile-left-".concat(Be),""!==Be),c()(e,"getwid-padding-mobile-right-".concat(Ae),""!==Ae),c()(e,"getwid-margin-left-".concat(Re),"custom"!==Re&&""!==Re),c()(e,"getwid-margin-right-".concat(Pe),"custom"!==Pe&&""!==Pe),c()(e,"getwid-margin-tablet-left-".concat(We),""!==We),c()(e,"getwid-margin-tablet-right-".concat(Fe),""!==Fe),c()(e,"getwid-margin-mobile-left-".concat(tt),""!==tt),c()(e,"getwid-margin-mobile-right-".concat(Xe),""!==Xe),c()(e,"getwid-align-items-".concat(Ge),"center"!==Ge),c()(e,"getwid-align-items-tablet-".concat(qe),""!==qe),c()(e,"getwid-align-items-mobile-".concat(Qe),""!==Qe),c()(e,"getwid-justify-content-".concat(Ke),"center"!==Ke),c()(e,"getwid-justify-content-tablet-".concat(Je),""!==Je),c()(e,"getwid-justify-content-mobile-".concat(Ze),""!==Ze),c()(e,"getwid-reset-min-height-tablet",!1!==m),c()(e,"getwid-reset-min-height-mobile",!1!==g),e)),Et=o()({backgroundColor:lt.color?lt.color:u},ot("background",this.props),rt("background",this.props)),Ot=O()("".concat(se,"__background"),c()({"has-background":lt.color},lt.class,lt.class)),jt=o()({opacity:void 0!==_?_/100:void 0,backgroundColor:v},ot("foreground",this.props),rt("foreground",this.props),{mixBlendMode:y}),St={maxWidth:I&&"custom"===P?"".concat(I,"px"):void 0},xt=z?{"data-wow-duration":void 0!==R?R:"2000ms","data-wow-delay":void 0!==V?V:"500ms"}:{},Tt=O()(at,"".concat(se,"-").concat(vt),(t={},c()(t,"has-inner-blocks-gap-".concat(s),void 0!==s&&""!==s),c()(t,"getwid-margin-top-".concat(Le),"custom"!==Le&&""!==Le),c()(t,"getwid-anim ".concat(z),!!z),c()(t,"getwid-margin-bottom-".concat(ze),"custom"!==ze&&""!==ze),c()(t,"getwid-margin-tablet-top-".concat(Ve),"custom"!==Ve&&""!==Ve),c()(t,"getwid-margin-tablet-bottom-".concat(He),"custom"!==He&&""!==He),c()(t,"getwid-margin-mobile-top-".concat(Ye),"custom"!==Ye&&""!==Ye),c()(t,"getwid-margin-mobile-bottom-".concat(et),"custom"!==et&&""!==et),c()(t,"getwid-section-content-full-width","full"===P),c()(t,"getwid-section-content-custom-width","custom"===P),t)),Nt=d||void 0,At=[{title:Object(C.__)("Wide Screen. Section full width, content fixed.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M41,32.99v-2.13v-0.71v-3.53v-0.71v-3.53v-0.71v-3.53v-0.71v-2.42c0-0.32-0.08-0.62-0.22-0.9l0,0c0,0,0,0,0,0\tc-0.33-0.66-1-1.11-1.79-1.11h-1.33h-0.71H33.4h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H12.2h-0.71H9.01\tC7.9,13,7,13.9,7,15.01v2.48v0.71v3.53v0.71v3.53v0.71v3.53v0.71v2.07c0,0.41,0.13,0.8,0.34,1.12l0,0c0,0,0,0,0,0\tc0.09,0.14,0.21,0.26,0.33,0.37l0,0l0,0C8.03,34.8,8.5,35,9.01,35h1.68h0.71h3.55h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71\th3.53h0.71h2.13C40.1,35,41,34.1,41,32.99z M38.99,23.68L37,25.67v-3.53l1.99-1.99V23.68z M38.99,19.44L37,21.43v-0.42\tc0-0.84-0.52-1.56-1.25-1.86l3.24-3.24V19.44z M38.99,15v0.2l-3.82,3.82h0C35.11,19.01,35.05,19,34.99,19h-3.33l4-4H38.99z\t M13,26.99L13.01,21h21.98v6L13,26.99z M34.95,15l-4,4H27.4l4-4H34.95z M30.69,15l-4,4h-3.53l4-4H30.69z M26.45,15l-4,4h-3.53l4-4\tH26.45z M22.21,15l-4,4h-3.53l4-4H22.21z M9.01,15h0.48l-0.48,0.48L9.01,15z M9.01,16.19L10.2,15h3.53l-4.72,4.72L9.01,16.19z\t M9.01,20.43L14.44,15h3.53l-4,4h-0.96C11.9,19,11,19.9,11,21.01v0.96l-1.99,1.99L9.01,20.43z M9,24.67l2-2v3.53l-2,2L9,24.67z\t M9,28.92l2-2v0.07c0,0.94,0.65,1.72,1.52,1.94L9,32.45L9,28.92z M9.17,32.99L13.16,29h3.53l-3.99,3.99L9.17,32.99z M13.41,32.99\tL17.4,29h3.55l-3.99,3.99L13.41,32.99z M17.66,32.99L21.66,29h3.53l-3.99,3.99L17.66,32.99z M21.9,32.99L25.9,29h3.53l-4,4\tL21.9,32.99z M26.14,33l4-4h3.53l-4,4L26.14,33z M30.38,33l4-4h0.61C36.1,29,37,28.1,37,26.99v-0.61l1.99-1.99v3.53L33.91,33\tL30.38,33z M34.62,33l4.37-4.37v3.53L38.15,33L34.62,33z M38.86,33l0.13-0.13V33L38.86,33z"}),wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"})),layout:function(){ct({align:"full",skipLayout:!0})}},{title:Object(C.__)("Full Width. Section and content full width.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M41,32.99v-2.13v-0.71V29V19v-3.99c0-0.32-0.08-0.62-0.22-0.9l0,0c0,0,0,0,0,0c-0.33-0.66-1-1.11-1.79-1.11h-1.33h-0.71\tH33.4h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H12.2h-0.71H9.01C7.9,13,7,13.9,7,15.01v2.48v0.71V19v10v1.21v0.71\tv2.07c0,0.41,0.13,0.8,0.34,1.12l0,0c0,0,0,0,0,0c0.09,0.14,0.21,0.26,0.33,0.37l0,0l0,0C8.03,34.8,8.5,35,9.01,35h1.68h0.71h3.55\th0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h2.13C40.1,35,41,34.1,41,32.99z M9.01,21h29.98v6H9L9.01,21z M38.99,19\tH35.9l3.09-3.09V19z M38.99,15v0.2l-3.8,3.8h-3.53l4-4H38.99z M34.95,15l-4,4H27.4l4-4H34.95z M30.69,15l-4,4h-3.53l4-4H30.69z\t M26.45,15l-4,4h-3.53l4-4H26.45z M22.21,15l-4,4h-3.53l4-4H22.21z M17.97,15l-4,4h-3.53l4-4H17.97z M9.01,15h0.48l-0.48,0.48\tL9.01,15z M9.01,16.19L10.2,15h3.53l-4,4H9.01L9.01,16.19z M9,29h3.45L9,32.45L9,29z M9.17,32.99L13.16,29h3.53l-3.99,3.99\tL9.17,32.99z M13.41,32.99L17.4,29h3.55l-3.99,3.99L13.41,32.99z M17.66,32.99L21.66,29h3.53l-3.99,3.99L17.66,32.99z M21.9,32.99\tL25.9,29h3.53l-4,4L21.9,32.99z M26.14,33l4-4h3.53l-4,4L26.14,33z M30.38,33l4-4h3.53l-4,4L30.38,33z M34.62,33l4-4h0.37v3.16\tL38.15,33L34.62,33z M38.86,33l0.13-0.13V33L38.86,33z"}),wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"})),layout:function(){ct({align:"full",contentMaxWidthPreset:"full",skipLayout:!0})}},{title:Object(C.__)("Full Screen. Section full screen, content fixed.","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",width:"48",height:"48"},wp.element.createElement("path",{d:"M6.01,6H9V4H6.01C4.9,4,4,4.9,4,6.01V9h2.01V6z"}),wp.element.createElement("path",{d:"M41.99,4H39v2h2.99v3H44V6.01C44,4.9,43.1,4,41.99,4z"}),wp.element.createElement("path",{d:"M6.01,39H4v2.99C4,43.1,4.9,44,6.01,44H9v-2H6.01V39z"}),wp.element.createElement("path",{d:"M41.99,42H39v2h2.99C43.1,44,44,43.1,44,41.99V39h-2.01V42z"}),wp.element.createElement("path",{d:"M39.38,40.96c0.8-0.16,1.42-0.78,1.58-1.58l0,0c0.02-0.13,0.04-0.26,0.04-0.39v-0.36V35.1v-0.71v-3.53v-0.71v-3.53v-0.71\tv-3.53v-0.71v-3.53v-0.71V13.9v-0.71V9.66V9.01c0-0.02-0.01-0.04-0.01-0.06l0,0C40.97,8,40.28,7.21,39.36,7.04l0,0\tC39.24,7.01,39.12,7,38.99,7h-0.3h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71h-3.53h-0.71H18.2h-0.71h-3.53h-0.71H9.01C7.9,7,7,7.9,7,9.01\tv4.24v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.71v3.53v0.3c0,0.13,0.01,0.25,0.04,0.37l0,0\tc0.17,0.91,0.96,1.6,1.92,1.63l0,0c0.02,0,0.04,0.01,0.06,0.01h0.65h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71h3.53h0.71\th3.53h0.36C39.12,41,39.25,40.99,39.38,40.96L39.38,40.96z M38.99,23.68L37,25.67v-3.53l1.99-1.99V23.68z M38.99,19.44L37,21.43\tv-0.42c0-0.84-0.52-1.56-1.25-1.86l3.24-3.24V19.44z M38.99,15.2l-3.82,3.82h0C35.11,19.01,35.05,19,34.99,19h-3.33l7.33-7.33V15.2z\t M13,26.99L13.01,21h21.98v6L13,26.99z M38.99,9v1.96L30.95,19H27.4l10-10H38.99z M36.69,9l-10,10h-3.53l10-10H36.69z M32.45,9\tl-10,10h-3.53l10-10H32.45z M28.21,9l-10,10h-3.53l10-10H28.21z M9.01,9h2.24l-2.24,2.24L9.01,9z M9.01,11.95L11.96,9h3.53\tl-6.48,6.48L9.01,11.95z M9.01,16.19L16.2,9h3.53L9.01,19.72L9.01,16.19z M9.01,20.43L20.44,9h3.53l-10,10h-0.96\tC11.9,19,11,19.9,11,21.01v0.96l-1.99,1.99L9.01,20.43z M9,24.67l2-2v3.53l-2,2L9,24.67z M9,28.92l2-2v0.07\tc0,0.94,0.65,1.72,1.52,1.94L9,32.45L9,28.92z M9,33.16L13.16,29h3.53L9,36.69L9,33.16z M9,38.99l0-1.59l8.4-8.4h3.55l-9.99,9.99\tL9,38.99z M11.66,38.99L21.66,29h3.53l-9.99,9.99L11.66,38.99z M15.9,38.99L25.9,29h3.53l-9.99,9.99L15.9,38.99z M20.14,38.99\tL30.14,29h3.53l-9.99,9.99L20.14,38.99z M24.38,39l10-10h0.61C36.1,29,37,28.1,37,26.99v-0.61l1.99-1.99v3.53L27.91,39L24.38,39z\t M28.62,39l10.37-10.37v3.53L32.15,39L28.62,39z M32.86,39l6.13-6.13v3.53l-2.6,2.6L32.86,39z M37.1,39l1.89-1.89V39L37.1,39z"})),layout:function(){ct({align:"full",minHeight:"100vh",skipLayout:!0})}}],Mt=["flex-start","center","flex-end"],Bt={"flex-start":{title:Object(C.__)("Top","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}))},center:{title:Object(C.__)("Middle","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"}))},"flex-end":{title:Object(C.__)("Bottom","getwid"),icon:wp.element.createElement(Y,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},wp.element.createElement($,{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement($,{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"}))}},It=["flex-start","center","flex-end"],Lt={"flex-start":{title:Object(C.__)("Left","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M2,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C2.45,16,2,15.55,2,15z"}),wp.element.createElement("path",{d:"M6,10l3,3v-2h8c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H9V7L6,10z"}))},center:{title:Object(C.__)("Center","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M9,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C9.45,16,9,15.55,9,15z"}),wp.element.createElement("path",{d:"M12,10l3,3v-2h2c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1h-2V7L12,10z"}),wp.element.createElement("path",{d:"M8,10l-3,3v-2H3c-0.55,0-1-0.45-1-1v0c0-0.55,0.45-1,1-1h2V7L8,10z"}))},"flex-end":{title:Object(C.__)("Right","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M16,15V5c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v10c0,0.55-0.45,1-1,1h0C16.45,16,16,15.55,16,15z"}),wp.element.createElement("path",{d:"M14,10l-3,3v-2H3c-0.55,0-1-0.45-1-1v0c0-0.55,0.45-1,1-1h8V7L14,10z"}))}},Pt=F("core/block-editor"),zt=Pt.getBlockRootClientId,Rt=!1,Dt=zt(vt);Dt&&(Rt=Dt.length>0);var Vt=F("core/block-editor").getBlocks(vt).length>0,Ft=!1;re.each(this.props.attributes,function(e,t){if(Object(j.has)(S.a,[e,"default"])&&!Object(j.isEqual)(t,S.a[e].default))return Ft=!0,!1});var Ht=this.props.attributes.skipLayout,Wt=W?W.url:void 0,Ut=W?W.id:void 0,Gt=void 0==Dt||null==Dt||Ht;return wp.element.createElement(D,null,Vt||0!=Gt||Ft||Rt||!Getwid.settings.wide_support?wp.element.createElement(D,null,wp.element.createElement(ne,null,wp.element.createElement(ae,{value:i,isCollapsed:!1,controls:["wide","full"],onChange:function(e){return ct({align:e})}}),wp.element.createElement(Z,{icon:Bt[Ge].icon,hasArrowIndicator:!0,className:"components-toolbar",label:Object(C.__)("Content Area Vertical Alignment","getwid"),controls:Mt.map(function(e){return o()({},Bt[e],{isActive:Ge===e,onClick:function(){ct({verticalAlign:e})}})})}),wp.element.createElement(Z,{icon:Lt[Ke].icon,hasArrowIndicator:!0,className:"components-toolbar",label:Object(C.__)("Content Area Horizontal Alignment","getwid"),controls:It.map(function(e){return o()({},Lt[e],{isActive:Ke===e,onClick:function(){ct({horizontalAlign:e})}})})}),wp.element.createElement(A.a,{className:"components-dropdown-menu components-toolbar",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(G,{className:"components-button components-icon-button components-dropdown-menu__toggle",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",width:"20",height:"20"},wp.element.createElement("path",{d:"M3,16h14c0.55,0,1,0.45,1,1v0c0,0.55-0.45,1-1,1H3c-0.55,0-1-0.45-1-1v0C2,16.45,2.45,16,3,16z"}),wp.element.createElement("path",{d:"M9.05,13.95L13.3,9.7c0.39-0.39,0.39-1.02,0-1.41L9.05,4.05L8.34,3.34L7.63,2.63c-0.39-0.39-1.02-0.39-1.41,0L6.22,2.64\tc-0.39,0.39-0.39,1.02,0,1.41l0.7,0.7L3.39,8.3C3,8.69,3,9.31,3.39,9.7l4.24,4.25C8.02,14.34,8.66,14.34,9.05,13.95z M9.04,6.87\tL11.17,9H5.51l2.13-2.13C8.02,6.49,8.66,6.49,9.04,6.87z"}),wp.element.createElement("path",{d:"M13,13c0,0.55,0.45,1,1,1s1-0.45,1-1s-1-3-1-3S13,12.45,13,13z"})),onClick:t})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(D,null,wp.element.createElement("div",{class:"components-getwid-toolbar-popup-wrapper-close small-icon"},wp.element.createElement(G,{icon:"no-alt",className:"getwid-popover-close-button",onClick:function(){t(!0)}})),wp.element.createElement(le,{title:Object(C.__)("Colors","getwid"),initialOpen:!0,className:"getwid-custom-pallete",colorSettings:[{value:lt.color,onChange:it,label:Object(C.__)("Background Color","getwid")}]}))}}),wp.element.createElement(A.a,{className:"components-dropdown-menu components-toolbar",contentClassName:"getwid-popover-wrapper",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(G,{className:"components-button components-icon-button components-dropdown-menu__toggle",icon:"format-image",onClick:t})},renderContent:function(e){var t=e.onClose;return wp.element.createElement(D,null,wp.element.createElement("div",{class:"components-getwid-toolbar-popup-wrapper-close small-icon"},wp.element.createElement(G,{icon:"no-alt",className:"getwid-popover-close-button",onClick:function(){t(!0)}})),wp.element.createElement(B.d,{label:Object(C.__)("Background Image","getwid"),url:Wt,id:Ut,onSelectMedia:function(e){ct({backgroundImage:void 0!==e?Object(j.pick)(e,["alt","id","url"]):{}}),t(!0)},onRemoveMedia:function(){return ct({backgroundImage:void 0})}}),!!W&&wp.element.createElement(D,null,wp.element.createElement(q,{label:Object(C.__)("Position","getwid"),value:void 0!==X?X:"",onChange:function(e){return ct({backgroundImagePosition:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"top left",label:Object(C.__)("Top Left","getwid")},{value:"top center",label:Object(C.__)("Top Center","getwid")},{value:"top right",label:Object(C.__)("Top Right","getwid")},{value:"center left",label:Object(C.__)("Center Left ","getwid")},{value:"center center",label:Object(C.__)("Center Center","getwid")},{value:"center right",label:Object(C.__)("Center Right","getwid")},{value:"bottom left",label:Object(C.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(C.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(C.__)("Bottom Right","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Attachment","getwid"),value:void 0!==te?te:"",onChange:function(e){return ct({backgroundImageAttachment:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"scroll",label:Object(C.__)("Scroll","getwid")},{value:"fixed",label:Object(C.__)("Fixed","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Repeat","getwid"),value:void 0!==ie?ie:"",onChange:function(e){return ct({backgroundImageRepeat:e})},options:[{value:"",label:Object(C.__)("Default","getwid")},{value:"no-repeat",label:Object(C.__)("No Repeat","getwid")},{value:"repeat",label:Object(C.__)("Repeat","getwid")},{value:"repeat-x",label:Object(C.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(C.__)("Repeat Y","getwid")},{value:"space",label:Object(C.__)("Space","getwid")},{value:"round",label:Object(C.__)("Round","getwid")}]}),wp.element.createElement(q,{label:Object(C.__)("Size","getwid"),value:void 0!==oe?oe:"",onChange:function(e){return ct({backgroundImageSize:e})},options:[{value:"",label:Object(C.__)("Cover","getwid")},{value:"contain",label:Object(C.__)("Contain","getwid")},{value:"auto",label:Object(C.__)("Auto","getwid")}]})))}}),wp.element.createElement(J,{controls:[{icon:wp.element.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M24.4003906,22.5996094H7.5996094c-0.5527344,0-1-0.4472656-1-1V10.4003906c0-0.5527344,0.4472656-1,1-1h16.8007813 c0.5527344,0,1,0.4472656,1,1v11.1992188C25.4003906,22.1523438,24.953125,22.5996094,24.4003906,22.5996094z M8.5996094,20.5996094h14.8007813v-9.1992188H8.5996094V20.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2,11.5996094c-0.5527344,0-1-0.4472656-1-1V5c0-0.5527344,0.4472656-1,1-1h5.5996094c0.5527344,0,1,0.4472656,1,1 s-0.4472656,1-1,1H3v4.5996094C3,11.1523438,2.5527344,11.5996094,2,11.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M30,11.5996094c-0.5527344,0-1-0.4472656-1-1V6h-4.5996094c-0.5527344,0-1-0.4472656-1-1s0.4472656-1,1-1H30 c0.5527344,0,1,0.4472656,1,1v5.5996094C31,11.1523438,30.5527344,11.5996094,30,11.5996094z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M7.5996094,28H2c-0.5527344,0-1-0.4472656-1-1v-5.5996094c0-0.5527344,0.4472656-1,1-1s1,0.4472656,1,1V26h4.5996094 c0.5527344,0,1,0.4472656,1,1S8.1523438,28,7.5996094,28z"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M30,28h-5.5996094c-0.5527344,0-1-0.4472656-1-1s0.4472656-1,1-1H29v-4.5996094c0-0.5527344,0.4472656-1,1-1 s1,0.4472656,1,1V27C31,27.5527344,30.5527344,28,30,28z"})))),title:Object(C.__)("Show Guides","getwid"),isActive:dt,onClick:function(){n.setState({showRullers:!dt})}}]})),wp.element.createElement(L.a,l()({},o()({},this.props,{isLockedPaddingsOnDesktop:pt,isLockedPaddingsOnTablet:mt,isLockedPaddingsOnMobile:gt},{isLockedMarginsOnDesktop:wt,isLockedMarginsOnTablet:ht,isLockedMarginsOnMobile:ft},{baseClass:se,changeState:_t}),{key:"inspector"})),wp.element.createElement("div",l()({id:Nt,className:Tt,style:yt},xt),wp.element.createElement(N.a,o()({},{paddingBottom:ke,paddingRight:ye,paddingLeft:Ce,paddingTop:ve},{paddingBottomValue:pe,paddingRightValue:ge,paddingLeftValue:me,paddingTopValue:ue},{marginBottom:ze,marginRight:Pe,marginLeft:Re,marginTop:Le},{marginBottomValue:we,marginRightValue:fe,marginLeftValue:he,marginTopValue:be},{changeState:_t,setAttributes:ct,showRullers:dt,isSelected:st,baseClass:se,clientId:vt,isLayoutSet:Vt||Ht||Ft||Rt||!Getwid.settings.wide_support}),wp.element.createElement("div",{className:Ct,style:kt},wp.element.createElement(x.a,o()({},this.props,{baseClass:se})),!!w&&"none"!==f&&wp.element.createElement("div",{className:O()("getwid-background-video-controls",c()({},"is-position-".concat(f),"top-right"!==f))},wp.element.createElement("button",{onClick:this.playBackgroundVideo,className:"getwid-background-video-play",ref:function(e){return n.videoButtonRef=e}},"paused"===this.state.videoPlayState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-play"}),"playing"===this.state.videoPlayState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{onClick:this.muteBackgroundVideo,className:"getwid-background-video-mute"},!0===this.state.videoMuteState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}),!1===this.state.videoMuteState&&wp.element.createElement("i",{className:"getwid-icon getwid-icon-volume-up"}))),wp.element.createElement("div",{className:O()("".concat(se,"__inner-wrapper"),c()({},"has-dividers-over",k)),style:St},wp.element.createElement("div",{className:"".concat(se,"__background-holder")},wp.element.createElement("div",{className:Ot,style:Et},!!W&&wp.element.createElement("div",{className:"".concat(se,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(se,"__background-image"),src:W.url,alt:W.alt,"data-id":W.id})),!!b.length&&wp.element.createElement("div",{className:"".concat(se,"__background-slider-wrapper")},wp.element.createElement(M.a,o()({},this.props,{baseClass:se}))),!!w&&wp.element.createElement("div",{className:"".concat(se,"__background-video-wrapper")},wp.element.createElement(T.a,l()({},o()({},this.props,{baseClass:se}),{onVideoEnd:this.onBackgroundVideoEnd,videoAutoplay:!1,videoMute:this.state.videoMuteState,videoElemRef:function(e){return n.videoRef=e}})))),wp.element.createElement("div",{className:"".concat(se,"__foreground"),style:jt})),wp.element.createElement("div",{className:"".concat(se,"__content")},wp.element.createElement("div",{className:"".concat(se,"__inner-content")},wp.element.createElement(ee,{renderAppender:function(){return wp.element.createElement(ee.ButtonBlockAppender,null)},defaultBlock:!1,template:ce,templateInsertUpdatesSelection:!1,templateLock:!1})))))))):wp.element.createElement("div",{className:"components-placeholder block-editor-inner-blocks__template-picker has-many-options"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(Q,{icon:"layout"}),Object(C.__)("Choose Section Layout","getwid")),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(C.__)("Select a layout to start with, or make one yourself.","getwid")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement("ul",{className:"block-editor-inner-blocks__template-picker-options"},At.map(function(e,t){return wp.element.createElement("li",null,wp.element.createElement(K,{text:e.title},wp.element.createElement(U,{className:"components-icon-button block-editor-inner-blocks__template-picker-option is-button is-default is-large",key:t,onClick:function(){return e.layout()}},e.icon)))})),wp.element.createElement("div",{class:"block-editor-inner-blocks__template-picker-skip"},wp.element.createElement(U,{className:"components-button is-link",onClick:function(){return ct({skipLayout:!0})}},Object(C.__)("Skip","getwid"))))))}},{key:"componentDidMount",value:function(){this.props.attributes.entranceAnimation&&this.animate()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.attributes,a=n.entranceAnimation,l=n.entranceAnimationDuration,i=this.props,o=i.baseClass,r=i.clientId,c=(i.isSelected,e.attributes.entranceAnimation),s=e.attributes.entranceAnimationDuration;!a||c===a&&s===l||(re(".".concat(o,"-").concat(r)).css("animation-name",""),this.animate())}},{key:"animate",value:function(){var e=this.props,t=e.baseClass,n=e.clientId;new WOW({boxClass:"".concat(t,"-").concat(n),scrollContainer:"."+Object(I.e)(),live:!1,mobile:!1}).init()}},{key:"playBackgroundVideo",value:function(){var e=this.videoRef;e.paused?(e.play(),this.setState({videoPlayState:"playing"})):(e.pause(),this.setState({videoPlayState:"paused"}))}},{key:"onBackgroundVideoEnd",value:function(){this.setState({videoPlayState:"paused"})}},{key:"muteBackgroundVideo",value:function(){var e=this.videoRef;e.muted=!e.muted,this.setState({videoMuteState:e.muted})}}]),t}(R);t.a=ie([H(function(e,t){return{getBlock:e("core/editor").getBlock}}),te("backgroundColor")])(de)},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},function(e,t,n){"use strict";n(0);t.a={"zigzag-ice-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,points:"893,50.7 879,75.9 790,63.3 764,81.8 671,69.2 627,81.8 565,66.2 501.5,83.3 456,69.6 353,84 290,63.3 245.5,73.3 209,58.8 123.5,69.9 111.3,42.6 54.8,49.2 34.7,26.3 11.8,31.8 0,10 0,100 1000,100 1000,37.4 960,56.3 "}),wp.element.createElement("polygon",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",points:"893,40.7 879,65.9 790,53.3 764,71.8 671,59.2 627,71.8 565,56.2 501.5,73.3 456,59.6 353,74 290,53.3 245.5,63.3 209,48.8 123.5,59.9 111.3,32.6 54.8,39.2 34.7,16.3 11.8,21.8 0.2,0 0,0 0,100 1000,100 1000,27.4 960,46.3 "}))},"zigzag-ice":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,points:"0.2,0 11.8,21.8 34.7,16.3 54.8,39.2 111.3,32.6 123.5,59.9 209,48.8 245.5,63.3 290,53.3 353,74 456,59.6 501.5,73.3 565,56.2 627,71.8 671,59.2 764,71.8 790,53.3 879,65.9 893,40.7 960,46.3 1000,27.4 1000,0 "}),wp.element.createElement("polygon",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",points:"0,0 0,10 11.8,31.8 34.7,26.3 54.8,49.2 111.3,42.6 123.5,69.9 209,58.8 245.5,73.3 290,63.3 353,84 456,69.6 501.5,83.3 565,66.2 627,81.8 671,69.2 764,81.8 790,63.3 879,75.9 893,50.7 960,56.3 1000,37.4 1000,0"}))},"zigzag-pattern":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1800 6",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,0 0,1 3.5,5.4 7,1 10.5,5.4 14,1 17.5,5.4 21,1 24.5,5.4 28,1 31.5,5.4 35,1 38.5,5.4 42,1 45.5,5.4 49,1 52.5,5.4 56,1 59.5,5.4 63,1 66.5,5.4 70,1 73.5,5.4 77,1 80.5,5.4 84,1 87.5,5.4 91,1 94.5,5.4 98,1 101.5,5.4 105,1 108.5,5.4 112,1 115.5,5.4 119,1 122.5,5.4 126,1 129.5,5.4 133,1 136.5,5.4 140,1 143.5,5.4 147,1 150.5,5.4 154,1 157.5,5.4 161,1 164.5,5.4 168,1 171.5,5.4 175,1 178.5,5.4 182,1 185.5,5.4 189,1 192.5,5.4 196,1 199.5,5.4 203,1 206.5,5.4 210,1 213.5,5.4 217,1 220.5,5.4 224,1 227.5,5.4 231,1 234.5,5.4 238,1 241.5,5.4 245,1 248.5,5.4 252,1 255.5,5.4 259,1 262.5,5.4 266,1 269.5,5.4 273,1 276.5,5.4 280,1 283.5,5.4 287,1 290.5,5.4 294,1 297.5,5.4 301,1 304.5,5.4 308,1 311.5,5.4 315,1 318.5,5.4 322,1 325.5,5.4 329,1 332.5,5.4 336,1 339.5,5.4 343,1 346.5,5.4 350,1 353.5,5.4 357,1 360.5,5.4 364,1 367.5,5.4 371,1 374.5,5.4 378,1 381.5,5.4 385,1 388.5,5.4 392,1 395.5,5.4 399,1 402.5,5.4 406,1 409.5,5.4 413,1 416.5,5.4 420,1 423.5,5.4 427,1 430.5,5.4 434,1 437.5,5.4 441,1 444.5,5.4 448,1 451.5,5.4 455,1 458.5,5.4 462,1 465.5,5.4 469,1 472.5,5.4 476,1 479.5,5.4 483,1 486.5,5.4 490,1 493.5,5.4 497,1 500.5,5.4 504,1 507.5,5.4 511,1 514.5,5.4 518,1 521.5,5.4 525,1 528.5,5.4 532,1 535.5,5.4 539,1 542.5,5.4 546,1 549.5,5.4 553,1 556.5,5.4 560,1 563.5,5.4 567,1 570.5,5.4 574,1 577.5,5.4 581,1 584.5,5.4 588,1 591.5,5.4 595,1 598.5,5.4 602,1 605.5,5.4 609,1 612.5,5.4 616,1 619.5,5.4 623,1 626.5,5.4 630,1 633.5,5.4 637,1 640.5,5.4 644,1 647.5,5.4 651,1 654.5,5.4 658,1 661.5,5.4 665,1 668.5,5.4 672,1 675.5,5.4 679,1 682.5,5.4 686,1 689.5,5.4 693,1 696.5,5.4 700,1 703.5,5.4 707,1 710.5,5.4 714,1 717.5,5.4 721,1 724.5,5.4 728,1 731.5,5.4 735,1 738.5,5.4 742,1 745.5,5.4 749,1 752.5,5.4 756,1 759.5,5.4 763,1 766.5,5.4 770,1 773.5,5.4 777,1 780.5,5.4 784,1 787.5,5.4 791,1 794.5,5.4 798,1 801.5,5.4 805,1 808.5,5.4 812,1 815.5,5.4 819,1 822.5,5.4 826,1 829.5,5.4 833,1 836.5,5.4 840,1 843.5,5.4 847,1 850.5,5.4 854,1 857.5,5.4 861,1 864.5,5.4 868,1 871.5,5.4 875,1 878.5,5.4 882,1 885.5,5.4 889,1 892.5,5.4 896,1 899.5,5.4 903,1 906.5,5.4 910,1 913.5,5.4 917,1 920.5,5.4 924,1 927.5,5.4 931,1 934.5,5.4 938,1 941.5,5.4 945,1 948.5,5.4 952,1 955.5,5.4 959,1 962.5,5.4 966,1 969.5,5.4 973,1 976.5,5.4 980,1 983.5,5.4 987,1 990.5,5.4 994,1 997.5,5.4 1001,1 1004.5,5.4 1008,1 1011.5,5.4 1015,1 1018.5,5.4 1022,1 1025.5,5.4 1029,1 1032.5,5.4 1036,1 1039.5,5.4 1043,1 1046.5,5.4 1050,1 1053.5,5.4 1057,1 1060.5,5.4 1064,1 1067.5,5.4 1071,1 1074.5,5.4 1078,1 1081.5,5.4 1085,1 1088.5,5.4 1092,1 1095.5,5.4 1099,1 1102.5,5.4 1106,1 1109.5,5.4 1113,1 1116.5,5.4 1120,1 1123.5,5.4 1127,1 1130.5,5.4 1134,1 1137.5,5.4 1141,1 1144.5,5.4 1148,1 1151.5,5.4 1155,1 1158.5,5.4 1162,1 1165.5,5.4 1169,1 1172.5,5.4 1176,1 1179.5,5.4 1183,1 1186.5,5.4 1190,1 1193.5,5.4 1197,1 1200.5,5.4 1204,1 1207.5,5.4 1211,1 1214.5,5.4 1218,1 1221.5,5.4 1225,1 1228.5,5.4 1232,1 1235.5,5.4 1239,1 1242.5,5.4 1246,1 1249.5,5.4 1253,1 1256.5,5.4 1260,1 1263.5,5.4 1267,1 1270.5,5.4 1274,1 1277.5,5.4 1281,1 1284.5,5.4 1288,1 1291.5,5.4 1295,1 1298.5,5.4 1302,1 1305.5,5.4 1309,1 1312.5,5.4 1316,1 1319.5,5.4 1323,1 1326.5,5.4 1330,1 1333.5,5.4 1337,1 1340.5,5.4 1344,1 1347.5,5.4 1351,1 1354.5,5.4 1358,1 1361.5,5.4 1365,1 1368.5,5.4 1372,1 1375.5,5.4 1379,1 1382.5,5.4 1386,1 1389.5,5.4 1393,1 1396.5,5.4 1400,1 1403.5,5.4 1407,1 1410.5,5.4 1414,1 1417.5,5.4 1421,1 1424.5,5.4 1428,1 1431.5,5.4 1435,1 1438.5,5.4 1442,1 1445.5,5.4 1449,1 1452.5,5.4 1456,1 1459.5,5.4 1463,1 1466.5,5.4 1470,1 1473.5,5.4 1477,1 1480.5,5.4 1484,1 1487.5,5.4 1491,1 1494.5,5.4 1498,1 1501.5,5.4 1505,1 1508.5,5.4 1512,1 1515.5,5.4 1519,1 1522.5,5.4 1526,1 1529.5,5.4 1533,1 1536.5,5.4 1540,1 1543.5,5.4 1547,1 1550.5,5.4 1554,1 1557.5,5.4 1561,1 1564.5,5.4 1568,1 1571.5,5.4 1575,1 1578.5,5.4 1582,1 1585.5,5.4 1589,1 1592.5,5.4 1596,1 1599.5,5.4 1603,1 1606.5,5.4 1610,1 1613.5,5.4 1617,1 1620.5,5.4 1624,1 1627.5,5.4 1631,1 1634.5,5.4 1638,1 1641.5,5.4 1645,1 1648.5,5.4 1652,1 1655.5,5.4 1659,1 1662.5,5.4 1666,1 1669.5,5.4 1673,1 1676.5,5.4 1680,1 1683.5,5.4 1687,1 1690.5,5.4 1694,1 1697.5,5.4 1701,1 1704.5,5.4 1708,1 1711.5,5.4 1715,1 1718.5,5.4 1722,1 1725.5,5.4 1729,1 1732.5,5.4 1736,1 1739.5,5.4 1743,1 1746.5,5.4 1750,1 1753.5,5.4 1757,1 1760.5,5.4 1764,1 1767.5,5.4 1771,1 1774.5,5.4 1778,1 1781.5,5.4 1785,1 1788.5,5.4 1792,1 1795.5,5.4 1799,1 1800,2.3 1800,0 "}))},"waves-layered":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 120",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M464,69c-50.96-10.13-166.19-39.07-313-13C85.7,67.6,33.79,86.59,0,100.9V120h1000V1 C748.08,88.13,576.28,91.31,464,69z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M464,89c-50.96-10.13-166.19-59.07-313-33C85.7,67.6,33.79,86.59,0,100.9V120h1000V67C748.08,154.13,576.28,111.31,464,89z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M464,79c-50.96-10.13-166.19-49.07-313-23C85.7,67.6,33.79,86.59,0,100.9V120h1000V34 C748.08,121.13,576.28,101.31,464,79z"}))},"waves-large-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M902.8,47.5c-76.9-1-113-55.3-174.5-36.5c-22.9,7-31.6,18.6-58.3,19c-34.2,0.5-43.6-18.3-69-21c-55.8-6-70.7,78.2-127.4,82.3C418.5,95.2,366.5,10.7,300.1,10c-1.5,0-2.7,0-2.7,0c-40,0.5-66,23.8-87.6,36.7c-36,21.4-73.3,22-89,22.1C63.3,69.1,19.4,36.1,0,19v81h1000V20.4C959.3,43.3,926.1,47.8,902.8,47.5z"}))},"waves-large":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,19c19.4,17.1,63.3,50.1,120.8,49.8c15.7-0.1,53-0.7,89-22.1c21.6-12.9,47.6-36.2,87.6-36.7c0,0,1.2,0,2.7,0c66.4,0.7,118.4,85.2,173.5,81.3C530.3,87.2,545.2,3,601,9c25.4,2.7,34.8,21.5,69,21c26.7-0.4,35.4-12,58.3-19c61.5-18.8,97.6,35.5,174.5,36.5c23.3,0.3,56.6-4.2,97.3-27.2V0H0V19z"}))},"waves-pattern":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 996 4",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M990,1c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2c-2.8,0-3.2-2-6-2c-2.8,0-3.2,2-6,2C9.2,3,8.8,1,6,1C3.2,1,2.8,3,0,3v1h996V3C993.2,3,992.8,1,990,1z"}))},"waves-light":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M464,60c-50.96-10.13-166.19-39.07-313-13C85.7,58.6,33.79,77.59,0,91.9v8.1h1000V0C748.08,87.13,576.28,82.31,464,60z"}))},waves:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v19c33.17,17.01,84.77,38.06,149,41c96.07,4.4,128.39-35.91,211-52c157.72-30.72,212.84,82.55,404,85c54.27,0.7,135.59-7.33,236-53.7V0H0z"}))},"triangle-negative-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M492,97.3L0,1.1V100h1000V1.1L508,97.3C502.7,98.4,497.3,98.4,492,97.3z"}))},"triangle-asymmetrical-negative-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M689,96L0,1.1V100h1000V1.1l-269.9,91C716.9,96.6,702.8,97.9,689,96z"}))},"triangle-asymmetrical-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M730.1,92.1c-13.2,4.5-27.3,5.8-41.1,3.9L0,1.1V0h1000v1.1L730.1,92.1z"}))},"triangle-rounded":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M508,97.3c-5.3,1-10.7,1-16,0L0,1.1V0h1000v1.1L508,97.3z"}))},"triangle-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,1.1 0,100 1000,100 1000,1.1 500,98.9 "}))},"triangle-asymmetrical-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,1.1 0,100 1000,100 1000,1.1 710,98.9 "}))},"triangle-asymmetrical":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M710,98.9L0,1.1V0h1000v1.1L710,98.9z"}))},triangle:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M500,98.9L0,1.1V0h1000v1.1L500,98.9z"}))},tilt:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0h1000v100L0,0z"}))},"tilt-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0H0v100L1000,0z"}))},"split-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 20",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M516,3c-8.8,0-16,7.2-16,16c0-8.8-7.2-16-16-16H0v16v1h1000v-1V3H516z"}))},split:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 20",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v3h484c8.8,0,16,7.2,16,16c0-8.8,7.2-16,16-16h484V0H0z"}))},"drips-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M975,56.8c-8.3,0-15,6.8-15,15v3c0,8.3-6.8,15-15,15s-15-6.8-15-15v-45c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V82c0,8.3-6.8,15-15,15s-15-6.8-15-15s-6.8-15-15-15s-15,6.8-15,15v-1.8c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V80c0,8.3-6.8,15-15,15s-15-6.8-15-15v2c0-8.3-6.8-15-15-15s-15,6.8-15,15v-3.8c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V82c0,8.3-6.8,15-15,15s-15-6.8-15-15s-6.8-15-15-15s-15,6.8-15,15v-1.8c0,8.3-6.8,15-15,15s-15-6.8-15-15v-8.4c0-8.3-6.8-15-15-15s-15,6.8-15,15V74c0,8.3-6.8,15-15,15s-15-6.8-15-15V50.8c0-8.3-6.8-15-15-15s-15,6.8-15,15v12.4c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V32c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V53c0,8.3-6.8,15-15,15s-15-6.8-15-15v-2.2c0-8.3-6.8-15-15-15s-15,6.8-15,15V81c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15v2.4c0,8.3-6.8,15-15,15s-15-6.8-15-15V19c0-8.3-6.8-15-15-15s-15,6.8-15,15v34c0,8.3-6.8,15-15,15s-15-6.8-15-15V29.8c0-8.3-6.8-15-15-15s-15,6.8-15,15V100h990V71.8C990,63.6,983.3,56.8,975,56.8z"}))},"tilted-drips-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M990,38.6c-0.8,0.4-1.5,1-2.2,1.6l-38.9,38.9c-3.9,3.6-10,3.5-13.8-0.3c-3.8-3.8-3.9-9.9-0.3-13.8l26.1-26.1c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L898,73.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-9.2-0.9-13.1l6.9-6.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-55.8,55.8c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-24.8,24.8c-3.9,3.6-10,3.5-13.8-0.3c-3.7-3.7-3.9-9.8,12.2-26.3l20.7-20.7c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-48.7,48.7c-3.9,3.4-9.9,3.3-13.6-0.5c-3.6-3.6-3.9-9.3-0.8-13.2c0.2-0.2,0.4-0.4,0.6-0.7c0.1-0.1,0.2-0.2,0.3-0.3l-0.2,0.2c2.9-3.9,2.6-9.5-0.9-13.1h0c-3.9-3.9-10.3-3.9-14.1,0l-6.3,6.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L617.3,72c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0l-34.5,34.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-9.2-0.9-13.1l6.9-6.9c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-46,46c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-62.8,62.8c-3.9,3.4-9.9,3.3-13.6-0.5c-3.5-3.5-3.8-8.9-1.1-12.8l21.3-21.3c3.9-3.9,3.9-10.3,0-14.1v0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l11.9-11.9c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-46,46c-3.9,3.6-10,3.5-13.8-0.3s-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0l-41.6,41.6c-3.9,3.4-9.9,3.3-13.6-0.5c-3.6-3.6-3.9-9.3-0.8-13.2c0.2-0.2,0.4-0.4,0.6-0.7c0.1-0.1,0.2-0.2,0.3-0.3l-0.2,0.2c2.9-3.9,2.6-9.5-0.9-13.1v0c-3.9-3.9-10.3-3.9-14.1,0l-13.3,13.3c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l19-19c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L109.3,72c-3.9,3.6-10,3.5-13.8-0.3c-3.8-3.8-3.9-9.9-0.3-13.8l4.8-4.8c3.9-3.9,3.9-10.3,0-14.1h0c-3.9-3.9-10.3-3.9-14.1,0L51.3,73.5c-3.9,3.4-9.9,3.3-13.6-0.5c-3.8-3.8-3.9-9.9-0.3-13.8l33.1-33.1c3.9-3.9,3.9-10.3,0-14.1s-10.3-3.9-14.1,0L0,68.3V100h990V38.6z"}))},"tilted-drips":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v68.3l56.4-56.4c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L37.4,59.2c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l34.5-34.5c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8c3.8,3.8,9.9,3.9,13.8,0.3l67.2-67.2c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-19,19c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0v0c3.5,3.5,3.8,9.2,0.9,13.1l0.2-0.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.2,0.2-0.4,0.4-0.6,0.7c-3,3.9-2.7,9.6,0.8,13.2c3.7,3.7,9.7,3.9,13.6,0.5l41.6-41.6c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l46-46c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L341,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0v0c3.9,3.9,3.9,10.3,0,14.1L361,74.4c-2.7,3.9-2.3,9.3,1.1,12.8c3.7,3.7,9.7,3.9,13.6,0.5l62.8-62.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l46-46c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L510.3,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l13.3-13.3c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-6.9,6.9c-2.9,3.9-2.6,9.5,0.9,13.1c3.7,3.7,9.7,3.9,13.6,0.5l34.5-34.5c3.9-3.9,10.3-3.9,14.1,0h0c3.9,3.9,3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8s9.9,3.9,13.8,0.3l60.1-60.1c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L679.6,38c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l6.3-6.3c3.9-3.9,10.3-3.9,14.1,0h0c3.5,3.5,3.8,9.2,0.9,13.1l0.2-0.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.2,0.2-0.4,0.4-0.6,0.7c-3,3.9-2.7,9.6,0.8,13.2c3.7,3.7,9.7,3.9,13.6,0.5l48.7-48.7c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-20.7,20.7c-16.1,16.5-15.9,22.6-12.2,26.3c3.8,3.8,9.9,3.9,13.8,0.3l24.8-24.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-4.8,4.8c-3.6,3.9-3.5,10,0.3,13.8c3.7,3.7,9.7,3.9,13.6,0.5l55.8-55.8c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1l-6.9,6.9c-2.9,3.9-2.6,9.5,0.9,13.1c3.7,3.7,9.7,3.9,13.6,0.5l48.7-48.7c3.9-3.9,10.3-3.9,14.1,0s3.9,10.3,0,14.1L934.8,65c-3.6,3.9-3.5,10,0.3,13.8c3.8,3.8,9.9,3.9,13.8,0.3l38.9-38.9c0.7-0.7,1.4-1.2,2.2-1.6V0H0z"}))},drips:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 990 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V19c0-8.3,6.8-15,15-15s15,6.8,15,15v13.2c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.4c0-8.3,6.8-15,15-15s15,6.8,15,15V81c0,8.3,6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V32c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v33.4c0,8.3,6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V74c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v8.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15s6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15v27.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15v-2c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15v-2.2c0-8.3,6.8-15,15-15s15,6.8,15,15v29.4c0,8.3,6.8,15,15,15s15-6.8,15-15V82c0-8.3,6.8-15,15-15s15,6.8,15,15s6.8,15,15,15s15-6.8,15-15V50.8c0-8.3,6.8-15,15-15s15,6.8,15,15V53c0,8.3,6.8,15,15,15s15-6.8,15-15V29.8c0-8.3,6.8-15,15-15s15,6.8,15,15v45c0,8.3,6.8,15,15,15s15-6.8,15-15v-3c0-8.3,6.8-15,15-15s15,6.8,15,15V0H0z"}))},"pyramids-round-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M790.8,50.4l-146.3-28c-4.9-1-10-0.9-14.8,0.3l-302.2,72c-6.3,1.5-12.8,1.3-18.9-0.5L0,3v97h1000V20.6L807.3,50.7C801.9,51.5,796.3,51.4,790.8,50.4z"}))},"pyramids-round":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,3l308.6,91.2c6.1,1.8,12.6,2,18.9,0.5l302.2-72c4.8-1.2,9.9-1.3,14.8-0.3l146.3,28c5.5,1,11.1,1.1,16.5,0.3L1000,20.6V0H0V3z"}))},"pyramids-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"637,21 318,97 0,3 0,100 1000,100 1000,20.6 799,52 "}))},pyramids:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,3 318,97 637,21 799,52 1000,20.6 1000,0 0,0 "}))},"triangle-layered-asymmetrical":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M710,98.9L0,1.1V0h1000v1.1L710,98.9z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M710,78.9L0,1.1V0h1000v1.1L710,78.9z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M710,58.9L0,1.1V0h1000v1.1L710,58.9z"}))},"tilt-layered-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 2600 130",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"2600,65 0,1 0,0 2600,0 "}),wp.element.createElement("rect",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,width:"2600",height:"65"}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"2600,65 0,129 0,0 2600,0 "}))},"tilt-layered-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M0,6V0h1000v100L0,6z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,6V0H0v100L1000,6z"}))},"tilt-layered-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 20",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"300,1 150,3 0,1 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,6 150,3 0,6 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,16 150,3 0,16 0,0 300,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.3,points:"300,11 150,3 0,11 0,0 300,0 "}))},"opacity-pyramids":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"0,3 318,77 637,21 799,52 1000,20.6 1000,0 0,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"0,23 318,77 637,41 799,62 1000,20.6 1000,0 0,0 "}),wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,points:"0,53 318,77 637,61 799,82 1000,20.6 1000,0 0,0 "}))},mountains:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M96.75,42.51c41.73,3.17,56.48-13.82,97.52-23.11C303.06-5.25,340.46,82.24,438.1,54.44c33.81-9.63,53.36-26.96,113.28-37.89c6.98-1.27,32.05-6.68,62.62-6.55c102.24,0.44,122.48,45.95,222,41.5c70.08-3.13,126.55-28.66,164-50.4V0H0v0.9C21.95,18.65,54.96,39.33,96.75,42.51z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M62.31,65.11C104.87,60.84,123.89,39.78,176.9,37c13.38-0.7,23.39-0.29,29.97,0.57C241.3,42.12,263.58,59.94,337.9,73C446,92,461,28,587.8,30c108.8,1.8,125.5,49.4,235,46C901.4,73.6,986,46.2,1000,26.1V0H0v58.3C27.02,66.57,48.28,66.52,62.31,65.11z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",opacity:.5,d:"M142.1,74c55.77-2.72,60.02-21.75,116.4-28c71.3-7.9,95.2,23.8,167.8,36C539.1,101,554.8,37,687,39c113.5,1.8,131,49.4,245.1,46c22.7-0.7,45.9-3.3,67.9-7.1V0H0v29C33.03,51.37,82.74,76.89,142.1,74z"}))},"drops-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 16",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M292,12c-1.2-1.2,0.4-3.4-1-5c-1.5-1.9-5.8-1.7-7,0c-1,1.5,0,5,0,6s-0.5,2-2.8,2s-2.3-2-1.3-3s2.6-5.5,2-8c-0.6-2.6-4.2-3.8-6-3c-1.4,0.6-3,4-2,7s1,6-0.6,6c-3,0-3.4-1-3.4-3s2.4-5-0.1-8C268,1,265,2,265,3s1,3-2,3s-2-4-5-4s-1,3-3,3s-1-3-3-4s-4,2-4,3s2,3-1,3s-1-5-4-5s-5,2-5,5s3,7-1,6s-1-3-1-7s-3.8-4.2-5-4c-0.8,0.1-4,1-4,4s2,6-1,6s-3-4-3-7s-2.9-4.4-5-4c-2.1,0.3-2.4,4-4,4c-1.8,0-2-4-4-4s-1.8,2.6-2,4c-0.4,2.9,3,7-2,7s-4-4-3-5s2.8-6,0.4-6S199,1,198,5s3.5,7-0.3,8s-3.8-2-3.8-5s2-7-2-7s-2,4-2,7s0,5-3,5s0.2-4-2-8c-0.1-0.2-1-3-3-3s0,6-2,6s-2-2-2-3s1-3-1-3s-2,5-2,7s1,6-3,5s2.9-9.6-0.6-12c-2-1.4-6.2-1.7-8.4,1c-3.4,4.2,3,11-2,11s0.9-5.8-2-10c-2.5-3.5-9.3-3-11.1-2S145,5,145,6s1,5,1,6s-3.7,3.4-5,1c-1.3-2.5,0-6,0-8s-2-4-4.5-4S135,4,133,4s-1.3-2-3-3s-3,0-3,2s5,9-2,10s-4.4-9-6-11s-3.9-1.5-6,1c-2.4,2.9,1.9,5.1-1,9c-1.1,1.5-2,4-4,2s0.3-4.1-1-9c-0.6-2.2-1-4-3-4s0,6-4,6s-4-1-4-2c0-4-3.4-3.9-5-4c-1.6-0.1-3.5,1.4-4,3c-0.6,1.9,0,6-2,6s-2-1-2-3s-1-4-2.5-5S76.7,1,76,3c-0.6,1.6-0.6,2.6,0,7c0.3,2.2-1,5-5,4s-2-5-2-7c0-4-3-6-5.5-5S60,5,60,7s3.3,6,0.6,7S57,13,57,11s0-5.9-2-8c-0.2-0.2-4-2-5,1s7,9,2,10s-4.9-2.5-5-6c-0.1-2.4,1.8-4.1,1-5c-0.6-0.7-2-0.5-3,0c-1.3,0.7-1.1,1.7-2,2c-1.8,0.6-4-4-5-3s-0.2,2.8,0,4c0.9,4.3,4,6,2,7s-3-1-3-2s0.9-6.9-1-9c-1.2-1.3-3.7-1-4-1c-2.6,0.3-3.4,2.4-5,2c-1.6-0.4-1.6-1.8-2.9-2c-1.5-0.2-3.2,1.6-4.1,4c-1.5,4-0.1,6.2-2,8c-1.1,1-3,1.7-4,1c-1.5-1.1,0.6-4.4-1-9c-0.7-2.2-1-4-3-4S9.2,3.7,8,4C6.9,4.3,6,2.6,5,3C4.3,3.2,4.1,4.2,4,5c-0.8,4.6,2,6.8-1,7S0.4,8.3,0,3.5V16h300V9.7C297.9,12.3,293.5,13.4,292,12z"}))},drops:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 300 16",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v3.5c0.4,4.8,0,8.8,3,8.5s0.2-2.4,1-7c0.1-0.8,0.3-1.8,1-2c1-0.4,1.9,1.3,3,1c1.2-0.3,0-3,2-3s2.3,1.8,3,4c1.6,4.6-0.5,7.9,1,9c1,0.7,2.9,0,4-1c1.9-1.8,0.5-4,2-8c0.9-2.4,2.7-4.2,4.1-4c1.3,0.2,1.2,1.6,2.9,2c1.6,0.4,2.4-1.7,5-2c0.3,0,2.8-0.3,4,1c1.9,2.1,1,8,1,9s1,3,3,2s-1.1-2.7-2-7c-0.2-1.2-1-3,0-4s3.2,3.6,5,3c0.9-0.3,0.7-1.3,2-2c1-0.5,2.4-0.7,3,0c0.8,0.9-1.1,2.6-1,5c0.1,3.5,0,7,5,6s-3-7-2-10s4.8-1.2,5-1c2,2.1,2,6,2,8s1,4,3.6,3S60,9,60,7s1-4,3.5-5S69,3,69,7c0,2-2,6,2,7s5.3-1.8,5-4c-0.6-4.4-0.6-5.4,0-7c0.7-2,3-2,4.5-1S83,5,83,7s0,3,2,3s1.4-4.1,2-6c0.5-1.6,2.4-3.1,4-3c1.6,0.1,5,0,5,4c0,1,0,2,4,2s2-6,4-6s2.4,1.8,3,4c1.3,4.9-1,7,1,9s2.9-0.5,4-2c2.9-3.9-1.4-6.1,1-9c2.1-2.5,4.4-3,6-1s-1,12,6,11s2-8,2-10s1.3-3,3-2s1,3,3,3s1-3,3.5-3s4.5,2,4.5,4s-1.3,5.5,0,8c1.3,2.4,5,0,5-1s-1-5-1-6s1-3,2.9-4s8.6-1.5,11.1,2c2.9,4.2-3,10,2,10s-1.4-6.8,2-11c2.2-2.7,6.4-2.4,8.4-1c3.6,2.4-3.4,11,0.6,12s3-3,3-5s0-7,2-7s1,2,1,3s0,3,2,3s0-6,2-6s2.9,2.8,3,3c2.2,4-1,8,2,8s3-2,3-5s-2-7,2-7s2,4,2,7s0,6,3.8,5S197,9,198,5s3-4,5.4-4s0.6,5-0.4,6s-2,5,3,5s1.6-4.1,2-7c0.2-1.4,0-4,2-4s2.2,4,4,4c1.6,0,1.9-3.7,4-4c2.1-0.4,5,1,5,4s0,7,3,7s1-3,1-6s3.2-3.9,4-4c1.2-0.2,5,0,5,4s-3,6,1,7s1-3,1-6s2-5,5-5s1,5,4,5s1-2,1-3s2-4,4-3s1,4,3,4s0-3,3-3s2,4,5,4s2-2,2-3s3-2,4.9,0c2.5,3,0.1,6,0.1,8s0.3,3,3.4,3c1.6,0,1.6-3,0.6-6s0.6-6.4,2-7c1.8-0.8,5.4,0.4,6,3c0.6,2.5-1,7-2,8s-1,3,1.3,3s2.8-1,2.8-2s-1-4.5,0-6c1.2-1.7,5.5-1.9,7,0c1.4,1.6-0.2,3.8,1,5c1.5,1.4,5.9,0.3,8-2.3V0H0z"}))},"curve-layered-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0v60c29.7,29.7,977.4,40,999.6,40H1000z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0v30c59.5,59.5,985.3,70,999.8,70H1000z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100V0H0.1l0,0c89,89.1,971.7,100,999.3,100H1000L1000,100z"}))},"curve-layered-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0.4,100c22.2,0,969.9-10.3,999.6-40V0H0v100H0.4z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0.2,100c14.5,0,940.3-10.5,999.8-70V0H0v100H0.2z"}),wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100h0.6c27.6,0,910.3-10.9,999.3-100l0,0H0V100L0,100z"}))},"curve-layered-4":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,30.1,9.9,0,40V0H1000z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,90.5,9.5,0,100V0H1000z"}),wp.element.createElement("path",{fill:e,opacity:.3,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,0C1000,0,60,10,0,70V0H1000z"}))},"curve-layered-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,969.9,9.9,1000,40V0H0z"}),wp.element.createElement("path",{fill:e,opacity:.5,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,909.5,9.5,1000,100V0H0z"}),wp.element.createElement("path",{fill:e,opacity:.3,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0c0,0,940,10,1000,70V0H0z"}))},"curve-6":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M630,99C266,99,0,1,0,1v99h1000V1C1000,1,994,99,630,99z"}))},"curve-8":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M370,99c364,0,630-98,630-98v99H0V1C0,1,6,99,370,99z"}))},"curve-7":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,1c0,0,6,98,370,98s630-98,630-98V0H0V1z"}))},"curve-5":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,1c0,0-6,98-370,98S0,1,0,1V0h1000V1z"}))},curve:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,1c0,0-136,98-500,98S0,1,0,1V0h1000V1z"}))},"curve-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,1v99h1000V1c0,0-136,98-500,98S0,1,0,1z"}))},"curve-1":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100h1000V0C1000,0,1000,100,0,100z"}))},"curve-2":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100H0V0C0,0,0,100,1000,100z"}))},"curve-3":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M1000,100C0,100,0,0,0,0s666.7,0,1000,0V100z"}))},"curve-4":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,100C1000,100,1000,0,1000,0S333.3,0,0,0V100z"}))},"clouds-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 280 30",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M273.5,16.2c-2.2-1.6-4.8-2.6-7.7-2.6c0-0.2,0-0.5,0-0.7c0-4.6-3.8-8.4-8.4-8.4c-2.5,0-4.8,1.1-6.3,2.9c-1.7-0.7-3.5-1.2-5.4-1.2c-7.2,0-13.1,5.7-13.3,12.8c-0.2,0-0.4,0-0.7,0c-2.4,0-4.8,0.6-6.8,1.7c-1.1-2.2-3.3-3.7-5.8-3.7c-3.6,0-6.5,2.9-6.5,6.5c0,0.5,0.1,1,0.2,1.5c-0.2,0-0.3,0-0.5,0c-3.4,0-6.4,1.7-8.2,4.4c-2.6-2.7-6.2-4.4-10.2-4.4c-1.8,0-3.6,0.4-5.2,1c-0.4-4.5-4.2-8-8.8-8c-0.3,0-0.7,0-1,0.1c-3.9-5.8-10.6-9.6-18.1-9.6c-4.9,0-9.3,1.6-13,4.3c-0.8-0.3-1.7-0.5-2.6-0.5c-3.8,0-6.9,3-7,6.8c-0.1,0-0.1,0-0.2,0c-4.1,0-8,1.4-11,3.8c-1.1-2.6-3.7-4.4-6.7-4.4c-0.5,0-1.1,0.1-1.6,0.2c-1-1.3-2.5-2.2-4.3-2.2c-1.5,0-2.9,0.7-3.9,1.7c-0.8-1.2-1.9-2.2-3.2-2.8c0.4-0.7,0.7-1.5,0.7-2.4c0-2.7-2.2-4.9-4.9-4.9c-1.9,0-3.5,1.1-4.3,2.6c-0.8-0.4-1.6-0.6-2.5-0.6c-2.9,0-5.4,2.2-5.6,5.1c-0.5-0.1-1-0.1-1.6-0.1c-4.2,0-7.6,2.8-8.8,6.6c-1.9-1.3-4.3-2-6.8-2c-5.2,0-9.6,3.2-11.5,7.7c-0.9-0.1-1.7-0.2-2.6-0.2c-0.2,0-0.3,0-0.5,0c0-5.2-4.3-9.5-9.5-9.5c-0.1,0-0.2,0-0.2,0C48.4,16,46.9,15,45,15c-2.7,0-4.9,2.2-4.9,4.9c0,0.4,0,0.7,0.1,1.1C39.2,20.3,38,20,36.7,20c-2.7,0-5.1,1.5-6.3,3.7c-0.4-0.1-0.8-0.1-1.2-0.1c-1.5,0-2.8,0.3-4,0.9c-3.4-4.1-8.6-6.8-14.4-6.8C6.7,17.8,3,19,0,21.1V30h280V13.1c-0.6-0.2-1.2-0.4-1.9-0.4C275.9,12.7,274.1,14.2,273.5,16.2z"}))},clouds:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 280 30",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M10.7,17.8c5.8,0,11,2.6,14.4,6.8c1.2-0.6,2.6-0.9,4-0.9c0.4,0,0.8,0,1.2,0.1c1.3-2.2,3.6-3.7,6.3-3.7c1.3,0,2.5,0.3,3.6,0.9c-0.1-0.3-0.1-0.7-0.1-1.1c0-2.7,2.2-4.9,4.9-4.9c1.9,0,3.4,1,4.3,2.6c0.1,0,0.2,0,0.2,0c5.2,0,9.5,4.2,9.5,9.5c0.2,0,0.3,0,0.5,0c0.9,0,1.8,0.1,2.6,0.2c1.9-4.5,6.3-7.7,11.5-7.7c2.5,0,4.8,0.7,6.8,2c1.1-3.8,4.6-6.6,8.8-6.6c0.5,0,1.1,0.1,1.6,0.1c0.3-2.9,2.7-5.1,5.6-5.1c0.9,0,1.7,0.2,2.5,0.6c0.8-1.5,2.4-2.6,4.3-2.6c2.7,0,4.9,2.2,4.9,4.9c0,0.9-0.3,1.7-0.7,2.4c1.3,0.7,2.4,1.7,3.2,2.8c1-1.1,2.3-1.7,3.9-1.7c1.8,0,3.3,0.9,4.3,2.2c0.5-0.1,1-0.2,1.6-0.2c3,0,5.6,1.8,6.7,4.4c3-2.4,6.9-3.8,11-3.8c0.1,0,0.1,0,0.2,0c0.1-3.8,3.2-6.8,7-6.8c0.9,0,1.8,0.2,2.6,0.5c3.6-2.7,8.1-4.3,13-4.3c7.5,0,14.2,3.8,18.1,9.6c0.3,0,0.6-0.1,1-0.1c4.6,0,8.4,3.5,8.8,8c1.6-0.6,3.3-1,5.2-1c4,0,7.6,1.7,10.2,4.4c1.8-2.6,4.8-4.4,8.2-4.4c0.2,0,0.3,0,0.5,0c-0.1-0.5-0.2-1-0.2-1.5c0-3.6,2.9-6.5,6.5-6.5c2.6,0,4.8,1.5,5.8,3.7c2-1.1,4.3-1.7,6.8-1.7c0.2,0,0.4,0,0.7,0c0.3-7.1,6.1-12.8,13.3-12.8c1.9,0,3.8,0.4,5.4,1.2c1.5-1.8,3.8-2.9,6.3-2.9c4.6,0,8.4,3.8,8.4,8.4c0,0.3,0,0.5,0,0.7c2.9,0.1,5.5,1,7.7,2.6c0.6-2,2.4-3.5,4.7-3.5c0.7,0,1.3,0.1,1.9,0.4V0H0v21.1C3,19,6.7,17.8,10.7,17.8z"}))},"book-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M627.7,68.5C504.4,29.9,500,1,500,1s-4.4,28.9-127.7,67.5C249,107.1,0,98.1,0,98.1v1.9h1000v-1.9C1000,98.1,751,107.1,627.7,68.5z"}))},book:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("path",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",d:"M0,0v1v97.1c0,0,249,9.1,372.3-29.6C495.6,29.9,500,1,500,1s4.4,28.9,127.7,67.5C751,107.1,1000,98.1,1000,98.1V1V0H0z"}))},"arrow-negative":function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 700 10",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg wp-block-getwid-section__divider-svg-negative"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"359,0 350,9 341,0 0,0 0,10 700,10 700,0 "}))},arrow:function(e,t){return wp.element.createElement("svg",{style:{height:t||void 0},x:"0px",y:"0px",viewBox:"0 0 700 10",preserveAspectRatio:"xMidYMax slice",className:"wp-block-getwid-section__divider-svg"},wp.element.createElement("polygon",{fill:e,className:"wp-block-getwid-section__divider-svg-fill",points:"350,9 341,0 359,0 "}))}}},function(e,t,n){"use strict";var a=n(8),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(1)),f=(n.n(h),n(7)),_=n.n(f),v=n(11),y=(n.n(v),n(13)),k=wp.element,C=k.Component,E=k.Fragment,O=window,j=O.jQuery,S=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.draggies={},e.state={needRender:!1},e.marginSizes={},e.paddingSizes={},e.sizesIsFilled=!1,e.initDragRullers=e.initDragRullers.bind(g()(e)),e}return w()(t,e),c()(t,[{key:"getPaddingRight",value:function(){var e=this.props,t=e.paddingRight,n=e.paddingRightValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingLeft",value:function(){var e=this.props,t=e.paddingLeft,n=e.paddingLeftValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingTop",value:function(){var e=this.props,t=e.paddingTop,n=e.paddingTopValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getPaddingBottom",value:function(){var e=this.props,t=e.paddingBottom,n=e.paddingBottomValue;return""==t?parseFloat(this.paddingSizes.default):parseFloat("custom"==t?n:t&&"none"!=t?this.paddingSizes[t]:0)}},{key:"getMarginRight",value:function(){var e=this.props,t=e.marginRight,n=e.marginRightValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginLeft",value:function(){var e=this.props,t=e.marginLeft,n=e.marginLeftValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginTop",value:function(){var e=this.props,t=e.marginTop,n=e.marginTopValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getMarginBottom",value:function(){var e=this.props,t=e.marginBottom,n=e.marginBottomValue;return""==t?parseFloat(this.marginSizes.default):parseFloat("custom"==t?""!=n&&"0px"!=n&&void 0!=n?n:0:t&&"none"!=t?this.marginSizes[t]:0)}},{key:"getOffset",value:function(e){var t,n=this.props,a=n.clientId,l=n.baseClass,i=j("#block-".concat(a)),o=i.find(".".concat(l)).first(),r=0;return"left"==e?(t=this.getPaddingLeft(),r=this.getMarginLeft()):"right"==e&&(t=this.getPaddingRight(),r=this.getMarginRight()),isNaN(r)&&(r=0),o.outerWidth()-t-r}},{key:"calculateAllowedWidth",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"margin",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",l=parseFloat(t.css("margin-left")),i=parseFloat(t.css("margin-right")),o=parseFloat(t.css("padding-left")),r=parseFloat(t.css("padding-right"));return"margin"==n&&("left"==a&&(l=this.getMarginLeft()),"right"==a&&(i=this.getMarginRight())),"padding"==n&&("left"==a&&(o=this.getPaddingLeft()),"right"==a&&(r=this.getPaddingRight())),e-(l+i+o+r)-this.minWidth-10}},{key:"initDragRullers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"margin",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"down",i=this.props,o=i.clientId,r=i.baseClass,c=i.setAttributes,s=i.changeState,d=t.charAt(0).toUpperCase()+t.slice(1),u=n.charAt(0).toUpperCase()+n.slice(1),p=j("#block-".concat(o)),m=p.find(".".concat(r)).first(),g=m.children(".".concat(r,"__wrapper")),b=m.children(".".concat(r,"__").concat(t,"-").concat(n,"-area")),w=m.children().find(".".concat(r,"__").concat(t,"-").concat(n,"-label")),h=m.children().find(".".concat(r,"__").concat(t,"-").concat(n,"-drag-zone"));if(0!=h.length&&0!=b.length){if(Object.keys(this.draggies).length){var f=!0,_=Object(v.get)(this.draggies,[n,t]);if(_&&_.element.className==h[0].className&&(f=!1),!f)return}Object(v.set)(this.draggies,[n,t],new Draggabilly(h[0],{containment:b,axis:"top"==t||"bottom"==t?"y":"x"}));var y,k,C,E,O=Object(v.get)(this.draggies,[n,t]);O.on("dragStart",function(e){b.addClass("active-drag-area"),b.removeClass("empty-ruller"),w.removeClass("empty-label"),s({isLockedPaddingsOnDesktop:!1,isLockedMarginsOnDesktop:!1}),"top"==t||"bottom"==t?y=b.height():k=b.width()}),O.on("dragMove",function(i,o,c){var s=e.props,p=s.marginRightValue,h=s.marginLeftValue;if(C!=Math.floor(c.y)){var f,_,O,S;S=b.width(),"down"==a?O=Math.abs(y-Math.floor(c.y)):"up"==a&&(O=Math.abs(y+Math.floor(c.y)));var x=function(){b.height(O),b.find(".".concat(r,"__").concat(t,"-").concat(n,"-label")).html("".concat(u," ").concat(d,": ").concat(O,"px"))},T=g.innerWidth(),N=m.outerWidth(),A=function(t,n){var a=Object(v.get)(e.draggies,[t,n]);return a?a.$element.parent():void 0},M=A("padding","top"),B=A("padding","left"),I=A("padding","right"),L=A("padding","bottom"),P=A("margin","top"),z=A("margin","bottom"),R=e.calculateAllowedWidth(N,g,n,t),D=Math.abs(Math.floor(c.x));if(void 0===E&&(E=Math.floor(c.x)),"padding"==n)if("top"==t)x(),I&&I.css({top:O}),B&&B.css({top:O});else if("right"==t){var V=e.getPaddingLeft(),F=T-e.minWidth-V,H=Math.abs(k-Math.floor(c.x));if(!(H<=F))return;S=H;var W=0;Object(v.has)(e.draggies,["margin","right"])&&""!=p&&void 0!=p&&(W=Object(v.get)(e.draggies,["margin","right"]).$element.width()),f=N-S-W,I.css({right:W}),I.css({left:f})}else if("bottom"==t)x(),I&&I.css({bottom:O}),B&&B.css({bottom:O});else if("left"==t){var U=e.getPaddingRight(),G=T-e.minWidth-U,q=Math.abs(k+Math.floor(c.x));if(!(q<=G))return;S=q;var Q=0;Object(v.has)(e.draggies,["margin","left"])&&""!=h&&void 0!=h&&(Q=Object(v.get)(e.draggies,["margin","left"]).$element.width()),_=N-S-Q,B.css({left:Q}),B.css({right:_})}if("margin"==n)if("top"==t)x();else if("right"==t){var K=e.getMarginRight(),J=Math.abs(k-Math.floor(c.x)),Z=function(){S=J;var t=N-e.getPaddingRight()-S;j.each([M,I,L,P,z],function(e,t){t&&t.css({right:S})}),I&&I.css({left:t})};if(E>Math.floor(c.x)){if(!(D<=R))return;Z()}else J<R+K&&Z();E=Math.floor(c.x),b.width(S)}else if("bottom"==t)x();else if("left"==t){var $=e.getMarginLeft(),Y=Math.abs(k+Math.floor(c.x)),X=function(){S=Y;var t=N-e.getPaddingLeft()-S;j.each([M,B,L,P,z],function(e,t){t&&t.css({left:S})}),B&&B.css({right:t})};if(E<Math.floor(c.x)){if(!(D<=R))return;X()}else Y<R+$&&X();E=Math.floor(c.x),b.width(S)}"right"!=t&&"left"!=t||(S<100?w.addClass("label-corner"):w.removeClass("label-corner"),b.find(".".concat(r,"__").concat(t,"-").concat(n,"-label")).html("".concat(u," ").concat(d,": ").concat(S,"px"))),g.css(l()({},n+d,"top"==t||"bottom"==t?"margin"!=n?O:"":S))}"top"!=t&&"bottom"!=t||(C=Math.floor(c.y))}),O.on("dragEnd",function(){var e;b.removeClass("active-drag-area"),c((e={},l()(e,n+d,"custom"),l()(e,n+d+"Value","top"==t||"bottom"==t?b.height()+"px":b.width()+"px"),e))})}}},{key:"initDraggies",value:function(){if(this.props.isLayoutSet){var e=this.initDragRullers;e("top","margin","up"),e("top","padding","up"),e("right","margin","left"),e("right","padding","left"),e("bottom","margin","up"),e("bottom","padding","up"),e("left","margin","right"),e("left","padding","right")}}},{key:"dropDraggies",value:function(){var e=this,t=["margin","padding"],n=["top","right","bottom","left"];j.each(t,function(t,a){j.each(n,function(t,n){var l=Object(v.get)(e.draggies,[a,n]);l&&l.destroy()})}),this.draggies={}}},{key:"checkDisabledRuller",value:function(){var e=this,t=this.props,n=t.paddingTop,a=t.paddingBottom,l=t.paddingLeft,i=t.paddingRight,o=this.props,r=o.marginTop,c=o.marginBottom,s=o.marginLeft,d=o.marginRight,u={paddingTop:n,paddingBottom:a,paddingLeft:l,paddingRight:i},p={marginTop:r,marginBottom:c,marginLeft:s,marginRight:d},m=function(t,n){j.each(t,function(t,a){if("none"==a){var l=t.replace(n,"").toLowerCase(),i=Object(v.get)(e.draggies,[n,l]);i&&i.destroy(),Object(v.unset)(e.draggies,[n,l])}})};m(u,"padding"),m(p,"margin")}},{key:"initSizes",value:function(){var e=this,t=this.props,n=t.baseClass,a=t.clientId,l=j("#block-".concat(a)),i=l.find(".".concat(n)).first(),o=i.children(".".concat(n,"__wrapper")),r=["padding","margin"],c=["top","right","bottom","left"],s=["small","medium","normal","large"],d=function(){e.setState({needRender:!e.state.needRender})};j.each(r,function(t,n){j.each(c,function(t,a){j.each(s,function(t,l){var r="getwid-".concat(n,"-").concat(a,"-").concat(l),c=function(e){if(!Object(v.has)(e,[l])){var t=j(".".concat(r)).css("".concat(n,"-").concat(a));Object(v.set)(e,[l],t),d()}};"padding"==n?o.hasClass(r)&&c(e.paddingSizes):"margin"==n&&(["top","bottom"].includes(a)?i.hasClass(r)&&c(e.marginSizes):["left","right"].includes(a)&&o.hasClass(r)&&c(e.marginSizes))})})}),this.initDefaultSizes(i,o,d);var u=!0;j.each(s,function(t,n){Object(v.has)(e.paddingSizes,[n])&&Object(v.has)(e.marginSizes,[n])||(u=!1)}),u&&(this.sizesIsFilled=!0)}},{key:"initDefaultSizes",value:function(e,t,n){var a=this,l=this.props,i=l.paddingRight,o=l.paddingLeft,r=l.paddingTop,c=l.paddingBottom,s=this.props,d=s.marginRight,u=s.marginLeft,p=s.marginTop,m=s.marginBottom,g={paddingRight:i,paddingLeft:o,paddingTop:r,paddingBottom:c,marginRight:d,marginLeft:u,marginTop:p,marginBottom:m};j.each(Object.keys(g),function(l,i){if(""==g[i]){var o=Object(v.head)(i.split(Object(v.head)(i.match(/[A-Z]/g)))),r=i.replace(o,"").toLowerCase(),c=function(e,t){Object(v.has)(e,["default"])||(Object(v.set)(e,["default"],t.css("".concat(o,"-").concat(r))),n())};if("padding"==o)c(a.paddingSizes,t);else if("margin"==o)switch(r){case"top":case"bottom":c(a.marginSizes,e);break;case"left":case"right":c(a.marginSizes,t)}}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;this.sizesIsFilled||(this.waitLoadContent=setInterval(function(){"complete"==document.readyState&&(clearInterval(n.waitLoadContent),n.initSizes())},1));var a=this.props,l=a.isLayoutSet,i=a.clientId,o=a.baseClass;if(l){var r=j("#block-".concat(i)),c=r.find(".".concat(o)).first();this.minWidth=parseFloat(c.children(".".concat(o,"__wrapper")).css("min-width"))}var s=this.props,d=s.isSelected,u=s.showRullers;Object(v.isEqual)(d,e.isSelected)&&Object(v.isEqual)(u,e.showRullers)||d&&u||this.dropDraggies(),Object(v.isEmpty)(this.draggies)||this.checkDisabledRuller(),this.initDraggies()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.clientId,a=t.baseClass,l=j("#block-".concat(n)),i=l.find(".".concat(a)).first();this.sizesIsFilled||(this.waitLoadContent=setInterval(function(){"complete"==document.readyState&&(clearInterval(e.waitLoadContent),e.initSizes())},1)),this.initDraggies(),Object(y.c)(i,a,function(){if(Object(v.has)(e.draggies,["padding","right"])){var t=e.getOffset("right");Object(v.get)(e.draggies,["padding","right"]).$element.parent().css({left:t})}if(Object(v.has)(e.draggies,["padding","left"])){var n=e.getOffset("left");Object(v.get)(e.draggies,["padding","left"]).$element.parent().css({right:n})}})}},{key:"componentWillUnmount",value:function(){this.dropDraggies()}},{key:"render",value:function(){var e=this.props,t=e.paddingBottom,n=e.paddingRight,a=e.paddingLeft,l=e.paddingTop,i=this.props,o=i.marginBottom,r=i.marginRight,c=i.marginLeft,s=i.marginTop,d=this.props,u=d.paddingBottomValue,p=d.paddingRightValue,m=d.paddingLeftValue,g=d.paddingTopValue,b=this.props,w=b.marginBottomValue,f=b.marginRightValue,v=b.marginLeftValue,y=b.marginTopValue,k=this.props,C=k.baseClass,O=k.showRullers,j=k.isSelected;return wp.element.createElement(E,null,O&&j&&"none"!=s&&wp.element.createElement("div",{className:_()("".concat(C,"__top-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==s&&("0px"==y||""==y||!y)||0==this.getMarginTop(),"hide-ruller":"custom"==s&&(parseFloat(y)<0||""==y||!y)}),style:{height:this.getMarginTop(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__top-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==s&&("0px"==y||""==y||!y||0==this.getMarginTop())})},Object(h.__)("Margin Top: ","getwid")+("custom"==s?y:""==s?this.getMarginTop()+"px":this.marginSizes[s])),wp.element.createElement("div",{className:"".concat(C,"__top-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=r&&wp.element.createElement("div",{className:_()("".concat(C,"__right-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==r&&("0px"==f||""==f||!f)||0==this.getMarginRight(),"hide-ruller":"custom"==r&&(parseFloat(f)<0||""==f||!f)}),style:{width:this.getMarginRight()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__right-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==r&&("0px"==f||""==f||!f||0==this.getMarginRight()),"label-corner":this.getMarginRight()<100})},Object(h.__)("Margin Right: ","getwid")+("custom"==r?f:""==r?this.getMarginRight()+"px":this.marginSizes[r])),wp.element.createElement("div",{className:"".concat(C,"__right-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=o&&wp.element.createElement("div",{className:_()("".concat(C,"__bottom-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==o&&("0px"==w||""==w||!w)||0==this.getMarginBottom(),"hide-ruller":"custom"==o&&(parseFloat(w)<0||""==w||!w)}),style:{height:this.getMarginBottom(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__bottom-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==o&&("0px"==w||""==w||!w||0==this.getMarginBottom())})},Object(h.__)("Margin Bottom: ","getwid")+("custom"==o&&""!=w?w:""==o?this.getMarginBottom()+"px":""!=w?this.marginSizes[o]:"")),wp.element.createElement("div",{className:"".concat(C,"__bottom-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=c&&wp.element.createElement("div",{className:_()("".concat(C,"__left-margin-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==c&&("0px"==v||""==v||!v)||0==this.getMarginLeft(),"hide-ruller":"custom"==c&&(parseFloat(v)<0||""==v||!v)}),style:{width:"custom"!=c||v?this.getMarginLeft():void 0}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__left-margin-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==c&&("0px"==v||""==v||!v||0==this.getMarginLeft()),"label-corner":this.getMarginLeft()<100})},Object(h.__)("Margin Left: ","getwid")+("custom"==c?v:""==c?this.getMarginLeft()+"px":this.marginSizes[c])),wp.element.createElement("div",{className:"".concat(C,"__left-margin-drag-zone ").concat(C,"__spacing-drag-zone")}))),this.props.children,O&&j&&"none"!=l&&wp.element.createElement("div",{className:_()("".concat(C,"__top-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==l&&("0px"==g||""==g||!g)||0==this.getPaddingTop(),"hide-ruller":"custom"==l&&(parseFloat(g)<0||""==g||!g)}),style:{height:this.getPaddingTop(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__top-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==l&&("0px"==g||""==g||!g||0==this.getPaddingTop())})},Object(h.__)("Padding Top: ","getwid")+("custom"==l?g:""==l?this.getPaddingTop()+"px":this.paddingSizes[l])),wp.element.createElement("div",{className:"".concat(C,"__top-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=n&&wp.element.createElement("div",{className:_()("".concat(C,"__right-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==n&&("0px"==p||""==p||!p)||0==this.getPaddingRight(),"hide-ruller":"custom"==n&&(parseFloat(p)<0||""==p||!p)}),style:{left:this.getOffset("right"),top:this.getPaddingTop(),bottom:this.getPaddingBottom(),right:this.getMarginRight()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__right-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==n&&("0px"==p||""==p||!p||0==this.getPaddingRight()),"label-corner":this.getPaddingRight()<100})},Object(h.__)("Padding Right: ","getwid")+("custom"==n?p:""==n?this.getPaddingRight()+"px":this.paddingSizes[n])),wp.element.createElement("div",{className:"".concat(C,"__right-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=t&&wp.element.createElement("div",{className:_()("".concat(C,"__bottom-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==t&&("0px"==u||""==u||!u)||0==this.getPaddingBottom(),"hide-ruller":"custom"==t&&(parseFloat(u)<0||""==u||!u)}),style:{height:this.getPaddingBottom(),right:this.getMarginRight(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__bottom-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==t&&("0px"==u||""==u||!u||0==this.getPaddingBottom())})},Object(h.__)("Padding Bottom: ","getwid")+("custom"==t?u:""==t?this.getPaddingBottom()+"px":this.paddingSizes[t])),wp.element.createElement("div",{className:"".concat(C,"__bottom-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))),O&&j&&"none"!=a&&wp.element.createElement("div",{className:_()("".concat(C,"__left-padding-area"),"".concat(C,"__spacing-area"),{"empty-ruller":"custom"==a&&("0px"==m||""==m||!m)||0==this.getPaddingLeft(),"hide-ruller":"custom"==a&&(parseFloat(m)<0||""==m||!m)}),style:{right:this.getOffset("left"),top:this.getPaddingTop(),bottom:this.getPaddingBottom(),left:this.getMarginLeft()}},wp.element.createElement(E,null,wp.element.createElement("div",{className:_()("".concat(C,"__left-padding-label ").concat(C,"__spacing-label"),{"empty-label":"custom"==a&&("0px"==m||""==m||!m||0==this.getPaddingLeft()),"label-corner":this.getPaddingLeft()<100})},Object(h.__)("Padding Left: ","getwid")+("custom"==a?m:""==a?this.getPaddingLeft()+"px":this.paddingSizes[a])),wp.element.createElement("div",{className:"".concat(C,"__left-padding-drag-zone ").concat(C,"__spacing-drag-zone")}))))}}]),t}(C);t.a=S},function(e,t,n){"use strict";var a=n(10),l=n.n(a),i=n(2),o=n.n(i),r=n(4),c=n.n(r),s=n(5),d=n.n(s),u=n(3),p=n.n(u),m=n(12),g=n.n(m),b=n(6),w=n.n(b),h=(n(0),n(95)),f=(n.n(h),n(7)),_=n.n(f),v=n(1),y=(n.n(v),window),k=(y.jQuery,wp.components.Popover),C=wp.element,E=C.Component,O=(C.Fragment,C.createRef),j=function(e){function t(){var e;return o()(this,t),e=d()(this,p()(t).apply(this,arguments)),e.toggle=e.toggle.bind(g()(e)),e.close=e.close.bind(g()(e)),e.closeIfFocusOutside=e.closeIfFocusOutside.bind(g()(e)),e.containerRef=O(),e.state={isOpen:!1},e}return w()(t,e),c()(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,a=this.props.onToggle;t.isOpen!==n&&a&&a(n)}},{key:"toggle",value:function(){this.setState(function(e){return{isOpen:!e.isOpen}})}},{key:"closeIfFocusOutside",value:function(){this.containerRef.current.contains(document.activeElement)||document.activeElement.closest('[role="dialog"]')||this.close()}},{key:"close",value:function(e){this.props.onClose&&this.props.onClose(),(!0===e||this.props.onClickOutside)&&this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this,t=this.state.isOpen,n=this.props,a=n.renderContent,i=n.renderToggle,o=n.position,r=void 0===o?"bottom":o,c=n.className,s=n.contentClassName,d=n.expandOnMobile,u=n.headerTitle,p=n.focusOnMount,m=n.popoverProps,g={isOpen:t,onToggle:this.toggle,onClose:this.close};return wp.element.createElement("div",{className:_()("components-dropdown",c),ref:this.containerRef},i(g),t&&wp.element.createElement(k,l()({onClick:function(e){e.stopPropagation()},className:s,position:r,onClose:function(){e.close()},onFocusOutside:this.closeIfFocusOutside,expandOnMobile:d,headerTitle:u,focusOnMount:p},m),a(g)))}}]),t}(E);t.a=j},function(e,t){},function(e,t,n){function a(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,n){var a=l(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(n):i.value}},a(t,n,i||t)}var l=(n(3),n(97));e.exports=a},function(e,t,n){function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}var l=n(3);e.exports=a},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){/*!
|
7 |
*
|
8 |
* React FontIconPicker
|
9 |
*
|
20 |
* https://opensource.org/licenses/MIT
|
21 |
*
|
22 |
*/
|
|