Page Builder: Live Composer – drag and drop website builder (visual front end site editor) - Version 1.1.1

Version Description

  • August 17th 2016 =

Report any bugs on GitHub See latest changes in details with animated gifs and videos

Download this release

Release Info

Developer LiveComposer
Plugin Icon 128x128 Page Builder: Live Composer – drag and drop website builder (visual front end site editor)
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

css/builder.min.css CHANGED
@@ -1 +1 @@
1
- .dslc-clear,.dslc-clearfix:after,.dslc-module-heading:after,.sp-cf:after{clear:both}html{top:-32px;position:relative}body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body.toplevel_page_livecomposer_editor{background:#464646}.inline-editor,.inline-editor *{-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}body .dslca-editable-content:hover,body .dslca-editable-content:hover *,body .inline-editor:hover,body .inline-editor:hover *{cursor:text}div:hover,div>span:hover,span>span:hover{cursor:default}body a{text-decoration:none}body a:focus{color:inherit;box-shadow:none}#dslc-preview-error{text-align:center;padding:160px 0 0;text-transform:uppercase;letter-spacing:2px}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslca-container *{padding:0;margin:0;border:none;outline:0}.dslca-disable-selection{-ms-user-select:none!important;-moz-user-select:-moz-none!important;-khtml-user-select:none!important;-webkit-user-select:none!important;user-select:none!important}.dslca-container p{margin-bottom:20px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container select,.dslca-container textarea{background:rgba(255,255,255,.1);border:0;color:#fff;padding:7px 10px;font-family:'Open Sans',sans-serif;font-size:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dslca-container,.dslca-container *,.dslca-container ::after,.dslca-container ::before,.dslca-module-manage,.dslca-module-manage *,.dslca-module-manage ::after,.dslca-module-manage ::before,.dslca-sections{box-sizing:border-box}.dslca-container .dslca-module-edit-option-slider input[type=number]{padding-right:30px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container input[type=email]{height:auto}.dslca-container select{line-height:12px;padding:6px 10px;min-height:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.dslca-module-edit-option-select .dslca-icon,.dslca-modules-section-edit-option-select .dslca-icon{position:absolute;right:40px;top:64px;cursor:pointer}.dslca-container input[type=submit]{background:#6ba253;border:0;color:#fff;cursor:pointer;padding:8px 10px;line-height:17px}.dslca-container{font-family:'Open Sans',sans-serif;bottom:0;color:#fff;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-show-js-error-hook{padding:10px;bottom:-1px;display:inline-block;color:rgba(199,199,199,.64)!important;visibility:hidden;float:left}.dslca-show-js-error-hook:hover{color:#ff4040}.dslca-show-js-error-hook .dslca-icon{color:#ff4040;margin-right:5px;margin-left:8px}#dslca-js-errors-report{display:none}.dslca-error-report{display:block;overflow:scroll;text-align:left;white-space:nowrap;font-size:12px;max-height:120px;-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.dslca-error-report:hover{cursor:text}.dslca-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-header .dslca-currently-editing{position:absolute;bottom:45px;left:5px;background-color:rgba(71,70,70,.49);color:rgba(255,255,255,.5);padding:6px 10px;border-radius:3px;font-weight:400;font-family:'Open Sans',sans-serif;font-size:10px;line-height:1;display:none;white-space:nowrap;letter-spacing:.4px;text-transform:uppercase;cursor:pointer}.dslca-header .dslca-currently-editing .dslca-icon{margin-right:5px}.dslca-header .dslca-currently-editing strong{color:#fff}.dslca-header .dslca-go-to-section-hook,.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-options-filter-hook,.dslca-pseudo-header .dslca-pseudo-options-filter-hook{bottom:0;background:#313131;border-radius:3px 3px 0 0;color:#adadad;cursor:pointer;display:block;float:left;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:13px 15px;position:relative}.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-pseudo-options-filter-hook,.dslca-pseudo-options-filter-hook{display:none;margin-right:3px}.dslca-header .dslca-go-to-section-hook.dslca-active,.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{border-top-color:#4777c2;background:#3b6fbe;color:#fff;cursor:default}.dslca-header .dslca-options-filter-hook .dslca-icon,.dslca-header .dslca-row-options-filter-hook .dslca-icon,.dslca-pseudo-header .dslca-pseudo-options-filter-hook .dslca-icon{margin-right:4px}.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{background:#5890e5}.dslca-header .dslca-go-to-section-templates.dslca-active{border-top-color:#bf7671;background:#a94640}.dslca-header .dslca-go-to-section-hook .dslca-icon{font-weight:400}.dslca-module-edit-actions,.dslca-pseudo-module-edit-actions,.dslca-row-edit-actions{display:none;float:left;margin-left:4px;margin-top:1px}.dslca-module-edit-cancel,.dslca-module-edit-save,.dslca-prompt-modal-cancel-hook,.dslca-prompt-modal-confirm-hook,.dslca-pseudo-module-edit-cancel,.dslca-pseudo-module-edit-save,.dslca-row-edit-cancel,.dslca-row-edit-save,.dslca-wp-editor-cancel-hook,.dslca-wp-editor-save-hook{background:#78ca4f;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:10px 12px;margin-right:6px;text-decoration:none}.dslca-module-edit-cancel,.dslca-prompt-modal-cancel-hook,.dslca-pseudo-module-edit-cancel,.dslca-row-edit-cancel,.dslca-wp-editor-cancel-hook{background:#e55f5f}.dslca-module-edit-save:hover,.dslca-prompt-modal-confirm-hook:hover,.dslca-pseudo-module-edit-save:hover,.dslca-row-edit-save:hover,.dslca-wp-editor-save-hook:hover{background:#91dc1e;color:#fff}.dslca-module-edit-cancel:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-pseudo-module-edit-cancel:hover,.dslca-row-edit-cancel:hover,.dslca-wp-editor-cancel-hook:hover{background:#f27562;color:#fff}.dslca-actions,.dslca-pseudo-actions{position:absolute;bottom:100%;right:0;padding-bottom:5px;padding-right:5px}.dslca-sections{background:#4A7AC3}.dslca-pseudo-section,.dslca-section.dslca-module-edit,.dslca-section.dslca-modules-section-edit{background:#5890e5}.dslca-modal.dslca-modal-templates-export,.dslca-modal.dslca-modal-templates-import,.dslca-modal.dslca-modal-templates-save,.dslca-section.dslca-templates,.dslca-section.dslca-templates-load{background:#ca564f}.dslca-section{display:none;position:relative}.dslca-section-back{display:block;float:left;width:32px;line-height:74px;text-align:center;color:#fff}.dslca-section-back:hover{background:#e25c54;color:#fff}.dslca-section-title{display:block;float:left;background:#3b6fbe;color:#fff;font-family:'Open Sans',sans-serif;font-size:17px;line-height:1;padding:28px 25px}.dslca-section-title:hover,.dslca-section-title:hover *{cursor:pointer}.dslca-templates .dslca-section-title,.dslca-templates-load .dslca-section-title,.dslca-templates-save .dslca-section-title{background:#a94640}.dslca-section-title-filter{position:relative;cursor:pointer}.dslca-section-title-filter .dslca-icon{color:rgba(255,255,255,.5);margin-left:10px;vertical-align:top}.dslca-section-title-filter-options{background:#5890E5;border-radius:3px 3px 0 0;bottom:35px;display:none;min-width:100px;left:-10px;position:absolute;z-index:999999;box-shadow:0 2px 8px 0 rgba(0,0,0,.21)}.dslca-section-title-filter-options a{display:block;cursor:pointer;margin:1px 0 0;padding:10px 13px;border-top:1px solid rgba(0,0,0,.09);font-size:13px;white-space:nowrap;color:#fff}.dslca-section-title-filter-options a:hover{background:#5890E5}.dslca-section.dslca-templates-load .dslca-section-title-filter-options{background:#CA564F}.dslca-section.dslca-templates-load .dslca-section-title-filter-options a:hover{background:#e25c54}.dslca-subsection{display:none}.dslca-module{color:#fff;display:inline-block;font-family:'Roboto Condensed',sans-serif;font-size:15px;font-weight:400;line-height:1;padding:2px 12px 9px;background:#5890e5;margin:4px 2px;box-shadow:0 1px 3px 0 rgba(0,0,0,.15),-1px 1px 0 0 rgba(255,255,255,.05) inset;border-radius:2px;text-align:center;min-width:70px;transition:transform 50ms linear 10ms;z-index:1;position:relative}.dslca-module[data-id=DSLC_Staff],.dslca-module[data-id=DSLC_Separator],.dslca-module[data-id=DSLC_Notification],.dslca-module[data-id=DSLC_Sliders]{margin-right:14px}.dslca-module[data-id=DSLC_M_A]{margin-left:5px;margin-right:14px;background:#b2b7bc;box-shadow:none}.dslca-module[data-id=DSLC_M_A] .dslca-icon{color:#fff}.dslca-module[data-id=DSLC_M_A]:hover{background:#BDC3C9}.dslca-module:hover{background:#6b9ff1;box-shadow:-2px 4px 3px 0 rgba(0,0,0,.19),-1px 1px 0 0 rgba(255,255,255,.05) inset;transform:translate(1px,-2px)}div.dslca-module:hover,div.dslca-module:hover *{color:#fff;cursor:grab;cursor:-webkit-grab}div.dslca-module.dslca-module-dragging{position:relative;opacity:1}.dslc-module-front.dslca-module-dragging{box-shadow:none!important;animation:none!important}.dslc-module-front.dslca-module-ghost{background:rgba(229,163,88,.28)}div.dslca-module.dslca-module-dragging,div.dslca-module.dslca-module-dragging *,div.dslca-module.dslca-module-dragging:hover,div.dslca-module.dslca-module-dragging:hover *{cursor:grabbing;cursor:-webkit-grabbing}.dslca-manage-action.dslca-move-module-hook:hover,.dslca-manage-action.dslca-move-module-hook:hover *,.dslca-manage-action.dslca-move-modules-area-hook:hover,.dslca-manage-action.dslca-move-modules-area-hook:hover *,.dslca-manage-action.dslca-move-modules-section-hook:hover,.dslca-manage-action.dslca-move-modules-section-hook:hover *{cursor:grab;cursor:-webkit-grab}.dslca-module .dslca-icon{color:#AECEF9;vertical-align:top;font-size:20px;display:block;line-height:41px;text-align:center;text-shadow:0 1px rgba(0,0,0,.05)}.dslca-module.ui-draggable-dragging .dslca-icon{margin-right:0}.dslca-module-edit{overflow:hidden;position:relative}.dslca-module-edit-options,.dslca-modules-section-edit-options,.dslca-pseudo-module-edit-options{padding:16px 15px 5px;overflow-x:auto;min-height:58px;transform:translate(0,0)}.dslca-module-edit-option,.dslca-modules-section-edit-option,.dslca-pseudo-module-edit-option{display:table-cell;padding-bottom:20px;padding-right:30px;padding-top:30px;min-width:180px;position:relative}.dslca-module-edit-option-hidden{display:none!important}.dslca-module-edit-option input[type=text],.dslca-module-edit-option input[type=text]:focus,.dslca-module-edit-option input[type=number],.dslca-module-edit-option input[type=number]:focus,.dslca-module-edit-option input[type=email],.dslca-module-edit-option input[type=email]:focus,.dslca-module-edit-option select,.dslca-module-edit-option select:focus,.dslca-module-edit-option textarea,.dslca-module-edit-option textarea:focus,.dslca-pseudo-module-edit-field{background:#6c9fed;border:1px solid #447bce;border-radius:3px;width:100%;min-width:140px;height:auto}.dslca-module-edit-option-text,.dslca-pseudo-module-edit-option{width:235px}.dslca-module-edit-option-textarea{width:500px}.dslca-module-edit-label,.dslca-modules-section-edit-label,.dslca-pseudo-module-edit-label{color:#fff;display:block;font-family:'Open Sans',sans-serif;font-weight:400;font-size:13px;line-height:1;margin-bottom:10px;padding-right:40px;white-space:nowrap;position:relative}.dslca-module-edit-field-font{min-width:140px}.dslca-module-edit-field-font-wrapper,.dslca-module-edit-field-icon-wrapper{display:table-cell;padding-right:5px;position:relative}.dslca-module-edit-field-font,.dslca-module-edit-field-icon{vertical-align:middle}.dslca-options-iconbutton{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;cursor:pointer;display:table-cell;height:32px;text-align:center;vertical-align:middle;padding:0 10px}.dslca-options-iconbutton.dslca-module-edit-field-font-prev{border-top-right-radius:0;border-bottom-right-radius:0}.dslca-options-iconbutton.dslca-module-edit-field-font-next{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.dslca-options-iconbutton .dslca-icon{color:#8db6f3;font-size:12px;line-height:30px}.dslca-module-edit-field-font-suggest,.dslca-module-edit-field-icon-suggest{color:#fff;color:rgba(255,255,255,.5);position:absolute;left:11px;top:0;line-height:32px;font-family:"Open Sans",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px}.dslca-module-edit-option-checkbox{white-space:nowrap;width:auto}.dslca-module-edit-option-checkbox input[type=checkbox]{display:none}.dslca-module-edit-option-checkbox-wrapper{display:table-cell;background:#3b6fbe;border-radius:3px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-checkbox-single{padding:6px 8px;display:table-cell}.dslca-module-edit-option-checkbox-hook{cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-module-edit-option-radio{width:auto}.dslca-module-edit-option-radio input[type=radio]{vertical-align:bottom}.dslca-module-edit-option-radio-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-radio-single{margin:6px;display:inline-block;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-field-icon-switch-set{position:absolute;margin-top:8px;font-size:10px;line-height:13px;cursor:pointer}.dslca-module-edit-field-icon-switch-set .dslca-icon{color:rgba(255,255,255,.7);margin-right:4px}.dslca-module-edit-field-icon-switch-sets{background:#fff;color:#8a8a8a;font-family:'Open Sans',sans-serif;font-size:13px;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-switch-sets span{display:block;padding:5px 10px;cursor:pointer;border-radius:3px}.dslca-module-edit-field-icon-switch-sets span:hover{background:rgba(0,0,0,.1)}.dslca-module-edit-field-icon-switch-sets span.dslca-active{background:#5890e5;color:#fff}.dslca-module-edit-option-box_shadow,.dslca-module-edit-option-text_shadow{width:auto}.dslca-module-edit-option-box-shadow-wrapper,.dslca-module-edit-option-text-shadow-wrapper{display:table-cell;background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:2px 10px;font-size:0}.dslca-module-edit-option-box-shadow-single,.dslca-module-edit-option-text-shadow-single{display:table-cell;width:auto;line-height:1;vertical-align:middle;white-space:nowrap;padding-left:20px;position:relative}.dslca-module-edit-option-box-shadow-single input[type=checkbox],.dslca-module-edit-option-text-align input[type=checkbox]{display:none}.dslca-module-edit-option-box-shadow-single:first-child,.dslca-module-edit-option-text-shadow-single:first-child{padding-left:0}.dslca-module-edit-option-box-shadow-single span,.dslca-module-edit-option-text-shadow-single span{font-size:12px;margin-right:10px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single input[type=text],.dslca-module-edit-option-box-shadow-single input[type=text]:focus,.dslca-module-edit-option-box-shadow-single input[type=number],.dslca-module-edit-option-box-shadow-single input[type=number]:focus,.dslca-module-edit-option-text-shadow-single input[type=text],.dslca-module-edit-option-text-shadow-single input[type=text]:focus,.dslca-module-edit-option-text-shadow-single input[type=number],.dslca-module-edit-option-text-shadow-single input[type=number]:focus{width:60px!important;min-width:auto;padding:3px 7px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook{margin-right:0}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook .dslca-icon{margin-left:10px;margin-right:0;font-size:13px;font-weight:400}.dslca-module-edit-option-text-align{width:auto}.dslca-module-edit-option-text-align-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px;font-size:0;display:table-cell}.dslca-module-edit-option-text-align-single{display:table-cell;font-size:14px;text-align:center;line-height:1;vertical-align:middle;padding:5px 12px}.dslca-module-edit-option-text-align-hook{cursor:pointer;opacity:.6;line-height:20px}.dslca-module-edit-option-text-align-hook:hover{opacity:.8}.dslca-module-edit-option-text-align-hook.dslca-active{opacity:1}.dslca-module-edit-options-tab-hook,.dslca-pseudo-module-edit-options-tab-hook{color:#fff;cursor:pointer;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;padding:6px 10px;border-radius:3px;float:left}.dslca-module-edit-options-tab-hook.dslca-active,.dslca-module-edit-options-tab-hook.dslca-active:hover{background:rgba(0,0,0,.11);box-shadow:-1px 1px 1px 0 rgba(0,0,0,.22) inset}.dslca-module-edit-options-tab-hook:hover,.dslca-pseudo-module-edit-options-tab-hook:hover{background:rgba(169,239,255,.17);color:#fff}.dslca-module-edit-options-tab-hook[data-id=animation_styling],.dslca-module-edit-options-tab-hook[data-id=presets_styling]{float:right}.dslca-clear-styling-button{border:1px solid rgba(255,255,255,.4);border-radius:4px;display:inline-block!important;float:right;padding:4px 6px;position:absolute;right:0;top:15px;color:#a0c0f0;cursor:pointer;font-size:11px;font-weight:900;margin-right:18px}.dslca-clear-styling-button:hover{color:#fff}.dslca-modules-section-edit{overflow:hidden;position:relative}.dslca-modules-section-edit-option-hidden{display:none!important}.dslca-modules-section-edit-option input[type=text],.dslca-modules-section-edit-option input[type=number],.dslca-modules-section-edit-option input[type=email],.dslca-modules-section-edit-option select,.dslca-modules-section-edit-option textarea{background:#6c9fed;border:1px solid #447bce;width:100%;height:auto}.dslca-modules-section-edit-option-text{width:235px}.dslca-modules-section-edit-option-textarea{width:500px}.dslca-modules-section-edit-option-checkbox{width:auto}.dslca-modules-section-edit-option-checkbox input[type=checkbox]{display:none}.dslca-modules-section-edit-option-checkbox-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-modules-section-edit-option-checkbox-single{margin:6px;display:table-cell;white-space:nowrap;padding:8px}.dslca-modules-section-edit-option-checkbox-hook{cursor:pointer;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-modules-section-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-modules-section-settings{display:none}.dslca-templates{position:relative}.dslca-template,.dslca-templates .dslca-go-to-section-hook,.dslca-templates .dslca-open-modal-hook{border-right:1px solid rgba(0,0,0,.12);color:#fff;cursor:pointer;display:block;float:left;font-family:'Open Sans',sans-serif;font-size:15px;line-height:1;padding:29px 29px 27px}.dslca-template:hover,.dslca-templates .dslca-go-to-section-hook:hover,.dslca-templates .dslca-open-modal-hook:hover{background:#e25c54;color:#fff}.dslca-templates .dslca-go-to-section-hook .dslca-icon,.dslca-templates .dslca-open-modal-hook .dslca-icon{color:rgba(255,255,255,.5);margin-right:9px;vertical-align:top;line-height:14px}.dslca-templates-load{border-top:1px solid #d8827d}.dslca-template-origin-user{padding-right:50px}.dslca-template .dslca-delete-template-hook{background:rgba(0,0,0,.2);border-radius:3px;display:inline-block;margin-top:-6px;margin-left:7px;padding:5px 7px;cursor:pointer}.dslca-template-save-form input[type=text]{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;margin-bottom:15px;width:224px}#dslca-export-code,#dslca-import-code{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;height:150px;margin-bottom:15px;overflow:hidden;width:224px}.dslca-template-export-form .dslca-close-modal-hook{display:block;width:auto}.dslca-switch{background:#1783bc;border-radius:50%;bottom:-50px;cursor:pointer;height:100px;left:45%;position:fixed;width:100px}.dslca-cancel,.dslca-submit,.dslca-submit-secondary{color:#fff;cursor:pointer;font-size:14px;font-weight:700;line-height:34px;width:110px;display:inline-block;border-radius:3px;font-family:'Open Sans',sans-serif;text-align:center}.dslca-submit{background:#4cc12d;position:relative}.dslca-submit-secondary{background:#5890e5}.dslca-cancel{background:#e55f5f}.dslca-module-reloading{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8);color:#5890e5}.dslca-module-reloading .dslca-icon{font-size:20px;position:absolute;top:50%;left:50%;margin-left:-10px}.dslca-module-placeholder{position:relative;background:#5890e5;height:40px;float:left}.dslc-modules-area.dslc-modules-area-empty{margin-bottom:25px;min-height:120px;box-shadow:0 0 0 2px rgba(173,175,179,.4);text-align:center;vertical-align:middle}.dslc-modules-area-empty::after{content:"Drop modules here";display:inline-block;opacity:1;color:rgba(173,175,179,.4);left:0;right:0;top:50%;margin-top:-10px;position:absolute;font-size:15px;font-family:'Open Sans',sans-serif}.dslc-module-front{position:relative;min-height:30px}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited),body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited){opacity:.5;cursor:default!important}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited):before,body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited):before{content:"";position:absolute;height:100%;width:100%;z-index:199999}.dslc-module-front:hover,.dslc-module-front:hover *{cursor:pointer}.dslc-modules-area:hover{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area:hover .dslc-module-front:hover{box-shadow:0 0 0 2px #5890e5}.dslc-modules-area.dslca-options-hovered .dslc-module-front{box-shadow:0 0 0 0 transparent}.dslc-control-toggle{cursor:pointer;font-size:15px;opacity:.5;position:absolute;right:0}.dslc-control-toggle:hover{opacity:1}.dslca-option-off{opacity:.5}.dslc-control-toggle:before{content:"\f205"}.dslca-option-off .dslc-control-toggle:before{content:"\f204"}.dslc-modules-area{outline:0}.dslc-modules-area-empty.dslc-modules-area.dslca-options-hovered,.dslc-modules-area.dslca-options-hovered{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area-empty.dslca-options-hovered{outline:0!important}.dslc-module-front.ui-sortable-helper{background:#5890e5;border-radius:3px;height:0!important;width:0!important;overflow:hidden;opacity:1!important;cursor:move;padding:0!important;border:0!important;outline:0!important}.dslc-module-front.ui-sortable-helper *{opacity:0}.dslc-module-front .dslc-sortable-helper-icon{display:none;position:absolute;left:25px;top:25px;color:rgba(255,255,255,.5)}.dslc-module-front.ui-sortable-helper .dslc-sortable-helper-icon{display:block;opacity:1}.dslc-modules-area.ui-sortable-helper{cursor:move;border:0!important;outline:0!important}.dslc-modules-area.ui-sortable-helper *{opacity:0}.dslc-modules-section.ui-sortable-helper{max-height:0!important;width:100%!important;overflow:hidden!important;opacity:0!important;padding:0!important;outline:0!important;border:0!important}.dslca-save-composer,.dslca-save-draft-composer{background:#313131;border-radius:3px 6px 6px 3px;cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif;float:left;line-height:1;opacity:0;display:none;padding:10px 43px 10px 12px;text-decoration:none;position:relative;margin-right:6px}.dslca-save-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-composer .dslca-save-composer-icon,.dslca-save-draft-composer .dslca-save-draft-composer-icon{background:#78ca4f;bottom:0;border-radius:0 3px 3px 0;border-top:1px solid #b8e3a2;cursor:pointer;color:#fff;display:block;position:absolute;right:0;top:0;text-align:center;width:30px}.dslca-save-composer .dslca-save-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-save-draft-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-draft-composer .dslca-save-draft-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-no-content{position:absolute;display:none;border:2px dashed #5890e5;padding:35px 10px;width:100%;text-align:center}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook,.dslca-no-content-primary{border-radius:3px;font-size:15px;line-height:1;font-family:'Open Sans',sans-serif}.dslc-modules-area-empty .dslca-no-content{display:block}.dslca-no-content-primary{color:#5890e5;display:inline-block;background:rgba(255,255,255,.75);margin:0;padding:13px}.dslca-no-content .dslca-icon{margin-right:10px}.dslc-modules-area.dslc-1-col .dslca-no-content-help-text,.dslc-modules-area.dslc-2-col .dslca-no-content-help-text{display:none}.dslc-modules-area.dslc-1-col .dslca-icon,.dslc-modules-area.dslc-2-col .dslca-icon{margin-right:0}.dslca-templates-actions{background:rgba(0,0,0,.3);position:absolute;bottom:0;left:0;right:0}.dslca-add-modules-section{text-align:center;width:1180px;max-width:100%;overflow:hidden;margin:30px auto 120px}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook{background:#e5855f;color:#fff!important;cursor:pointer;display:block;float:left;padding:14px 0;text-decoration:none;width:80%}.dslca-add-modules-section-hook:hover,.dslca-import-modules-section-hook:hover{background:#FF9162;color:#fff}.dslca-add-modules-section .dslca-icon,.dslca-import-modules-section .dslca-icon{margin-right:10px;color:rgba(255,255,255,.5)}.dslca-import-modules-section-hook{float:right;width:18%}.dslc-modules-section{position:relative}.dslc-modules-section:hover{box-shadow:0 0 0 2px #eabba9}.dslc-modules-section-inner{min-height:50px}.dslca-manage-action{color:#fff;display:inline-block;text-decoration:none;font-size:12px;line-height:15px;text-align:center;padding:5px 6px;min-width:20px;margin-right:-2px}.dslca-icon{vertical-align:middle}.dslca-manage-action:first-child{padding-left:8px;border-radius:3px 0 0 3px}.dslca-manage-action:last-child{padding-right:8px;border-radius:0 3px 3px 0}.dslca-modules-section-manage{bottom:0;left:0;right:0;visibility:hidden;margin-bottom:-13px;padding-right:0;position:absolute;z-index:99998;width:100%;text-align:center}.dslca-modules-section-manage:hover{z-index:99999}.dslc-modules-section:hover .dslca-modules-section-manage{visibility:visible!important}.dslca-module-manage-inner,.dslca-modules-section-manage-inner{background:#e5855f;border-radius:3px;display:inline-block;line-height:1;position:relative;z-index:99999;vertical-align:middle;opacity:0;cursor:pointer}.dslca-modules-section-manage .dslca-manage-action:hover{background:#da7348}.dslca-module-manage-inner .dslca-manage-action:hover{background:#507FC9}.dslca-modules-section-placeholder{position:relative;background:#5890e5;height:2px;width:100%;margin:10px 0}.dslca-placeholder-help-text{position:absolute;left:0;bottom:0;right:0;text-align:center}.dslca-placeholder-help-text-inner{background:#5890e5;border-radius:3px 3px 0 0;color:#fff;font-family:'Open Sans',sans-serif;font-style:12px;font-weight:700;display:inline-block;padding:5px 10px}.dslca-add-modules-area-hook{background:#5fb7e5;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;margin-right:7px;padding:7px 10px;text-decoration:none;vertical-align:middle}.dslca-add-modules-area-hook:hover{color:#fff}.dslca-add-modules-area-hook .dslca-icon{margin-right:5px;color:rgba(255,255,255,.5);position:relative;top:1px}.dslc-modules-area{position:relative}.dslca-modules-area-drag-in-progress .dslc-modules-area{margin-right:1%!important;clear:none}.dslca-modules-area-manage{visibility:hidden;opacity:.5;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;bottom:0;position:absolute;left:auto;right:100%;top:0;margin-right:0;text-align:center;z-index:999999}.dslc-modules-area:hover .dslca-modules-area-manage{visibility:visible;opacity:.5}.dslc-modules-area .dslca-modules-area-manage:hover{opacity:1}.dslca-modules-area-manage.dslca-horizontal{top:50%}.dslc-modules-section.dslc-full .dslca-modules-area-manage{right:auto;left:0;margin-right:0}.dslca-modules-area-manage-inner{background:#b2b7bc;border-radius:3px 0 0 3px;border-right-width:0;display:inline-block;margin-top:10px;position:relative;z-index:99999}.dslca-horizontal .dslca-modules-area-manage-inner{margin-top:-47px}.dslc-modules-section.dslc-full .dslca-modules-area-manage-inner{border-radius:0 3px 3px 0}.dslca-modules-area-manage .dslca-manage-action{color:#fff;display:block;text-decoration:none;font-size:12px;line-height:16px;text-align:center;margin:0}.dslca-modules-area-manage-inner .dslca-manage-action:first-child{margin-left:0;margin-top:0;padding-top:6px;border-radius:3px 0 0}.dslca-modules-area-manage .dslca-manage-action:last-child{padding-bottom:6px;border-radius:0 0 0 3px}#dslc-content .dslca-modules-area-manage .dslca-manage-action:hover{color:#fff;background:#a4a5a9}#dslc-content .dslca-modules-area-manage .dslca-change-width-modules-area-hook{position:relative}#dslc-content .dslca-modules-area-manage .dslca-icon{font-size:12px}.dslca-change-width-module-options,.dslca-change-width-modules-area-options{background:#fff;border:1px solid #d9dcdf;border-radius:3px;display:none;padding:7px;position:absolute;top:-10px;left:22px;z-index:99999;width:120px}.dslca-change-width-module-options{top:30px}.dslca-change-width-modules-area-options:after,.dslca-change-width-modules-area-options:before{right:100%;top:18px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-change-width-modules-area-options:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:10px;margin-top:-10px}.dslca-change-width-modules-area-options:before{border-color:rgba(205,205,205,0);border-right-color:#cdcdcd;border-width:11px;margin-top:-11px}.dslca-change-width-module-options span,.dslca-change-width-modules-area-options span{background:#4785db;border-radius:3px;display:inline-block;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:400;line-height:24px;max-width:44px;margin:1px;text-align:center;width:44px}.dslca-change-width-module-options span:hover,.dslca-change-width-modules-area-options span:hover{background:#6B9FF1}.dslca-change-width-module-options span:first-child,.dslca-change-width-modules-area-options span:first-child{background:0 0;color:#5e636a;display:inline-block;font-size:13px;margin-bottom:5px;max-width:none;width:auto}#dslc-content .dslca-module-manage .dslca-module-manage-hook:hover,.dslca-section-scroller-next .dslca-icon,.dslca-section-scroller-prev .dslca-icon{color:#fff}.dslc-module-front.dslc-1-col .dslca-change-width-module-options span[data-size="1"],.dslc-module-front.dslc-10-col .dslca-change-width-module-options span[data-size="10"],.dslc-module-front.dslc-11-col .dslca-change-width-module-options span[data-size="11"],.dslc-module-front.dslc-12-col .dslca-change-width-module-options span[data-size="12"],.dslc-module-front.dslc-2-col .dslca-change-width-module-options span[data-size="2"],.dslc-module-front.dslc-3-col .dslca-change-width-module-options span[data-size="3"],.dslc-module-front.dslc-4-col .dslca-change-width-module-options span[data-size="4"],.dslc-module-front.dslc-5-col .dslca-change-width-module-options span[data-size="5"],.dslc-module-front.dslc-6-col .dslca-change-width-module-options span[data-size="6"],.dslc-module-front.dslc-7-col .dslca-change-width-module-options span[data-size="7"],.dslc-module-front.dslc-8-col .dslca-change-width-module-options span[data-size="8"],.dslc-module-front.dslc-9-col .dslca-change-width-module-options span[data-size="9"],.dslc-modules-area.dslc-1-col .dslca-change-width-modules-area-options span[data-size="1"],.dslc-modules-area.dslc-10-col .dslca-change-width-modules-area-options span[data-size="10"],.dslc-modules-area.dslc-11-col .dslca-change-width-modules-area-options span[data-size="11"],.dslc-modules-area.dslc-12-col .dslca-change-width-modules-area-options span[data-size="12"],.dslc-modules-area.dslc-2-col .dslca-change-width-modules-area-options span[data-size="2"],.dslc-modules-area.dslc-3-col .dslca-change-width-modules-area-options span[data-size="3"],.dslc-modules-area.dslc-4-col .dslca-change-width-modules-area-options span[data-size="4"],.dslc-modules-area.dslc-5-col .dslca-change-width-modules-area-options span[data-size="5"],.dslc-modules-area.dslc-6-col .dslca-change-width-modules-area-options span[data-size="6"],.dslc-modules-area.dslc-7-col .dslca-change-width-modules-area-options span[data-size="7"],.dslc-modules-area.dslc-8-col .dslca-change-width-modules-area-options span[data-size="8"],.dslc-modules-area.dslc-9-col .dslca-change-width-modules-area-options span[data-size="9"]{background:#3B6FBE;box-shadow:1px 1px 3px rgba(0,0,0,.28) inset;cursor:default}.dslc-modules-area-empty .dslca-modules-area-manage{top:12px;bottom:auto}.dslc-modules-area-empty .dslca-modules-area-manage-inner{margin-top:0}.dslca-modules-area-placeholder{position:relative;background:#5890e5;height:2px;margin:10px;float:left}body.rtl .dslca-modules-area-placeholder{float:right}.dslca-module-manage{display:block;position:absolute;left:50%;margin-left:-47px;top:-2px;text-align:center;z-index:99999;overflow:hidden;line-height:1}.dslca-module-manage.dslca-module-manage-change-width-active{z-index:100000}.dslca-module-manage-inner{background:#5890e5}.dslca-module-manage-inner.dslca-dev-mode{background:#444;border-color:#333}#dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage .dslca-module-manage-hook,#dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage .dslca-module-manage-hook{margin-right:-2px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:first-child{margin-top:0;border-radius:0 0 0 3px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:last-child{margin-right:0!important;border-radius:0 0 3px}.dslca-section-scroller{position:relative;height:74px;margin-right:80px;overflow:hidden}.dslca-section-scroller-inner{position:absolute;top:0;left:0;bottom:0;width:999999px;text-align:left;-webkit-transition:left .3s ease-in-out;-moz-transition:left .3s ease-in-out;transition:left .3s ease-in-out}.dslca-prompt-modal-actions,.dslca-prompt-modal-msg{text-align:center}.dslca-section-scroller-content{display:inline-block;padding-right:80px}.dslca-section-scroller-fade{background:-moz-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(88,144,229,0)),color-stop(100%,rgba(70,116,185,1)));background:-webkit-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-o-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-ms-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:linear-gradient(to right,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#00004799', endColorstr='#5890e5', GradientType=1 );position:absolute;right:80px;width:20px;bottom:0;top:0;z-index:1}.dslca-section-scroller-nav{position:absolute;right:0;top:0;bottom:0;overflow:hidden;width:80px;font-size:30px}.dslca-section-scroller-nav>a{cursor:pointer;display:flex;justify-content:center;align-items:center;width:40px;position:absolute;left:0;top:0;bottom:0;text-decoration:none;outline:0!important;background:rgba(0,0,0,.2)}.dslca-section-scroller-nav>a:hover{background:rgba(0,0,0,.15)}.dslca-section-scroller-nav>a:active{background:rgba(0,0,0,.25)}.dslca-section-scroller-nav .dslca-section-scroller-next{left:auto;right:0}.dslca-modal{background:#fff;border-radius:3px;color:#444;display:none;padding:14px 17px;position:absolute;bottom:55px;-moz-box-shadow:0 1px 6px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 6px rgba(0,0,0,.2);box-shadow:0 1px 6px rgba(0,0,0,.2);z-index:9999991}.dslca-modal:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:7px;left:50%;margin-left:-7px}.dslca-prompt-modal-msg textarea.js-error-text{width:100%;min-height:80px;padding:5px;line-height:1.6em;font-size:13px;color:#848484}.dslca-prompt-modal-confirm-hook{margin-right:7px}.dslca-prompt-modal{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;height:100%}.dslca-prompt-modal-content{background:#fff;border-radius:3px;top:50%;position:relative;width:400px;margin:-123px auto 0;padding:30px 20px;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12)}.dslca-prompt-modal-descr,.dslca-prompt-modal-title{display:block;font-family:'Open Sans',sans-serif;margin-bottom:22px}.dslca-prompt-modal-title{color:#424242;font-size:16px;font-weight:700;line-height:1}.dslca-prompt-modal-descr{color:#8a8a8a;font-size:13px;font-weight:400;line-height:22px}.dslca-prompt-modal-descr textarea{width:100%;min-height:80px;padding:5px;font-size:11px}.dslca-prompt-modal-actions .dslc-icon{color:rgba(255,255,255,.5);margin-right:6px}.dslca-accordion-plain-content,.dslca-module-options-front,.dslca-module-options-front-backup,.dslca-tab-plain-content{display:none}#dslca-code,#dslca-content-for-search,.dslca-module-code,.dslca-module-edit-option-size{display:none!important}#dslca-wysiwyg-actions-cancel-hook,#dslca-wysiwyg-actions-save-hook{border-radius:3px;display:inline-block;padding:13px 10px;position:relative;color:#fff;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:700;cursor:pointer;line-height:1}#dslca-wysiwyg{position:absolute;top:0;left:-110%;z-index:99999;height:200px;padding-bottom:60px}#dslcawysiwyg{overflow:hidden;height:100px}#wp-dslcawysiwyg-editor-container{height:82%}#dslc-content .dslc-module-front.dslca-module-wysiwyg-active{opacity:0;min-height:200px}#dslca-wysiwyg-actions{bottom:0;position:absolute;color:#fff;left:0;line-height:1;right:0;text-align:right}#dslca-wysiwyg-actions-save-hook{background:#5bd63b;text-align:center}#dslca-wysiwyg-actions-cancel-hook{background:#e55858;text-align:center}#dslc-content .dslca-wysiwyg-actions-edit{position:absolute;top:0;right:0;overflow:hidden}#dslc-content .dslca-wysiwyg-actions-edit-hook{background:#5890e5;color:#fff;cursor:pointer;display:block;font-size:12px;font-family:'Open Sans',sans-serif;line-height:1;font-weight:700;position:relative;top:-50px;padding:7px 10px;border-radius:0 0 0 3px;letter-spacing:0}#dslc-content .dslca-wysiwyg-actions-edit-hook:hover{background:#5080C9}body.dslca-enabled #mce-modal-block,body.dslca-enabled #mceModalBlocker,body.dslca-enabled #wp-link-backdrop,body.dslca-enabled .ui-dialog,body.dslca-enabled .ui-widget-overlay{z-index:99999999!important}body.dslca-enabled #dslcawpeditor_forecolor_menu,body.dslca-enabled #menu_dslcawpeditor_dslcawpeditor_formatselect_menu,body.dslca-enabled #wp-link-wrap,body.dslca-enabled .clearlooks2,body.dslca-enabled .mce-menu,body.dslca-enabled .mce-panel{z-index:999999991!important}body.dslca-enabled .mce_fullscreen{display:none}@keyframes dslcBounceIn{0%{-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0);opacity:0}70%{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{opacity:1}}@-moz-keyframes dslcBounceIn{0%{-moz-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-moz-transform:scale(1.05);transform:scale(1.05)}90%{-moz-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@-webkit-keyframes dslcBounceIn{0%{-webkit-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-webkit-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@keyframes dslcBounceOut{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut{0%{-moz-transform:scale(1);transform:scale(1)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);-moz-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut2{0%{-moz-transform:scale(1);transform:scale(1)}30%{-moz-transform:scale(1.01);transform:scale(1.01)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-moz-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-webkit-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@keyframes dslcRotate{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcRotate{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-modules-area.dslca-init-animation,.dslca-save-composer.dslca-init-animation,.dslca-save-draft-composer.dslca-init-animation{display:block;opacity:1;-webkit-animation-name:dslcBounceIn;-moz-animation-name:dslcBounceIn;animation-name:dslcBounceIn;animation-duration:.6s;-webkit-animation-duration:.6s}.dslc-editable-content.dslc-pen,.dslc-editable-content:focus{outline:rgba(0,0,0,.2) dashed 1px}span.dslca-manage-action,span.dslca-manage-action:hover,span.dslca-manage-action:hover *{cursor:pointer}.dslca-module-being-edited .dslca-module-manage{display:none!important}.dslc-notification .dslca-refresh-module-hook{right:35px}.dslca-container .dslca-module-edit-option-slider,.dslca-container .dslca-modules-section-edit-option-slider{position:relative}.dslca-container .dslca-module-edit-field-slider,.dslca-container .dslca-modules-section-edit-field-slider{background:#6c9fed;border-radius:5px;position:relative;height:5px;margin-top:20px}.dslca-container .dslca-module-edit-field-slider .ui-slider-handle,.dslca-container .dslca-modules-section-edit-field-slider .ui-slider-handle{background:#3b6fbe;border:1px solid #3565ad;border-radius:50%;top:-6px;position:absolute;width:15px;height:15px;margin-left:-7px}.dslca-container .dslca-module-edit-field-slider-tooltip,.dslca-container .dslca-modules-section-edit-field-slider-tooltip{display:none;position:absolute;background:#fff;border-radius:3px;bottom:20px;line-height:1;padding:10px;color:#838383;margin-left:-15px;font-size:14px}.dslca-container .dslca-module-edit-field-slider-tooltip:after,.dslca-container .dslca-modules-section-edit-field-slider-tooltip:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:#fff transparent transparent;border-width:6px;left:50%;margin-left:-6px}.dslca-module-edit-option-slider input,.dslca-modules-section-edit-option-slider input{cursor:ew-resize}.dslca-module-edit-option-slider:hover:after,.dslca-modules-section-edit-option-slider:hover:after{content:"click and drag";display:block;font-size:11px;margin-top:5px;opacity:.4;position:absolute}.dslca-module-edit-field-numeric-wrap,.dslca-modules-section-edit-field-numeric-wrap{position:relative}.dslca-module-edit-field-numeric-ext,.dslca-modules-section-edit-field-numeric-ext{position:absolute;color:rgba(255,255,255,.8);font-size:12px;right:15px;top:50%;margin-top:-5px;line-height:1}.dslca-module-edit-option-slider .dslca-module-edit-field-numeric-ext{right:10px;top:14px}.dslca-separator-empty{height:1px;line-height:0;border-bottom:1px solid rgba(0,0,0,.06);text-align:center;position:absolute;top:50%;left:0;right:0}.dslca-separator-empty span{background:#fff;border-radius:3px;color:#a0a0a0;display:inline-block;font-family:"Open Sans",sans-serif;font-size:10px;line-height:1;padding:3px 6px;position:relative;top:-7px}.dslca-wp-editor{background:rgba(0,0,0,.7);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999}.dslca-wp-editor-inner{background:#fff;position:fixed;top:30px;left:30px;right:30px;bottom:30px;padding:50px}.dslca-wp-editor-actions,.dslca-wp-editor-notification{margin-top:30px}#wp-dslcawpeditor-editor-container{border:1px solid #ddd}.dslca-invisible-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99998}.dslca-disable-selection .dslca-invisible-overlay{display:block}.dslca-loading-modal{background:rgba(0,0,0,.75);position:fixed;top:0;left:0;right:0;bottom:200px;z-index:999999}.dslca-loading-modal-content{position:relative;top:200px;width:580px;margin:0 auto}.dslca-loading-modal-msg{background:#fff;border-radius:3px;color:#707070;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:400;line-height:1.5;padding:35px 25px;text-align:center;margin-bottom:10px;-moz-box-shadow:0 0 7px #000;-webkit-box-shadow:0 0 7px #000;box-shadow:0 0 7px #000}.dslca-loading-modal-actions{text-align:right}.dslca-loading-modal-cancel-hook,.dslca-loading-modal-confirm-hook{background:#e55f5f;border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;padding:13px 15px}.dslca-loading-modal-confirm-hook{background:#4cc12d;margin-right:7px}.dslca-module-edit-field-ttip-content{display:none}.dslca-module-edit-field-icon-ttip-hook,.dslca-module-edit-field-ttip-hook{background:#3b6fbe;color:#5890e5;cursor:pointer;border-radius:50%;position:relative;display:inline-block;width:13px;height:13px;margin-left:10px;vertical-align:bottom}.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook .dslca-icon{position:absolute;left:5px;font-weight:400;font-size:10px;top:1px}.dslca-module-edit-field-icon-ttip,.dslca-module-edit-field-ttip{background:#fff;color:#8a8a8a;font-family:'Opens Sans',sans-serif;font-size:13px;line-height:1.4;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-ttip a,.dslca-module-edit-field-ttip a{color:#5890e5;font-weight:700;text-decoration:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:after,.dslca-module-edit-field-ttip:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-ttip:after{border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:8px;left:50%;margin-left:-8px}.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:before{border-color:rgba(224,224,224,0);border-top-color:#d2d2d2;border-width:9px;left:50%;margin-left:-9px}.dslca-module-edit-field-ttip-close{cursor:pointer;position:absolute;background:#e55f5f;top:-9px;right:-9px;width:18px;line-height:18px;border-radius:18px;color:#fff;font-size:11px}.dslca-module-edit-option-image,.dslca-modules-section-edit-option-upload{min-width:auto}.dslca-module-edit-field-image-add-hook,.dslca-module-edit-field-image-remove-hook,.dslca-modules-section-edit-field-image-add-hook,.dslca-modules-section-edit-field-image-remove-hook{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;color:#a0c0f0;cursor:pointer;display:inline-block;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:400;padding:9px 12px;line-height:1;white-space:nowrap}.dslca-module-edit-field-image-add-hook .dslca-icon,.dslca-module-edit-field-image-remove-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon{margin-right:7px}#dslc-footer,#dslc-header{position:relative}.dslc-hf-block-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(88,144,229,.9);z-index:99999;text-align:center;opacity:0;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.dslc-hf-block-overlay:hover,.dslca-drag-not-in-progress .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:1}.dslc-hf-block-overlay-button{text-align:center;position:absolute;left:0;right:0;top:45%;display:inline-block;color:#fff;font-size:20px;font-family:'Open Sans',sans-serif;text-decoration:none;font-weight:700}body.dslca-composer-hidden .dslc-module-front,body.dslca-composer-hidden .dslc-modules-area,body.dslca-composer-hidden .dslc-modules-section{outline:0!important;border:none!important}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-composer-hidden .dslca-add-modules-section,body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,body.dslca-composer-hidden .dslca-module-manage,body.dslca-composer-hidden .dslca-modules-area-manage{display:none!important}.dslca-loading{position:absolute;top:15px;left:25px;display:none}.followingBallsGWrap{width:64px;height:5px}.followingBallsG{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:5px;height:5px;-moz-border-radius:3px;-moz-animation-name:bounce_followingBallsG;-moz-animation-duration:2.3s;-moz-animation-iteration-count:infinite;-moz-animation-direction:linear;-webkit-border-radius:3px;-webkit-animation-name:bounce_followingBallsG;-webkit-animation-duration:2.3s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:linear;-ms-border-radius:3px;-ms-animation-name:bounce_followingBallsG;-ms-animation-duration:2.3s;-ms-animation-iteration-count:infinite;-ms-animation-direction:linear;-o-border-radius:3px;-o-animation-name:bounce_followingBallsG;-o-animation-duration:2.3s;-o-animation-iteration-count:infinite;-o-animation-direction:linear;border-radius:3px;animation-name:bounce_followingBallsG;animation-duration:2.3s;animation-iteration-count:infinite;animation-direction:linear}.followingBallsG_1{-moz-animation-delay:0s;-webkit-animation-delay:0s;-ms-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.followingBallsG_2{-moz-animation-delay:.23s;-webkit-animation-delay:.23s;-ms-animation-delay:.23s;-o-animation-delay:.23s;animation-delay:.23s}.followingBallsG_3{-moz-animation-delay:.46s;-webkit-animation-delay:.46s;-ms-animation-delay:.46s;-o-animation-delay:.46s;animation-delay:.46s}.followingBallsG_4{-moz-animation-delay:.69s;-webkit-animation-delay:.69s;-ms-animation-delay:.69s;-o-animation-delay:.69s;animation-delay:.69s}@-moz-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-webkit-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-ms-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-o-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}.dslca-container-loader{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.2);display:none}.dslca-container-loader-inner{position:absolute;top:10px;left:15px}body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Excerpt],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Meta],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Downloads_Button],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Gallery_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Project_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Staff_Social]{display:none!important}.media-modal{z-index:999999999!important}.media-modal-backdrop{z-index:999999998!important}.dslca-container .dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook,.dslca-pseudo-panel .dslca-pseudo-close-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:Roboto,sans-serif;font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-close-composer-hook:hover{background:#f27562}.dslca-container .dslca-hide-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon,.dslca-pseudo-close-composer-hook .dslca-icon,.dslca-pseudo-hide-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}body.rtl .dslca-templates .dslca-go-to-section-hook .dslca-icon,body.rtl .dslca-templates .dslca-open-modal-hook .dslca-icon{margin-right:0;margin-left:9px}body.rtl .dslca-section-title-filter .dslca-icon{margin-left:0;margin-right:10px}body.rtl .dslca-activate-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-close-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-hide-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-show-composer-hook .dslca-icon{margin-right:0;margin-left:5px}body.rtl .dslca-module .dslca-icon{margin-right:0;margin-left:11px}body.rtl .dslca-header .dslca-options-filter-hook .dslca-icon{margin-right:0;margin-left:4px}body.rtl .dslca-prompt-modal-actions .dslc-icon{margin-right:0;margin-left:6px}body.rtl .dslca-module-edit-option-checkbox-hook .dslca-icon,body.rtl .dslca-no-content .dslca-icon{margin-right:0;margin-left:10px}body.rtl .dslca-module-edit-options-inner,body.rtl .dslca-modules-section-edit-options-inner{overflow-x:auto}body.rtl .dslca-module-edit-option,body.rtl .dslca-modules-section-edit-option{float:right}.dslca-module-edit-options-wrapper,.dslca-modules-section-edit-options-wrapper,.dslca-pseudo-module-edit-options-wrapper{display:table-cell;padding:0 0 20px}.dslca-module-edit-options-inner,.dslca-modules-section-edit-options-inner{overflow-x:scroll}.dslca-styling-presets{position:absolute;top:0;right:0;margin-right:15px;margin-top:15px}.dslca-drag-not-in-progress .dslc-modules-section .dslca-modules-section-manage-inner{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-module-front .dslca-module-manage{overflow:hidden}.dslca-drag-not-in-progress .dslc-module-front:hover .dslca-module-manage.dslca-module-manage-change-width-active{overflow:visible}.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-wysiwyg-actions-edit-hook{top:0;opacity:0;-webkit-transition:opacity .1s ease-in-out;-moz-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit-hook{top:0;opacity:1}.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-modules-area:hover .dslca-modules-area-manage-inner{opacity:1}.dslca-modal.dslca-modal-icons{width:70%;position:fixed;padding:0;overflow:scroll;top:2%;left:50%!important;visibility:visible;transform:translate(-50%,0);z-index:100001}.dslca-prompt-modal-custom{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;height:100%}.dslca-modal-icons .modal-content{height:100%}.dslca-modal-icons .dslc-icons-grid{list-style:none;margin:0;padding:0;text-align:left}.dslca-modal-icons .icon-item{display:inline-block;width:12.4%;min-height:120px;padding:0;margin:0 0 0 -1px;vertical-align:top;text-align:center;border-left:1px solid rgba(155,155,155,.05);border-bottom:1px solid rgba(155,155,155,.05)}.dslca-modal-icons .icon-item:hover{-webkit-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);-moz-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);box-shadow:0 1px 5px 0 rgba(68,68,68,.52);cursor:pointer}.dslca-modal-icons .icon-item:active{-webkit-box-shadow:0 1px 5px 0 #5890e5 inset;-moz-box-shadow:0 1px 5px 0 #5890e5 inset;box-shadow:0 1px 5px 0 #5890e5 inset}.dslca-modal-icons .icon-item_icon{display:inline-block;width:100%;padding:28px 0 16px;font-size:24px;opacity:.7}.dslca-modal-icons .icon-item:hover .icon-item_icon{opacity:1}.dslca-modal-icons .icon-item_name{opacity:.35;display:inline-block;font-family:'Open Sans',sans-serif;font-size:12px;line-height:1.25;padding:5px 8px 12px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area,body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{display:block;margin:0 auto;position:relative;border:14px solid #000;border-top-width:60px;border-radius:16px;top:40px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area{width:480px;max-width:767px}body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{width:768px;min-width:768px;max-width:1024px}body.dslca-enabled.dslc-res-phone #page-builder-frame,body.dslca-enabled.dslc-res-tablet #page-builder-frame{display:block;position:relative}html.dslc-responsive-preview{background:#61666A}#page-builder-preview-area.ui-resizable-resizing .ui-resizable-e{width:100%}#page-builder-preview-area .ui-resizable-e{cursor:e-resize;height:100%;right:-14px;width:14px;top:0}#page-builder-preview-area .ui-resizable-handle{display:block;font-size:.1px;position:absolute}.dslca-module-edit-field-colorpicker,.dslca-modules-section-edit-field-colorpicker{display:block!important;cursor:pointer;position:relative;z-index:1}.dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-color{display:inline-block!important;cursor:pointer;position:relative;z-index:1;width:auto}body .sp-palette-container{border-right:1px solid #3e3e3e}body .sp-palette .sp-thumb-el{border:none;height:25px;margin:1px;width:25px}.dslca-pseudo-panel{bottom:0;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-pseudo-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-pseudo-module-edit-label{width:80px;background:#6c9fed;border-radius:3px}.dslca-pseudo-module-edit-field{border:0;width:100%;height:33px}.dslca-pseudo-module-edit-option{opacity:0;transition:opacity .3s 0s ease-in}.dslca-pseudo-module-edit-option:nth-child(2){transition-delay:.15s}.dslca-pseudo-module-edit-option:nth-child(3){transition-delay:.25s}.dslca-pseudo-module-edit-option:nth-child(4){transition-delay:.5s}.dslca-pseudo-module-edit-option:nth-child(5){transition-delay:.75s}.dslca-pseudo-panel.show .dslca-pseudo-module-edit-option{opacity:1}.lc-shake-effect.active{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}body.dslca-drag-in-progress .lc-scroll-top-area,body.dslca-new-module-drag-in-progress .lc-scroll-top-area{position:fixed;top:0;z-index:99999;left:0;width:100%;height:80px}body.dslca-drag-in-progress .lc-scroll-bottom-area,body.dslca-new-module-drag-in-progress .lc-scroll-bottom-area{position:fixed;bottom:0;left:0;z-index:99999;width:100%;height:140px}.sp-container.sp-flat,.sp-top{position:relative}.sp-clear-enabled .sp-hue,.sp-hue{height:100%;top:0}.sp-container{top:0;left:0;display:inline-block;overflow:hidden}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{width:100%;display:inline-block}.sp-alpha-handle,.sp-color,.sp-dragger,.sp-hue,.sp-sat,.sp-slider,.sp-top-inner,.sp-val{position:absolute}.sp-top-inner{top:0;left:0;bottom:0;right:0}.sp-color{top:0;left:0;bottom:0;right:20%}.sp-hue{right:0;bottom:0;left:84%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha,.sp-clear,.sp-container.sp-buttons-disabled .sp-button-container,.sp-container.sp-input-disabled .sp-input-container,.sp-initial-disabled .sp-initial,.sp-palette-disabled .sp-palette-container,.sp-palette-only .sp-picker-container{display:none}.sp-alpha-handle{top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:1px solid #333}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:none;position:absolute;top:0;right:0;bottom:0;left:84%;height:28px}.sp-alpha,.sp-alpha-handle,.sp-clear,.sp-container,.sp-container button,.sp-container.sp-dragging .sp-input,.sp-dragger,.sp-preview,.sp-replacer,.sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#FFF),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#FFF,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.sp-hue{background:-moz-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.sp-hidden{display:none!important}.sp-cf:after,.sp-cf:before{content:"";display:table}@media (max-device-width:480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;top:0;left:0}.sp-slider{top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;padding:0}.sp-clear,.sp-color,.sp-container,.sp-container button,.sp-container input,.sp-hue{font:400 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-clear,.sp-color,.sp-hue{border:1px solid #666}.sp-input-container{float:right;width:100px}.sp-initial-disabled .sp-input-container,.sp-input{width:100%}.sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;background:0 0;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container,.sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-290px}.sp-picker-container{width:172px}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer}.sp-palette .sp-thumb-el.sp-thumb-active,.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-initial{float:left;border:1px solid #333}.sp-initial span{width:30px;height:25px;border:0;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:1px solid #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer.sp-active,.sp-replacer:hover{border-color:#F0C49B;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{width:25px;height:20px;border:1px solid #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:1px solid #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f!important;margin:0 5px 0 0;padding:2px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.sp-palette span.sp-thumb-active,.sp-palette span:hover{border-color:#000}.sp-alpha,.sp-preview,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-alpha-inner,.sp-preview-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.sp-container{position:fixed;z-index:99999999!important;background:#313131;border:0}.sp-picker-container{border:0}.sp-clear,.sp-color,.sp-hue{border-color:#000}.sp-button-container{float:none;text-align:right;clear:both;margin-top:10px}.dslca-container .sp-dd{display:none}.dslca-container .sp-preview{width:100%;height:15px;border:1px solid #3565ad;border-radius:4px;overflow:hidden}.dslca-sp-revert,.sp-cancel.dslc-icon,.sp-choose.dslc-icon{padding:0;margin:0;background:#e55f5f;display:inline-block;width:24px;height:24px;line-height:24px;font-size:12px;color:#fff!important;border-radius:3px;text-align:center;text-decoration:none!important;cursor:pointer;vertical-align:baseline}.sp-choose.dslc-icon{background:#78ca4f;margin-left:5px}.dslca-sp-revert{background:#06b2ac;float:left}.sp-input-container{margin-top:5px;margin-bottom:10px}body input[type=text].sp-input{background:#444!important;padding:5px;border:0;border-radius:0;color:#fff}.dslca-container .sp-replacer{opacity:0;visibility:hidden;display:inline-block!important;width:1px;vertical-align:middle;position:absolute;left:0;top:50px}.dslca-module-edit-option-box-shadow-single .sp-replacer{top:0}
1
+ .dslc-clear,.dslc-clearfix:after,.dslc-module-heading:after,.sp-cf:after{clear:both}html{top:-32px;position:relative}body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body.toplevel_page_livecomposer_editor{background:#464646}.inline-editor,.inline-editor *{-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}body .dslca-editable-content:hover,body .dslca-editable-content:hover *,body .inline-editor:hover,body .inline-editor:hover *{cursor:text}div:hover,div>span:hover,span>span:hover{cursor:default}body a{text-decoration:none}body a:focus{color:inherit;box-shadow:none}#dslc-preview-error{text-align:center;padding:160px 0 0;text-transform:uppercase;letter-spacing:2px}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslca-container *{padding:0;margin:0;border:none;outline:0}.dslca-disable-selection{-ms-user-select:none!important;-moz-user-select:-moz-none!important;-khtml-user-select:none!important;-webkit-user-select:none!important;user-select:none!important}.dslca-container p{margin-bottom:20px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container select,.dslca-container textarea{background:rgba(255,255,255,.1);border:0;color:#fff;padding:7px 10px;font-family:'Open Sans',sans-serif;font-size:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dslca-container,.dslca-container *,.dslca-container ::after,.dslca-container ::before,.dslca-module-manage,.dslca-module-manage *,.dslca-module-manage ::after,.dslca-module-manage ::before,.dslca-sections{box-sizing:border-box}.dslca-container .dslca-module-edit-option-slider input[type=number]{padding-right:30px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container input[type=email]{height:auto}.dslca-container select{line-height:12px;padding:6px 10px;min-height:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.dslca-module-edit-option-select .dslca-icon,.dslca-modules-section-edit-option-select .dslca-icon{position:absolute;right:40px;top:64px;cursor:pointer}.dslca-container input[type=submit]{background:#6ba253;border:0;color:#fff;cursor:pointer;padding:8px 10px;line-height:17px}.dslca-container{font-family:'Open Sans',sans-serif;bottom:0;color:#fff;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-show-js-error-hook{padding:10px;bottom:-1px;display:inline-block;color:rgba(199,199,199,.64)!important;visibility:hidden;float:left}.dslca-show-js-error-hook:hover{color:#ff4040}.dslca-show-js-error-hook .dslca-icon{color:#ff4040;margin-right:5px;margin-left:8px}#dslca-js-errors-report{display:none}.dslca-error-report{display:block;overflow:scroll;text-align:left;white-space:nowrap;font-size:12px;max-height:120px;-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.dslca-error-report:hover{cursor:text}.dslca-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-header .dslca-currently-editing{position:absolute;bottom:45px;left:5px;background-color:rgba(71,70,70,.49);color:rgba(255,255,255,.5);padding:6px 10px;border-radius:3px;font-weight:400;font-family:'Open Sans',sans-serif;font-size:10px;line-height:1;display:none;white-space:nowrap;letter-spacing:.4px;text-transform:uppercase;cursor:pointer}.dslca-header .dslca-currently-editing .dslca-icon{margin-right:5px}.dslca-header .dslca-currently-editing strong{color:#fff}.dslca-header .dslca-go-to-section-hook,.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-options-filter-hook,.dslca-pseudo-header .dslca-pseudo-options-filter-hook{bottom:0;background:#313131;border-radius:3px 3px 0 0;color:#adadad;cursor:pointer;display:block;float:left;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:13px 15px;position:relative}.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-pseudo-options-filter-hook,.dslca-pseudo-options-filter-hook{display:none;margin-right:3px}.dslca-header .dslca-go-to-section-hook.dslca-active,.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{border-top-color:#4777c2;background:#3b6fbe;color:#fff;cursor:default}.dslca-header .dslca-options-filter-hook .dslca-icon,.dslca-header .dslca-row-options-filter-hook .dslca-icon,.dslca-pseudo-header .dslca-pseudo-options-filter-hook .dslca-icon{margin-right:4px}.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{background:#5890e5}.dslca-header .dslca-go-to-section-templates.dslca-active{border-top-color:#bf7671;background:#a94640}.dslca-header .dslca-go-to-section-hook .dslca-icon{font-weight:400}.dslca-module-edit-actions,.dslca-pseudo-module-edit-actions,.dslca-row-edit-actions{display:none;float:left;margin-left:4px;margin-top:1px}.dslca-module-edit-cancel,.dslca-module-edit-save,.dslca-prompt-modal-cancel-hook,.dslca-prompt-modal-confirm-hook,.dslca-pseudo-module-edit-cancel,.dslca-pseudo-module-edit-save,.dslca-row-edit-cancel,.dslca-row-edit-save,.dslca-wp-editor-cancel-hook,.dslca-wp-editor-save-hook{background:#78ca4f;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:10px 12px;margin-right:6px;text-decoration:none}.dslca-module-edit-cancel,.dslca-prompt-modal-cancel-hook,.dslca-pseudo-module-edit-cancel,.dslca-row-edit-cancel,.dslca-wp-editor-cancel-hook{background:#e55f5f}.dslca-module-edit-save:hover,.dslca-prompt-modal-confirm-hook:hover,.dslca-pseudo-module-edit-save:hover,.dslca-row-edit-save:hover,.dslca-wp-editor-save-hook:hover{background:#91dc1e;color:#fff}.dslca-module-edit-cancel:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-pseudo-module-edit-cancel:hover,.dslca-row-edit-cancel:hover,.dslca-wp-editor-cancel-hook:hover{background:#f27562;color:#fff}.dslca-actions,.dslca-pseudo-actions{position:absolute;bottom:100%;right:0;padding-bottom:5px;padding-right:5px}.dslca-sections{background:#4A7AC3}.dslca-pseudo-section,.dslca-section.dslca-module-edit,.dslca-section.dslca-modules-section-edit{background:#5890e5}.dslca-modal.dslca-modal-templates-export,.dslca-modal.dslca-modal-templates-import,.dslca-modal.dslca-modal-templates-save,.dslca-section.dslca-templates,.dslca-section.dslca-templates-load{background:#ca564f}.dslca-section{display:none;position:relative}.dslca-section-back{display:block;float:left;width:32px;line-height:74px;text-align:center;color:#fff}.dslca-section-back:hover{background:#e25c54;color:#fff}.dslca-section-title{display:block;float:left;background:#3b6fbe;color:#fff;font-family:'Open Sans',sans-serif;font-size:17px;line-height:1;padding:28px 25px}.dslca-section-title:hover,.dslca-section-title:hover *{cursor:pointer}.dslca-templates .dslca-section-title,.dslca-templates-load .dslca-section-title,.dslca-templates-save .dslca-section-title{background:#a94640}.dslca-section-title-filter{position:relative;cursor:pointer}.dslca-section-title-filter .dslca-icon{color:rgba(255,255,255,.5);margin-left:10px;vertical-align:top}.dslca-section-title-filter-options{background:#5890E5;border-radius:3px 3px 0 0;bottom:35px;display:none;min-width:100px;left:-10px;position:absolute;z-index:999999;box-shadow:0 2px 8px 0 rgba(0,0,0,.21)}.dslca-section-title-filter-options a{display:block;cursor:pointer;margin:1px 0 0;padding:10px 13px;border-top:1px solid rgba(0,0,0,.09);font-size:13px;white-space:nowrap;color:#fff}.dslca-section-title-filter-options a:hover{background:#5890E5}.dslca-section.dslca-templates-load .dslca-section-title-filter-options{background:#CA564F}.dslca-section.dslca-templates-load .dslca-section-title-filter-options a:hover{background:#e25c54}.dslca-subsection{display:none}.dslca-module{color:#fff;display:inline-block;font-family:'Roboto Condensed',sans-serif;font-size:15px;font-weight:400;line-height:1;padding:2px 12px 9px;background:#5890e5;margin:4px 2px;box-shadow:0 1px 3px 0 rgba(0,0,0,.15),-1px 1px 0 0 rgba(255,255,255,.05) inset;border-radius:2px;text-align:center;min-width:70px;transition:transform 50ms linear 10ms;z-index:1;position:relative}.dslca-module[data-id=DSLC_Staff],.dslca-module[data-id=DSLC_Separator],.dslca-module[data-id=DSLC_Notification],.dslca-module[data-id=DSLC_Sliders]{margin-right:14px}.dslca-module[data-id=DSLC_M_A]{margin-left:5px;margin-right:14px;background:#b2b7bc;box-shadow:none}.dslca-module[data-id=DSLC_M_A] .dslca-icon{color:#fff}.dslca-module[data-id=DSLC_M_A]:hover{background:#BDC3C9}.dslca-module:hover{background:#6b9ff1;box-shadow:-2px 4px 3px 0 rgba(0,0,0,.19),-1px 1px 0 0 rgba(255,255,255,.05) inset;transform:translate(1px,-2px)}div.dslca-module:hover,div.dslca-module:hover *{color:#fff;cursor:grab;cursor:-webkit-grab}div.dslca-module.dslca-module-dragging{position:relative;opacity:1}.dslc-module-front.dslca-module-dragging{box-shadow:none!important;animation:none!important}.dslc-module-front.dslca-module-ghost{background:rgba(229,163,88,.28)}div.dslca-module.dslca-module-dragging,div.dslca-module.dslca-module-dragging *,div.dslca-module.dslca-module-dragging:hover,div.dslca-module.dslca-module-dragging:hover *{cursor:grabbing;cursor:-webkit-grabbing}.dslca-manage-action.dslca-move-module-hook:hover,.dslca-manage-action.dslca-move-module-hook:hover *,.dslca-manage-action.dslca-move-modules-area-hook:hover,.dslca-manage-action.dslca-move-modules-area-hook:hover *,.dslca-manage-action.dslca-move-modules-section-hook:hover,.dslca-manage-action.dslca-move-modules-section-hook:hover *{cursor:grab;cursor:-webkit-grab}.dslca-module .dslca-icon{color:#AECEF9;vertical-align:top;font-size:20px;display:block;line-height:41px;text-align:center;text-shadow:0 1px rgba(0,0,0,.05)}.dslca-module.ui-draggable-dragging .dslca-icon{margin-right:0}.dslca-module-edit{overflow:hidden;position:relative}.dslca-module-edit-options,.dslca-modules-section-edit-options,.dslca-pseudo-module-edit-options{padding:16px 15px 5px;overflow-x:auto;min-height:58px;transform:translate(0,0)}.dslca-module-edit-option,.dslca-modules-section-edit-option,.dslca-pseudo-module-edit-option{display:table-cell;padding-bottom:20px;padding-right:30px;padding-top:30px;min-width:180px;position:relative}.dslca-module-edit-option-hidden{display:none!important}.dslca-module-edit-option input[type=text],.dslca-module-edit-option input[type=text]:focus,.dslca-module-edit-option input[type=number],.dslca-module-edit-option input[type=number]:focus,.dslca-module-edit-option input[type=email],.dslca-module-edit-option input[type=email]:focus,.dslca-module-edit-option select,.dslca-module-edit-option select:focus,.dslca-module-edit-option textarea,.dslca-module-edit-option textarea:focus,.dslca-pseudo-module-edit-field{background:#6c9fed;border:1px solid #447bce;border-radius:3px;width:100%;min-width:140px;height:auto}.dslca-module-edit-option-text,.dslca-pseudo-module-edit-option{width:235px}.dslca-module-edit-option-textarea{width:500px}.dslca-module-edit-label,.dslca-modules-section-edit-label,.dslca-pseudo-module-edit-label{color:#fff;display:block;font-family:'Open Sans',sans-serif;font-weight:400;font-size:13px;line-height:1;margin-bottom:10px;padding-right:40px;white-space:nowrap;position:relative}.dslca-module-edit-field-font{min-width:140px}.dslca-module-edit-field-font-wrapper,.dslca-module-edit-field-icon-wrapper{display:table-cell;padding-right:5px;position:relative}.dslca-module-edit-field-font,.dslca-module-edit-field-icon{vertical-align:middle}.dslca-options-iconbutton{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;cursor:pointer;display:table-cell;height:32px;text-align:center;vertical-align:middle;padding:0 10px}.dslca-options-iconbutton.dslca-module-edit-field-font-prev{border-top-right-radius:0;border-bottom-right-radius:0}.dslca-options-iconbutton.dslca-module-edit-field-font-next{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.dslca-options-iconbutton .dslca-icon{color:#8db6f3;font-size:12px;line-height:30px}.dslca-module-edit-field-font-suggest,.dslca-module-edit-field-icon-suggest{color:#fff;color:rgba(255,255,255,.5);position:absolute;left:11px;top:0;line-height:32px;font-family:"Open Sans",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px}.dslca-module-edit-option-checkbox{white-space:nowrap;width:auto}.dslca-module-edit-option-checkbox input[type=checkbox]{display:none}.dslca-module-edit-option-checkbox-wrapper{display:table-cell;background:#3b6fbe;border-radius:3px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-checkbox-single{padding:6px 8px;display:table-cell}.dslca-module-edit-option-checkbox-hook{cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-module-edit-option-radio{width:auto}.dslca-module-edit-option-radio input[type=radio]{vertical-align:bottom}.dslca-module-edit-option-radio-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-radio-single{margin:6px;display:inline-block;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-field-icon-switch-set{position:absolute;margin-top:8px;font-size:10px;line-height:13px;cursor:pointer}.dslca-module-edit-field-icon-switch-set .dslca-icon{color:rgba(255,255,255,.7);margin-right:4px}.dslca-module-edit-field-icon-switch-sets{background:#fff;color:#8a8a8a;font-family:'Open Sans',sans-serif;font-size:13px;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-switch-sets span{display:block;padding:5px 10px;cursor:pointer;border-radius:3px}.dslca-module-edit-field-icon-switch-sets span:hover{background:rgba(0,0,0,.1)}.dslca-module-edit-field-icon-switch-sets span.dslca-active{background:#5890e5;color:#fff}.dslca-module-edit-option-box_shadow,.dslca-module-edit-option-text_shadow{width:auto}.dslca-module-edit-option-box-shadow-wrapper,.dslca-module-edit-option-text-shadow-wrapper{display:table-cell;background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:2px 10px;font-size:0}.dslca-module-edit-option-box-shadow-single,.dslca-module-edit-option-text-shadow-single{display:table-cell;width:auto;line-height:1;vertical-align:middle;white-space:nowrap;padding-left:20px;position:relative}.dslca-module-edit-option-box-shadow-single input[type=checkbox],.dslca-module-edit-option-text-align input[type=checkbox]{display:none}.dslca-module-edit-option-box-shadow-single:first-child,.dslca-module-edit-option-text-shadow-single:first-child{padding-left:0}.dslca-module-edit-option-box-shadow-single span,.dslca-module-edit-option-text-shadow-single span{font-size:12px;margin-right:10px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single input[type=text],.dslca-module-edit-option-box-shadow-single input[type=text]:focus,.dslca-module-edit-option-box-shadow-single input[type=number],.dslca-module-edit-option-box-shadow-single input[type=number]:focus,.dslca-module-edit-option-text-shadow-single input[type=text],.dslca-module-edit-option-text-shadow-single input[type=text]:focus,.dslca-module-edit-option-text-shadow-single input[type=number],.dslca-module-edit-option-text-shadow-single input[type=number]:focus{width:60px!important;min-width:auto;padding:3px 7px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook{margin-right:0}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook .dslca-icon{margin-left:10px;margin-right:0;font-size:13px;font-weight:400}.dslca-module-edit-option-text-align{width:auto}.dslca-module-edit-option-text-align-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px;font-size:0;display:table-cell}.dslca-module-edit-option-text-align-single{display:table-cell;font-size:14px;text-align:center;line-height:1;vertical-align:middle;padding:5px 12px}.dslca-module-edit-option-text-align-hook{cursor:pointer;opacity:.6;line-height:20px}.dslca-module-edit-option-text-align-hook:hover{opacity:.8}.dslca-module-edit-option-text-align-hook.dslca-active{opacity:1}.dslca-module-edit-options-tab-hook,.dslca-pseudo-module-edit-options-tab-hook{color:#fff;cursor:pointer;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;padding:6px 10px;border-radius:3px;float:left}.dslca-module-edit-options-tab-hook.dslca-active,.dslca-module-edit-options-tab-hook.dslca-active:hover{background:rgba(0,0,0,.11);box-shadow:-1px 1px 1px 0 rgba(0,0,0,.22) inset}.dslca-module-edit-options-tab-hook:hover,.dslca-pseudo-module-edit-options-tab-hook:hover{background:rgba(169,239,255,.17);color:#fff}.dslca-module-edit-options-tab-hook[data-id=animation_styling],.dslca-module-edit-options-tab-hook[data-id=presets_styling]{float:right}.dslca-clear-styling-button{border:1px solid rgba(255,255,255,.4);border-radius:4px;display:inline-block!important;float:right;padding:4px 6px;position:absolute;right:0;top:15px;color:#a0c0f0;cursor:pointer;font-size:11px;font-weight:900;margin-right:18px}.dslca-clear-styling-button:hover{color:#fff}.dslca-modules-section-edit{overflow:hidden;position:relative}.dslca-modules-section-edit-option-hidden{display:none!important}.dslca-modules-section-edit-option input[type=text],.dslca-modules-section-edit-option input[type=number],.dslca-modules-section-edit-option input[type=email],.dslca-modules-section-edit-option select,.dslca-modules-section-edit-option textarea{background:#6c9fed;border:1px solid #447bce;width:100%;height:auto}.dslca-modules-section-edit-option-text{width:235px}.dslca-modules-section-edit-option-textarea{width:500px}.dslca-modules-section-edit-option-checkbox{width:auto}.dslca-modules-section-edit-option-checkbox input[type=checkbox]{display:none}.dslca-modules-section-edit-option-checkbox-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-modules-section-edit-option-checkbox-single{margin:6px;display:table-cell;white-space:nowrap;padding:8px}.dslca-modules-section-edit-option-checkbox-hook{cursor:pointer;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-modules-section-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-modules-section-settings{display:none}.dslca-templates{position:relative}.dslca-template,.dslca-templates .dslca-go-to-section-hook,.dslca-templates .dslca-open-modal-hook{border-right:1px solid rgba(0,0,0,.12);color:#fff;cursor:pointer;display:block;float:left;font-family:'Open Sans',sans-serif;font-size:15px;line-height:1;padding:29px 29px 27px}.dslca-template:hover,.dslca-templates .dslca-go-to-section-hook:hover,.dslca-templates .dslca-open-modal-hook:hover{background:#e25c54;color:#fff}.dslca-templates .dslca-go-to-section-hook .dslca-icon,.dslca-templates .dslca-open-modal-hook .dslca-icon{color:rgba(255,255,255,.5);margin-right:9px;vertical-align:top;line-height:14px}.dslca-templates-load{border-top:1px solid #d8827d}.dslca-template-origin-user{padding-right:50px}.dslca-template .dslca-delete-template-hook{background:rgba(0,0,0,.2);border-radius:3px;display:inline-block;margin-top:-6px;margin-left:7px;padding:5px 7px;cursor:pointer}.dslca-template-save-form input[type=text]{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;margin-bottom:15px;width:224px}#dslca-export-code,#dslca-import-code{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;height:150px;margin-bottom:15px;overflow:hidden;width:224px}.dslca-template-export-form .dslca-close-modal-hook{display:block;width:auto}.dslca-switch{background:#1783bc;border-radius:50%;bottom:-50px;cursor:pointer;height:100px;left:45%;position:fixed;width:100px}.dslca-cancel,.dslca-submit,.dslca-submit-secondary{color:#fff;cursor:pointer;font-size:14px;font-weight:700;line-height:34px;width:110px;display:inline-block;border-radius:3px;font-family:'Open Sans',sans-serif;text-align:center}.dslca-submit{background:#4cc12d;position:relative}.dslca-submit-secondary{background:#5890e5}.dslca-cancel{background:#e55f5f}.dslca-module-reloading{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8);color:#5890e5}.dslca-module-reloading .dslca-icon{font-size:20px;position:absolute;top:50%;left:50%;margin-left:-10px}.dslca-module-placeholder{position:relative;background:#5890e5;height:40px;float:left}.dslc-modules-area.dslc-modules-area-empty{margin-bottom:25px;min-height:120px;box-shadow:0 0 0 2px rgba(173,175,179,.4);text-align:center;vertical-align:middle}.dslc-modules-area-empty::after{content:"Drop modules here";display:inline-block;opacity:1;color:rgba(173,175,179,.4);left:0;right:0;top:50%;margin-top:-10px;position:absolute;font-size:15px;font-family:'Open Sans',sans-serif}.dslc-module-front{position:relative;min-height:30px}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited),body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited){opacity:.5;cursor:default!important}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited):before,body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited):before{content:"";position:absolute;height:100%;width:100%;z-index:199999}.dslc-module-front:hover,.dslc-module-front:hover *{cursor:pointer}.dslc-modules-area:hover{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area:hover .dslc-module-front:hover{box-shadow:0 0 0 2px #5890e5}.dslc-modules-area.dslca-options-hovered .dslc-module-front{box-shadow:0 0 0 0 transparent}.dslc-control-toggle{cursor:pointer;font-size:15px;opacity:.5;position:absolute;right:0}.dslc-control-toggle:hover{opacity:1}.dslca-option-off{opacity:.5}.dslc-control-toggle:before{content:"\f205"}.dslca-option-off .dslc-control-toggle:before{content:"\f204"}.dslc-modules-area{outline:0}.dslc-modules-area-empty.dslc-modules-area.dslca-options-hovered,.dslc-modules-area.dslca-options-hovered{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area-empty.dslca-options-hovered{outline:0!important}.dslc-module-front.ui-sortable-helper{background:#5890e5;border-radius:3px;height:0!important;width:0!important;overflow:hidden;opacity:1!important;cursor:move;padding:0!important;border:0!important;outline:0!important}.dslc-module-front.ui-sortable-helper *{opacity:0}.dslc-module-front .dslc-sortable-helper-icon{display:none;position:absolute;left:25px;top:25px;color:rgba(255,255,255,.5)}.dslc-module-front.ui-sortable-helper .dslc-sortable-helper-icon{display:block;opacity:1}.dslc-modules-area.ui-sortable-helper{cursor:move;border:0!important;outline:0!important}.dslc-modules-area.ui-sortable-helper *{opacity:0}.dslc-modules-section.ui-sortable-helper{max-height:0!important;width:100%!important;overflow:hidden!important;opacity:0!important;padding:0!important;outline:0!important;border:0!important}.dslca-save-composer,.dslca-save-draft-composer{background:#313131;border-radius:3px 6px 6px 3px;cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif;float:left;line-height:1;opacity:0;display:none;padding:10px 43px 10px 12px;text-decoration:none;position:relative;margin-right:6px}.dslca-save-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-composer .dslca-save-composer-icon,.dslca-save-draft-composer .dslca-save-draft-composer-icon{background:#78ca4f;bottom:0;border-radius:0 3px 3px 0;border-top:1px solid #b8e3a2;cursor:pointer;color:#fff;display:block;position:absolute;right:0;top:0;text-align:center;width:30px}.dslca-save-composer .dslca-save-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-save-draft-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-draft-composer .dslca-save-draft-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-no-content{position:absolute;display:none;border:2px dashed #5890e5;padding:35px 10px;width:100%;text-align:center}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook,.dslca-no-content-primary{border-radius:3px;font-size:15px;line-height:1;font-family:'Open Sans',sans-serif}.dslc-modules-area-empty .dslca-no-content{display:block}.dslca-no-content-primary{color:#5890e5;display:inline-block;background:rgba(255,255,255,.75);margin:0;padding:13px}.dslca-no-content .dslca-icon{margin-right:10px}.dslc-modules-area.dslc-1-col .dslca-no-content-help-text,.dslc-modules-area.dslc-2-col .dslca-no-content-help-text{display:none}.dslc-modules-area.dslc-1-col .dslca-icon,.dslc-modules-area.dslc-2-col .dslca-icon{margin-right:0}.dslca-templates-actions{background:rgba(0,0,0,.3);position:absolute;bottom:0;left:0;right:0}.dslca-add-modules-section{text-align:center;width:1180px;max-width:100%;overflow:hidden;margin:30px auto 120px}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook{background:#e5855f;color:#fff!important;cursor:pointer;display:block;float:left;padding:14px 0;text-decoration:none;width:80%}.dslca-add-modules-section-hook:hover,.dslca-import-modules-section-hook:hover{background:#FF9162;color:#fff}.dslca-add-modules-section .dslca-icon,.dslca-import-modules-section .dslca-icon{margin-right:10px;color:rgba(255,255,255,.5)}.dslca-import-modules-section-hook{float:right;width:18%}.dslc-modules-section{position:relative}.dslc-modules-section:hover{box-shadow:0 0 0 2px #eabba9}.dslca-manage-action{color:#fff;display:inline-block;text-decoration:none;font-size:12px;line-height:15px;text-align:center;padding:5px 6px;min-width:20px;margin-right:-2px}.dslca-icon{vertical-align:middle}.dslca-manage-action:first-child{padding-left:8px;border-radius:3px 0 0 3px}.dslca-manage-action:last-child{padding-right:8px;border-radius:0 3px 3px 0}.dslca-modules-section-manage{bottom:0;left:0;right:0;visibility:hidden;margin-bottom:-13px;padding-right:0;position:absolute;z-index:99998;width:100%;text-align:center}.dslca-modules-section-manage:hover{z-index:99999}.dslc-modules-section:hover .dslca-modules-section-manage{visibility:visible!important}.dslca-module-manage-inner,.dslca-modules-section-manage-inner{background:#e5855f;border-radius:3px;display:inline-block;line-height:1;position:relative;z-index:99999;vertical-align:middle;opacity:0;cursor:pointer}.dslca-modules-section-manage .dslca-manage-action:hover{background:#da7348}.dslca-module-manage-inner .dslca-manage-action:hover{background:#507FC9}.dslca-modules-section-placeholder{position:relative;background:#E5855F;height:2px;width:100%;margin:10px 0}.dslca-modules-section-placeholder .dslca-placeholder-help-text-inner{background:#E5855F}.dslca-placeholder-help-text{position:absolute;left:0;bottom:0;right:0;text-align:center}.dslca-placeholder-help-text-inner{background:#5890e5;border-radius:3px 3px 0 0;color:#fff;font-family:'Open Sans',sans-serif;font-style:12px;font-weight:700;display:inline-block;padding:5px 10px}.dslca-add-modules-area-hook{background:#5fb7e5;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;margin-right:7px;padding:7px 10px;text-decoration:none;vertical-align:middle}.dslca-add-modules-area-hook:hover{color:#fff}.dslca-add-modules-area-hook .dslca-icon{margin-right:5px;color:rgba(255,255,255,.5);position:relative;top:1px}.dslc-modules-area{position:relative}.dslca-modules-area-drag-in-progress .dslc-modules-area{margin-right:1%!important;clear:none}.dslca-modules-area-manage{visibility:hidden;opacity:.5;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;bottom:0;position:absolute;left:auto;right:100%;top:0;margin-right:0;text-align:center;z-index:999999}.dslc-modules-area:hover .dslca-modules-area-manage{visibility:visible;opacity:.5}.dslc-modules-area .dslca-modules-area-manage:hover{opacity:1}.dslca-modules-area-manage.dslca-horizontal{top:50%}.dslc-modules-section.dslc-full .dslca-modules-area-manage{right:auto;left:0;margin-right:0}.dslca-modules-area-manage-inner{background:#b2b7bc;border-radius:3px 0 0 3px;border-right-width:0;display:inline-block;margin-top:10px;position:relative;z-index:99999}.dslca-horizontal .dslca-modules-area-manage-inner{margin-top:-47px}.dslc-modules-section.dslc-full .dslca-modules-area-manage-inner{border-radius:0 3px 3px 0}.dslca-modules-area-manage .dslca-manage-action{color:#fff;display:block;text-decoration:none;font-size:12px;line-height:16px;text-align:center;margin:0}.dslca-modules-area-manage-inner .dslca-manage-action:first-child{margin-left:0;margin-top:0;padding-top:6px;border-radius:3px 0 0}.dslca-modules-area-manage .dslca-manage-action:last-child{padding-bottom:6px;border-radius:0 0 0 3px}#dslc-content .dslca-modules-area-manage .dslca-manage-action:hover{color:#fff;background:#a4a5a9}#dslc-content .dslca-modules-area-manage .dslca-change-width-modules-area-hook{position:relative}#dslc-content .dslca-modules-area-manage .dslca-icon{font-size:12px}.dslca-change-width-module-options,.dslca-change-width-modules-area-options{background:#fff;border:1px solid #d9dcdf;border-radius:3px;display:none;padding:7px;position:absolute;top:-10px;left:22px;z-index:99999;width:120px}.dslca-change-width-module-options{top:30px}.dslca-change-width-modules-area-options:after,.dslca-change-width-modules-area-options:before{right:100%;top:18px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-change-width-modules-area-options:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:10px;margin-top:-10px}.dslca-change-width-modules-area-options:before{border-color:rgba(205,205,205,0);border-right-color:#cdcdcd;border-width:11px;margin-top:-11px}.dslca-change-width-module-options span,.dslca-change-width-modules-area-options span{background:#4785db;border-radius:3px;display:inline-block;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:400;line-height:24px;max-width:44px;margin:1px;text-align:center;width:44px}.dslca-change-width-module-options span:hover,.dslca-change-width-modules-area-options span:hover{background:#6B9FF1}.dslca-change-width-module-options span:first-child,.dslca-change-width-modules-area-options span:first-child{background:0 0;color:#5e636a;display:inline-block;font-size:13px;margin-bottom:5px;max-width:none;width:auto}#dslc-content .dslca-module-manage .dslca-module-manage-hook:hover,.dslca-section-scroller-next .dslca-icon,.dslca-section-scroller-prev .dslca-icon{color:#fff}.dslc-module-front.dslc-1-col .dslca-change-width-module-options span[data-size="1"],.dslc-module-front.dslc-10-col .dslca-change-width-module-options span[data-size="10"],.dslc-module-front.dslc-11-col .dslca-change-width-module-options span[data-size="11"],.dslc-module-front.dslc-12-col .dslca-change-width-module-options span[data-size="12"],.dslc-module-front.dslc-2-col .dslca-change-width-module-options span[data-size="2"],.dslc-module-front.dslc-3-col .dslca-change-width-module-options span[data-size="3"],.dslc-module-front.dslc-4-col .dslca-change-width-module-options span[data-size="4"],.dslc-module-front.dslc-5-col .dslca-change-width-module-options span[data-size="5"],.dslc-module-front.dslc-6-col .dslca-change-width-module-options span[data-size="6"],.dslc-module-front.dslc-7-col .dslca-change-width-module-options span[data-size="7"],.dslc-module-front.dslc-8-col .dslca-change-width-module-options span[data-size="8"],.dslc-module-front.dslc-9-col .dslca-change-width-module-options span[data-size="9"],.dslc-modules-area.dslc-1-col .dslca-change-width-modules-area-options span[data-size="1"],.dslc-modules-area.dslc-10-col .dslca-change-width-modules-area-options span[data-size="10"],.dslc-modules-area.dslc-11-col .dslca-change-width-modules-area-options span[data-size="11"],.dslc-modules-area.dslc-12-col .dslca-change-width-modules-area-options span[data-size="12"],.dslc-modules-area.dslc-2-col .dslca-change-width-modules-area-options span[data-size="2"],.dslc-modules-area.dslc-3-col .dslca-change-width-modules-area-options span[data-size="3"],.dslc-modules-area.dslc-4-col .dslca-change-width-modules-area-options span[data-size="4"],.dslc-modules-area.dslc-5-col .dslca-change-width-modules-area-options span[data-size="5"],.dslc-modules-area.dslc-6-col .dslca-change-width-modules-area-options span[data-size="6"],.dslc-modules-area.dslc-7-col .dslca-change-width-modules-area-options span[data-size="7"],.dslc-modules-area.dslc-8-col .dslca-change-width-modules-area-options span[data-size="8"],.dslc-modules-area.dslc-9-col .dslca-change-width-modules-area-options span[data-size="9"]{background:#3B6FBE;box-shadow:1px 1px 3px rgba(0,0,0,.28) inset;cursor:default}.dslc-modules-area-empty .dslca-modules-area-manage{top:12px;bottom:auto}.dslc-modules-area-empty .dslca-modules-area-manage-inner{margin-top:0}.dslca-modules-area-placeholder{position:relative;background:#5890e5;height:2px;margin:10px;float:left}body.rtl .dslca-modules-area-placeholder{float:right}.dslca-module-manage{display:block;position:absolute;left:50%;margin-left:-47px;top:-2px;text-align:center;z-index:99999;overflow:hidden;line-height:1}.dslca-module-manage.dslca-module-manage-change-width-active{z-index:100000}.dslca-module-manage-inner{background:#5890e5}.dslca-module-manage-inner.dslca-dev-mode{background:#444;border-color:#333}#dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage .dslca-module-manage-hook,#dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage .dslca-module-manage-hook{margin-right:-2px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:first-child{margin-top:0;border-radius:0 0 0 3px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:last-child{margin-right:0!important;border-radius:0 0 3px}.dslca-section-scroller{position:relative;height:74px;margin-right:80px;overflow:hidden}.dslca-section-scroller-inner{position:absolute;top:0;left:0;bottom:0;width:999999px;text-align:left;-webkit-transition:left .3s ease-in-out;-moz-transition:left .3s ease-in-out;transition:left .3s ease-in-out}.dslca-prompt-modal-actions,.dslca-prompt-modal-msg{text-align:center}.dslca-section-scroller-content{display:inline-block;padding-right:80px}.dslca-section-scroller-fade{background:-moz-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(88,144,229,0)),color-stop(100%,rgba(70,116,185,1)));background:-webkit-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-o-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-ms-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:linear-gradient(to right,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#00004799', endColorstr='#5890e5', GradientType=1 );position:absolute;right:80px;width:20px;bottom:0;top:0;z-index:1}.dslca-section-scroller-nav{position:absolute;right:0;top:0;bottom:0;overflow:hidden;width:80px;font-size:30px}.dslca-section-scroller-nav>a{cursor:pointer;display:flex;justify-content:center;align-items:center;width:40px;position:absolute;left:0;top:0;bottom:0;text-decoration:none;outline:0!important;background:rgba(0,0,0,.2)}.dslca-section-scroller-nav>a:hover{background:rgba(0,0,0,.15)}.dslca-section-scroller-nav>a:active{background:rgba(0,0,0,.25)}.dslca-section-scroller-nav .dslca-section-scroller-next{left:auto;right:0}.dslca-modal{background:#fff;border-radius:3px;color:#444;display:none;padding:14px 17px;position:absolute;bottom:55px;-moz-box-shadow:0 1px 6px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 6px rgba(0,0,0,.2);box-shadow:0 1px 6px rgba(0,0,0,.2);z-index:9999991}.dslca-modal:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:7px;left:50%;margin-left:-7px}.dslca-prompt-modal-msg textarea.js-error-text{width:100%;min-height:80px;padding:5px;line-height:1.6em;font-size:13px;color:#848484}.dslca-prompt-modal-confirm-hook{margin-right:7px}.dslca-prompt-modal{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;height:100%}.dslca-prompt-modal-content{background:#fff;border-radius:3px;top:50%;position:relative;width:400px;margin:-123px auto 0;padding:30px 20px;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12)}.dslca-prompt-modal-descr,.dslca-prompt-modal-title{display:block;font-family:'Open Sans',sans-serif;margin-bottom:22px}.dslca-prompt-modal-title{color:#424242;font-size:16px;font-weight:700;line-height:1}.dslca-prompt-modal-descr{color:#8a8a8a;font-size:13px;font-weight:400;line-height:22px}.dslca-prompt-modal-descr textarea{width:100%;min-height:80px;padding:5px;font-size:11px}.dslca-prompt-modal-actions .dslc-icon{color:rgba(255,255,255,.5);margin-right:6px}.dslca-accordion-plain-content,.dslca-module-options-front,.dslca-module-options-front-backup,.dslca-tab-plain-content{display:none}#dslca-code,#dslca-content-for-search,.dslca-module-code,.dslca-module-edit-option-size{display:none!important}#dslca-wysiwyg-actions-cancel-hook,#dslca-wysiwyg-actions-save-hook{border-radius:3px;display:inline-block;padding:13px 10px;position:relative;color:#fff;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:700;cursor:pointer;line-height:1}#dslca-wysiwyg{position:absolute;top:0;left:-110%;z-index:99999;height:200px;padding-bottom:60px}#dslcawysiwyg{overflow:hidden;height:100px}#wp-dslcawysiwyg-editor-container{height:82%}#dslc-content .dslc-module-front.dslca-module-wysiwyg-active{opacity:0;min-height:200px}#dslca-wysiwyg-actions{bottom:0;position:absolute;color:#fff;left:0;line-height:1;right:0;text-align:right}#dslca-wysiwyg-actions-save-hook{background:#5bd63b;text-align:center}#dslca-wysiwyg-actions-cancel-hook{background:#e55858;text-align:center}#dslc-content .dslca-wysiwyg-actions-edit{position:absolute;top:0;right:0;overflow:hidden}#dslc-content .dslca-wysiwyg-actions-edit-hook{background:#5890e5;color:#fff;cursor:pointer;display:block;font-size:12px;font-family:'Open Sans',sans-serif;line-height:1;font-weight:700;position:relative;top:-50px;padding:7px 10px;border-radius:0 0 0 3px;letter-spacing:0}#dslc-content .dslca-wysiwyg-actions-edit-hook:hover{background:#5080C9}body.dslca-enabled #mce-modal-block,body.dslca-enabled #mceModalBlocker,body.dslca-enabled #wp-link-backdrop,body.dslca-enabled .ui-dialog,body.dslca-enabled .ui-widget-overlay{z-index:99999999!important}body.dslca-enabled #dslcawpeditor_forecolor_menu,body.dslca-enabled #menu_dslcawpeditor_dslcawpeditor_formatselect_menu,body.dslca-enabled #wp-link-wrap,body.dslca-enabled .clearlooks2,body.dslca-enabled .mce-menu,body.dslca-enabled .mce-panel{z-index:999999991!important}body.dslca-enabled .mce_fullscreen{display:none}@keyframes dslcBounceIn{0%{-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0);opacity:0}70%{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{opacity:1}}@-moz-keyframes dslcBounceIn{0%{-moz-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-moz-transform:scale(1.05);transform:scale(1.05)}90%{-moz-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@-webkit-keyframes dslcBounceIn{0%{-webkit-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-webkit-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@keyframes dslcBounceOut{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut{0%{-moz-transform:scale(1);transform:scale(1)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);-moz-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut2{0%{-moz-transform:scale(1);transform:scale(1)}30%{-moz-transform:scale(1.01);transform:scale(1.01)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-moz-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-webkit-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@keyframes dslcRotate{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcRotate{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-modules-area.dslca-init-animation,.dslca-save-composer.dslca-init-animation,.dslca-save-draft-composer.dslca-init-animation{display:block;opacity:1;-webkit-animation-name:dslcBounceIn;-moz-animation-name:dslcBounceIn;animation-name:dslcBounceIn;animation-duration:.6s;-webkit-animation-duration:.6s}.dslc-editable-content.dslc-pen,.dslc-editable-content:focus{outline:rgba(0,0,0,.2) dashed 1px}span.dslca-manage-action,span.dslca-manage-action:hover,span.dslca-manage-action:hover *{cursor:pointer}.dslca-module-being-edited .dslca-module-manage{display:none!important}.dslc-notification .dslca-refresh-module-hook{right:35px}.dslca-container .dslca-module-edit-option-slider,.dslca-container .dslca-modules-section-edit-option-slider{position:relative}.dslca-container .dslca-module-edit-field-slider,.dslca-container .dslca-modules-section-edit-field-slider{background:#6c9fed;border-radius:5px;position:relative;height:5px;margin-top:20px}.dslca-container .dslca-module-edit-field-slider .ui-slider-handle,.dslca-container .dslca-modules-section-edit-field-slider .ui-slider-handle{background:#3b6fbe;border:1px solid #3565ad;border-radius:50%;top:-6px;position:absolute;width:15px;height:15px;margin-left:-7px}.dslca-container .dslca-module-edit-field-slider-tooltip,.dslca-container .dslca-modules-section-edit-field-slider-tooltip{display:none;position:absolute;background:#fff;border-radius:3px;bottom:20px;line-height:1;padding:10px;color:#838383;margin-left:-15px;font-size:14px}.dslca-container .dslca-module-edit-field-slider-tooltip:after,.dslca-container .dslca-modules-section-edit-field-slider-tooltip:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:#fff transparent transparent;border-width:6px;left:50%;margin-left:-6px}.dslca-module-edit-option-slider input,.dslca-modules-section-edit-option-slider input{cursor:ew-resize}.dslca-module-edit-option-slider:hover:after,.dslca-modules-section-edit-option-slider:hover:after{content:"click and drag";display:block;font-size:11px;margin-top:5px;opacity:.4;position:absolute}.dslca-module-edit-field-numeric-wrap,.dslca-modules-section-edit-field-numeric-wrap{position:relative}.dslca-module-edit-field-numeric-ext,.dslca-modules-section-edit-field-numeric-ext{position:absolute;color:rgba(255,255,255,.8);font-size:12px;right:15px;top:50%;margin-top:-5px;line-height:1}.dslca-module-edit-option-slider .dslca-module-edit-field-numeric-ext{right:10px;top:14px}.dslca-separator-empty{height:1px;line-height:0;border-bottom:1px solid rgba(0,0,0,.06);text-align:center;position:absolute;top:50%;left:0;right:0}.dslca-separator-empty span{background:#fff;border-radius:3px;color:#a0a0a0;display:inline-block;font-family:"Open Sans",sans-serif;font-size:10px;line-height:1;padding:3px 6px;position:relative;top:-7px}.dslca-wp-editor{background:rgba(0,0,0,.7);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999}.dslca-wp-editor-inner{background:#fff;position:fixed;top:30px;left:30px;right:30px;bottom:30px;padding:50px}.dslca-wp-editor-actions,.dslca-wp-editor-notification{margin-top:30px}#wp-dslcawpeditor-editor-container{border:1px solid #ddd}.dslca-invisible-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99998}.dslca-disable-selection .dslca-invisible-overlay{display:block}.dslca-loading-modal{background:rgba(0,0,0,.75);position:fixed;top:0;left:0;right:0;bottom:200px;z-index:999999}.dslca-loading-modal-content{position:relative;top:200px;width:580px;margin:0 auto}.dslca-loading-modal-msg{background:#fff;border-radius:3px;color:#707070;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:400;line-height:1.5;padding:35px 25px;text-align:center;margin-bottom:10px;-moz-box-shadow:0 0 7px #000;-webkit-box-shadow:0 0 7px #000;box-shadow:0 0 7px #000}.dslca-loading-modal-actions{text-align:right}.dslca-loading-modal-cancel-hook,.dslca-loading-modal-confirm-hook{background:#e55f5f;border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;padding:13px 15px}.dslca-loading-modal-confirm-hook{background:#4cc12d;margin-right:7px}.dslca-module-edit-field-ttip-content{display:none}.dslca-module-edit-field-icon-ttip-hook,.dslca-module-edit-field-ttip-hook{background:#3b6fbe;color:#5890e5;cursor:pointer;border-radius:50%;position:relative;display:inline-block;width:13px;height:13px;margin-left:10px;vertical-align:bottom}.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook .dslca-icon{position:absolute;left:5px;font-weight:400;font-size:10px;top:1px}.dslca-module-edit-field-icon-ttip,.dslca-module-edit-field-ttip{background:#fff;color:#8a8a8a;font-family:'Opens Sans',sans-serif;font-size:13px;line-height:1.4;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-ttip a,.dslca-module-edit-field-ttip a{color:#5890e5;font-weight:700;text-decoration:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:after,.dslca-module-edit-field-ttip:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-ttip:after{border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:8px;left:50%;margin-left:-8px}.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:before{border-color:rgba(224,224,224,0);border-top-color:#d2d2d2;border-width:9px;left:50%;margin-left:-9px}.dslca-module-edit-field-ttip-close{cursor:pointer;position:absolute;background:#e55f5f;top:-9px;right:-9px;width:18px;line-height:18px;border-radius:18px;color:#fff;font-size:11px}.dslca-module-edit-option-image,.dslca-modules-section-edit-option-upload{min-width:auto}.dslca-module-edit-field-image-add-hook,.dslca-module-edit-field-image-remove-hook,.dslca-modules-section-edit-field-image-add-hook,.dslca-modules-section-edit-field-image-remove-hook{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;color:#a0c0f0;cursor:pointer;display:inline-block;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:400;padding:9px 12px;line-height:1;white-space:nowrap}.dslca-module-edit-field-image-add-hook .dslca-icon,.dslca-module-edit-field-image-remove-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon{margin-right:7px}#dslc-footer,#dslc-header{position:relative}.dslc-hf-block-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(88,144,229,.9);z-index:99999;text-align:center;opacity:0;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.dslc-hf-block-overlay:hover,.dslca-drag-not-in-progress .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:1}.dslc-hf-block-overlay-button{text-align:center;position:absolute;left:0;right:0;top:45%;display:inline-block;color:#fff;font-size:20px;font-family:'Open Sans',sans-serif;text-decoration:none;font-weight:700}body.dslca-composer-hidden .dslc-module-front,body.dslca-composer-hidden .dslc-modules-area,body.dslca-composer-hidden .dslc-modules-section{outline:0!important;border:none!important}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-composer-hidden .dslca-add-modules-section,body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,body.dslca-composer-hidden .dslca-module-manage,body.dslca-composer-hidden .dslca-modules-area-manage{display:none!important}.dslca-loading{position:absolute;top:15px;left:25px;display:none}.followingBallsGWrap{width:64px;height:5px}.followingBallsG{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:5px;height:5px;-moz-border-radius:3px;-moz-animation-name:bounce_followingBallsG;-moz-animation-duration:2.3s;-moz-animation-iteration-count:infinite;-moz-animation-direction:linear;-webkit-border-radius:3px;-webkit-animation-name:bounce_followingBallsG;-webkit-animation-duration:2.3s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:linear;-ms-border-radius:3px;-ms-animation-name:bounce_followingBallsG;-ms-animation-duration:2.3s;-ms-animation-iteration-count:infinite;-ms-animation-direction:linear;-o-border-radius:3px;-o-animation-name:bounce_followingBallsG;-o-animation-duration:2.3s;-o-animation-iteration-count:infinite;-o-animation-direction:linear;border-radius:3px;animation-name:bounce_followingBallsG;animation-duration:2.3s;animation-iteration-count:infinite;animation-direction:linear}.followingBallsG_1{-moz-animation-delay:0s;-webkit-animation-delay:0s;-ms-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.followingBallsG_2{-moz-animation-delay:.23s;-webkit-animation-delay:.23s;-ms-animation-delay:.23s;-o-animation-delay:.23s;animation-delay:.23s}.followingBallsG_3{-moz-animation-delay:.46s;-webkit-animation-delay:.46s;-ms-animation-delay:.46s;-o-animation-delay:.46s;animation-delay:.46s}.followingBallsG_4{-moz-animation-delay:.69s;-webkit-animation-delay:.69s;-ms-animation-delay:.69s;-o-animation-delay:.69s;animation-delay:.69s}@-moz-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-webkit-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-ms-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-o-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}.dslca-container-loader{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.2);display:none}.dslca-container-loader-inner{position:absolute;top:10px;left:15px}body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Excerpt],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Meta],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Downloads_Button],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Gallery_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Project_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Staff_Social]{display:none!important}.media-modal{z-index:999999999!important}.media-modal-backdrop{z-index:999999998!important}.dslca-container .dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook,.dslca-pseudo-panel .dslca-pseudo-close-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:Roboto,sans-serif;font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-close-composer-hook:hover{background:#f27562}.dslca-container .dslca-hide-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon,.dslca-pseudo-close-composer-hook .dslca-icon,.dslca-pseudo-hide-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}body.rtl .dslca-templates .dslca-go-to-section-hook .dslca-icon,body.rtl .dslca-templates .dslca-open-modal-hook .dslca-icon{margin-right:0;margin-left:9px}body.rtl .dslca-section-title-filter .dslca-icon{margin-left:0;margin-right:10px}body.rtl .dslca-activate-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-close-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-hide-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-show-composer-hook .dslca-icon{margin-right:0;margin-left:5px}body.rtl .dslca-module .dslca-icon{margin-right:0;margin-left:11px}body.rtl .dslca-header .dslca-options-filter-hook .dslca-icon{margin-right:0;margin-left:4px}body.rtl .dslca-prompt-modal-actions .dslc-icon{margin-right:0;margin-left:6px}body.rtl .dslca-module-edit-option-checkbox-hook .dslca-icon,body.rtl .dslca-no-content .dslca-icon{margin-right:0;margin-left:10px}body.rtl .dslca-module-edit-options-inner,body.rtl .dslca-modules-section-edit-options-inner{overflow-x:auto}body.rtl .dslca-module-edit-option,body.rtl .dslca-modules-section-edit-option{float:right}.dslca-module-edit-options-wrapper,.dslca-modules-section-edit-options-wrapper,.dslca-pseudo-module-edit-options-wrapper{display:table-cell;padding:0 0 20px}.dslca-module-edit-options-inner,.dslca-modules-section-edit-options-inner{overflow-x:scroll}.dslca-styling-presets{position:absolute;top:0;right:0;margin-right:15px;margin-top:15px}.dslca-drag-not-in-progress .dslc-modules-section .dslca-modules-section-manage-inner{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-module-front .dslca-module-manage{overflow:hidden}.dslca-drag-not-in-progress .dslc-module-front:hover .dslca-module-manage.dslca-module-manage-change-width-active{overflow:visible}.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-wysiwyg-actions-edit-hook{top:0;opacity:0;-webkit-transition:opacity .1s ease-in-out;-moz-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit-hook{top:0;opacity:1}.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-modules-area:hover .dslca-modules-area-manage-inner{opacity:1}.dslca-modal.dslca-modal-icons{width:70%;position:fixed;padding:0;overflow:scroll;top:2%;left:50%!important;visibility:visible;transform:translate(-50%,0);z-index:100001}.dslca-prompt-modal-custom{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;height:100%}.dslca-modal-icons .modal-content{height:100%}.dslca-modal-icons .dslc-icons-grid{list-style:none;margin:0;padding:0;text-align:left}.dslca-modal-icons .icon-item{display:inline-block;width:12.4%;min-height:120px;padding:0;margin:0 0 0 -1px;vertical-align:top;text-align:center;border-left:1px solid rgba(155,155,155,.05);border-bottom:1px solid rgba(155,155,155,.05)}.dslca-modal-icons .icon-item:hover{-webkit-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);-moz-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);box-shadow:0 1px 5px 0 rgba(68,68,68,.52);cursor:pointer}.dslca-modal-icons .icon-item:active{-webkit-box-shadow:0 1px 5px 0 #5890e5 inset;-moz-box-shadow:0 1px 5px 0 #5890e5 inset;box-shadow:0 1px 5px 0 #5890e5 inset}.dslca-modal-icons .icon-item_icon{display:inline-block;width:100%;padding:28px 0 16px;font-size:24px;opacity:.7}.dslca-modal-icons .icon-item:hover .icon-item_icon{opacity:1}.dslca-modal-icons .icon-item_name{opacity:.35;display:inline-block;font-family:'Open Sans',sans-serif;font-size:12px;line-height:1.25;padding:5px 8px 12px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area,body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{display:block;margin:0 auto;position:relative;border:14px solid #000;border-top-width:60px;border-radius:16px;top:40px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area{width:480px;max-width:767px}body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{width:768px;min-width:768px;max-width:1024px}body.dslca-enabled.dslc-res-phone #page-builder-frame,body.dslca-enabled.dslc-res-tablet #page-builder-frame{display:block;position:relative}html.dslc-responsive-preview{background:#61666A}#page-builder-preview-area.ui-resizable-resizing .ui-resizable-e{width:100%}#page-builder-preview-area .ui-resizable-e{cursor:e-resize;height:100%;right:-14px;width:14px;top:0}#page-builder-preview-area .ui-resizable-handle{display:block;font-size:.1px;position:absolute}.dslca-module-edit-field-colorpicker,.dslca-modules-section-edit-field-colorpicker{display:block!important;cursor:pointer;position:relative;z-index:1}.dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-color{display:inline-block!important;cursor:pointer;position:relative;z-index:1;width:auto}body .sp-palette-container{border-right:1px solid #3e3e3e}body .sp-palette .sp-thumb-el{border:none;height:25px;margin:1px;width:25px}.dslca-pseudo-panel{bottom:0;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-pseudo-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-pseudo-module-edit-label{width:80px;background:#6c9fed;border-radius:3px}.dslca-pseudo-module-edit-field{border:0;width:100%;height:33px}.dslca-pseudo-module-edit-option{opacity:0;transition:opacity .3s 0s ease-in}.dslca-pseudo-module-edit-option:nth-child(2){transition-delay:.15s}.dslca-pseudo-module-edit-option:nth-child(3){transition-delay:.25s}.dslca-pseudo-module-edit-option:nth-child(4){transition-delay:.5s}.dslca-pseudo-module-edit-option:nth-child(5){transition-delay:.75s}.dslca-pseudo-panel.show .dslca-pseudo-module-edit-option{opacity:1}.lc-shake-effect.active{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}body.dslca-drag-in-progress .lc-scroll-top-area,body.dslca-new-module-drag-in-progress .lc-scroll-top-area{position:fixed;top:0;z-index:99999;left:0;width:100%;height:80px}body.dslca-drag-in-progress .lc-scroll-bottom-area,body.dslca-new-module-drag-in-progress .lc-scroll-bottom-area{position:fixed;bottom:0;left:0;z-index:99999;width:100%;height:140px}.sp-container.sp-flat,.sp-top{position:relative}.sp-clear-enabled .sp-hue,.sp-hue{height:100%;top:0}.sp-container{top:0;left:0;display:inline-block;overflow:hidden}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{width:100%;display:inline-block}.sp-alpha-handle,.sp-color,.sp-dragger,.sp-hue,.sp-sat,.sp-slider,.sp-top-inner,.sp-val{position:absolute}.sp-top-inner{top:0;left:0;bottom:0;right:0}.sp-color{top:0;left:0;bottom:0;right:20%}.sp-hue{right:0;bottom:0;left:84%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha,.sp-clear,.sp-container.sp-buttons-disabled .sp-button-container,.sp-container.sp-input-disabled .sp-input-container,.sp-initial-disabled .sp-initial,.sp-palette-disabled .sp-palette-container,.sp-palette-only .sp-picker-container{display:none}.sp-alpha-handle{top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:1px solid #333}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:none;position:absolute;top:0;right:0;bottom:0;left:84%;height:28px}.sp-alpha,.sp-alpha-handle,.sp-clear,.sp-container,.sp-container button,.sp-container.sp-dragging .sp-input,.sp-dragger,.sp-preview,.sp-replacer,.sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#FFF),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#FFF,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.sp-hue{background:-moz-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.sp-hidden{display:none!important}.sp-cf:after,.sp-cf:before{content:"";display:table}@media (max-device-width:480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;top:0;left:0}.sp-slider{top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;padding:0}.sp-clear,.sp-color,.sp-container,.sp-container button,.sp-container input,.sp-hue{font:400 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-clear,.sp-color,.sp-hue{border:1px solid #666}.sp-input-container{float:right;width:100px}.sp-initial-disabled .sp-input-container,.sp-input{width:100%}.sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;background:0 0;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container,.sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-290px}.sp-picker-container{width:172px}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer}.sp-palette .sp-thumb-el.sp-thumb-active,.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-initial{float:left;border:1px solid #333}.sp-initial span{width:30px;height:25px;border:0;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:1px solid #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer.sp-active,.sp-replacer:hover{border-color:#F0C49B;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{width:25px;height:20px;border:1px solid #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:1px solid #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f!important;margin:0 5px 0 0;padding:2px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.sp-palette span.sp-thumb-active,.sp-palette span:hover{border-color:#000}.sp-alpha,.sp-preview,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-alpha-inner,.sp-preview-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.sp-container{position:fixed;z-index:99999999!important;background:#313131;border:0}.sp-picker-container{border:0}.sp-clear,.sp-color,.sp-hue{border-color:#000}.sp-button-container{float:none;text-align:right;clear:both;margin-top:10px}.dslca-container .sp-dd{display:none}.dslca-container .sp-preview{width:100%;height:15px;border:1px solid #3565ad;border-radius:4px;overflow:hidden}.dslca-sp-revert,.sp-cancel.dslc-icon,.sp-choose.dslc-icon{padding:0;margin:0;background:#e55f5f;display:inline-block;width:24px;height:24px;line-height:24px;font-size:12px;color:#fff!important;border-radius:3px;text-align:center;text-decoration:none!important;cursor:pointer;vertical-align:baseline}.sp-choose.dslc-icon{background:#78ca4f;margin-left:5px}.dslca-sp-revert{background:#06b2ac;float:left}.sp-input-container{margin-top:5px;margin-bottom:10px}body input[type=text].sp-input{background:#444!important;padding:5px;border:0;border-radius:0;color:#fff}.dslca-container .sp-replacer{opacity:0;visibility:hidden;display:inline-block!important;width:1px;vertical-align:middle;position:absolute;left:0;top:50px}.dslca-module-edit-option-box-shadow-single .sp-replacer{top:0}
css/builder/builder.main.css CHANGED
@@ -1800,9 +1800,9 @@ body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-sectio
1800
  /*outline-color: #eabba9;*/
1801
  box-shadow: 0 0 0 2px #eabba9;
1802
  }
1803
- .dslc-modules-section-inner {
1804
  min-height: 50px;
1805
- }
1806
 
1807
  /* Manage */
1808
 
@@ -1886,12 +1886,16 @@ body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-sectio
1886
 
1887
  .dslca-modules-section-placeholder {
1888
  position: relative;
1889
- background: #5890e5;
1890
  height: 2px;
1891
  width: 100%;
1892
  margin: 10px 0;
1893
  }
1894
 
 
 
 
 
1895
  .dslca-placeholder-help-text {
1896
  position: absolute;
1897
  left: 0;
1800
  /*outline-color: #eabba9;*/
1801
  box-shadow: 0 0 0 2px #eabba9;
1802
  }
1803
+ /*.dslc-modules-section-inner {
1804
  min-height: 50px;
1805
+ }*/
1806
 
1807
  /* Manage */
1808
 
1886
 
1887
  .dslca-modules-section-placeholder {
1888
  position: relative;
1889
+ background: #E5855F;
1890
  height: 2px;
1891
  width: 100%;
1892
  margin: 10px 0;
1893
  }
1894
 
1895
+ .dslca-modules-section-placeholder .dslca-placeholder-help-text-inner {
1896
+ background: #E5855F;
1897
+ }
1898
+
1899
  .dslca-placeholder-help-text {
1900
  position: absolute;
1901
  left: 0;
ds-live-composer.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://www.livecomposerplugin.com
5
  * Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
6
  * Author: Live Composer Team
7
- * Version: 1.1
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -42,7 +42,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) ):
42
  * Constants
43
  */
44
 
45
- define( 'DS_LIVE_COMPOSER_VER', '1.1' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
4
  * Plugin URI: https://www.livecomposerplugin.com
5
  * Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
6
  * Author: Live Composer Team
7
+ * Version: 1.1.1
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
42
  * Constants
43
  */
44
 
45
+ define( 'DS_LIVE_COMPOSER_VER', '1.1.1' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
includes/editing-screen.php CHANGED
@@ -213,7 +213,10 @@ add_action( 'admin_footer', 'dslc_editing_screen_footer' );
213
  * @since 1.1
214
  */
215
  function dslc_preview_area_head() {
216
- ?>
 
 
 
217
  <style>
218
  #wpadminbar {
219
  display: none !important;
@@ -221,7 +224,7 @@ function dslc_preview_area_head() {
221
  visibility: hidden !important;
222
  }
223
  </style>
224
- <?php
225
  }
226
 
227
  add_action( 'wp_head', 'dslc_preview_area_head' );
213
  * @since 1.1
214
  */
215
  function dslc_preview_area_head() {
216
+
217
+ global $dslc_active;
218
+
219
+ if ( $dslc_active ) : ?>
220
  <style>
221
  #wpadminbar {
222
  display: none !important;
224
  visibility: hidden !important;
225
  }
226
  </style>
227
+ <?php endif;
228
  }
229
 
230
  add_action( 'wp_head', 'dslc_preview_area_head' );
includes/other.php CHANGED
@@ -66,7 +66,7 @@ function dslc_icons() {
66
  function dslc_icons_modal() {
67
 
68
  // Make no sense to continue if used not logged in.
69
- if ( is_user_logged_in() ) {
70
  return;
71
  }
72
 
66
  function dslc_icons_modal() {
67
 
68
  // Make no sense to continue if used not logged in.
69
+ if ( ! is_user_logged_in() ) {
70
  return;
71
  }
72
 
includes/scripts.php CHANGED
@@ -28,7 +28,7 @@ final class DSLC_Scripts{
28
  /**
29
  * Init Scripts loading
30
  */
31
- public function init() {
32
 
33
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_frontend' ) );
34
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_fonts' ) );
@@ -292,7 +292,7 @@ final class DSLC_Scripts{
292
  * @param string $dir scripts search dir.
293
  * @param array $exclude_dirs exclude dirs from search.
294
  */
295
- public static function load_scripts( $dir = '*', $scriptdeps = '', $exclude_dirs = [] ) {
296
 
297
  /** Load builder files dynamically */
298
  $directories = glob( DS_LIVE_COMPOSER_ABS . '/js/' . $dir, GLOB_ONLYDIR );
@@ -381,4 +381,4 @@ final class DSLC_Scripts{
381
  }
382
  }
383
 
384
- ( new DSLC_Scripts )->init();
28
  /**
29
  * Init Scripts loading
30
  */
31
+ public static function init() {
32
 
33
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_frontend' ) );
34
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_fonts' ) );
292
  * @param string $dir scripts search dir.
293
  * @param array $exclude_dirs exclude dirs from search.
294
  */
295
+ public static function load_scripts( $dir = '*', $scriptdeps = '', $exclude_dirs = array() ) {
296
 
297
  /** Load builder files dynamically */
298
  $directories = glob( DS_LIVE_COMPOSER_ABS . '/js/' . $dir, GLOB_ONLYDIR );
381
  }
382
  }
383
 
384
+ DSLC_Scripts::init();
includes/upgrade.class.php CHANGED
@@ -17,7 +17,7 @@ final class DSLC_Upgrade {
17
 
18
  if ( ! is_array( $curr_version ) ) {
19
 
20
- $curr_version = [];
21
  }
22
 
23
  /** Migration usage example
17
 
18
  if ( ! is_array( $curr_version ) ) {
19
 
20
+ $curr_version = array();
21
  }
22
 
23
  /** Migration usage example
js/builder.all.min.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery(this).find(".dslca-change-width-module-options").hide()}jQuery(this).find(".dslca-module-manage").removeClass("dslca-module-manage-change-width-active")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery("#dslc-header").addClass("dslca-header-low-z-index");if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:1e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 10 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d=12,e=12,f=0,g=0,h,i,j,k,l,m="";jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-modules-area",this).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");g=0;l=jQuery(this);m="";jQuery(".dslca-modules-section-settings input",l).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '});c=c+"[dslc_modules_section "+m+"] ";jQuery(".dslc-modules-area",l).each(function(){f=0;i=jQuery(this);h=parseInt(i.data("size"));j="no";k="no";g+=h;if(g==e){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");g=0;j="yes"}else if(g>e){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");g=h;k="yes"}if(g==h){k="yes"}c=c+'[dslc_modules_area last="'+j+'" first="'+k+'" size="'+h+'"] ';jQuery(".dslc-module-front",i).each(function(){var e=jQuery(this);b=parseInt(e[0].getAttribute("data-dslc-module-size"));var g="no";var h="no";f+=b;if(f==d){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");f=0;g="yes";h="yes"}else if(f>d){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");f=b;h="yes"}try{a=e[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+e[0].getAttribute("id"))}if(""!==a){c=c+'[dslc_module last="'+g+'"]'+a+"[/dslc_module] "}a=""});c=c+"[/dslc_modules_area] "});c=c+"[/dslc_modules_section] "});jQuery("#dslca-code").val(c);jQuery("#dslca-export-code").val(c)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b,c,d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="";h=0;var m=a;jQuery(".dslca-modules-section-settings input",m).each(function(){n=n+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '});d=d+"[dslc_modules_section "+n+"] ";jQuery(".dslc-modules-area",m).each(function(){j=jQuery(this);i=parseInt(j.data("size"));k="no";l="no";h+=i;if(h==f){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");h=0;k="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=i;l="yes"}if(h==i){l="yes"}d=d+'[dslc_modules_area last="'+k+'" first="'+l+'" size="'+i+'"] ';jQuery(".dslc-module-front",j).each(function(){c=parseInt(jQuery(this).data("dslc-module-size"));g+=c;if(g==i){jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col");g=0}b=jQuery(this).find(".dslca-module-code").val();d=d+"[dslc_module]"+b+"[/dslc_module] "});d=d+"[/dslc_modules_area] "});d=d+"[/dslc_modules_section] ";return d}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(dslcDebug)console.log("dslc_show_modal");dslc_hide_modal("",jQuery(".dslca-modal:visible"));var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f}).show();jQuery(".dslca-prompt-modal-custom").insertAfter(b);jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn();b.addClass("dslca-modal-open");b.css({}).fadeIn(600)}function dslc_hide_modal(a,b){if(dslcDebug)console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut();b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);jQuery(".dslca-header .dslca-options-filter-hook").show();if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params()},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){LiveComposer.Builder.UI.clearUtils();var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-module-being-edited img",LiveComposer.Builder.PreviewAreaDocument).load(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument))});LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-module-being-edited img",LiveComposer.Builder.PreviewAreaDocument).load(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument))});LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add().then(function(b){a()})}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,
2
- confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";(function(a,b,c){function d(a,b,c){var d=[];for(var e=0;e<a.length;e++){var f=a[e];if(f){var g=tinycolor(f);var h=g.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";h+=tinycolor.equals(b,f)?" sp-thumb-active":"";var i=r?"background-color:"+g.toRgbString():"filter:"+g.toFilter();d.push('<span title="'+g.toRgbString()+'" data-color="'+g.toRgbString()+'" class="'+h+'"><span class="sp-thumb-inner" style="'+i+';" /></span>')}else{var j="sp-clear-display";d.push('<span title="No Color Selected" data-color="" style="background-color:transparent;" class="'+j+'"></span>')}}return"<div class='sp-cf "+c+"'>"+d.join("")+"</div>"}function e(){for(var a=0;a<p.length;a++){if(p[a]){p[a].hide()}}}function f(a,c){var d=b.extend({},o,a);d.callbacks={move:k(d.move,c),change:k(d.change,c),show:k(d.show,c),hide:k(d.hide,c),beforeShow:k(d.beforeShow,c)};return d}function g(g,i){function k(){if(R.showPaletteOnly){R.showPalette=true}if(R.palette){ja=R.palette.slice(0);ka=b.isArray(ja[0])?ja:[ja]}ta.toggleClass("sp-flat",S);ta.toggleClass("sp-input-disabled",!R.showInput);ta.toggleClass("sp-alpha-enabled",R.showAlpha);ta.toggleClass("sp-clear-enabled",Ta);ta.toggleClass("sp-buttons-disabled",!R.showButtons);ta.toggleClass("sp-palette-disabled",!R.showPalette);ta.toggleClass("sp-palette-only",R.showPaletteOnly);ta.toggleClass("sp-initial-disabled",!R.showInitial);ta.addClass(R.className);M()}function n(){function c(a){if(a.data&&a.data.ignore){F(b(this).data("color"));I()}else{F(b(this).data("color"));L(true);I();D()}return false}if(q){ta.find("*:not(input)").attr("unselectable","on")}k();if(Ja){ra.after(Ka).hide()}if(!Ta){Fa.hide()}if(S){ra.after(ta).hide()}else{var d=R.appendTo==="parent"?ra.parent():b(R.appendTo);if(d.length!==1){d=b("body")}d.append(ta)}if(U&&a.localStorage){try{var e=a.localStorage[U].split(",#");if(e.length>1){delete a.localStorage[U];b.each(e,function(a,b){o(b)})}}catch(f){}try{la=a.localStorage[U].split(";")}catch(f){}}La.bind("click.spectrum touchstart.spectrum",function(a){if(!sa){B()}a.stopPropagation();if(!b(a.target).is("input")){a.preventDefault()}});if(ra.is(":disabled")||R.disabled===true){Q()}ta.click(j);Ba.change(A);Ba.bind("paste",function(){setTimeout(A,1)});Ba.keydown(function(a){if(a.keyCode==13){A()}});Ea.text(R.cancelText);Ea.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();D("cancel")});Fa.attr("title",R.clearText);Fa.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();Sa=true;I();if(S){L(true)}});Ga.text(R.chooseText);Ga.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();if(H()){L(true);D()}});l(za,function(a,b,c){ia=a/ca;Sa=false;if(c.shiftKey){ia=Math.round(ia*10)/10}I()},y,z);l(wa,function(a,b){fa=parseFloat(b/aa);Sa=false;if(!R.showAlpha){ia=1}I()},y,z);l(ua,function(a,b,c){if(!c.shiftKey){oa=null}else if(!oa){var d=ga*Z;var e=$-ha*$;var f=Math.abs(a-d)>Math.abs(b-e);oa=f?"x":"y"}var g=!oa||oa==="x";var h=!oa||oa==="y";if(g){ga=parseFloat(a/Z)}if(h){ha=parseFloat(($-b)/$)}Sa=false;if(!R.showAlpha){ia=1}I()},y,z);if(!!Na){F(Na);J();Qa=Pa||tinycolor(Na).format;o(Na)}else{J()}if(S){C()}var g=q?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ca.delegate(".sp-thumb-el",g,c);Da.delegate(".sp-thumb-el:nth-child(1)",g,{ignore:true},c)}function o(c){if(T){var d=tinycolor(c).toRgbString();if(b.inArray(d,la)===-1){la.push(d);while(la.length>ma){la.shift()}}if(U&&a.localStorage){try{a.localStorage[U]=la.join(";")}catch(e){}}}}function v(){var a=[];var b=la;var c={};var d;if(R.showPalette){for(var e=0;e<ka.length;e++){for(var f=0;f<ka[e].length;f++){d=tinycolor(ka[e][f]).toRgbString();c[d]=true}}for(e=0;e<b.length;e++){d=tinycolor(b[e]).toRgbString();if(!c.hasOwnProperty(d)){a.push(b[e]);c[d]=true}}}return a.reverse().slice(0,R.maxSelectionSize)}function w(){var a=G();var c=b.map(ka,function(b,c){return d(b,a,"sp-palette-row sp-palette-row-"+c)});if(la){c.push(d(v(),a,"sp-palette-row sp-palette-row-selection"))}Ca.html(c.join(""))}function x(){if(R.showInitial){var a=Oa;var b=G();Da.html(d([a,b],b,"sp-palette-row-initial"))}}function y(){if($<=0||Z<=0||aa<=0){M()}ta.addClass(na);oa=null;ra.trigger("dragstart.spectrum",[G()])}function z(){ta.removeClass(na);ra.trigger("dragstop.spectrum",[G()])}function A(){var a=Ba.val();if((a===null||a==="")&&Ta){F(null);L(true)}else{var b=tinycolor(a);if(b.ok){F(b);L(true)}else{Ba.addClass("sp-validation-error")}}}function B(){if(Y){D()}else{C()}}function C(){var c=b.Event("beforeShow.spectrum");if(Y){M();return}ra.trigger(c,[G()]);if(W.beforeShow(G())===false||c.isDefaultPrevented()){return}e();Y=true;b(pa).bind("click.spectrum",D);b(a).bind("resize.spectrum",X);Ka.addClass("sp-active");ta.removeClass("sp-hidden");M();J();Oa=G();x();W.show(Oa);ra.trigger("show.spectrum",[Oa])}function D(c){if(c&&c.type=="click"&&c.button==2){return}if(!Y||S){return}Y=false;b(pa).unbind("click.spectrum",D);b(a).unbind("resize.spectrum",X);Ka.removeClass("sp-active");ta.addClass("sp-hidden");var d=!tinycolor.equals(G(),Oa);if(d){if(Ra&&c!=="cancel"){L(true)}else{E()}}W.hide(G());ra.trigger("hide.spectrum",[G()])}function E(){F(Oa,true);W.change(Oa);ra.trigger("change",[Oa])}function F(a,b){if(tinycolor.equals(a,G())){J();return}var c,d;if(!a&&Ta){Sa=true}else{Sa=false;c=tinycolor(a);d=c.toHsv();fa=d.h%360/360;ga=d.s;ha=d.v;ia=d.a}J();if(c&&c.ok&&!b){Qa=Pa||c.format}}function G(a){a=a||{};if(Ta&&Sa){return null}return tinycolor.fromRatio({h:fa,s:ga,v:ha,a:Math.round(ia*100)/100},{format:a.format||Qa})}function H(){return!Ba.hasClass("sp-validation-error")}function I(){J();W.move(G());ra.trigger("move.spectrum",[G()])}function J(){Ba.removeClass("sp-validation-error");K();var a=tinycolor.fromRatio({h:fa,s:1,v:1});ua.css("background-color",a.toHexString());var b=Qa;if(ia<1&&!(ia===0&&b==="name")){if(b==="hex"||b==="hex3"||b==="hex6"||b==="name"){b="rgb"}}var c=G({format:b}),d="";Ma.removeClass("sp-clear-display");Ma.css("background-color","transparent");if(!c&&Ta){Ma.addClass("sp-clear-display")}else{var e=c.toHexString(),f=c.toRgbString();if(r||c.alpha===1){Ma.css("background-color",f)}else{Ma.css("background-color","transparent");Ma.css("filter",c.toFilter())}if(R.showAlpha){var g=c.toRgb();g.a=0;var h=tinycolor(g).toRgbString();var i="linear-gradient(left, "+h+", "+e+")";if(q){ya.css("filter",tinycolor(h).toFilter({gradientType:1},e))}else{ya.css("background","-webkit-"+i);ya.css("background","-moz-"+i);ya.css("background","-ms-"+i);ya.css("background",i)}}d=c.toString(b)}if(R.showInput){Ba.val(d)}if(R.showPalette){w()}x()}function K(){var a=ga;var b=ha;if(Ta&&Sa){Aa.hide();xa.hide();va.hide()}else{Aa.show();xa.show();va.show();var c=a*Z;var d=$-b*$;c=Math.max(-_,Math.min(Z-_,c-_));d=Math.max(-_,Math.min($-_,d-_));va.css({top:d+"px",left:c+"px"});var e=ia*ca;Aa.css({left:e-da/2+"px"});var f=fa*aa;xa.css({top:f-ea+"px"})}}function L(a){var b=G(),c="",d=!tinycolor.equals(b,Oa);if(b){c=b.toString(Qa);o(b)}if(Ha){ra.val(c)}Oa=b;if(a&&d){W.change(b);ra.trigger("change",[b])}}function M(){Z=ua.width();$=ua.height();_=va.height();ba=wa.width();aa=wa.height();ea=xa.height();ca=za.width();da=Aa.width();if(!S){ta.css("position","absolute");ta.offset(h(ta,La))}K();if(R.showPalette){w()}ra.trigger("reflow.spectrum")}function N(){ra.show();La.unbind("click.spectrum touchstart.spectrum");ta.remove();Ka.remove();p[Ua.id]=null}function O(a,d){if(a===c){return b.extend({},R)}if(d===c){return R[a]}R[a]=d;k()}function P(){sa=false;ra.attr("disabled",false);La.removeClass("sp-disabled")}function Q(){D();sa=true;ra.attr("disabled",true);La.addClass("sp-disabled")}var R=f(i,g),S=R.flat,T=R.showSelectionPalette,U=R.localStorageKey,V=R.theme,W=R.callbacks,X=m(M,10),Y=false,Z=0,$=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=1,ja=[],ka=[],la=R.selectionPalette.slice(0),ma=R.maxSelectionSize,na="sp-dragging",oa=null;var pa=g.ownerDocument,qa=pa.body,ra=b(g),sa=false,ta=b(u,pa).addClass(V),ua=ta.find(".sp-color"),va=ta.find(".sp-dragger"),wa=ta.find(".sp-hue"),xa=ta.find(".sp-slider"),ya=ta.find(".sp-alpha-inner"),za=ta.find(".sp-alpha"),Aa=ta.find(".sp-alpha-handle"),Ba=ta.find(".sp-input"),Ca=ta.find(".sp-palette"),Da=ta.find(".sp-initial"),Ea=ta.find(".sp-cancel"),Fa=ta.find(".sp-clear"),Ga=ta.find(".sp-choose"),Ha=ra.is("input"),Ia=Ha&&s&&ra.attr("type")==="color",Ja=Ha&&!S,Ka=Ja?b(t).addClass(V).addClass(R.className):b([]),La=Ja?Ka:ra,Ma=Ka.find(".sp-preview-inner"),Na=R.color||Ha&&ra.val(),Oa=false,Pa=R.preferredFormat,Qa=Pa,Ra=!R.showButtons||R.clickoutFiresChange,Sa=!Na,Ta=R.allowEmpty&&!Ia;n();var Ua={show:C,hide:D,toggle:B,reflow:M,option:O,enable:P,disable:Q,set:function(a){F(a);L()},get:G,destroy:N,container:ta};Ua.id=p.push(Ua)-1;return Ua}function h(a,c){var d=0;var e=a.outerWidth();var f=a.outerHeight();var g=c.outerHeight();var h=a[0].ownerDocument;var i=h.documentElement;var j=i.clientWidth+b(h).scrollLeft();var k=i.clientHeight+b(h).scrollTop();var l=c.offset();l.top+=g;l.left-=Math.min(l.left,l.left+e>j&&j>e?Math.abs(l.left+e-j):0);l.top-=Math.min(l.top,l.top+f>k&&k>f?Math.abs(f+g-d):d);return l}function i(){}function j(a){a.stopPropagation()}function k(a,b){var c=Array.prototype.slice;var d=c.call(arguments,2);return function(){return a.apply(b,d.concat(c.call(arguments)))}}function l(c,d,e,f){function g(a){if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.returnValue=false}function h(a){if(l){if(q&&document.documentMode<9&&!a.button){return j()}var b=a.originalEvent.touches;var e=b?b[0].pageX:a.pageX;var f=b?b[0].pageY:a.pageY;var h=Math.max(0,Math.min(e-m.left,o));var i=Math.max(0,Math.min(f-m.top,n));if(p){g(a)}d.apply(c,[h,i,a])}}function i(a){var d=a.which?a.which==3:a.button==2;var f=a.originalEvent.touches;if(!d&&!l){if(e.apply(c,arguments)!==false){l=true;n=b(c).height();o=b(c).width();m=b(c).offset();b(k).bind(r);b(k.body).addClass("sp-dragging");if(!p){h(a)}g(a)}}}function j(){if(l){b(k).unbind(r);b(k.body).removeClass("sp-dragging");f.apply(c,arguments)}l=false}d=d||function(){};e=e||function(){};f=f||function(){};var k=c.ownerDocument||document;var l=false;var m={};var n=0;var o=0;var p="ontouchstart"in a;var r={};r["selectstart"]=g;r["dragstart"]=g;r["touchmove mousemove"]=h;r["touchend mouseup"]=j;b(c).bind("touchstart mousedown",i)}function m(a,b,c){var d;return function(){var e=this,f=arguments;var g=function(){d=null;a.apply(e,f)};if(c)clearTimeout(d);if(c||!d)d=setTimeout(g,b)}}function n(){if(a.console){if(Function.prototype.bind)n=Function.prototype.bind.call(console.log,console);else n=function(){Function.prototype.apply.call(console.log,console,arguments)};n.apply(this,arguments)}}var o={beforeShow:i,move:i,change:i,show:i,hide:i,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:false,showInitial:false,showPalette:false,showPaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",clearText:"Clear Color Selection",preferredFormat:false,className:"",showAlpha:false,theme:"sp-light",palette:["fff","000"],selectionPalette:[],disabled:false},p=[],q=!!/msie/i.exec(a.navigator.userAgent),r=function(){function a(a,b){return!!~(""+a).indexOf(b)}var b=document.createElement("div");var c=b.style;c.cssText="background-color:rgba(0,0,0,.5)";return a(c.backgroundColor,"rgba")||a(c.backgroundColor,"hsla")}(),s=function(){var a=b("<input type='color' value='!' />")[0];return a.type==="color"&&a.value!=="!"}(),t=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),u=function(){var a="";if(q){for(var b=1;b<=6;b++){a+="<div class='sp-"+b+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",a,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<span class='dslca-sp-revert dslc-icon dslc-icon-undo' title='Revert to default'></span>","<span class='sp-cancel dslc-icon dslc-icon-remove' title='Cancel'></span>","<span class='sp-choose dslc-icon dslc-icon-ok' title='Confirm'></span>","</div>","</div>","</div>"].join("")}();var v="spectrum.id";b.fn.spectrum=function(a,c){if(typeof a=="string"){var d=this;var e=Array.prototype.slice.call(arguments,1);this.each(function(){var c=p[b(this).data(v)];if(c){var f=c[a];if(!f){throw new Error("Spectrum: no such method: '"+a+"'")}if(a=="get"){d=c.get()}else if(a=="container"){d=c.container}else if(a=="option"){d=c.option.apply(c,e)}else if(a=="destroy"){c.destroy();b(this).removeData(v)}else{f.apply(c,e)}}});return d}return this.spectrum("destroy").each(function(){var c=b.extend({},a,b(this).data());var d=g(this,c);b(this).data(v,d.id)})};b.fn.spectrum.load=true;b.fn.spectrum.loadOpts={};b.fn.spectrum.draggable=l;b.fn.spectrum.defaults=o;b.spectrum={};b.spectrum.localization={};b.spectrum.palettes={};b.fn.spectrum.processNativeColorInputs=function(){if(!s){b("input[type=color]").spectrum({preferredFormat:"hex6"})}};(function(){function b(a,d){a=a?a:"";d=d||{};if(typeof a=="object"&&a.hasOwnProperty("_tc_id")){return a}var f=c(a);var h=f.r,k=f.g,n=f.b,o=f.a,p=A(100*o)/100,q=d.format||f.format;if(h<1){h=A(h)}if(k<1){k=A(k)}if(n<1){n=A(n)}return{ok:f.ok,format:q,_tc_id:y++,alpha:o,getAlpha:function(){return o},setAlpha:function(a){o=l(a);p=A(100*o)/100},toHsv:function(){var a=g(h,k,n);return{h:a.h*360,s:a.s,v:a.v,a:o}},toHsvString:function(){var a=g(h,k,n);var b=A(a.h*360),c=A(a.s*100),d=A(a.v*100);return o==1?"hsv("+b+", "+c+"%, "+d+"%)":"hsva("+b+", "+c+"%, "+d+"%, "+p+")"},toHsl:function(){var a=e(h,k,n);return{h:a.h*360,s:a.s,l:a.l,a:o}},toHslString:function(){var a=e(h,k,n);var b=A(a.h*360),c=A(a.s*100),d=A(a.l*100);return o==1?"hsl("+b+", "+c+"%, "+d+"%)":"hsla("+b+", "+c+"%, "+d+"%, "+p+")"},toHex:function(a){return i(h,k,n,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(){return j(h,k,n,o)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:A(h),g:A(k),b:A(n),a:o}},toRgbString:function(){return o==1?"rgb("+A(h)+", "+A(k)+", "+A(n)+")":"rgba("+A(h)+", "+A(k)+", "+A(n)+", "+p+")"},toPercentageRgb:function(){return{r:A(m(h,255)*100)+"%",g:A(m(k,255)*100)+"%",b:A(m(n,255)*100)+"%",a:o}},toPercentageRgbString:function(){return o==1?"rgb("+A(m(h,255)*100)+"%, "+A(m(k,255)*100)+"%, "+A(m(n,255)*100)+"%)":"rgba("+A(m(h,255)*100)+"%, "+A(m(k,255)*100)+"%, "+A(m(n,255)*100)+"%, "+p+")"},toName:function(){if(o===0){return"transparent"}return F[i(h,k,n,true)]||false},toFilter:function(a){var c="#"+j(h,k,n,o);var e=c;var f=d&&d.gradientType?"GradientType = 1, ":"";if(a){var g=b(a);e=g.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+f+"startColorstr="+c+",endColorstr="+e+")"},toString:function(a){var b=!!a;a=a||this.format;var c=false;var d=!b&&o<1&&o>0;var e=d&&(a==="hex"||a==="hex6"||a==="hex3"||a==="name");if(a==="rgb"){c=this.toRgbString()}if(a==="prgb"){c=this.toPercentageRgbString()}if(a==="hex"||a==="hex6"){c=this.toHexString()}if(a==="hex3"){c=this.toHexString(true)}if(a==="hex8"){c=this.toHex8String()}if(a==="name"){c=this.toName()}if(a==="hsl"){c=this.toHslString()}if(a==="hsv"){c=this.toHsvString()}if(e){return this.toRgbString()}return c||this.toHexString()}}}function c(a){var b={r:0,g:0,b:0};var c=1;var e=false;var g=false;if(typeof a=="string"){a=v(a)}if(typeof a=="object"){if(a.hasOwnProperty("r")&&a.hasOwnProperty("g")&&a.hasOwnProperty("b")){b=d(a.r,a.g,a.b);e=true;g=String(a.r).substr(-1)==="%"?"prgb":"rgb"}else if(a.hasOwnProperty("h")&&a.hasOwnProperty("s")&&a.hasOwnProperty("v")){a.s=s(a.s);a.v=s(a.v);b=h(a.h,a.s,a.v);e=true;g="hsv"}else if(a.hasOwnProperty("h")&&a.hasOwnProperty("s")&&a.hasOwnProperty("l")){a.s=s(a.s);a.l=s(a.l);b=f(a.h,a.s,a.l);e=true;g="hsl"}if(a.hasOwnProperty("a")){c=a.a}}c=l(c);return{ok:e,format:a.format||g,r:B(255,C(b.r,0)),g:B(255,C(b.g,0)),b:B(255,C(b.b,0)),a:c}}function d(a,b,c){return{r:m(a,255)*255,g:m(b,255)*255,b:m(c,255)*255}}function e(a,b,c){a=m(a,255);b=m(b,255);c=m(c,255);var d=C(a,b,c),e=B(a,b,c);var f,g,h=(d+e)/2;if(d==e){f=g=0}else{var i=d-e;g=h>.5?i/(2-d-e):i/(d+e);switch(d){case a:f=(b-c)/i+(b<c?6:0);break;case b:f=(c-a)/i+2;break;case c:f=(a-b)/i+4;break}f/=6}return{h:f,s:g,l:h}}function f(a,b,c){function d(a,b,c){if(c<0)c+=1;if(c>1)c-=1;if(c<1/6)return a+(b-a)*6*c;if(c<1/2)return b;if(c<2/3)return a+(b-a)*(2/3-c)*6;return a}var e,f,g;a=m(a,360);b=m(b,100);c=m(c,100);if(b===0){e=f=g=c}else{var h=c<.5?c*(1+b):c+b-c*b;var i=2*c-h;e=d(i,h,a+1/3);f=d(i,h,a);g=d(i,h,a-1/3)}return{r:e*255,g:f*255,b:g*255}}function g(a,b,c){a=m(a,255);b=m(b,255);c=m(c,255);var d=C(a,b,c),e=B(a,b,c);var f,g,h=d;var i=d-e;g=d===0?0:i/d;if(d==e){f=0}else{switch(d){case a:f=(b-c)/i+(b<c?6:0);break;case b:f=(c-a)/i+2;break;case c:f=(a-b)/i+4;break}f/=6}return{h:f,s:g,v:h}}function h(a,b,c){a=m(a,360)*6;b=m(b,100);c=m(c,100);var d=z.floor(a),e=a-d,f=c*(1-b),g=c*(1-e*b),h=c*(1-(1-e)*b),i=d%6,j=[c,g,f,f,h,c][i],k=[h,c,c,g,f,f][i],l=[f,f,h,c,c,g][i];return{r:j*255,g:k*255,b:l*255}}function i(a,b,c,d){var e=[r(A(a).toString(16)),r(A(b).toString(16)),r(A(c).toString(16))];if(d&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)){return e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0)}return e.join("")}function j(a,b,c,d){var e=[r(t(d)),r(A(a).toString(16)),r(A(b).toString(16)),r(A(c).toString(16))];return e.join("")}function k(a){var b={};for(var c in a){if(a.hasOwnProperty(c)){b[a[c]]=c}}return b}function l(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1}return a}function m(a,b){if(p(a)){a="100%"}var c=q(a);a=B(b,C(0,parseFloat(a)));if(c){a=parseInt(a*b,10)/100}if(z.abs(a-b)<1e-6){return 1}return a%b/parseFloat(b)}function n(a){return B(1,C(0,a))}function o(a){return parseInt(a,16)}function p(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function q(a){return typeof a==="string"&&a.indexOf("%")!=-1}function r(a){return a.length==1?"0"+a:""+a}function s(a){if(a<=1){a=a*100+"%"}return a}function t(a){return Math.round(parseFloat(a)*255).toString(16)}function u(a){return o(a)/255}function v(a){a=a.replace(w,"").replace(x,"").toLowerCase();var b=false;if(E[a]){a=E[a];b=true}else if(a=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var c;if(c=G.rgb.exec(a)){return{r:c[1],g:c[2],b:c[3]}}if(c=G.rgba.exec(a)){return{r:c[1],g:c[2],b:c[3],a:c[4]}}if(c=G.hsl.exec(a)){return{h:c[1],s:c[2],l:c[3]}}if(c=G.hsla.exec(a)){return{h:c[1],s:c[2],l:c[3],a:c[4]}}if(c=G.hsv.exec(a)){return{h:c[1],s:c[2],v:c[3]}}if(c=G.hex8.exec(a)){return{a:u(c[1]),r:o(c[2]),g:o(c[3]),b:o(c[4]),format:b?"name":"hex8"}}if(c=G.hex6.exec(a)){return{r:o(c[1]),g:o(c[2]),b:o(c[3]),format:b?"name":"hex"}}if(c=G.hex3.exec(a)){return{r:o(c[1]+""+c[1]),g:o(c[2]+""+c[2]),b:o(c[3]+""+c[3]),format:b?"name":"hex"}}return false}var w=/^[\s,#]+/,x=/\s+$/,y=0,z=Math,A=z.round,B=z.min,C=z.max,D=z.random;b.fromRatio=function(a,c){if(typeof a=="object"){var d={};for(var e in a){if(a.hasOwnProperty(e)){if(e==="a"){d[e]=a[e]}else{d[e]=s(a[e])}}}a=d}return b(a,c)};b.equals=function(a,c){if(!a||!c){return false}return b(a).toRgbString()==b(c).toRgbString()};b.random=function(){return b.fromRatio({r:D(),g:D(),b:D()})};b.desaturate=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.s-=c/100;d.s=n(d.s);return b(d)};b.saturate=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.s+=c/100;d.s=n(d.s);return b(d)};b.greyscale=function(a){return b.desaturate(a,100)};b.lighten=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.l+=c/100;d.l=n(d.l);return b(d)};b.darken=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.l-=c/100;d.l=n(d.l);return b(d)};b.complement=function(a){var c=b(a).toHsl();c.h=(c.h+180)%360;return b(c)};b.triad=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+120)%360,s:c.s,l:c.l}),b({h:(d+240)%360,s:c.s,l:c.l})]};b.tetrad=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+90)%360,s:c.s,l:c.l}),b({h:(d+180)%360,s:c.s,l:c.l}),b({h:(d+270)%360,s:c.s,l:c.l})]};b.splitcomplement=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+72)%360,s:c.s,l:c.l}),b({h:(d+216)%360,s:c.s,l:c.l})]};b.analogous=function(a,c,d){c=c||6;d=d||30;var e=b(a).toHsl();var f=360/d;var g=[b(a)];for(e.h=(e.h-(f*c>>1)+720)%360;--c;){e.h=(e.h+f)%360;g.push(b(e))}return g};b.monochromatic=function(a,c){c=c||6;var d=b(a).toHsv();var e=d.h,f=d.s,g=d.v;var h=[];var i=1/c;while(c--){h.push(b({h:e,s:f,v:g}));g=(g+i)%1}return h};b.readability=function(a,c){var d=b(a).toRgb();var e=b(c).toRgb();var f=(d.r*299+d.g*587+d.b*114)/1e3;var g=(e.r*299+e.g*587+e.b*114)/1e3;var h=Math.max(d.r,e.r)-Math.min(d.r,e.r)+Math.max(d.g,e.g)-Math.min(d.g,e.g)+Math.max(d.b,e.b)-Math.min(d.b,e.b);return{brightness:Math.abs(f-g),color:h}};b.readable=function(a,c){var d=b.readability(a,c);return d.brightness>125&&d.color>500};b.mostReadable=function(a,c){var d=null;var e=0;var f=false;for(var g=0;g<c.length;g++){var h=b.readability(a,c[g]);var i=h.brightness>125&&h.color>500;var j=3*(h.brightness/125)+h.color/500;if(i&&!f||i&&f&&j>e||!i&&!f&&j>e){f=i;e=j;d=b(c[g])}}return d};var E=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var F=b.hexNames=k(E);var G=function(){var a="[-\\+]?\\d+%?";var b="[-\\+]?\\d*\\.\\d+%?";var c="(?:"+b+")|(?:"+a+")";var d="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";var e="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+e),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+e),hsv:new RegExp("hsv"+d),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();a.tinycolor=b})();b(function(){if(b.fn.spectrum.load){b.fn.spectrum.processNativeColorInputs()}})})(window,jQuery);!function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=s({},b),a[P]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,
3
- fallbackOffset:{x:0,y:0}};for(var d in c)!(d in b)&&(b[d]=c[d]);aa(b);for(var f in this)"_"===f.charAt(0)&&"function"==typeof this[f]&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:V,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),$.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){x&&x.state!==a&&(h(x,"display",a?"none":""),!a&&x.state&&y.insertBefore(x,u),x.state=a)}function c(a,b,c){if(a){c=c||R;do if(">*"===b&&a.parentNode===c||q(a,b))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(O," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(O," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return R.defaultView&&R.defaultView.getComputedStyle?c=R.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){a=a||b[P];var h=R.createEvent("Event"),i=a.options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=x,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f,g){var h,i,j=a[P],k=j.options.onMove;return h=R.createEvent("Event"),h.initEvent("move",!0,!0),h.to=b,h.from=a,h.dragged=c,h.draggedRect=d,h.related=e||b,h.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(h),k&&(i=k.call(j,h,g)),i}function l(a){a.draggable=!1}function m(){X=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a,b){var c=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"===a.nodeName.toUpperCase()||">*"!==b&&!q(a,b)||c++;return c}function q(a,b){if(a){b=b.split(".");var c=b.shift().toUpperCase(),d=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}function r(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function s(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function t(a){return T?T(a).clone(!0)[0]:U&&U.dom?U.dom(a).cloneNode(!0):a.cloneNode(!0)}if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N={},O=/\s+/g,P="Sortable"+(new Date).getTime(),Q=window,R=Q.document,S=Q.parseInt,T=Q.jQuery||Q.Zepto,U=Q.Polymer,V=!!("draggable"in R.createElement("div")),W=function(a){return a=R.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),X=!1,Y=Math.abs,Z=Math.min,$=([].slice,[]),_=r(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h,i,j=b.scrollSensitivity,k=b.scrollSpeed,l=a.clientX,m=a.clientY,n=window.innerWidth,o=window.innerHeight;if(B!==c&&(A=b.scroll,B=c,C=b.scrollFn,A===!0)){A=c;do if(A.offsetWidth<A.scrollWidth||A.offsetHeight<A.scrollHeight)break;while(A=A.parentNode)}A&&(d=A,e=A.getBoundingClientRect(),f=(Y(e.right-l)<=j)-(Y(e.left-l)<=j),g=(Y(e.bottom-m)<=j)-(Y(e.top-m)<=j)),f||g||(f=(j>=n-l)-(j>=l),g=(j>=o-m)-(j>=m),(f||g)&&(d=Q)),(N.vx!==f||N.vy!==g||N.el!==d)&&(N.el=d,N.vx=f,N.vy=g,clearInterval(N.pid),d&&(N.pid=setInterval(function(){return i=g?g*k:0,h=f?f*k:0,"function"==typeof C?C.call(_this,h,i,a):void(d===Q?Q.scrollTo(Q.pageXOffset+h,Q.pageYOffset+i):(d.scrollTop+=i,d.scrollLeft+=h))},24)))}},30),aa=function(a){function b(a,b){return(void 0===a||a===!0)&&(a=c.name),"function"==typeof a?a:function(c,d){var e=d.options.group.name;return b?a:a&&(a.join?a.indexOf(e)>-1:e==a)}}var c={},d=a.group;d&&"object"==typeof d||(d={name:d}),c.name=d.name,c.checkPull=b(d.pull,!0),c.checkPut=b(d.put),a.group=c};return a.prototype={constructor:a,_onTapStart:function(a){var b,d=this,e=this.el,f=this.options,g=a.type,h=a.touches&&a.touches[0],i=(h||a).target,k=i,l=f.filter;if(!u&&!("mousedown"===g&&0!==a.button||f.disabled)&&(i=c(i,f.draggable,e),i&&(!f.handle||c(k,f.handle,e)))){if(b=p(i,f.draggable),"function"==typeof l){if(l.call(this,a,i,this))return j(d,k,"filter",i,e,b),void a.preventDefault()}else if(l&&(l=l.split(",").some(function(a){return a=c(k,a.trim(),e),a?(j(d,a,"filter",i,e,b),!0):void 0})))return void a.preventDefault();this._prepareDragStart(a,h,i,b)}},_prepareDragStart:function(a,b,c,d){var f,h=this,k=h.el,m=h.options,n=k.ownerDocument;c&&!u&&c.parentNode===k&&(K=a,y=k,u=c,v=u.parentNode,z=u.nextSibling,I=m.group,G=d,this._lastX=(b||a).clientX,this._lastY=(b||a).clientY,u.style["will-change"]="transform",f=function(){h._disableDelayedDrag(),u.draggable=h.nativeDraggable,g(u,m.chosenClass,!0),h._triggerDragStart(b),j(h,y,"choose",u,y,G)},m.ignore.split(",").forEach(function(a){i(u,a.trim(),l)}),e(n,"mouseup",h._onDrop),e(n,"touchend",h._onDrop),e(n,"touchcancel",h._onDrop),m.delay?(e(n,"mouseup",h._disableDelayedDrag),e(n,"touchend",h._disableDelayedDrag),e(n,"touchcancel",h._disableDelayedDrag),e(n,"mousemove",h._disableDelayedDrag),e(n,"touchmove",h._disableDelayedDrag),h._dragStartTimer=setTimeout(f,m.delay)):f())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(K={target:u,clientX:a.clientX,clientY:a.clientY},this._onDragStart(K,"touch")):this.nativeDraggable?(e(u,"dragend",this),e(y,"dragstart",this._onDragStart)):this._onDragStart(K,!0);try{R.selection?setTimeout(function(){R.selection.empty()}):window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){if(y&&u){var b=this.options;g(u,b.ghostClass,!0),g(u,b.dragClass,!1),a.active=this,j(this,y,"start",u,y,G)}},_emulateDragOver:function(){if(L){if(this._lastX===L.clientX&&this._lastY===L.clientY)return;this._lastX=L.clientX,this._lastY=L.clientY,W||h(w,"display","none");var a=R.elementFromPoint(L.clientX,L.clientY),b=a,c=$.length;if(b)do{if(b[P]){for(;c--;)$[c]({clientX:L.clientX,clientY:L.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);W||h(w,"display","")}},_onTouchMove:function(b){if(K){var c=this.options,d=c.fallbackTolerance,e=c.fallbackOffset,f=b.touches?b.touches[0]:b,g=f.clientX-K.clientX+e.x,i=f.clientY-K.clientY+e.y,j=b.touches?"translate3d("+g+"px,"+i+"px,0)":"translate("+g+"px,"+i+"px)";if(!a.active){if(d&&Z(Y(f.clientX-this._lastX),Y(f.clientY-this._lastY))<d)return;this._dragStarted()}this._appendGhost(),M=!0,L=f,h(w,"webkitTransform",j),h(w,"mozTransform",j),h(w,"msTransform",j),h(w,"transform",j),b.preventDefault()}},_appendGhost:function(){if(!w){var a,b=u.getBoundingClientRect(),c=h(u),d=this.options;w=u.cloneNode(!0),g(w,d.ghostClass,!1),g(w,d.fallbackClass,!0),g(w,d.dragClass,!0),h(w,"top",b.top-S(c.marginTop,10)),h(w,"left",b.left-S(c.marginLeft,10)),h(w,"width",b.width),h(w,"height",b.height),h(w,"opacity","0.8"),h(w,"position","fixed"),h(w,"zIndex","100000"),h(w,"pointerEvents","none"),d.fallbackOnBody&&R.body.appendChild(w)||y.appendChild(w),a=w.getBoundingClientRect(),h(w,"width",2*b.width-a.width),h(w,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==I.checkPull(this,this,u,a)&&(x=t(u),h(x,"display","none"),y.insertBefore(x,u),j(this,y,"clone",u)),g(u,d.dragClass,!0),b?("touch"===b?(e(R,"touchmove",this._onTouchMove),e(R,"touchend",this._onDrop),e(R,"touchcancel",this._onDrop)):(e(R,"mousemove",this._onTouchMove),e(R,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,u)),e(R,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(d){var e,f,g,i=this.el,j=this.options,l=j.group,o=a.active,p=I===l,q=j.sort;if(void 0!==d.preventDefault&&(d.preventDefault(),!j.dragoverBubble&&d.stopPropagation()),M=!0,I&&!j.disabled&&(p?q||(g=!y.contains(u)):J===this||I.checkPull(this,o,u,d)&&l.checkPut(this,o,u,d))&&(void 0===d.rootEl||d.rootEl===this.el)){if(_(d,j,this.el),X)return;if(e=c(d.target,j.draggable,i),f=u.getBoundingClientRect(),J=this,g)return b(!0),v=y,void(x||z?y.insertBefore(u,x||z):q||y.appendChild(u));if(0===i.children.length||i.children[0]===w||i===d.target&&(e=n(i,d))){if(e){if(e.animated)return;s=e.getBoundingClientRect()}b(p),k(y,i,u,f,e,s,d)!==!1&&(u.contains(i)||(i.appendChild(u),v=i),this._animate(f,u),e&&this._animate(s,e))}else if(e&&!e.animated&&e!==u&&void 0!==e.parentNode[P]){D!==e&&(D=e,E=h(e),F=h(e.parentNode));var r,s=e.getBoundingClientRect(),t=s.right-s.left,A=s.bottom-s.top,B=/left|right|inline/.test(E.cssFloat+E.display)||"flex"==F.display&&0===F["flex-direction"].indexOf("row"),C=e.offsetWidth>u.offsetWidth,G=e.offsetHeight>u.offsetHeight,H=(B?(d.clientX-s.left)/t:(d.clientY-s.top)/A)>.5,K=e.nextElementSibling,L=k(y,i,u,f,e,s,d);if(L!==!1){if(X=!0,setTimeout(m,30),b(p),1===L||-1===L)r=1===L;else if(B){var N=u.offsetTop,O=e.offsetTop;r=N===O?e.previousElementSibling===u&&!C||H&&C:e.previousElementSibling===u||u.previousElementSibling===e?(d.clientY-s.top)/A>.5:O>N}else r=K!==u&&!G||H&&G;u.contains(i)||(r&&!K?i.appendChild(u):e.parentNode.insertBefore(u,r?K:e)),v=u.parentNode,this._animate(f,u),this._animate(s,e)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(R,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(N.pid),clearTimeout(this._dragStartTimer),f(R,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(R,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(M&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),w&&w.parentNode.removeChild(w),u&&(this.nativeDraggable&&f(u,"dragend",this),l(u),u.style["will-change"]="",g(u,this.options.ghostClass,!1),g(u,this.options.chosenClass,!1),y!==v?(H=p(u,d.draggable),H>=0&&(j(null,v,"add",u,y,G,H),j(this,y,"remove",u,y,G,H),j(null,v,"sort",u,y,G,H),j(this,y,"sort",u,y,G,H))):(x&&x.parentNode.removeChild(x),u.nextSibling!==z&&(H=p(u,d.draggable),H>=0&&(j(this,y,"update",u,y,G,H),j(this,y,"sort",u,y,G,H)))),a.active&&((null==H||-1===H)&&(H=G),j(this,y,"end",u,y,G,H),this.save()))),this._nulling()},_nulling:function(){y=u=v=w=z=x=A=B=K=L=M=H=D=E=J=I=a.active=null},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?u&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&aa(c)))},destroy:function(){var a=this.el;a[P]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),$.splice($.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:s,throttle:r,closest:c,toggleClass:g,clone:t,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.4.2",a});(function(){"use strict";var a=function(a,b,c){if(!a||typeof b!="function"||typeof c!="object"&&c){console.error("mq_mutation_obs:: invalid arguments in class constructor");return false}var d=new MutationObserver(function(a){a.forEach(b)});var e=c||{attributes:true,childList:true,characterData:true};d.observe(a,e);return d};window.mqMutationObserver=a})();jQuery.fn.outerHide=function(a){var b=jQuery;a=a?a:{};var c=this;if("destroy"==a){b(document).unbind("click.outer_hide");return false}b(document).bind("click.outer_hide",function(d){if(b(d.target).closest(c).length==0&&d.target!=c&&b.inArray(b(d.target)[0],b(a.clickObj))==-1&&b(c).css("display")!="none"){if(a.clbk){a.clbk()}else{b(c).hide()}}})};function dslc_serialize(a){"use strict";var b,c,d;var e="";var f="";var g=0;var h=function(a){var b=0;var c=0;var d=a.length;var e="";for(c=0;c<d;c++){e=a.charCodeAt(c);if(e<128){b+=1}else if(e<2048){b+=2}else{b+=3}}return b};var i=function(a){var b;var c;var d;var e;var f=typeof a;if(f==="object"&&!a){return"null"}if(f==="object"){if(!a.constructor){return"object"}d=a.constructor.toString();b=d.match(/(\w+)\(/);if(b){d=b[1].toLowerCase()}e=["boolean","number","string","array"];for(c in e){if(d===e[c]){f=e[c];break}}}return f};var j=i(a);switch(j){case"function":b="";break;case"boolean":b="b:"+(a?"1":"0");break;case"number":b=(Math.round(a)===a?"i":"d")+":"+a;break;case"string":b="s:"+h(a)+':"'+a+'"';break;case"array":case"object":b="a";for(c in a){if(a.hasOwnProperty(c)){e=i(a[c]);if(e==="function"){continue}d=c.match(/^[0-9]+$/)?parseInt(c,10):c;f+=dslc_serialize(d)+dslc_serialize(a[c]);g++}}b+=":"+g+":{"+f+"}";break;case"undefined":default:b="N";break}if(j!=="object"&&j!=="array"){b+=";"}return b}function dslc_unserialize(a){"use strict";var b=typeof window!=="undefined"?window:GLOBAL;var c=function(a){var b=a.charCodeAt(0);var c=[338,339,352,353,376,402,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8226,8230,8240,8364,8482];if(b<128||b>=160&&b<=255||c.indexOf(b)!==-1){return 0}if(b<2048){return 1}return 2};var d=function(a,c,d,e){throw new b[a](c,d,e)};var e=function(a,b,c){var e=2;var f=[];var g=a.slice(b,b+1);while(g!==c){if(e+b>a.length){d("Error","Invalid")}f.push(g);g=a.slice(b+(e-1),b+e);e+=1}return[f.length,f.join("")]};var f=function(a,b,d){var e,f,g;g=[];for(e=0;e<d;e++){f=a.slice(b+(e-1),b+e);g.push(f);d-=c(f)}return[g.length,g.join("")]};var g=function(a,b){var c;var h;var i;var j;var k;var l;var m;var n;var o;var p;var q;var r;var s;var t;var u;var v;var w;var x;var y=0;var z=function(a){return a};if(!b){b=0}c=a.slice(b,b+1).toLowerCase();h=b+2;switch(c){case"i":z=function(a){return parseInt(a,10)};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"b":z=function(a){return parseInt(a,10)!==0};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"d":z=function(a){return parseFloat(a)};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"n":n=null;break;case"s":p=e(a,h,":");y=p[0];q=p[1];h+=y+2;o=f(a,h+1,parseInt(q,10));y=o[0];n=o[1];h+=y+2;if(y!==parseInt(q,10)&&y!==n.length){d("SyntaxError","String length mismatch")}break;case"a":n={};i=e(a,h,":");y=i[0];j=i[1];h+=y+2;l=parseInt(j,10);k=true;for(r=0;r<l;r++){t=g(a,h);u=t[1];s=t[2];h+=u;v=g(a,h);w=v[1];x=v[2];h+=w;if(s!==r){k=false}n[s]=x}if(k){m=new Array(l);for(r=0;r<l;r++){m[r]=n[r]}n=m}h+=1;break;default:d("SyntaxError","Unknown / Unhandled data type(s): "+c);break}return[c,h-b,z(n)]};return g(a+"",0)[2]}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if(b!=="none"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable.sortable("option","disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.sortable("option","disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(c){var d=jQuery(c.output);d.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(d);new LiveComposer.Builder.Elements.CModuleArea(d.find(".dslc-modules-area").eq(0)[0]);if(a){a()}d.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");b.resolve(d[0])});return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));
4
- this.removeAttribute("data-jsinit")});c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){dslc_module=jQuery(this);dslc_module_new_id(dslc_module[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_module.animate({opacity:1},300);dslc_show_publish_button()})}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).find(".dslc-modules-section:last-child"));LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=.75;var c=500;var d=jQuery(".dslca-section-scroller");var e=jQuery(".dslca-section-scroller-inner",this)[0];jQuery(".dslca-section-scroller").on("wheel",function(a){f(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function f(a){a=a*b;var c=parseInt(d.find(".dslca-section-scroller-content").width()||0);if(c<=window.innerWidth-260)return false;var f=c-window.innerWidth+240;a=parseInt(e.style.left||0)-a;a=a>=0?0:a;a=a<=-f?-f:a;e.style.left=a+"px"}jQuery(document).on("click",".dslca-section-scroller-prev",function(a){a.preventDefault();f(-c)});jQuery(document).on("click",".dslca-section-scroller-next",function(a){a.preventDefault();f(c)});jQuery(window).load(function(){jQuery(window).resize(function(){f(0)})})});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-bottom-area",function(c){LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false}});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=Sortable.create(a,{group:"sections",animation:150,handle:".dslca-move-modules-section-hook",draggable:".dslc-modules-section",chosenClass:"dslca-section-dragging",sort:true,scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect}});jQuery(document).on("LC.sortableOff",function(){b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.option("disabled",false)})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);jQuery(this).next().click()});jQuery(".dslca-container").on("hover",".dslca-module-edit-option-slider .dslca-module-edit-field-numeric",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("hover",".dslca-modules-section-edit-option-slider .dslca-modules-section-edit-field",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors();LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors();LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var a=jQuery(".dslca-module-edit-field-icon-switch-sets");var b=jQuery(this);jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active");b.addClass("dslca-active");if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-switch-sets").hide()}else{var c=b.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active");jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+c+'"]').addClass("dslca-active");var d=b.offset(),e=a.outerHeight(),f=a.outerWidth(),g=d.left-f/2+6,h="50%";if(g<0){h=f/2+g+"px";g=0}jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:d.top-e-20,left:g});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+h+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var b=a(this).data("set");dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b);a(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active");a(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(b);a(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click");a(".dslca-module-edit-field-icon-switch-sets").hide()});jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var b=a(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b)})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(){LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"link",style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"},{title:"Pre",format:"preformatted"}],toolbar:"styleselect | bold italic blockquote | removeformat | link unlink | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){a.spectrum("destroy")});b.Helpers.colorpickers=[]}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".sp-container").remove()};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var c=this;var d=true;try{var e=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(f){d=false}if(d){var g=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&e[b.value]==undefined){return false}if(b.type=="checkbox"&&e[b.value]!=undefined){c[b.value]=e[b.value]}else{c=e}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',g);b.Helpers.depsHandlers.push(g)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){b.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});b.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"){var B=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),C=B.find("select").val();if(C=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-edit-options-tabs").hide();B.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html("")}else{jQuery(".dslca-module-edit-options-inner").html("")}jQuery(".dslca-module-edit-options-tabs").html("");if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);LiveComposer.Builder.moduleBackup=false;dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html("")}else{jQuery(".dslca-module-edit-options-inner").html("")}jQuery(".dslca-module-edit-options-tabs").html("");if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var e=c.offset();var f=a.outerHeight();var g=a.outerWidth();var h=e.left-g/2+6;var i="50%";if(h<0){i=g/2+h+"px";h=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:e.top-f-20,left:h});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+i+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");
5
- jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;i[0]=[];i[1]=[];i[2]=[];i[3]=[];if(localStorage["dslcColorpickerPalleteStorage"]==undefined){}else{j=JSON.parse(localStorage["dslcColorpickerPalleteStorage"]);for(k=0;k<j.length;k++){var l=Math.floor(k/3);if(l<4){i[l].push(j[k])}}}var m=a;jQuery(m).each(function(){h=jQuery(this).val();jQuery(this).spectrum({color:h,showInput:true,allowEmpty:true,showAlpha:true,clickoutFiresChange:true,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:true,palette:i,move:function(a){b=jQuery(this);if(a==null){e=""}else{e=a.toRgbString().replace(/ /g,"")}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")},change:function(a){b=jQuery(this);if(a==null){e=""}else{e=a.toRgbString().replace(/ /g,"")}b.val(e).trigger("change");c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made");if(localStorage["dslcColorpickerPalleteStorage"]==undefined){var h=[e];localStorage["dslcColorpickerPalleteStorage"]=JSON.stringify(h)}else{var h=JSON.parse(localStorage["dslcColorpickerPalleteStorage"]);if(h.indexOf(e)==-1){h.unshift(e)}localStorage["dslcColorpickerPalleteStorage"]=JSON.stringify(h)}},show:function(a){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))});jQuery(".dslca-sp-revert").click(function(){var a=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(a).trigger("change")})}function dslc_module_options_numeric(a){var b=jQuery;if(dslcDebug)console.log("dslc_module_options_numeric");var c=a||".dslca-module-edit-option-slider .dslca-module-edit-field-numeric";jQuery(c).each(function(){if(this.classList.contains("slider-initiated"))return;var a=false;var c=false;var d=0;var e=this;var f=0;var g=parseFloat(jQuery(this).data("max"))>0?parseFloat(b(this).data("max")):2e3;var h=parseFloat(jQuery(this).data("min"))>-2e3?parseFloat(b(this).data("min")):0;var i=parseFloat(jQuery(this).data("increment"))>0?parseFloat(b(this).data("increment")):1;var j,k,l,m,n,o,p,q,r,s,t,u,v;e.classList.add("slider-initiated");jQuery(e).keyup(function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;jQuery(this).trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;jQuery(this).trigger("change")}}if(a.keyCode==8||a.keyCode==45){jQuery(this).trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){jQuery(this).trigger("change")}if(!a.key.match(/\d/)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});jQuery(e).unbind("change");jQuery(e).change(function(a){if(this.value>g){this.value=g}if(this.value<h){this.value=h}s=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);s.addClass("dslca-module-change-made")});jQuery(document).mouseup(function(){a=false});jQuery(e).mousedown(function(b){a=parseFloat(b.pageX);d=parseFloat(e.value&&e.value!=""?e.value:0);f=0});jQuery(".dslca-section").mousemove(function(b){if(a!==false){b=b||window.event;var c=b.clientX;var d=c-f;if(0<d){e.value=Math.round((parseFloat(e.value)+i)*100)/100}else{e.value=Math.round((parseFloat(e.value)-i)*100)/100}f=c;jQuery(e).trigger("change")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> &nbsp; Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("#page-builder-frame").on("load",function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this.contentWindow;LiveComposer.Builder.PreviewAreaDocument=jQuery(this).contents();jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-enabled dslca-drag-not-in-progress");LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()});jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show()});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).hide();jQuery('.dslca-origin[data-origin="'+a+'"]',b).show();if(a==""){jQuery(".dslca-origin",b).show()}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(c);jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(b){b.preventDefault();var c=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(c)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(a(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},encode:function(a){a=dslc_serialize(a);a=LiveComposer.Utils.utf8_to_b64(a);return a},decode:function(a){a=LiveComposer.Utils.b64_to_utf8(a);a=dslc_unserialize(a);return a},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=LiveComposer.Utils.decode(f);f[b]=c;f=LiveComposer.Utils.encode(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery.event.trigger({type:a,message:{details:b}})}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}jQuery(document).ready(function(a){a(document).on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});a(document).on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})})});window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){
6
- if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing")}}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added")})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id)+"{"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id)+"{"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;if(d.hasClass("dslca-module-edit-field-checkbox")){o=b;p=c}if(d.hasClass("dslca-module-edit-field-image")){o='url("'+o+'")'}if(null!==o&&o.length<1&&(n=="background-color"||n=="background")){o="transparent"}n.split(",").forEach(function(a){a=a.replace(/\s+/g,"");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var c=m.split(",");var e="#"+b[0].id+" "+c.join(", #"+b[0].id)+"{"+a+": "+o+r+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:a,elems:m,styleContent:e})})}jQuery('.dslca-module-option-front[data-id="'+e+'"]',g).val(p||d.val());LiveComposer.Utils.publish("moduleChanged",{moduleId:g[0].id,optionID:e,optionVal:p||d.val()})}});a(document).on("keyup, blur",".dslca-module-edit-field-numeric",function(){return false;var b="",c=a(this),d=c.data("id"),e=c.closest(".dslca-module-edit-option"),f=a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),g=f.data("dslc-module-id"),h=jQuery(".dslca-module-options-front textarea",f),i=c.data("affect-on-change-el"),j=c.data("affect-on-change-rule"),k=c.val(),l=k+c.data("ext"),m;f.addClass("dslca-module-change-made");if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")!="active"){m=j.replace(/ /g,"").split(",");jQuery('.dslca-module-option-front[data-id="'+d+'"]',f).val(k)}})});jQuery(document).ready(function(a){var b;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-add-hook")){var c=a.siblings(".dslca-module-edit-field-image");var d=a.siblings(".dslca-module-edit-field-image-remove-hook")}else{var c=a.siblings(".dslca-modules-section-edit-field-upload");var d=a.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;b=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});b.on("select",function(){var e=b.state().get("selection").first().toJSON();c.val(e.id);jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);c.trigger("change");a.hide();d.show()});b.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-remove-hook")){var b=a.siblings(".dslca-module-edit-field-image");var c=a.siblings(".dslca-module-edit-field-image-add-hook")}else{var b=a.siblings(".dslca-modules-section-edit-field-upload");var c=a.siblings(".dslca-modules-section-edit-field-image-add-hook")}b.val("").trigger("change");a.hide();c.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var a=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var b=tinymce.get("dslcawpeditor");var c=b.getContent()}else{var c=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(c);if(a.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(c);var d=a.find(".dslc-accordion");dslc_accordion_generate_code(d)}else if(a.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(c);var e=a.find(".dslc-tabs");dslc_tabs_generate_code(e)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){a(".dslca-wp-editor").hide();a(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
1
+ "use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery(this).find(".dslca-change-width-module-options").hide()}jQuery(this).find(".dslca-module-manage").removeClass("dslca-module-manage-change-width-active")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery("#dslc-header").addClass("dslca-header-low-z-index");if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:1e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 10 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d=12,e=12,f=0,g=0,h,i,j,k,l,m="";jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-modules-area",this).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");g=0;l=jQuery(this);m="";jQuery(".dslca-modules-section-settings input",l).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '});c=c+"[dslc_modules_section "+m+"] ";jQuery(".dslc-modules-area",l).each(function(){f=0;i=jQuery(this);h=parseInt(i.data("size"));j="no";k="no";g+=h;if(g==e){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");g=0;j="yes"}else if(g>e){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");g=h;k="yes"}if(g==h){k="yes"}c=c+'[dslc_modules_area last="'+j+'" first="'+k+'" size="'+h+'"] ';jQuery(".dslc-module-front",i).each(function(){var e=jQuery(this);b=parseInt(e[0].getAttribute("data-dslc-module-size"));var g="no";var h="no";f+=b;if(f==d){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");f=0;g="yes";h="yes"}else if(f>d){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");f=b;h="yes"}try{a=e[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+e[0].getAttribute("id"))}if(""!==a){c=c+'[dslc_module last="'+g+'"]'+a+"[/dslc_module] "}a=""});c=c+"[/dslc_modules_area] "});c=c+"[/dslc_modules_section] "});jQuery("#dslca-code").val(c);jQuery("#dslca-export-code").val(c)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b,c,d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="";h=0;var m=a;jQuery(".dslca-modules-section-settings input",m).each(function(){n=n+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '});d=d+"[dslc_modules_section "+n+"] ";jQuery(".dslc-modules-area",m).each(function(){j=jQuery(this);i=parseInt(j.data("size"));k="no";l="no";h+=i;if(h==f){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");h=0;k="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=i;l="yes"}if(h==i){l="yes"}d=d+'[dslc_modules_area last="'+k+'" first="'+l+'" size="'+i+'"] ';jQuery(".dslc-module-front",j).each(function(){c=parseInt(jQuery(this).data("dslc-module-size"));g+=c;if(g==i){jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col");g=0}b=jQuery(this).find(".dslca-module-code").val();d=d+"[dslc_module]"+b+"[/dslc_module] "});d=d+"[/dslc_modules_area] "});d=d+"[/dslc_modules_section] ";return d}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(dslcDebug)console.log("dslc_show_modal");dslc_hide_modal("",jQuery(".dslca-modal:visible"));var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f}).show();jQuery(".dslca-prompt-modal-custom").insertAfter(b);jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn();b.addClass("dslca-modal-open");b.css({}).fadeIn(600)}function dslc_hide_modal(a,b){if(dslcDebug)console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut();b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);jQuery(".dslca-header .dslca-options-filter-hook").show();if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params()},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){LiveComposer.Builder.UI.clearUtils();var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-module-being-edited img",LiveComposer.Builder.PreviewAreaDocument).load(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument))});LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-module-being-edited img",LiveComposer.Builder.PreviewAreaDocument).load(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument))});LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add().then(function(b){a()})}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({
2
+ title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";(function(a,b,c){function d(a,b,c){var d=[];for(var e=0;e<a.length;e++){var f=a[e];if(f){var g=tinycolor(f);var h=g.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";h+=tinycolor.equals(b,f)?" sp-thumb-active":"";var i=r?"background-color:"+g.toRgbString():"filter:"+g.toFilter();d.push('<span title="'+g.toRgbString()+'" data-color="'+g.toRgbString()+'" class="'+h+'"><span class="sp-thumb-inner" style="'+i+';" /></span>')}else{var j="sp-clear-display";d.push('<span title="No Color Selected" data-color="" style="background-color:transparent;" class="'+j+'"></span>')}}return"<div class='sp-cf "+c+"'>"+d.join("")+"</div>"}function e(){for(var a=0;a<p.length;a++){if(p[a]){p[a].hide()}}}function f(a,c){var d=b.extend({},o,a);d.callbacks={move:k(d.move,c),change:k(d.change,c),show:k(d.show,c),hide:k(d.hide,c),beforeShow:k(d.beforeShow,c)};return d}function g(g,i){function k(){if(R.showPaletteOnly){R.showPalette=true}if(R.palette){ja=R.palette.slice(0);ka=b.isArray(ja[0])?ja:[ja]}ta.toggleClass("sp-flat",S);ta.toggleClass("sp-input-disabled",!R.showInput);ta.toggleClass("sp-alpha-enabled",R.showAlpha);ta.toggleClass("sp-clear-enabled",Ta);ta.toggleClass("sp-buttons-disabled",!R.showButtons);ta.toggleClass("sp-palette-disabled",!R.showPalette);ta.toggleClass("sp-palette-only",R.showPaletteOnly);ta.toggleClass("sp-initial-disabled",!R.showInitial);ta.addClass(R.className);M()}function n(){function c(a){if(a.data&&a.data.ignore){F(b(this).data("color"));I()}else{F(b(this).data("color"));L(true);I();D()}return false}if(q){ta.find("*:not(input)").attr("unselectable","on")}k();if(Ja){ra.after(Ka).hide()}if(!Ta){Fa.hide()}if(S){ra.after(ta).hide()}else{var d=R.appendTo==="parent"?ra.parent():b(R.appendTo);if(d.length!==1){d=b("body")}d.append(ta)}if(U&&a.localStorage){try{var e=a.localStorage[U].split(",#");if(e.length>1){delete a.localStorage[U];b.each(e,function(a,b){o(b)})}}catch(f){}try{la=a.localStorage[U].split(";")}catch(f){}}La.bind("click.spectrum touchstart.spectrum",function(a){if(!sa){B()}a.stopPropagation();if(!b(a.target).is("input")){a.preventDefault()}});if(ra.is(":disabled")||R.disabled===true){Q()}ta.click(j);Ba.change(A);Ba.bind("paste",function(){setTimeout(A,1)});Ba.keydown(function(a){if(a.keyCode==13){A()}});Ea.text(R.cancelText);Ea.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();D("cancel")});Fa.attr("title",R.clearText);Fa.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();Sa=true;I();if(S){L(true)}});Ga.text(R.chooseText);Ga.bind("click.spectrum",function(a){a.stopPropagation();a.preventDefault();if(H()){L(true);D()}});l(za,function(a,b,c){ia=a/ca;Sa=false;if(c.shiftKey){ia=Math.round(ia*10)/10}I()},y,z);l(wa,function(a,b){fa=parseFloat(b/aa);Sa=false;if(!R.showAlpha){ia=1}I()},y,z);l(ua,function(a,b,c){if(!c.shiftKey){oa=null}else if(!oa){var d=ga*Z;var e=$-ha*$;var f=Math.abs(a-d)>Math.abs(b-e);oa=f?"x":"y"}var g=!oa||oa==="x";var h=!oa||oa==="y";if(g){ga=parseFloat(a/Z)}if(h){ha=parseFloat(($-b)/$)}Sa=false;if(!R.showAlpha){ia=1}I()},y,z);if(!!Na){F(Na);J();Qa=Pa||tinycolor(Na).format;o(Na)}else{J()}if(S){C()}var g=q?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ca.delegate(".sp-thumb-el",g,c);Da.delegate(".sp-thumb-el:nth-child(1)",g,{ignore:true},c)}function o(c){if(T){var d=tinycolor(c).toRgbString();if(b.inArray(d,la)===-1){la.push(d);while(la.length>ma){la.shift()}}if(U&&a.localStorage){try{a.localStorage[U]=la.join(";")}catch(e){}}}}function v(){var a=[];var b=la;var c={};var d;if(R.showPalette){for(var e=0;e<ka.length;e++){for(var f=0;f<ka[e].length;f++){d=tinycolor(ka[e][f]).toRgbString();c[d]=true}}for(e=0;e<b.length;e++){d=tinycolor(b[e]).toRgbString();if(!c.hasOwnProperty(d)){a.push(b[e]);c[d]=true}}}return a.reverse().slice(0,R.maxSelectionSize)}function w(){var a=G();var c=b.map(ka,function(b,c){return d(b,a,"sp-palette-row sp-palette-row-"+c)});if(la){c.push(d(v(),a,"sp-palette-row sp-palette-row-selection"))}Ca.html(c.join(""))}function x(){if(R.showInitial){var a=Oa;var b=G();Da.html(d([a,b],b,"sp-palette-row-initial"))}}function y(){if($<=0||Z<=0||aa<=0){M()}ta.addClass(na);oa=null;ra.trigger("dragstart.spectrum",[G()])}function z(){ta.removeClass(na);ra.trigger("dragstop.spectrum",[G()])}function A(){var a=Ba.val();if((a===null||a==="")&&Ta){F(null);L(true)}else{var b=tinycolor(a);if(b.ok){F(b);L(true)}else{Ba.addClass("sp-validation-error")}}}function B(){if(Y){D()}else{C()}}function C(){var c=b.Event("beforeShow.spectrum");if(Y){M();return}ra.trigger(c,[G()]);if(W.beforeShow(G())===false||c.isDefaultPrevented()){return}e();Y=true;b(pa).bind("click.spectrum",D);b(a).bind("resize.spectrum",X);Ka.addClass("sp-active");ta.removeClass("sp-hidden");M();J();Oa=G();x();W.show(Oa);ra.trigger("show.spectrum",[Oa])}function D(c){if(c&&c.type=="click"&&c.button==2){return}if(!Y||S){return}Y=false;b(pa).unbind("click.spectrum",D);b(a).unbind("resize.spectrum",X);Ka.removeClass("sp-active");ta.addClass("sp-hidden");var d=!tinycolor.equals(G(),Oa);if(d){if(Ra&&c!=="cancel"){L(true)}else{E()}}W.hide(G());ra.trigger("hide.spectrum",[G()])}function E(){F(Oa,true);W.change(Oa);ra.trigger("change",[Oa])}function F(a,b){if(tinycolor.equals(a,G())){J();return}var c,d;if(!a&&Ta){Sa=true}else{Sa=false;c=tinycolor(a);d=c.toHsv();fa=d.h%360/360;ga=d.s;ha=d.v;ia=d.a}J();if(c&&c.ok&&!b){Qa=Pa||c.format}}function G(a){a=a||{};if(Ta&&Sa){return null}return tinycolor.fromRatio({h:fa,s:ga,v:ha,a:Math.round(ia*100)/100},{format:a.format||Qa})}function H(){return!Ba.hasClass("sp-validation-error")}function I(){J();W.move(G());ra.trigger("move.spectrum",[G()])}function J(){Ba.removeClass("sp-validation-error");K();var a=tinycolor.fromRatio({h:fa,s:1,v:1});ua.css("background-color",a.toHexString());var b=Qa;if(ia<1&&!(ia===0&&b==="name")){if(b==="hex"||b==="hex3"||b==="hex6"||b==="name"){b="rgb"}}var c=G({format:b}),d="";Ma.removeClass("sp-clear-display");Ma.css("background-color","transparent");if(!c&&Ta){Ma.addClass("sp-clear-display")}else{var e=c.toHexString(),f=c.toRgbString();if(r||c.alpha===1){Ma.css("background-color",f)}else{Ma.css("background-color","transparent");Ma.css("filter",c.toFilter())}if(R.showAlpha){var g=c.toRgb();g.a=0;var h=tinycolor(g).toRgbString();var i="linear-gradient(left, "+h+", "+e+")";if(q){ya.css("filter",tinycolor(h).toFilter({gradientType:1},e))}else{ya.css("background","-webkit-"+i);ya.css("background","-moz-"+i);ya.css("background","-ms-"+i);ya.css("background",i)}}d=c.toString(b)}if(R.showInput){Ba.val(d)}if(R.showPalette){w()}x()}function K(){var a=ga;var b=ha;if(Ta&&Sa){Aa.hide();xa.hide();va.hide()}else{Aa.show();xa.show();va.show();var c=a*Z;var d=$-b*$;c=Math.max(-_,Math.min(Z-_,c-_));d=Math.max(-_,Math.min($-_,d-_));va.css({top:d+"px",left:c+"px"});var e=ia*ca;Aa.css({left:e-da/2+"px"});var f=fa*aa;xa.css({top:f-ea+"px"})}}function L(a){var b=G(),c="",d=!tinycolor.equals(b,Oa);if(b){c=b.toString(Qa);o(b)}if(Ha){ra.val(c)}Oa=b;if(a&&d){W.change(b);ra.trigger("change",[b])}}function M(){Z=ua.width();$=ua.height();_=va.height();ba=wa.width();aa=wa.height();ea=xa.height();ca=za.width();da=Aa.width();if(!S){ta.css("position","absolute");ta.offset(h(ta,La))}K();if(R.showPalette){w()}ra.trigger("reflow.spectrum")}function N(){ra.show();La.unbind("click.spectrum touchstart.spectrum");ta.remove();Ka.remove();p[Ua.id]=null}function O(a,d){if(a===c){return b.extend({},R)}if(d===c){return R[a]}R[a]=d;k()}function P(){sa=false;ra.attr("disabled",false);La.removeClass("sp-disabled")}function Q(){D();sa=true;ra.attr("disabled",true);La.addClass("sp-disabled")}var R=f(i,g),S=R.flat,T=R.showSelectionPalette,U=R.localStorageKey,V=R.theme,W=R.callbacks,X=m(M,10),Y=false,Z=0,$=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=1,ja=[],ka=[],la=R.selectionPalette.slice(0),ma=R.maxSelectionSize,na="sp-dragging",oa=null;var pa=g.ownerDocument,qa=pa.body,ra=b(g),sa=false,ta=b(u,pa).addClass(V),ua=ta.find(".sp-color"),va=ta.find(".sp-dragger"),wa=ta.find(".sp-hue"),xa=ta.find(".sp-slider"),ya=ta.find(".sp-alpha-inner"),za=ta.find(".sp-alpha"),Aa=ta.find(".sp-alpha-handle"),Ba=ta.find(".sp-input"),Ca=ta.find(".sp-palette"),Da=ta.find(".sp-initial"),Ea=ta.find(".sp-cancel"),Fa=ta.find(".sp-clear"),Ga=ta.find(".sp-choose"),Ha=ra.is("input"),Ia=Ha&&s&&ra.attr("type")==="color",Ja=Ha&&!S,Ka=Ja?b(t).addClass(V).addClass(R.className):b([]),La=Ja?Ka:ra,Ma=Ka.find(".sp-preview-inner"),Na=R.color||Ha&&ra.val(),Oa=false,Pa=R.preferredFormat,Qa=Pa,Ra=!R.showButtons||R.clickoutFiresChange,Sa=!Na,Ta=R.allowEmpty&&!Ia;n();var Ua={show:C,hide:D,toggle:B,reflow:M,option:O,enable:P,disable:Q,set:function(a){F(a);L()},get:G,destroy:N,container:ta};Ua.id=p.push(Ua)-1;return Ua}function h(a,c){var d=0;var e=a.outerWidth();var f=a.outerHeight();var g=c.outerHeight();var h=a[0].ownerDocument;var i=h.documentElement;var j=i.clientWidth+b(h).scrollLeft();var k=i.clientHeight+b(h).scrollTop();var l=c.offset();l.top+=g;l.left-=Math.min(l.left,l.left+e>j&&j>e?Math.abs(l.left+e-j):0);l.top-=Math.min(l.top,l.top+f>k&&k>f?Math.abs(f+g-d):d);return l}function i(){}function j(a){a.stopPropagation()}function k(a,b){var c=Array.prototype.slice;var d=c.call(arguments,2);return function(){return a.apply(b,d.concat(c.call(arguments)))}}function l(c,d,e,f){function g(a){if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.returnValue=false}function h(a){if(l){if(q&&document.documentMode<9&&!a.button){return j()}var b=a.originalEvent.touches;var e=b?b[0].pageX:a.pageX;var f=b?b[0].pageY:a.pageY;var h=Math.max(0,Math.min(e-m.left,o));var i=Math.max(0,Math.min(f-m.top,n));if(p){g(a)}d.apply(c,[h,i,a])}}function i(a){var d=a.which?a.which==3:a.button==2;var f=a.originalEvent.touches;if(!d&&!l){if(e.apply(c,arguments)!==false){l=true;n=b(c).height();o=b(c).width();m=b(c).offset();b(k).bind(r);b(k.body).addClass("sp-dragging");if(!p){h(a)}g(a)}}}function j(){if(l){b(k).unbind(r);b(k.body).removeClass("sp-dragging");f.apply(c,arguments)}l=false}d=d||function(){};e=e||function(){};f=f||function(){};var k=c.ownerDocument||document;var l=false;var m={};var n=0;var o=0;var p="ontouchstart"in a;var r={};r["selectstart"]=g;r["dragstart"]=g;r["touchmove mousemove"]=h;r["touchend mouseup"]=j;b(c).bind("touchstart mousedown",i)}function m(a,b,c){var d;return function(){var e=this,f=arguments;var g=function(){d=null;a.apply(e,f)};if(c)clearTimeout(d);if(c||!d)d=setTimeout(g,b)}}function n(){if(a.console){if(Function.prototype.bind)n=Function.prototype.bind.call(console.log,console);else n=function(){Function.prototype.apply.call(console.log,console,arguments)};n.apply(this,arguments)}}var o={beforeShow:i,move:i,change:i,show:i,hide:i,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:false,showInitial:false,showPalette:false,showPaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",clearText:"Clear Color Selection",preferredFormat:false,className:"",showAlpha:false,theme:"sp-light",palette:["fff","000"],selectionPalette:[],disabled:false},p=[],q=!!/msie/i.exec(a.navigator.userAgent),r=function(){function a(a,b){return!!~(""+a).indexOf(b)}var b=document.createElement("div");var c=b.style;c.cssText="background-color:rgba(0,0,0,.5)";return a(c.backgroundColor,"rgba")||a(c.backgroundColor,"hsla")}(),s=function(){var a=b("<input type='color' value='!' />")[0];return a.type==="color"&&a.value!=="!"}(),t=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),u=function(){var a="";if(q){for(var b=1;b<=6;b++){a+="<div class='sp-"+b+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",a,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<span class='dslca-sp-revert dslc-icon dslc-icon-undo' title='Revert to default'></span>","<span class='sp-cancel dslc-icon dslc-icon-remove' title='Cancel'></span>","<span class='sp-choose dslc-icon dslc-icon-ok' title='Confirm'></span>","</div>","</div>","</div>"].join("")}();var v="spectrum.id";b.fn.spectrum=function(a,c){if(typeof a=="string"){var d=this;var e=Array.prototype.slice.call(arguments,1);this.each(function(){var c=p[b(this).data(v)];if(c){var f=c[a];if(!f){throw new Error("Spectrum: no such method: '"+a+"'")}if(a=="get"){d=c.get()}else if(a=="container"){d=c.container}else if(a=="option"){d=c.option.apply(c,e)}else if(a=="destroy"){c.destroy();b(this).removeData(v)}else{f.apply(c,e)}}});return d}return this.spectrum("destroy").each(function(){var c=b.extend({},a,b(this).data());var d=g(this,c);b(this).data(v,d.id)})};b.fn.spectrum.load=true;b.fn.spectrum.loadOpts={};b.fn.spectrum.draggable=l;b.fn.spectrum.defaults=o;b.spectrum={};b.spectrum.localization={};b.spectrum.palettes={};b.fn.spectrum.processNativeColorInputs=function(){if(!s){b("input[type=color]").spectrum({preferredFormat:"hex6"})}};(function(){function b(a,d){a=a?a:"";d=d||{};if(typeof a=="object"&&a.hasOwnProperty("_tc_id")){return a}var f=c(a);var h=f.r,k=f.g,n=f.b,o=f.a,p=A(100*o)/100,q=d.format||f.format;if(h<1){h=A(h)}if(k<1){k=A(k)}if(n<1){n=A(n)}return{ok:f.ok,format:q,_tc_id:y++,alpha:o,getAlpha:function(){return o},setAlpha:function(a){o=l(a);p=A(100*o)/100},toHsv:function(){var a=g(h,k,n);return{h:a.h*360,s:a.s,v:a.v,a:o}},toHsvString:function(){var a=g(h,k,n);var b=A(a.h*360),c=A(a.s*100),d=A(a.v*100);return o==1?"hsv("+b+", "+c+"%, "+d+"%)":"hsva("+b+", "+c+"%, "+d+"%, "+p+")"},toHsl:function(){var a=e(h,k,n);return{h:a.h*360,s:a.s,l:a.l,a:o}},toHslString:function(){var a=e(h,k,n);var b=A(a.h*360),c=A(a.s*100),d=A(a.l*100);return o==1?"hsl("+b+", "+c+"%, "+d+"%)":"hsla("+b+", "+c+"%, "+d+"%, "+p+")"},toHex:function(a){return i(h,k,n,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(){return j(h,k,n,o)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:A(h),g:A(k),b:A(n),a:o}},toRgbString:function(){return o==1?"rgb("+A(h)+", "+A(k)+", "+A(n)+")":"rgba("+A(h)+", "+A(k)+", "+A(n)+", "+p+")"},toPercentageRgb:function(){return{r:A(m(h,255)*100)+"%",g:A(m(k,255)*100)+"%",b:A(m(n,255)*100)+"%",a:o}},toPercentageRgbString:function(){return o==1?"rgb("+A(m(h,255)*100)+"%, "+A(m(k,255)*100)+"%, "+A(m(n,255)*100)+"%)":"rgba("+A(m(h,255)*100)+"%, "+A(m(k,255)*100)+"%, "+A(m(n,255)*100)+"%, "+p+")"},toName:function(){if(o===0){return"transparent"}return F[i(h,k,n,true)]||false},toFilter:function(a){var c="#"+j(h,k,n,o);var e=c;var f=d&&d.gradientType?"GradientType = 1, ":"";if(a){var g=b(a);e=g.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+f+"startColorstr="+c+",endColorstr="+e+")"},toString:function(a){var b=!!a;a=a||this.format;var c=false;var d=!b&&o<1&&o>0;var e=d&&(a==="hex"||a==="hex6"||a==="hex3"||a==="name");if(a==="rgb"){c=this.toRgbString()}if(a==="prgb"){c=this.toPercentageRgbString()}if(a==="hex"||a==="hex6"){c=this.toHexString()}if(a==="hex3"){c=this.toHexString(true)}if(a==="hex8"){c=this.toHex8String()}if(a==="name"){c=this.toName()}if(a==="hsl"){c=this.toHslString()}if(a==="hsv"){c=this.toHsvString()}if(e){return this.toRgbString()}return c||this.toHexString()}}}function c(a){var b={r:0,g:0,b:0};var c=1;var e=false;var g=false;if(typeof a=="string"){a=v(a)}if(typeof a=="object"){if(a.hasOwnProperty("r")&&a.hasOwnProperty("g")&&a.hasOwnProperty("b")){b=d(a.r,a.g,a.b);e=true;g=String(a.r).substr(-1)==="%"?"prgb":"rgb"}else if(a.hasOwnProperty("h")&&a.hasOwnProperty("s")&&a.hasOwnProperty("v")){a.s=s(a.s);a.v=s(a.v);b=h(a.h,a.s,a.v);e=true;g="hsv"}else if(a.hasOwnProperty("h")&&a.hasOwnProperty("s")&&a.hasOwnProperty("l")){a.s=s(a.s);a.l=s(a.l);b=f(a.h,a.s,a.l);e=true;g="hsl"}if(a.hasOwnProperty("a")){c=a.a}}c=l(c);return{ok:e,format:a.format||g,r:B(255,C(b.r,0)),g:B(255,C(b.g,0)),b:B(255,C(b.b,0)),a:c}}function d(a,b,c){return{r:m(a,255)*255,g:m(b,255)*255,b:m(c,255)*255}}function e(a,b,c){a=m(a,255);b=m(b,255);c=m(c,255);var d=C(a,b,c),e=B(a,b,c);var f,g,h=(d+e)/2;if(d==e){f=g=0}else{var i=d-e;g=h>.5?i/(2-d-e):i/(d+e);switch(d){case a:f=(b-c)/i+(b<c?6:0);break;case b:f=(c-a)/i+2;break;case c:f=(a-b)/i+4;break}f/=6}return{h:f,s:g,l:h}}function f(a,b,c){function d(a,b,c){if(c<0)c+=1;if(c>1)c-=1;if(c<1/6)return a+(b-a)*6*c;if(c<1/2)return b;if(c<2/3)return a+(b-a)*(2/3-c)*6;return a}var e,f,g;a=m(a,360);b=m(b,100);c=m(c,100);if(b===0){e=f=g=c}else{var h=c<.5?c*(1+b):c+b-c*b;var i=2*c-h;e=d(i,h,a+1/3);f=d(i,h,a);g=d(i,h,a-1/3)}return{r:e*255,g:f*255,b:g*255}}function g(a,b,c){a=m(a,255);b=m(b,255);c=m(c,255);var d=C(a,b,c),e=B(a,b,c);var f,g,h=d;var i=d-e;g=d===0?0:i/d;if(d==e){f=0}else{switch(d){case a:f=(b-c)/i+(b<c?6:0);break;case b:f=(c-a)/i+2;break;case c:f=(a-b)/i+4;break}f/=6}return{h:f,s:g,v:h}}function h(a,b,c){a=m(a,360)*6;b=m(b,100);c=m(c,100);var d=z.floor(a),e=a-d,f=c*(1-b),g=c*(1-e*b),h=c*(1-(1-e)*b),i=d%6,j=[c,g,f,f,h,c][i],k=[h,c,c,g,f,f][i],l=[f,f,h,c,c,g][i];return{r:j*255,g:k*255,b:l*255}}function i(a,b,c,d){var e=[r(A(a).toString(16)),r(A(b).toString(16)),r(A(c).toString(16))];if(d&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)){return e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0)}return e.join("")}function j(a,b,c,d){var e=[r(t(d)),r(A(a).toString(16)),r(A(b).toString(16)),r(A(c).toString(16))];return e.join("")}function k(a){var b={};for(var c in a){if(a.hasOwnProperty(c)){b[a[c]]=c}}return b}function l(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1}return a}function m(a,b){if(p(a)){a="100%"}var c=q(a);a=B(b,C(0,parseFloat(a)));if(c){a=parseInt(a*b,10)/100}if(z.abs(a-b)<1e-6){return 1}return a%b/parseFloat(b)}function n(a){return B(1,C(0,a))}function o(a){return parseInt(a,16)}function p(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function q(a){return typeof a==="string"&&a.indexOf("%")!=-1}function r(a){return a.length==1?"0"+a:""+a}function s(a){if(a<=1){a=a*100+"%"}return a}function t(a){return Math.round(parseFloat(a)*255).toString(16)}function u(a){return o(a)/255}function v(a){a=a.replace(w,"").replace(x,"").toLowerCase();var b=false;if(E[a]){a=E[a];b=true}else if(a=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var c;if(c=G.rgb.exec(a)){return{r:c[1],g:c[2],b:c[3]}}if(c=G.rgba.exec(a)){return{r:c[1],g:c[2],b:c[3],a:c[4]}}if(c=G.hsl.exec(a)){return{h:c[1],s:c[2],l:c[3]}}if(c=G.hsla.exec(a)){return{h:c[1],s:c[2],l:c[3],a:c[4]}}if(c=G.hsv.exec(a)){return{h:c[1],s:c[2],v:c[3]}}if(c=G.hex8.exec(a)){return{a:u(c[1]),r:o(c[2]),g:o(c[3]),b:o(c[4]),format:b?"name":"hex8"}}if(c=G.hex6.exec(a)){return{r:o(c[1]),g:o(c[2]),b:o(c[3]),format:b?"name":"hex"}}if(c=G.hex3.exec(a)){return{r:o(c[1]+""+c[1]),g:o(c[2]+""+c[2]),b:o(c[3]+""+c[3]),format:b?"name":"hex"}}return false}var w=/^[\s,#]+/,x=/\s+$/,y=0,z=Math,A=z.round,B=z.min,C=z.max,D=z.random;b.fromRatio=function(a,c){if(typeof a=="object"){var d={};for(var e in a){if(a.hasOwnProperty(e)){if(e==="a"){d[e]=a[e]}else{d[e]=s(a[e])}}}a=d}return b(a,c)};b.equals=function(a,c){if(!a||!c){return false}return b(a).toRgbString()==b(c).toRgbString()};b.random=function(){return b.fromRatio({r:D(),g:D(),b:D()})};b.desaturate=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.s-=c/100;d.s=n(d.s);return b(d)};b.saturate=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.s+=c/100;d.s=n(d.s);return b(d)};b.greyscale=function(a){return b.desaturate(a,100)};b.lighten=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.l+=c/100;d.l=n(d.l);return b(d)};b.darken=function(a,c){c=c===0?0:c||10;var d=b(a).toHsl();d.l-=c/100;d.l=n(d.l);return b(d)};b.complement=function(a){var c=b(a).toHsl();c.h=(c.h+180)%360;return b(c)};b.triad=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+120)%360,s:c.s,l:c.l}),b({h:(d+240)%360,s:c.s,l:c.l})]};b.tetrad=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+90)%360,s:c.s,l:c.l}),b({h:(d+180)%360,s:c.s,l:c.l}),b({h:(d+270)%360,s:c.s,l:c.l})]};b.splitcomplement=function(a){var c=b(a).toHsl();var d=c.h;return[b(a),b({h:(d+72)%360,s:c.s,l:c.l}),b({h:(d+216)%360,s:c.s,l:c.l})]};b.analogous=function(a,c,d){c=c||6;d=d||30;var e=b(a).toHsl();var f=360/d;var g=[b(a)];for(e.h=(e.h-(f*c>>1)+720)%360;--c;){e.h=(e.h+f)%360;g.push(b(e))}return g};b.monochromatic=function(a,c){c=c||6;var d=b(a).toHsv();var e=d.h,f=d.s,g=d.v;var h=[];var i=1/c;while(c--){h.push(b({h:e,s:f,v:g}));g=(g+i)%1}return h};b.readability=function(a,c){var d=b(a).toRgb();var e=b(c).toRgb();var f=(d.r*299+d.g*587+d.b*114)/1e3;var g=(e.r*299+e.g*587+e.b*114)/1e3;var h=Math.max(d.r,e.r)-Math.min(d.r,e.r)+Math.max(d.g,e.g)-Math.min(d.g,e.g)+Math.max(d.b,e.b)-Math.min(d.b,e.b);return{brightness:Math.abs(f-g),color:h}};b.readable=function(a,c){var d=b.readability(a,c);return d.brightness>125&&d.color>500};b.mostReadable=function(a,c){var d=null;var e=0;var f=false;for(var g=0;g<c.length;g++){var h=b.readability(a,c[g]);var i=h.brightness>125&&h.color>500;var j=3*(h.brightness/125)+h.color/500;if(i&&!f||i&&f&&j>e||!i&&!f&&j>e){f=i;e=j;d=b(c[g])}}return d};var E=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var F=b.hexNames=k(E);var G=function(){var a="[-\\+]?\\d+%?";var b="[-\\+]?\\d*\\.\\d+%?";var c="(?:"+b+")|(?:"+a+")";var d="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";var e="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+e),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+e),hsv:new RegExp("hsv"+d),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();a.tinycolor=b})();b(function(){if(b.fn.spectrum.load){b.fn.spectrum.processNativeColorInputs()}})})(window,jQuery);!function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=s({},b),a[M]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",
3
+ fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);W(b);for(var f in this)"_"===f.charAt(0)&&(this[f]=this[f].bind(this));this.nativeDraggable=!b.forceFallback&&Q,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),U.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){w&&w.state!==a&&(h(w,"display",a?"none":""),!a&&w.state&&x.insertBefore(w,t),w.state=a)}function c(a,b,c){if(a){c=c||O;do if(">*"===b&&a.parentNode===c||q(a,b))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(L," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(L," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return O.defaultView&&O.defaultView.getComputedStyle?c=O.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;e<f;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){var h=O.createEvent("Event"),i=(a||b[M]).options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=w,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f){var g,h,i=a[M],j=i.options.onMove;return g=O.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),j&&(h=j.call(i,g)),h}function l(a){a.draggable=!1}function m(){S=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a,b){var c=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&q(a,b)&&c++;return c}function q(a,b){if(a){b=b.split(".");var c=b.shift().toUpperCase(),d=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}function r(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function s(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}if("undefined"==typeof window||"undefined"==typeof window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K={},L=/\s+/g,M="Sortable"+(new Date).getTime(),N=window,O=N.document,P=N.parseInt,Q=!!("draggable"in O.createElement("div")),R=function(a){return a=O.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),S=!1,T=Math.abs,U=([].slice,[]),V=r(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(A!==c&&(z=b.scroll,A=c,z===!0)){z=c;do if(z.offsetWidth<z.scrollWidth||z.offsetHeight<z.scrollHeight)break;while(z=z.parentNode)}z&&(d=z,e=void 0==z.parentNode?z.document.body.getBoundingClientRect():z.getBoundingClientRect(),f=(T(e.right-j)<=h)-(T(e.left-j)<=h),g=(T(e.bottom-k)<=h)-(T(e.top-k)<=h)),f||g||(f=(l-j<=h)-(j<=h),g=(m-k<=h)-(k<=h),(f||g)&&(d=N)),K.vx===f&&K.vy===g&&K.el===d||(K.el=d,K.vx=f,K.vy=g,clearInterval(K.pid),d&&(K.pid=setInterval(function(){d===N?N.scrollTo(N.pageXOffset+f*i,N.pageYOffset+g*i):(g&&(d.scrollTop+=g*i),f&&(d.scrollLeft+=f*i))},24)))}},30),W=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return a.prototype={constructor:a,_onTapStart:function(a){var b=this,d=this.el,e=this.options,f=a.type,g=a.touches&&a.touches[0],h=(g||a).target,i=h,k=e.filter;if(!("mousedown"===f&&0!==a.button||e.disabled)&&(h=c(h,e.draggable,d))){if(E=p(h,e.draggable),"function"==typeof k){if(k.call(this,a,h,this))return j(b,i,"filter",h,d,E),void a.preventDefault()}else if(k&&(k=k.split(",").some(function(a){if(a=c(i,a.trim(),d))return j(b,a,"filter",h,d,E),!0})))return void a.preventDefault();e.handle&&!c(i,e.handle,d)||this._prepareDragStart(a,g,h)}},_prepareDragStart:function(a,b,c){var d,f=this,h=f.el,j=f.options,k=h.ownerDocument;c&&!t&&c.parentNode===h&&(H=a,x=h,t=c,u=t.parentNode,y=t.nextSibling,G=j.group,t.style["will-change"]="transform",d=function(){f._disableDelayedDrag(),t.draggable=!0,g(t,f.options.chosenClass,!0),f._triggerDragStart(b)},j.ignore.split(",").forEach(function(a){i(t,a.trim(),l)}),e(k,"mouseup",f._onDrop),e(k,"touchend",f._onDrop),e(k,"touchcancel",f._onDrop),j.delay?(e(k,"mouseup",f._disableDelayedDrag),e(k,"touchend",f._disableDelayedDrag),e(k,"touchcancel",f._disableDelayedDrag),e(k,"mousemove",f._disableDelayedDrag),e(k,"touchmove",f._disableDelayedDrag),f._dragStartTimer=setTimeout(d,j.delay)):d())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(H={target:b,clientX:a.clientX,clientY:a.clientY},this._onDragStart(H,"touch")):this.nativeDraggable?(e(b,"dragend",this),e(x,"dragstart",this._onDragStart)):this._onDragStart(H,!0);try{O.selection?setTimeout(function(){O.selection.empty()}):window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){x&&t&&(g(t,this.options.ghostClass,!0),a.active=this,j(this,x,"start",t,x,E))},_emulateDragOver:function(){if(I){if(this._lastX===I.clientX&&this._lastY===I.clientY)return;this._lastX=I.clientX,this._lastY=I.clientY,R||h(v,"display","none");var a=O.elementFromPoint(I.clientX,I.clientY),b=a,c=" "+this.options.group.name,d=U.length;if(b)do{if(b[M]&&b[M].options.groups.indexOf(c)>-1){for(;d--;)U[d]({clientX:I.clientX,clientY:I.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);R||h(v,"display","")}},_onTouchMove:function(b){if(H){a.active||this._dragStarted(),this._appendGhost();var c=b.touches?b.touches[0]:b,d=c.clientX-H.clientX,e=c.clientY-H.clientY,f=b.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";J=!0,I=c,h(v,"webkitTransform",f),h(v,"mozTransform",f),h(v,"msTransform",f),h(v,"transform",f),b.preventDefault()}},_appendGhost:function(){if(!v){var a,b=t.getBoundingClientRect(),c=h(t),d=this.options;v=t.cloneNode(!0),g(v,d.ghostClass,!1),g(v,d.fallbackClass,!0),h(v,"top",b.top-P(c.marginTop,10)),h(v,"left",b.left-P(c.marginLeft,10)),h(v,"width",b.width),h(v,"height",b.height),h(v,"opacity","0.8"),h(v,"position","fixed"),h(v,"zIndex","100000"),h(v,"pointerEvents","none"),d.fallbackOnBody&&O.body.appendChild(v)||x.appendChild(v),a=v.getBoundingClientRect(),h(v,"width",2*b.width-a.width),h(v,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==G.pull&&(w=t.cloneNode(!0),h(w,"display","none"),x.insertBefore(w,t)),b?("touch"===b?(e(O,"touchmove",this._onTouchMove),e(O,"touchend",this._onDrop),e(O,"touchcancel",this._onDrop)):(e(O,"mousemove",this._onTouchMove),e(O,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,t)),e(O,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(a){var d,e,f,g=this.el,i=this.options,j=i.group,l=j.put,o=G===j,p=i.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!i.dragoverBubble&&a.stopPropagation()),J=!0,G&&!i.disabled&&(o?p||(f=!x.contains(t)):G.pull&&l&&(G.name===j.name||l.indexOf&&~l.indexOf(G.name)))&&(void 0===a.rootEl||a.rootEl===this.el)){if(V(a,i,this.el),S)return;if(d=c(a.target,i.draggable,g),e=t.getBoundingClientRect(),f)return b(!0),void(w||y?x.insertBefore(t,w||y):p||x.appendChild(t));if(0===g.children.length||g.children[0]===v||g===a.target&&(d=n(g,a))){if(d){if(d.animated)return;r=d.getBoundingClientRect()}b(o),k(x,g,t,e,d,r)!==!1&&(t.contains(g)||(g.appendChild(t),u=g),this._animate(e,t),d&&this._animate(r,d))}else if(d&&!d.animated&&d!==t&&void 0!==d.parentNode[M]){B!==d&&(B=d,C=h(d),D=h(d.parentNode));var q,r=d.getBoundingClientRect(),s=r.right-r.left,z=r.bottom-r.top,A=/left|right|inline/.test(C.cssFloat+C.display)||"flex"==D.display&&0===D["flex-direction"].indexOf("row"),E=d.offsetWidth>t.offsetWidth,F=d.offsetHeight>t.offsetHeight,H=(A?(a.clientX-r.left)/s:(a.clientY-r.top)/z)>.5,I=d.nextElementSibling,K=k(x,g,t,e,d,r);if(K!==!1){if(S=!0,setTimeout(m,30),b(o),1===K||K===-1)q=1===K;else if(A){var L=t.offsetTop,N=d.offsetTop;q=L===N?d.previousElementSibling===t&&!E||H&&E:d.previousElementSibling===t||t.previousElementSibling===d?(a.clientY-r.top)/z>.5:N>L}else q=I!==t&&!F||H&&F;t.contains(g)||(q&&!I?g.appendChild(t):d.parentNode.insertBefore(t,q?I:d)),u=t.parentNode,this._animate(e,t),this._animate(r,d)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(O,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(K.pid),clearTimeout(this._dragStartTimer),f(O,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(O,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(J&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),v&&v.parentNode.removeChild(v),t&&(this.nativeDraggable&&f(t,"dragend",this),l(t),t.style["will-change"]="",g(t,this.options.ghostClass,!1),g(t,this.options.chosenClass,!1),x!==u?(F=p(t,d.draggable),F>=0&&(j(null,u,"sort",t,x,E,F),j(this,x,"sort",t,x,E,F),j(null,u,"add",t,x,E,F),j(this,x,"remove",t,x,E,F))):(w&&w.parentNode.removeChild(w),t.nextSibling!==y&&(F=p(t,d.draggable),F>=0&&(j(this,x,"update",t,x,E,F),j(this,x,"sort",t,x,E,F)))),a.active&&(null!=F&&F!==-1||(F=E),j(this,x,"end",t,x,E,F),this.save()))),this._nulling()},_nulling:function(){a.active===this&&(x=t=u=v=y=w=z=A=H=I=J=F=B=C=G=a.active=null)},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?t&&(this._onDragOver(a),d(a)):"drop"!==b&&"dragend"!==b||this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;e<f;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&W(c)))},destroy:function(){var a=this.el;a[M]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),U.splice(U.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:s,throttle:r,closest:c,toggleClass:g,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.4.2",a});(function(){"use strict";var a=function(a,b,c){if(!a||typeof b!="function"||typeof c!="object"&&c){console.error("mq_mutation_obs:: invalid arguments in class constructor");return false}var d=new MutationObserver(function(a){a.forEach(b)});var e=c||{attributes:true,childList:true,characterData:true};d.observe(a,e);return d};window.mqMutationObserver=a})();jQuery.fn.outerHide=function(a){var b=jQuery;a=a?a:{};var c=this;if("destroy"==a){b(document).unbind("click.outer_hide");return false}b(document).bind("click.outer_hide",function(d){if(b(d.target).closest(c).length==0&&d.target!=c&&b.inArray(b(d.target)[0],b(a.clickObj))==-1&&b(c).css("display")!="none"){if(a.clbk){a.clbk()}else{b(c).hide()}}})};function dslc_serialize(a){"use strict";var b,c,d;var e="";var f="";var g=0;var h=function(a){var b=0;var c=0;var d=a.length;var e="";for(c=0;c<d;c++){e=a.charCodeAt(c);if(e<128){b+=1}else if(e<2048){b+=2}else{b+=3}}return b};var i=function(a){var b;var c;var d;var e;var f=typeof a;if(f==="object"&&!a){return"null"}if(f==="object"){if(!a.constructor){return"object"}d=a.constructor.toString();b=d.match(/(\w+)\(/);if(b){d=b[1].toLowerCase()}e=["boolean","number","string","array"];for(c in e){if(d===e[c]){f=e[c];break}}}return f};var j=i(a);switch(j){case"function":b="";break;case"boolean":b="b:"+(a?"1":"0");break;case"number":b=(Math.round(a)===a?"i":"d")+":"+a;break;case"string":b="s:"+h(a)+':"'+a+'"';break;case"array":case"object":b="a";for(c in a){if(a.hasOwnProperty(c)){e=i(a[c]);if(e==="function"){continue}d=c.match(/^[0-9]+$/)?parseInt(c,10):c;f+=dslc_serialize(d)+dslc_serialize(a[c]);g++}}b+=":"+g+":{"+f+"}";break;case"undefined":default:b="N";break}if(j!=="object"&&j!=="array"){b+=";"}return b}function dslc_unserialize(a){"use strict";var b=typeof window!=="undefined"?window:GLOBAL;var c=function(a){var b=a.charCodeAt(0);var c=[338,339,352,353,376,402,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8226,8230,8240,8364,8482];if(b<128||b>=160&&b<=255||c.indexOf(b)!==-1){return 0}if(b<2048){return 1}return 2};var d=function(a,c,d,e){throw new b[a](c,d,e)};var e=function(a,b,c){var e=2;var f=[];var g=a.slice(b,b+1);while(g!==c){if(e+b>a.length){d("Error","Invalid")}f.push(g);g=a.slice(b+(e-1),b+e);e+=1}return[f.length,f.join("")]};var f=function(a,b,d){var e,f,g;g=[];for(e=0;e<d;e++){f=a.slice(b+(e-1),b+e);g.push(f);d-=c(f)}return[g.length,g.join("")]};var g=function(a,b){var c;var h;var i;var j;var k;var l;var m;var n;var o;var p;var q;var r;var s;var t;var u;var v;var w;var x;var y=0;var z=function(a){return a};if(!b){b=0}c=a.slice(b,b+1).toLowerCase();h=b+2;switch(c){case"i":z=function(a){return parseInt(a,10)};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"b":z=function(a){return parseInt(a,10)!==0};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"d":z=function(a){return parseFloat(a)};o=e(a,h,";");y=o[0];n=o[1];h+=y+1;break;case"n":n=null;break;case"s":p=e(a,h,":");y=p[0];q=p[1];h+=y+2;o=f(a,h+1,parseInt(q,10));y=o[0];n=o[1];h+=y+2;if(y!==parseInt(q,10)&&y!==n.length){d("SyntaxError","String length mismatch")}break;case"a":n={};i=e(a,h,":");y=i[0];j=i[1];h+=y+2;l=parseInt(j,10);k=true;for(r=0;r<l;r++){t=g(a,h);u=t[1];s=t[2];h+=u;v=g(a,h);w=v[1];x=v[2];h+=w;if(s!==r){k=false}n[s]=x}if(k){m=new Array(l);for(r=0;r<l;r++){m[r]=n[r]}n=m}h+=1;break;default:d("SyntaxError","Unknown / Unhandled data type(s): "+c);break}return[c,h-b,z(n)]};return g(a+"",0)[2]}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if(b!=="none"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable.sortable("option","disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.sortable("option","disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(c){var d=jQuery(c.output);d.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(d);new LiveComposer.Builder.Elements.CModuleArea(d.find(".dslc-modules-area").eq(0)[0]);if(a){a()}d.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");b.resolve(d[0])});return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(c);c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");
4
+ a.animate({opacity:1},300);dslc_show_publish_button()})}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).find(".dslc-modules-section:last-child"));LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=.75;var c=500;var d=jQuery(".dslca-section-scroller");var e=jQuery(".dslca-section-scroller-inner",this)[0];jQuery(".dslca-section-scroller").on("wheel",function(a){f(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function f(a){a=a*b;var c=parseInt(d.find(".dslca-section-scroller-content").width()||0);if(c<=window.innerWidth-260)return false;var f=c-window.innerWidth+240;a=parseInt(e.style.left||0)-a;a=a>=0?0:a;a=a<=-f?-f:a;e.style.left=a+"px"}jQuery(document).on("click",".dslca-section-scroller-prev",function(a){a.preventDefault();f(-c)});jQuery(document).on("click",".dslca-section-scroller-next",function(a){a.preventDefault();f(c)});jQuery(window).load(function(){jQuery(window).resize(function(){f(0)})})});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-bottom-area",function(c){LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false}});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=jQuery(a).sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(a,b){dslc_show_publish_button()},start:function(a,b){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(a,b){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){b.sortable.sortable("option","disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable.sortable("option","disabled",false)})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);jQuery(this).next().click()});jQuery(".dslca-container").on("hover",".dslca-module-edit-option-slider .dslca-module-edit-field-numeric",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("hover",".dslca-modules-section-edit-option-slider .dslca-modules-section-edit-field",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors();LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors();LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var a=jQuery(".dslca-module-edit-field-icon-switch-sets");var b=jQuery(this);jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active");b.addClass("dslca-active");if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-switch-sets").hide()}else{var c=b.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active");jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+c+'"]').addClass("dslca-active");var d=b.offset(),e=a.outerHeight(),f=a.outerWidth(),g=d.left-f/2+6,h="50%";if(g<0){h=f/2+g+"px";g=0}jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:d.top-e-20,left:g});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+h+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var b=a(this).data("set");dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b);a(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active");a(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(b);a(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click");a(".dslca-module-edit-field-icon-switch-sets").hide()});jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var b=a(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b)})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(){LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"link",style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"},{title:"Pre",format:"preformatted"}],toolbar:"styleselect | bold italic blockquote | removeformat | link unlink | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){a.spectrum("destroy")});b.Helpers.colorpickers=[]}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".sp-container").remove()};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var c=this;var d=true;try{var e=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(f){d=false}if(d){var g=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&e[b.value]==undefined){return false}if(b.type=="checkbox"&&e[b.value]!=undefined){c[b.value]=e[b.value]}else{c=e}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',g);b.Helpers.depsHandlers.push(g)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){b.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});b.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"){var B=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),C=B.find("select").val();if(C=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-edit-options-tabs").hide();B.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html("")}else{jQuery(".dslca-module-edit-options-inner").html("")}jQuery(".dslca-module-edit-options-tabs").html("");if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);LiveComposer.Builder.moduleBackup=false;dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html("")}else{jQuery(".dslca-module-edit-options-inner").html("")}jQuery(".dslca-module-edit-options-tabs").html("");if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var e=c.offset();var f=a.outerHeight();var g=a.outerWidth();var h=e.left-g/2+6;var i="50%";if(h<0){i=g/2+h+"px";h=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:e.top-f-20,left:h});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+i+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();
5
+ jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;i[0]=[];i[1]=[];i[2]=[];i[3]=[];if(localStorage["dslcColorpickerPalleteStorage"]==undefined){}else{j=JSON.parse(localStorage["dslcColorpickerPalleteStorage"]);for(k=0;k<j.length;k++){var l=Math.floor(k/3);if(l<4){i[l].push(j[k])}}}var m=a;jQuery(m).each(function(){h=jQuery(this).val();jQuery(this).spectrum({color:h,showInput:true,allowEmpty:true,showAlpha:true,clickoutFiresChange:true,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:true,palette:i,move:function(a){b=jQuery(this);if(a==null){e=""}else{e=a.toRgbString().replace(/ /g,"")}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")},change:function(a){b=jQuery(this);if(a==null){e=""}else{e=a.toRgbString().replace(/ /g,"")}b.val(e).trigger("change");c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made");if(localStorage["dslcColorpickerPalleteStorage"]==undefined){var h=[e];localStorage["dslcColorpickerPalleteStorage"]=JSON.stringify(h)}else{var h=JSON.parse(localStorage["dslcColorpickerPalleteStorage"]);if(h.indexOf(e)==-1){h.unshift(e)}localStorage["dslcColorpickerPalleteStorage"]=JSON.stringify(h)}},show:function(a){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))});jQuery(".dslca-sp-revert").click(function(){var a=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(a).trigger("change")})}function dslc_module_options_numeric(a){var b=jQuery;if(dslcDebug)console.log("dslc_module_options_numeric");var c=a||".dslca-module-edit-option-slider .dslca-module-edit-field-numeric";jQuery(c).each(function(){if(this.classList.contains("slider-initiated"))return;var a=false;var c=false;var d=0;var e=this;var f=0;var g=parseFloat(jQuery(this).data("max"))>0?parseFloat(b(this).data("max")):2e3;var h=parseFloat(jQuery(this).data("min"))>-2e3?parseFloat(b(this).data("min")):0;var i=parseFloat(jQuery(this).data("increment"))>0?parseFloat(b(this).data("increment")):1;var j,k,l,m,n,o,p,q,r,s,t,u,v;e.classList.add("slider-initiated");jQuery(e).keyup(function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;jQuery(this).trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;jQuery(this).trigger("change")}}if(a.keyCode==8||a.keyCode==45){jQuery(this).trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){jQuery(this).trigger("change")}if(!a.key.match(/\d/)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});jQuery(e).unbind("change");jQuery(e).change(function(a){if(this.value>g){this.value=g}if(this.value<h){this.value=h}s=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);s.addClass("dslca-module-change-made")});jQuery(document).mouseup(function(){a=false});jQuery(e).mousedown(function(b){a=parseFloat(b.pageX);d=parseFloat(e.value&&e.value!=""?e.value:0);f=0});jQuery(".dslca-section").mousemove(function(b){if(a!==false){b=b||window.event;var c=b.clientX;var d=c-f;if(0<d){e.value=Math.round((parseFloat(e.value)+i)*100)/100}else{e.value=Math.round((parseFloat(e.value)-i)*100)/100}f=c;jQuery(e).trigger("change")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> &nbsp; Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("#page-builder-frame").on("load",function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this.contentWindow;LiveComposer.Builder.PreviewAreaDocument=jQuery(this).contents();jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-enabled dslca-drag-not-in-progress");LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()});jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show()});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).hide();jQuery('.dslca-origin[data-origin="'+a+'"]',b).show();if(a==""){jQuery(".dslca-origin",b).show()}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(c);jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(b){b.preventDefault();var c=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(c)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(a(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},encode:function(a){a=dslc_serialize(a);a=LiveComposer.Utils.utf8_to_b64(a);return a},decode:function(a){a=LiveComposer.Utils.b64_to_utf8(a);a=dslc_unserialize(a);return a},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=LiveComposer.Utils.decode(f);f[b]=c;f=LiveComposer.Utils.encode(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery.event.trigger({type:a,message:{details:b}})}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}jQuery(document).ready(function(a){a(document).on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});a(document).on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})})});window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing");
6
+ }}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added")})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id)+"{"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id)+"{"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;if(d.hasClass("dslca-module-edit-field-checkbox")){o=b;p=c}if(d.hasClass("dslca-module-edit-field-image")){o='url("'+o+'")'}if(null!==o&&o.length<1&&(n=="background-color"||n=="background")){o="transparent"}n.split(",").forEach(function(a){a=a.replace(/\s+/g,"");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var c=m.split(",");var e="#"+b[0].id+" "+c.join(", #"+b[0].id)+"{"+a+": "+o+r+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:a,elems:m,styleContent:e})})}jQuery('.dslca-module-option-front[data-id="'+e+'"]',g).val(p||d.val());LiveComposer.Utils.publish("moduleChanged",{moduleId:g[0].id,optionID:e,optionVal:p||d.val()})}});a(document).on("keyup, blur",".dslca-module-edit-field-numeric",function(){return false;var b="",c=a(this),d=c.data("id"),e=c.closest(".dslca-module-edit-option"),f=a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),g=f.data("dslc-module-id"),h=jQuery(".dslca-module-options-front textarea",f),i=c.data("affect-on-change-el"),j=c.data("affect-on-change-rule"),k=c.val(),l=k+c.data("ext"),m;f.addClass("dslca-module-change-made");if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")!="active"){m=j.replace(/ /g,"").split(",");jQuery('.dslca-module-option-front[data-id="'+d+'"]',f).val(k)}})});jQuery(document).ready(function(a){var b;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-add-hook")){var c=a.siblings(".dslca-module-edit-field-image");var d=a.siblings(".dslca-module-edit-field-image-remove-hook")}else{var c=a.siblings(".dslca-modules-section-edit-field-upload");var d=a.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;b=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});b.on("select",function(){var e=b.state().get("selection").first().toJSON();c.val(e.id);jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);c.trigger("change");a.hide();d.show()});b.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-remove-hook")){var b=a.siblings(".dslca-module-edit-field-image");var c=a.siblings(".dslca-module-edit-field-image-add-hook")}else{var b=a.siblings(".dslca-modules-section-edit-field-upload");var c=a.siblings(".dslca-modules-section-edit-field-image-add-hook")}b.val("").trigger("change");a.hide();c.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var a=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var b=tinymce.get("dslcawpeditor");var c=b.getContent()}else{var c=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(c);if(a.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(c);var d=a.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(d)}else if(a.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(c);var e=a.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(e)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){a(".dslca-wp-editor").hide();a(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
js/builder/builder.module.functions.js CHANGED
@@ -169,7 +169,7 @@
169
 
170
  if ( module.hasClass('dslc-module-handle-like-accordion') ) {
171
 
172
- dslc_accordion_generate_code( module.find('.dslc-accordion') );
173
  var full_content = module.find( '.dslca-module-option-front[data-id="accordion_content"]' ).val();
174
  var full_content_arr = full_content.split('(dslc_sep)');
175
  var key_value = editable.closest('.dslc-accordion-item').index();
@@ -177,7 +177,7 @@
177
 
178
  } else if ( module.hasClass('dslc-module-handle-like-tabs') ) {
179
 
180
- dslc_tabs_generate_code( module.find('.dslc-tabs') );
181
  var full_content = module.find( '.dslca-module-option-front[data-id="tabs_content"]' ).val();
182
  var full_content_arr = full_content.split('(dslc_sep)');
183
  var key_value = editable.closest('.dslc-tabs-tab-content').index();
169
 
170
  if ( module.hasClass('dslc-module-handle-like-accordion') ) {
171
 
172
+ LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code( module.find('.dslc-accordion') );
173
  var full_content = module.find( '.dslca-module-option-front[data-id="accordion_content"]' ).val();
174
  var full_content_arr = full_content.split('(dslc_sep)');
175
  var key_value = editable.closest('.dslc-accordion-item').index();
177
 
178
  } else if ( module.hasClass('dslc-module-handle-like-tabs') ) {
179
 
180
+ LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code( module.find('.dslc-tabs') );
181
  var full_content = module.find( '.dslca-module-option-front[data-id="tabs_content"]' ).val();
182
  var full_content_arr = full_content.split('(dslc_sep)');
183
  var key_value = editable.closest('.dslc-tabs-tab-content').index();
js/builder/builder.plugins.js CHANGED
@@ -4,8 +4,7 @@
4
  /*! Spectrum Colorpicker v1.3.1 | Author: Brian Grinstead (https://github.com/bgrins/spectrum) | License: MIT */
5
  (function(e,t,n){function l(e,t,n){var r=[];for(var i=0;i<e.length;i++){var s=e[i];if(s){var u=tinycolor(s);var a=u.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";a+=tinycolor.equals(t,s)?" sp-thumb-active":"";var f=o?"background-color:"+u.toRgbString():"filter:"+u.toFilter();r.push('<span title="'+u.toRgbString()+'" data-color="'+u.toRgbString()+'" class="'+a+'"><span class="sp-thumb-inner" style="'+f+';" /></span>')}else{var l="sp-clear-display";r.push('<span title="No Color Selected" data-color="" style="background-color:transparent;" class="'+l+'"></span>')}}return"<div class='sp-cf "+n+"'>"+r.join("")+"</div>"}function c(){for(var e=0;e<i.length;e++){if(i[e]){i[e].hide()}}}function h(e,n){var i=t.extend({},r,e);i.callbacks={move:g(i.move,n),change:g(i.change,n),show:g(i.show,n),hide:g(i.hide,n),beforeShow:g(i.beforeShow,n)};return i}function p(r,p){function St(){if(v.showPaletteOnly){v.showPalette=true}if(v.palette){F=v.palette.slice(0);I=t.isArray(F[0])?F:[F]}K.toggleClass("sp-flat",g);K.toggleClass("sp-input-disabled",!v.showInput);K.toggleClass("sp-alpha-enabled",v.showAlpha);K.toggleClass("sp-clear-enabled",Et);K.toggleClass("sp-buttons-disabled",!v.showButtons);K.toggleClass("sp-palette-disabled",!v.showPalette);K.toggleClass("sp-palette-only",v.showPaletteOnly);K.toggleClass("sp-initial-disabled",!v.showInitial);K.addClass(v.className);Ut()}function xt(){function o(e){if(e.data&&e.data.ignore){Ht(t(this).data("color"));Ft()}else{Ht(t(this).data("color"));Rt(true);Ft();Dt()}return false}if(s){K.find("*:not(input)").attr("unselectable","on")}St();if(ct){V.after(ht).hide()}if(!Et){ut.hide()}if(g){V.after(K).hide()}else{var n=v.appendTo==="parent"?V.parent():t(v.appendTo);if(n.length!==1){n=t("body")}n.append(K)}if(E&&e.localStorage){try{var r=e.localStorage[E].split(",#");if(r.length>1){delete e.localStorage[E];t.each(r,function(e,t){Tt(t)})}}catch(i){}try{q=e.localStorage[E].split(";")}catch(i){}}pt.bind("click.spectrum touchstart.spectrum",function(e){if(!J){Mt()}e.stopPropagation();if(!t(e.target).is("input")){e.preventDefault()}});if(V.is(":disabled")||v.disabled===true){Vt()}K.click(m);rt.change(Ot);rt.bind("paste",function(){setTimeout(Ot,1)});rt.keydown(function(e){if(e.keyCode==13){Ot()}});ot.text(v.cancelText);ot.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();Dt("cancel")});ut.attr("title",v.clearText);ut.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();wt=true;Ft();if(g){Rt(true)}});at.text(v.chooseText);at.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(jt()){Rt(true);Dt()}});y(tt,function(e,t,n){j=e/M;wt=false;if(n.shiftKey){j=Math.round(j*10)/10}Ft()},Lt,At);y(Y,function(e,t){P=parseFloat(t/A);wt=false;if(!v.showAlpha){j=1}Ft()},Lt,At);y(Q,function(e,t,n){if(!n.shiftKey){z=null}else if(!z){var r=H*C;var i=k-B*k;var s=Math.abs(e-r)>Math.abs(t-i);z=s?"x":"y"}var o=!z||z==="x";var u=!z||z==="y";if(o){H=parseFloat(e/C)}if(u){B=parseFloat((k-t)/k)}wt=false;if(!v.showAlpha){j=1}Ft()},Lt,At);if(!!vt){Ht(vt);It();yt=gt||tinycolor(vt).format;Tt(vt)}else{It()}if(g){_t()}var u=s?"mousedown.spectrum":"click.spectrum touchstart.spectrum";it.delegate(".sp-thumb-el",u,o);st.delegate(".sp-thumb-el:nth-child(1)",u,{ignore:true},o)}function Tt(n){if(w){var r=tinycolor(n).toRgbString();if(t.inArray(r,q)===-1){q.push(r);while(q.length>R){q.shift()}}if(E&&e.localStorage){try{e.localStorage[E]=q.join(";")}catch(i){}}}}function Nt(){var e=[];var t=q;var n={};var r;if(v.showPalette){for(var i=0;i<I.length;i++){for(var s=0;s<I[i].length;s++){r=tinycolor(I[i][s]).toRgbString();n[r]=true}}for(i=0;i<t.length;i++){r=tinycolor(t[i]).toRgbString();if(!n.hasOwnProperty(r)){e.push(t[i]);n[r]=true}}}return e.reverse().slice(0,v.maxSelectionSize)}function Ct(){var e=Bt();var n=t.map(I,function(t,n){return l(t,e,"sp-palette-row sp-palette-row-"+n)});if(q){n.push(l(Nt(),e,"sp-palette-row sp-palette-row-selection"))}it.html(n.join(""))}function kt(){if(v.showInitial){var e=mt;var t=Bt();st.html(l([e,t],t,"sp-palette-row-initial"))}}function Lt(){if(k<=0||C<=0||A<=0){Ut()}K.addClass(U);z=null;V.trigger("dragstart.spectrum",[Bt()])}function At(){K.removeClass(U);V.trigger("dragstop.spectrum",[Bt()])}function Ot(){var e=rt.val();if((e===null||e==="")&&Et){Ht(null);Rt(true)}else{var t=tinycolor(e);if(t.ok){Ht(t);Rt(true)}else{rt.addClass("sp-validation-error")}}}function Mt(){if(N){Dt()}else{_t()}}function _t(){var n=t.Event("beforeShow.spectrum");if(N){Ut();return}V.trigger(n,[Bt()]);if(x.beforeShow(Bt())===false||n.isDefaultPrevented()){return}c();N=true;t(W).bind("click.spectrum",Dt);t(e).bind("resize.spectrum",T);ht.addClass("sp-active");K.removeClass("sp-hidden");Ut();It();mt=Bt();kt();x.show(mt);V.trigger("show.spectrum",[mt])}function Dt(n){if(n&&n.type=="click"&&n.button==2){return}if(!N||g){return}N=false;t(W).unbind("click.spectrum",Dt);t(e).unbind("resize.spectrum",T);ht.removeClass("sp-active");K.addClass("sp-hidden");var r=!tinycolor.equals(Bt(),mt);if(r){if(bt&&n!=="cancel"){Rt(true)}else{Pt()}}x.hide(Bt());V.trigger("hide.spectrum",[Bt()])}function Pt(){Ht(mt,true);x.change(mt);V.trigger("change",[mt])}function Ht(e,t){if(tinycolor.equals(e,Bt())){It();return}var n,r;if(!e&&Et){wt=true}else{wt=false;n=tinycolor(e);r=n.toHsv();P=r.h%360/360;H=r.s;B=r.v;j=r.a}It();if(n&&n.ok&&!t){yt=gt||n.format}}function Bt(e){e=e||{};if(Et&&wt){return null}return tinycolor.fromRatio({h:P,s:H,v:B,a:Math.round(j*100)/100},{format:e.format||yt})}function jt(){return!rt.hasClass("sp-validation-error")}function Ft(){It();x.move(Bt());V.trigger("move.spectrum",[Bt()])}function It(){rt.removeClass("sp-validation-error");qt();var e=tinycolor.fromRatio({h:P,s:1,v:1});Q.css("background-color",e.toHexString());var t=yt;if(j<1&&!(j===0&&t==="name")){if(t==="hex"||t==="hex3"||t==="hex6"||t==="name"){t="rgb"}}var n=Bt({format:t}),r="";dt.removeClass("sp-clear-display");dt.css("background-color","transparent");if(!n&&Et){dt.addClass("sp-clear-display")}else{var i=n.toHexString(),u=n.toRgbString();if(o||n.alpha===1){dt.css("background-color",u)}else{dt.css("background-color","transparent");dt.css("filter",n.toFilter())}if(v.showAlpha){var a=n.toRgb();a.a=0;var f=tinycolor(a).toRgbString();var l="linear-gradient(left, "+f+", "+i+")";if(s){et.css("filter",tinycolor(f).toFilter({gradientType:1},i))}else{et.css("background","-webkit-"+l);et.css("background","-moz-"+l);et.css("background","-ms-"+l);et.css("background",l)}}r=n.toString(t)}if(v.showInput){rt.val(r)}if(v.showPalette){Ct()}kt()}function qt(){var e=H;var t=B;if(Et&&wt){nt.hide();Z.hide();G.hide()}else{nt.show();Z.show();G.show();var n=e*C;var r=k-t*k;n=Math.max(-L,Math.min(C-L,n-L));r=Math.max(-L,Math.min(k-L,r-L));G.css({top:r+"px",left:n+"px"});var i=j*M;nt.css({left:i-_/2+"px"});var s=P*A;Z.css({top:s-D+"px"})}}function Rt(e){var t=Bt(),n="",r=!tinycolor.equals(t,mt);if(t){n=t.toString(yt);Tt(t)}if(ft){V.val(n)}mt=t;if(e&&r){x.change(t);V.trigger("change",[t])}}function Ut(){C=Q.width();k=Q.height();L=G.height();O=Y.width();A=Y.height();D=Z.height();M=tt.width();_=nt.width();if(!g){K.css("position","absolute");K.offset(d(K,pt))}qt();if(v.showPalette){Ct()}V.trigger("reflow.spectrum")}function zt(){V.show();pt.unbind("click.spectrum touchstart.spectrum");K.remove();ht.remove();i[$t.id]=null}function Wt(e,r){if(e===n){return t.extend({},v)}if(r===n){return v[e]}v[e]=r;St()}function Xt(){J=false;V.attr("disabled",false);pt.removeClass("sp-disabled")}function Vt(){Dt();J=true;V.attr("disabled",true);pt.addClass("sp-disabled")}var v=h(p,r),g=v.flat,w=v.showSelectionPalette,E=v.localStorageKey,S=v.theme,x=v.callbacks,T=b(Ut,10),N=false,C=0,k=0,L=0,A=0,O=0,M=0,_=0,D=0,P=0,H=0,B=0,j=1,F=[],I=[],q=v.selectionPalette.slice(0),R=v.maxSelectionSize,U="sp-dragging",z=null;var W=r.ownerDocument,X=W.body,V=t(r),J=false,K=t(f,W).addClass(S),Q=K.find(".sp-color"),G=K.find(".sp-dragger"),Y=K.find(".sp-hue"),Z=K.find(".sp-slider"),et=K.find(".sp-alpha-inner"),tt=K.find(".sp-alpha"),nt=K.find(".sp-alpha-handle"),rt=K.find(".sp-input"),it=K.find(".sp-palette"),st=K.find(".sp-initial"),ot=K.find(".sp-cancel"),ut=K.find(".sp-clear"),at=K.find(".sp-choose"),ft=V.is("input"),lt=ft&&u&&V.attr("type")==="color",ct=ft&&!g,ht=ct?t(a).addClass(S).addClass(v.className):t([]),pt=ct?ht:V,dt=ht.find(".sp-preview-inner"),vt=v.color||ft&&V.val(),mt=false,gt=v.preferredFormat,yt=gt,bt=!v.showButtons||v.clickoutFiresChange,wt=!vt,Et=v.allowEmpty&&!lt;xt();var $t={show:_t,hide:Dt,toggle:Mt,reflow:Ut,option:Wt,enable:Xt,disable:Vt,set:function(e){Ht(e);Rt()},get:Bt,destroy:zt,container:K};$t.id=i.push($t)-1;return $t}function d(e,n){var r=0;var i=e.outerWidth();var s=e.outerHeight();var o=n.outerHeight();var u=e[0].ownerDocument;var a=u.documentElement;var f=a.clientWidth+t(u).scrollLeft();var l=a.clientHeight+t(u).scrollTop();var c=n.offset();c.top+=o;c.left-=Math.min(c.left,c.left+i>f&&f>i?Math.abs(c.left+i-f):0);c.top-=Math.min(c.top,c.top+s>l&&l>s?Math.abs(s+o-r):r);return c}function v(){}function m(e){e.stopPropagation()}function g(e,t){var n=Array.prototype.slice;var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function y(n,r,i,o){function d(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function v(e){if(a){if(s&&document.documentMode<9&&!e.button){return g()}var t=e.originalEvent.touches;var i=t?t[0].pageX:e.pageX;var o=t?t[0].pageY:e.pageY;var u=Math.max(0,Math.min(i-f.left,c));var p=Math.max(0,Math.min(o-f.top,l));if(h){d(e)}r.apply(n,[u,p,e])}}function m(e){var r=e.which?e.which==3:e.button==2;var s=e.originalEvent.touches;if(!r&&!a){if(i.apply(n,arguments)!==false){a=true;l=t(n).height();c=t(n).width();f=t(n).offset();t(u).bind(p);t(u.body).addClass("sp-dragging");if(!h){v(e)}d(e)}}}function g(){if(a){t(u).unbind(p);t(u.body).removeClass("sp-dragging");o.apply(n,arguments)}a=false}r=r||function(){};i=i||function(){};o=o||function(){};var u=n.ownerDocument||document;var a=false;var f={};var l=0;var c=0;var h="ontouchstart"in e;var p={};p["selectstart"]=d;p["dragstart"]=d;p["touchmove mousemove"]=v;p["touchend mouseup"]=g;t(n).bind("touchstart mousedown",m)}function b(e,t,n){var r;return function(){var i=this,s=arguments;var o=function(){r=null;e.apply(i,s)};if(n)clearTimeout(r);if(n||!r)r=setTimeout(o,t)}}function w(){if(e.console){if(Function.prototype.bind)w=Function.prototype.bind.call(console.log,console);else w=function(){Function.prototype.apply.call(console.log,console,arguments)};w.apply(this,arguments)}}var r={beforeShow:v,move:v,change:v,show:v,hide:v,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:false,showInitial:false,showPalette:false,showPaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",clearText:"Clear Color Selection",preferredFormat:false,className:"",showAlpha:false,theme:"sp-light",palette:["fff","000"],selectionPalette:[],disabled:false},i=[],s=!!/msie/i.exec(e.navigator.userAgent),o=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div");var n=t.style;n.cssText="background-color:rgba(0,0,0,.5)";return e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),u=function(){var e=t("<input type='color' value='!' />")[0];return e.type==="color"&&e.value!=="!"}(),a=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),f=function(){var e="";if(s){for(var t=1;t<=6;t++){e+="<div class='sp-"+t+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<span class='dslca-sp-revert dslc-icon dslc-icon-undo' title='Revert to default'></span>","<span class='sp-cancel dslc-icon dslc-icon-remove' title='Cancel'></span>","<span class='sp-choose dslc-icon dslc-icon-ok' title='Confirm'></span>","</div>","</div>","</div>"].join("")}();var E="spectrum.id";t.fn.spectrum=function(e,n){if(typeof e=="string"){var r=this;var s=Array.prototype.slice.call(arguments,1);this.each(function(){var n=i[t(this).data(E)];if(n){var o=n[e];if(!o){throw new Error("Spectrum: no such method: '"+e+"'")}if(e=="get"){r=n.get()}else if(e=="container"){r=n.container}else if(e=="option"){r=n.option.apply(n,s)}else if(e=="destroy"){n.destroy();t(this).removeData(E)}else{o.apply(n,s)}}});return r}return this.spectrum("destroy").each(function(){var n=t.extend({},e,t(this).data());var r=p(this,n);t(this).data(E,r.id)})};t.fn.spectrum.load=true;t.fn.spectrum.loadOpts={};t.fn.spectrum.draggable=y;t.fn.spectrum.defaults=r;t.spectrum={};t.spectrum.localization={};t.spectrum.palettes={};t.fn.spectrum.processNativeColorInputs=function(){if(!u){t("input[type=color]").spectrum({preferredFormat:"hex6"})}};(function(){function f(e,t){e=e?e:"";t=t||{};if(typeof e=="object"&&e.hasOwnProperty("_tc_id")){return e}var n=l(e);var i=n.r,o=n.g,u=n.b,a=n.a,c=s(100*a)/100,p=t.format||n.format;if(i<1){i=s(i)}if(o<1){o=s(o)}if(u<1){u=s(u)}return{ok:n.ok,format:p,_tc_id:r++,alpha:a,getAlpha:function(){return a},setAlpha:function(e){a=E(e);c=s(100*a)/100},toHsv:function(){var e=d(i,o,u);return{h:e.h*360,s:e.s,v:e.v,a:a}},toHsvString:function(){var e=d(i,o,u);var t=s(e.h*360),n=s(e.s*100),r=s(e.v*100);return a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+c+")"},toHsl:function(){var e=h(i,o,u);return{h:e.h*360,s:e.s,l:e.l,a:a}},toHslString:function(){var e=h(i,o,u);var t=s(e.h*360),n=s(e.s*100),r=s(e.l*100);return a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+c+")"},toHex:function(e){return m(i,o,u,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return g(i,o,u,a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:s(i),g:s(o),b:s(u),a:a}},toRgbString:function(){return a==1?"rgb("+s(i)+", "+s(o)+", "+s(u)+")":"rgba("+s(i)+", "+s(o)+", "+s(u)+", "+c+")"},toPercentageRgb:function(){return{r:s(S(i,255)*100)+"%",g:s(S(o,255)*100)+"%",b:s(S(u,255)*100)+"%",a:a}},toPercentageRgbString:function(){return a==1?"rgb("+s(S(i,255)*100)+"%, "+s(S(o,255)*100)+"%, "+s(S(u,255)*100)+"%)":"rgba("+s(S(i,255)*100)+"%, "+s(S(o,255)*100)+"%, "+s(S(u,255)*100)+"%, "+c+")"},toName:function(){if(a===0){return"transparent"}return b[m(i,o,u,true)]||false},toFilter:function(e){var n="#"+g(i,o,u,a);var r=n;var s=t&&t.gradientType?"GradientType = 1, ":"";if(e){var l=f(e);r=l.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+s+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this.format;var n=false;var r=!t&&a<1&&a>0;var i=r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="name");if(e==="rgb"){n=this.toRgbString()}if(e==="prgb"){n=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){n=this.toHexString()}if(e==="hex3"){n=this.toHexString(true)}if(e==="hex8"){n=this.toHex8String()}if(e==="name"){n=this.toName()}if(e==="hsl"){n=this.toHslString()}if(e==="hsv"){n=this.toHsvString()}if(i){return this.toRgbString()}return n||this.toHexString()}}}function l(e){var t={r:0,g:0,b:0};var n=1;var r=false;var i=false;if(typeof e=="string"){e=_(e)}if(typeof e=="object"){if(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")){t=c(e.r,e.g,e.b);r=true;i=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")){e.s=L(e.s);e.v=L(e.v);t=v(e.h,e.s,e.v);r=true;i="hsv"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")){e.s=L(e.s);e.l=L(e.l);t=p(e.h,e.s,e.l);r=true;i="hsl"}if(e.hasOwnProperty("a")){n=e.a}}n=E(n);return{ok:r,format:e.format||i,r:o(255,u(t.r,0)),g:o(255,u(t.g,0)),b:o(255,u(t.b,0)),a:n}}function c(e,t,n){return{r:S(e,255)*255,g:S(t,255)*255,b:S(n,255)*255}}function h(e,t,n){e=S(e,255);t=S(t,255);n=S(n,255);var r=u(e,t,n),i=o(e,t,n);var s,a,f=(r+i)/2;if(r==i){s=a=0}else{var l=r-i;a=f>.5?l/(2-r-i):l/(r+i);switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,l:f}}function p(e,t,n){function o(e,t,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return e+(t-e)*6*n;if(n<1/2)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;return e}var r,i,s;e=S(e,360);t=S(t,100);n=S(n,100);if(t===0){r=i=s=n}else{var u=n<.5?n*(1+t):n+t-n*t;var a=2*n-u;r=o(a,u,e+1/3);i=o(a,u,e);s=o(a,u,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function d(e,t,n){e=S(e,255);t=S(t,255);n=S(n,255);var r=u(e,t,n),i=o(e,t,n);var s,a,f=r;var l=r-i;a=r===0?0:l/r;if(r==i){s=0}else{switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,v:f}}function v(e,t,n){e=S(e,360)*6;t=S(t,100);n=S(n,100);var r=i.floor(e),s=e-r,o=n*(1-t),u=n*(1-s*t),a=n*(1-(1-s)*t),f=r%6,l=[n,u,o,o,a,n][f],c=[a,n,n,u,o,o][f],h=[o,o,a,n,n,u][f];return{r:l*255,g:c*255,b:h*255}}function m(e,t,n,r){var i=[k(s(e).toString(16)),k(s(t).toString(16)),k(s(n).toString(16))];if(r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)}return i.join("")}function g(e,t,n,r){var i=[k(A(r)),k(s(e).toString(16)),k(s(t).toString(16)),k(s(n).toString(16))];return i.join("")}function w(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){t[e[n]]=n}}return t}function E(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function S(e,t){if(N(e)){e="100%"}var n=C(e);e=o(t,u(0,parseFloat(e)));if(n){e=parseInt(e*t,10)/100}if(i.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function x(e){return o(1,u(0,e))}function T(e){return parseInt(e,16)}function N(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function C(e){return typeof e==="string"&&e.indexOf("%")!=-1}function k(e){return e.length==1?"0"+e:""+e}function L(e){if(e<=1){e=e*100+"%"}return e}function A(e){return Math.round(parseFloat(e)*255).toString(16)}function O(e){return T(e)/255}function _(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r=false;if(y[e]){e=y[e];r=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var i;if(i=M.rgb.exec(e)){return{r:i[1],g:i[2],b:i[3]}}if(i=M.rgba.exec(e)){return{r:i[1],g:i[2],b:i[3],a:i[4]}}if(i=M.hsl.exec(e)){return{h:i[1],s:i[2],l:i[3]}}if(i=M.hsla.exec(e)){return{h:i[1],s:i[2],l:i[3],a:i[4]}}if(i=M.hsv.exec(e)){return{h:i[1],s:i[2],v:i[3]}}if(i=M.hex8.exec(e)){return{a:O(i[1]),r:T(i[2]),g:T(i[3]),b:T(i[4]),format:r?"name":"hex8"}}if(i=M.hex6.exec(e)){return{r:T(i[1]),g:T(i[2]),b:T(i[3]),format:r?"name":"hex"}}if(i=M.hex3.exec(e)){return{r:T(i[1]+""+i[1]),g:T(i[2]+""+i[2]),b:T(i[3]+""+i[3]),format:r?"name":"hex"}}return false}var t=/^[\s,#]+/,n=/\s+$/,r=0,i=Math,s=i.round,o=i.min,u=i.max,a=i.random;f.fromRatio=function(e,t){if(typeof e=="object"){var n={};for(var r in e){if(e.hasOwnProperty(r)){if(r==="a"){n[r]=e[r]}else{n[r]=L(e[r])}}}e=n}return f(e,t)};f.equals=function(e,t){if(!e||!t){return false}return f(e).toRgbString()==f(t).toRgbString()};f.random=function(){return f.fromRatio({r:a(),g:a(),b:a()})};f.desaturate=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s-=t/100;n.s=x(n.s);return f(n)};f.saturate=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s+=t/100;n.s=x(n.s);return f(n)};f.greyscale=function(e){return f.desaturate(e,100)};f.lighten=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l+=t/100;n.l=x(n.l);return f(n)};f.darken=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l-=t/100;n.l=x(n.l);return f(n)};f.complement=function(e){var t=f(e).toHsl();t.h=(t.h+180)%360;return f(t)};f.triad=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]};f.tetrad=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]};f.splitcomplement=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]};f.analogous=function(e,t,n){t=t||6;n=n||30;var r=f(e).toHsl();var i=360/n;var s=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;){r.h=(r.h+i)%360;s.push(f(r))}return s};f.monochromatic=function(e,t){t=t||6;var n=f(e).toHsv();var r=n.h,i=n.s,s=n.v;var o=[];var u=1/t;while(t--){o.push(f({h:r,s:i,v:s}));s=(s+u)%1}return o};f.readability=function(e,t){var n=f(e).toRgb();var r=f(t).toRgb();var i=(n.r*299+n.g*587+n.b*114)/1e3;var s=(r.r*299+r.g*587+r.b*114)/1e3;var o=Math.max(n.r,r.r)-Math.min(n.r,r.r)+Math.max(n.g,r.g)-Math.min(n.g,r.g)+Math.max(n.b,r.b)-Math.min(n.b,r.b);return{brightness:Math.abs(i-s),color:o}};f.readable=function(e,t){var n=f.readability(e,t);return n.brightness>125&&n.color>500};f.mostReadable=function(e,t){var n=null;var r=0;var i=false;for(var s=0;s<t.length;s++){var o=f.readability(e,t[s]);var u=o.brightness>125&&o.color>500;var a=3*(o.brightness/125)+o.color/500;if(u&&!i||u&&i&&a>r||!u&&!i&&a>r){i=u;r=a;n=f(t[s])}}return n};var y=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var b=f.hexNames=w(y);var M=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var n="(?:"+t+")|(?:"+e+")";var r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";var i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();e.tinycolor=f})();t(function(){if(t.fn.spectrum.load){t.fn.spectrum.processNativeColorInputs()}})})(window,jQuery);
6
 
7
- /*! Sortable 1.4.2 - MIT | git://github.com/rubaxa/Sortable.git */
8
- !function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=s({},b),a[P]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var d in c)!(d in b)&&(b[d]=c[d]);aa(b);for(var f in this)"_"===f.charAt(0)&&"function"==typeof this[f]&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:V,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),$.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){x&&x.state!==a&&(h(x,"display",a?"none":""),!a&&x.state&&y.insertBefore(x,u),x.state=a)}function c(a,b,c){if(a){c=c||R;do if(">*"===b&&a.parentNode===c||q(a,b))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(O," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(O," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return R.defaultView&&R.defaultView.getComputedStyle?c=R.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){a=a||b[P];var h=R.createEvent("Event"),i=a.options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=x,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f,g){var h,i,j=a[P],k=j.options.onMove;return h=R.createEvent("Event"),h.initEvent("move",!0,!0),h.to=b,h.from=a,h.dragged=c,h.draggedRect=d,h.related=e||b,h.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(h),k&&(i=k.call(j,h,g)),i}function l(a){a.draggable=!1}function m(){X=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a,b){var c=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"===a.nodeName.toUpperCase()||">*"!==b&&!q(a,b)||c++;return c}function q(a,b){if(a){b=b.split(".");var c=b.shift().toUpperCase(),d=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}function r(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function s(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function t(a){return T?T(a).clone(!0)[0]:U&&U.dom?U.dom(a).cloneNode(!0):a.cloneNode(!0)}if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N={},O=/\s+/g,P="Sortable"+(new Date).getTime(),Q=window,R=Q.document,S=Q.parseInt,T=Q.jQuery||Q.Zepto,U=Q.Polymer,V=!!("draggable"in R.createElement("div")),W=function(a){return a=R.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),X=!1,Y=Math.abs,Z=Math.min,$=([].slice,[]),_=r(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h,i,j=b.scrollSensitivity,k=b.scrollSpeed,l=a.clientX,m=a.clientY,n=window.innerWidth,o=window.innerHeight;if(B!==c&&(A=b.scroll,B=c,C=b.scrollFn,A===!0)){A=c;do if(A.offsetWidth<A.scrollWidth||A.offsetHeight<A.scrollHeight)break;while(A=A.parentNode)}A&&(d=A,e=A.getBoundingClientRect(),f=(Y(e.right-l)<=j)-(Y(e.left-l)<=j),g=(Y(e.bottom-m)<=j)-(Y(e.top-m)<=j)),f||g||(f=(j>=n-l)-(j>=l),g=(j>=o-m)-(j>=m),(f||g)&&(d=Q)),(N.vx!==f||N.vy!==g||N.el!==d)&&(N.el=d,N.vx=f,N.vy=g,clearInterval(N.pid),d&&(N.pid=setInterval(function(){return i=g?g*k:0,h=f?f*k:0,"function"==typeof C?C.call(_this,h,i,a):void(d===Q?Q.scrollTo(Q.pageXOffset+h,Q.pageYOffset+i):(d.scrollTop+=i,d.scrollLeft+=h))},24)))}},30),aa=function(a){function b(a,b){return(void 0===a||a===!0)&&(a=c.name),"function"==typeof a?a:function(c,d){var e=d.options.group.name;return b?a:a&&(a.join?a.indexOf(e)>-1:e==a)}}var c={},d=a.group;d&&"object"==typeof d||(d={name:d}),c.name=d.name,c.checkPull=b(d.pull,!0),c.checkPut=b(d.put),a.group=c};return a.prototype={constructor:a,_onTapStart:function(a){var b,d=this,e=this.el,f=this.options,g=a.type,h=a.touches&&a.touches[0],i=(h||a).target,k=i,l=f.filter;if(!u&&!("mousedown"===g&&0!==a.button||f.disabled)&&(i=c(i,f.draggable,e),i&&(!f.handle||c(k,f.handle,e)))){if(b=p(i,f.draggable),"function"==typeof l){if(l.call(this,a,i,this))return j(d,k,"filter",i,e,b),void a.preventDefault()}else if(l&&(l=l.split(",").some(function(a){return a=c(k,a.trim(),e),a?(j(d,a,"filter",i,e,b),!0):void 0})))return void a.preventDefault();this._prepareDragStart(a,h,i,b)}},_prepareDragStart:function(a,b,c,d){var f,h=this,k=h.el,m=h.options,n=k.ownerDocument;c&&!u&&c.parentNode===k&&(K=a,y=k,u=c,v=u.parentNode,z=u.nextSibling,I=m.group,G=d,this._lastX=(b||a).clientX,this._lastY=(b||a).clientY,u.style["will-change"]="transform",f=function(){h._disableDelayedDrag(),u.draggable=h.nativeDraggable,g(u,m.chosenClass,!0),h._triggerDragStart(b),j(h,y,"choose",u,y,G)},m.ignore.split(",").forEach(function(a){i(u,a.trim(),l)}),e(n,"mouseup",h._onDrop),e(n,"touchend",h._onDrop),e(n,"touchcancel",h._onDrop),m.delay?(e(n,"mouseup",h._disableDelayedDrag),e(n,"touchend",h._disableDelayedDrag),e(n,"touchcancel",h._disableDelayedDrag),e(n,"mousemove",h._disableDelayedDrag),e(n,"touchmove",h._disableDelayedDrag),h._dragStartTimer=setTimeout(f,m.delay)):f())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(K={target:u,clientX:a.clientX,clientY:a.clientY},this._onDragStart(K,"touch")):this.nativeDraggable?(e(u,"dragend",this),e(y,"dragstart",this._onDragStart)):this._onDragStart(K,!0);try{R.selection?setTimeout(function(){R.selection.empty()}):window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){if(y&&u){var b=this.options;g(u,b.ghostClass,!0),g(u,b.dragClass,!1),a.active=this,j(this,y,"start",u,y,G)}},_emulateDragOver:function(){if(L){if(this._lastX===L.clientX&&this._lastY===L.clientY)return;this._lastX=L.clientX,this._lastY=L.clientY,W||h(w,"display","none");var a=R.elementFromPoint(L.clientX,L.clientY),b=a,c=$.length;if(b)do{if(b[P]){for(;c--;)$[c]({clientX:L.clientX,clientY:L.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);W||h(w,"display","")}},_onTouchMove:function(b){if(K){var c=this.options,d=c.fallbackTolerance,e=c.fallbackOffset,f=b.touches?b.touches[0]:b,g=f.clientX-K.clientX+e.x,i=f.clientY-K.clientY+e.y,j=b.touches?"translate3d("+g+"px,"+i+"px,0)":"translate("+g+"px,"+i+"px)";if(!a.active){if(d&&Z(Y(f.clientX-this._lastX),Y(f.clientY-this._lastY))<d)return;this._dragStarted()}this._appendGhost(),M=!0,L=f,h(w,"webkitTransform",j),h(w,"mozTransform",j),h(w,"msTransform",j),h(w,"transform",j),b.preventDefault()}},_appendGhost:function(){if(!w){var a,b=u.getBoundingClientRect(),c=h(u),d=this.options;w=u.cloneNode(!0),g(w,d.ghostClass,!1),g(w,d.fallbackClass,!0),g(w,d.dragClass,!0),h(w,"top",b.top-S(c.marginTop,10)),h(w,"left",b.left-S(c.marginLeft,10)),h(w,"width",b.width),h(w,"height",b.height),h(w,"opacity","0.8"),h(w,"position","fixed"),h(w,"zIndex","100000"),h(w,"pointerEvents","none"),d.fallbackOnBody&&R.body.appendChild(w)||y.appendChild(w),a=w.getBoundingClientRect(),h(w,"width",2*b.width-a.width),h(w,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==I.checkPull(this,this,u,a)&&(x=t(u),h(x,"display","none"),y.insertBefore(x,u),j(this,y,"clone",u)),g(u,d.dragClass,!0),b?("touch"===b?(e(R,"touchmove",this._onTouchMove),e(R,"touchend",this._onDrop),e(R,"touchcancel",this._onDrop)):(e(R,"mousemove",this._onTouchMove),e(R,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,u)),e(R,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(d){var e,f,g,i=this.el,j=this.options,l=j.group,o=a.active,p=I===l,q=j.sort;if(void 0!==d.preventDefault&&(d.preventDefault(),!j.dragoverBubble&&d.stopPropagation()),M=!0,I&&!j.disabled&&(p?q||(g=!y.contains(u)):J===this||I.checkPull(this,o,u,d)&&l.checkPut(this,o,u,d))&&(void 0===d.rootEl||d.rootEl===this.el)){if(_(d,j,this.el),X)return;if(e=c(d.target,j.draggable,i),f=u.getBoundingClientRect(),J=this,g)return b(!0),v=y,void(x||z?y.insertBefore(u,x||z):q||y.appendChild(u));if(0===i.children.length||i.children[0]===w||i===d.target&&(e=n(i,d))){if(e){if(e.animated)return;s=e.getBoundingClientRect()}b(p),k(y,i,u,f,e,s,d)!==!1&&(u.contains(i)||(i.appendChild(u),v=i),this._animate(f,u),e&&this._animate(s,e))}else if(e&&!e.animated&&e!==u&&void 0!==e.parentNode[P]){D!==e&&(D=e,E=h(e),F=h(e.parentNode));var r,s=e.getBoundingClientRect(),t=s.right-s.left,A=s.bottom-s.top,B=/left|right|inline/.test(E.cssFloat+E.display)||"flex"==F.display&&0===F["flex-direction"].indexOf("row"),C=e.offsetWidth>u.offsetWidth,G=e.offsetHeight>u.offsetHeight,H=(B?(d.clientX-s.left)/t:(d.clientY-s.top)/A)>.5,K=e.nextElementSibling,L=k(y,i,u,f,e,s,d);if(L!==!1){if(X=!0,setTimeout(m,30),b(p),1===L||-1===L)r=1===L;else if(B){var N=u.offsetTop,O=e.offsetTop;r=N===O?e.previousElementSibling===u&&!C||H&&C:e.previousElementSibling===u||u.previousElementSibling===e?(d.clientY-s.top)/A>.5:O>N}else r=K!==u&&!G||H&&G;u.contains(i)||(r&&!K?i.appendChild(u):e.parentNode.insertBefore(u,r?K:e)),v=u.parentNode,this._animate(f,u),this._animate(s,e)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(R,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(N.pid),clearTimeout(this._dragStartTimer),f(R,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(R,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(M&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),w&&w.parentNode.removeChild(w),u&&(this.nativeDraggable&&f(u,"dragend",this),l(u),u.style["will-change"]="",g(u,this.options.ghostClass,!1),g(u,this.options.chosenClass,!1),y!==v?(H=p(u,d.draggable),H>=0&&(j(null,v,"add",u,y,G,H),j(this,y,"remove",u,y,G,H),j(null,v,"sort",u,y,G,H),j(this,y,"sort",u,y,G,H))):(x&&x.parentNode.removeChild(x),u.nextSibling!==z&&(H=p(u,d.draggable),H>=0&&(j(this,y,"update",u,y,G,H),j(this,y,"sort",u,y,G,H)))),a.active&&((null==H||-1===H)&&(H=G),j(this,y,"end",u,y,G,H),this.save()))),this._nulling()},_nulling:function(){y=u=v=w=z=x=A=B=K=L=M=H=D=E=J=I=a.active=null},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?u&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&aa(c)))},destroy:function(){var a=this.el;a[P]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),$.splice($.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:s,throttle:r,closest:c,toggleClass:g,clone:t,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.4.2",a});
9
 
10
  /**
11
  * Mutation observer library written by Alexey Petlenko
4
  /*! Spectrum Colorpicker v1.3.1 | Author: Brian Grinstead (https://github.com/bgrins/spectrum) | License: MIT */
5
  (function(e,t,n){function l(e,t,n){var r=[];for(var i=0;i<e.length;i++){var s=e[i];if(s){var u=tinycolor(s);var a=u.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";a+=tinycolor.equals(t,s)?" sp-thumb-active":"";var f=o?"background-color:"+u.toRgbString():"filter:"+u.toFilter();r.push('<span title="'+u.toRgbString()+'" data-color="'+u.toRgbString()+'" class="'+a+'"><span class="sp-thumb-inner" style="'+f+';" /></span>')}else{var l="sp-clear-display";r.push('<span title="No Color Selected" data-color="" style="background-color:transparent;" class="'+l+'"></span>')}}return"<div class='sp-cf "+n+"'>"+r.join("")+"</div>"}function c(){for(var e=0;e<i.length;e++){if(i[e]){i[e].hide()}}}function h(e,n){var i=t.extend({},r,e);i.callbacks={move:g(i.move,n),change:g(i.change,n),show:g(i.show,n),hide:g(i.hide,n),beforeShow:g(i.beforeShow,n)};return i}function p(r,p){function St(){if(v.showPaletteOnly){v.showPalette=true}if(v.palette){F=v.palette.slice(0);I=t.isArray(F[0])?F:[F]}K.toggleClass("sp-flat",g);K.toggleClass("sp-input-disabled",!v.showInput);K.toggleClass("sp-alpha-enabled",v.showAlpha);K.toggleClass("sp-clear-enabled",Et);K.toggleClass("sp-buttons-disabled",!v.showButtons);K.toggleClass("sp-palette-disabled",!v.showPalette);K.toggleClass("sp-palette-only",v.showPaletteOnly);K.toggleClass("sp-initial-disabled",!v.showInitial);K.addClass(v.className);Ut()}function xt(){function o(e){if(e.data&&e.data.ignore){Ht(t(this).data("color"));Ft()}else{Ht(t(this).data("color"));Rt(true);Ft();Dt()}return false}if(s){K.find("*:not(input)").attr("unselectable","on")}St();if(ct){V.after(ht).hide()}if(!Et){ut.hide()}if(g){V.after(K).hide()}else{var n=v.appendTo==="parent"?V.parent():t(v.appendTo);if(n.length!==1){n=t("body")}n.append(K)}if(E&&e.localStorage){try{var r=e.localStorage[E].split(",#");if(r.length>1){delete e.localStorage[E];t.each(r,function(e,t){Tt(t)})}}catch(i){}try{q=e.localStorage[E].split(";")}catch(i){}}pt.bind("click.spectrum touchstart.spectrum",function(e){if(!J){Mt()}e.stopPropagation();if(!t(e.target).is("input")){e.preventDefault()}});if(V.is(":disabled")||v.disabled===true){Vt()}K.click(m);rt.change(Ot);rt.bind("paste",function(){setTimeout(Ot,1)});rt.keydown(function(e){if(e.keyCode==13){Ot()}});ot.text(v.cancelText);ot.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();Dt("cancel")});ut.attr("title",v.clearText);ut.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();wt=true;Ft();if(g){Rt(true)}});at.text(v.chooseText);at.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(jt()){Rt(true);Dt()}});y(tt,function(e,t,n){j=e/M;wt=false;if(n.shiftKey){j=Math.round(j*10)/10}Ft()},Lt,At);y(Y,function(e,t){P=parseFloat(t/A);wt=false;if(!v.showAlpha){j=1}Ft()},Lt,At);y(Q,function(e,t,n){if(!n.shiftKey){z=null}else if(!z){var r=H*C;var i=k-B*k;var s=Math.abs(e-r)>Math.abs(t-i);z=s?"x":"y"}var o=!z||z==="x";var u=!z||z==="y";if(o){H=parseFloat(e/C)}if(u){B=parseFloat((k-t)/k)}wt=false;if(!v.showAlpha){j=1}Ft()},Lt,At);if(!!vt){Ht(vt);It();yt=gt||tinycolor(vt).format;Tt(vt)}else{It()}if(g){_t()}var u=s?"mousedown.spectrum":"click.spectrum touchstart.spectrum";it.delegate(".sp-thumb-el",u,o);st.delegate(".sp-thumb-el:nth-child(1)",u,{ignore:true},o)}function Tt(n){if(w){var r=tinycolor(n).toRgbString();if(t.inArray(r,q)===-1){q.push(r);while(q.length>R){q.shift()}}if(E&&e.localStorage){try{e.localStorage[E]=q.join(";")}catch(i){}}}}function Nt(){var e=[];var t=q;var n={};var r;if(v.showPalette){for(var i=0;i<I.length;i++){for(var s=0;s<I[i].length;s++){r=tinycolor(I[i][s]).toRgbString();n[r]=true}}for(i=0;i<t.length;i++){r=tinycolor(t[i]).toRgbString();if(!n.hasOwnProperty(r)){e.push(t[i]);n[r]=true}}}return e.reverse().slice(0,v.maxSelectionSize)}function Ct(){var e=Bt();var n=t.map(I,function(t,n){return l(t,e,"sp-palette-row sp-palette-row-"+n)});if(q){n.push(l(Nt(),e,"sp-palette-row sp-palette-row-selection"))}it.html(n.join(""))}function kt(){if(v.showInitial){var e=mt;var t=Bt();st.html(l([e,t],t,"sp-palette-row-initial"))}}function Lt(){if(k<=0||C<=0||A<=0){Ut()}K.addClass(U);z=null;V.trigger("dragstart.spectrum",[Bt()])}function At(){K.removeClass(U);V.trigger("dragstop.spectrum",[Bt()])}function Ot(){var e=rt.val();if((e===null||e==="")&&Et){Ht(null);Rt(true)}else{var t=tinycolor(e);if(t.ok){Ht(t);Rt(true)}else{rt.addClass("sp-validation-error")}}}function Mt(){if(N){Dt()}else{_t()}}function _t(){var n=t.Event("beforeShow.spectrum");if(N){Ut();return}V.trigger(n,[Bt()]);if(x.beforeShow(Bt())===false||n.isDefaultPrevented()){return}c();N=true;t(W).bind("click.spectrum",Dt);t(e).bind("resize.spectrum",T);ht.addClass("sp-active");K.removeClass("sp-hidden");Ut();It();mt=Bt();kt();x.show(mt);V.trigger("show.spectrum",[mt])}function Dt(n){if(n&&n.type=="click"&&n.button==2){return}if(!N||g){return}N=false;t(W).unbind("click.spectrum",Dt);t(e).unbind("resize.spectrum",T);ht.removeClass("sp-active");K.addClass("sp-hidden");var r=!tinycolor.equals(Bt(),mt);if(r){if(bt&&n!=="cancel"){Rt(true)}else{Pt()}}x.hide(Bt());V.trigger("hide.spectrum",[Bt()])}function Pt(){Ht(mt,true);x.change(mt);V.trigger("change",[mt])}function Ht(e,t){if(tinycolor.equals(e,Bt())){It();return}var n,r;if(!e&&Et){wt=true}else{wt=false;n=tinycolor(e);r=n.toHsv();P=r.h%360/360;H=r.s;B=r.v;j=r.a}It();if(n&&n.ok&&!t){yt=gt||n.format}}function Bt(e){e=e||{};if(Et&&wt){return null}return tinycolor.fromRatio({h:P,s:H,v:B,a:Math.round(j*100)/100},{format:e.format||yt})}function jt(){return!rt.hasClass("sp-validation-error")}function Ft(){It();x.move(Bt());V.trigger("move.spectrum",[Bt()])}function It(){rt.removeClass("sp-validation-error");qt();var e=tinycolor.fromRatio({h:P,s:1,v:1});Q.css("background-color",e.toHexString());var t=yt;if(j<1&&!(j===0&&t==="name")){if(t==="hex"||t==="hex3"||t==="hex6"||t==="name"){t="rgb"}}var n=Bt({format:t}),r="";dt.removeClass("sp-clear-display");dt.css("background-color","transparent");if(!n&&Et){dt.addClass("sp-clear-display")}else{var i=n.toHexString(),u=n.toRgbString();if(o||n.alpha===1){dt.css("background-color",u)}else{dt.css("background-color","transparent");dt.css("filter",n.toFilter())}if(v.showAlpha){var a=n.toRgb();a.a=0;var f=tinycolor(a).toRgbString();var l="linear-gradient(left, "+f+", "+i+")";if(s){et.css("filter",tinycolor(f).toFilter({gradientType:1},i))}else{et.css("background","-webkit-"+l);et.css("background","-moz-"+l);et.css("background","-ms-"+l);et.css("background",l)}}r=n.toString(t)}if(v.showInput){rt.val(r)}if(v.showPalette){Ct()}kt()}function qt(){var e=H;var t=B;if(Et&&wt){nt.hide();Z.hide();G.hide()}else{nt.show();Z.show();G.show();var n=e*C;var r=k-t*k;n=Math.max(-L,Math.min(C-L,n-L));r=Math.max(-L,Math.min(k-L,r-L));G.css({top:r+"px",left:n+"px"});var i=j*M;nt.css({left:i-_/2+"px"});var s=P*A;Z.css({top:s-D+"px"})}}function Rt(e){var t=Bt(),n="",r=!tinycolor.equals(t,mt);if(t){n=t.toString(yt);Tt(t)}if(ft){V.val(n)}mt=t;if(e&&r){x.change(t);V.trigger("change",[t])}}function Ut(){C=Q.width();k=Q.height();L=G.height();O=Y.width();A=Y.height();D=Z.height();M=tt.width();_=nt.width();if(!g){K.css("position","absolute");K.offset(d(K,pt))}qt();if(v.showPalette){Ct()}V.trigger("reflow.spectrum")}function zt(){V.show();pt.unbind("click.spectrum touchstart.spectrum");K.remove();ht.remove();i[$t.id]=null}function Wt(e,r){if(e===n){return t.extend({},v)}if(r===n){return v[e]}v[e]=r;St()}function Xt(){J=false;V.attr("disabled",false);pt.removeClass("sp-disabled")}function Vt(){Dt();J=true;V.attr("disabled",true);pt.addClass("sp-disabled")}var v=h(p,r),g=v.flat,w=v.showSelectionPalette,E=v.localStorageKey,S=v.theme,x=v.callbacks,T=b(Ut,10),N=false,C=0,k=0,L=0,A=0,O=0,M=0,_=0,D=0,P=0,H=0,B=0,j=1,F=[],I=[],q=v.selectionPalette.slice(0),R=v.maxSelectionSize,U="sp-dragging",z=null;var W=r.ownerDocument,X=W.body,V=t(r),J=false,K=t(f,W).addClass(S),Q=K.find(".sp-color"),G=K.find(".sp-dragger"),Y=K.find(".sp-hue"),Z=K.find(".sp-slider"),et=K.find(".sp-alpha-inner"),tt=K.find(".sp-alpha"),nt=K.find(".sp-alpha-handle"),rt=K.find(".sp-input"),it=K.find(".sp-palette"),st=K.find(".sp-initial"),ot=K.find(".sp-cancel"),ut=K.find(".sp-clear"),at=K.find(".sp-choose"),ft=V.is("input"),lt=ft&&u&&V.attr("type")==="color",ct=ft&&!g,ht=ct?t(a).addClass(S).addClass(v.className):t([]),pt=ct?ht:V,dt=ht.find(".sp-preview-inner"),vt=v.color||ft&&V.val(),mt=false,gt=v.preferredFormat,yt=gt,bt=!v.showButtons||v.clickoutFiresChange,wt=!vt,Et=v.allowEmpty&&!lt;xt();var $t={show:_t,hide:Dt,toggle:Mt,reflow:Ut,option:Wt,enable:Xt,disable:Vt,set:function(e){Ht(e);Rt()},get:Bt,destroy:zt,container:K};$t.id=i.push($t)-1;return $t}function d(e,n){var r=0;var i=e.outerWidth();var s=e.outerHeight();var o=n.outerHeight();var u=e[0].ownerDocument;var a=u.documentElement;var f=a.clientWidth+t(u).scrollLeft();var l=a.clientHeight+t(u).scrollTop();var c=n.offset();c.top+=o;c.left-=Math.min(c.left,c.left+i>f&&f>i?Math.abs(c.left+i-f):0);c.top-=Math.min(c.top,c.top+s>l&&l>s?Math.abs(s+o-r):r);return c}function v(){}function m(e){e.stopPropagation()}function g(e,t){var n=Array.prototype.slice;var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function y(n,r,i,o){function d(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function v(e){if(a){if(s&&document.documentMode<9&&!e.button){return g()}var t=e.originalEvent.touches;var i=t?t[0].pageX:e.pageX;var o=t?t[0].pageY:e.pageY;var u=Math.max(0,Math.min(i-f.left,c));var p=Math.max(0,Math.min(o-f.top,l));if(h){d(e)}r.apply(n,[u,p,e])}}function m(e){var r=e.which?e.which==3:e.button==2;var s=e.originalEvent.touches;if(!r&&!a){if(i.apply(n,arguments)!==false){a=true;l=t(n).height();c=t(n).width();f=t(n).offset();t(u).bind(p);t(u.body).addClass("sp-dragging");if(!h){v(e)}d(e)}}}function g(){if(a){t(u).unbind(p);t(u.body).removeClass("sp-dragging");o.apply(n,arguments)}a=false}r=r||function(){};i=i||function(){};o=o||function(){};var u=n.ownerDocument||document;var a=false;var f={};var l=0;var c=0;var h="ontouchstart"in e;var p={};p["selectstart"]=d;p["dragstart"]=d;p["touchmove mousemove"]=v;p["touchend mouseup"]=g;t(n).bind("touchstart mousedown",m)}function b(e,t,n){var r;return function(){var i=this,s=arguments;var o=function(){r=null;e.apply(i,s)};if(n)clearTimeout(r);if(n||!r)r=setTimeout(o,t)}}function w(){if(e.console){if(Function.prototype.bind)w=Function.prototype.bind.call(console.log,console);else w=function(){Function.prototype.apply.call(console.log,console,arguments)};w.apply(this,arguments)}}var r={beforeShow:v,move:v,change:v,show:v,hide:v,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:false,showInitial:false,showPalette:false,showPaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",clearText:"Clear Color Selection",preferredFormat:false,className:"",showAlpha:false,theme:"sp-light",palette:["fff","000"],selectionPalette:[],disabled:false},i=[],s=!!/msie/i.exec(e.navigator.userAgent),o=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div");var n=t.style;n.cssText="background-color:rgba(0,0,0,.5)";return e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),u=function(){var e=t("<input type='color' value='!' />")[0];return e.type==="color"&&e.value!=="!"}(),a=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),f=function(){var e="";if(s){for(var t=1;t<=6;t++){e+="<div class='sp-"+t+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<span class='dslca-sp-revert dslc-icon dslc-icon-undo' title='Revert to default'></span>","<span class='sp-cancel dslc-icon dslc-icon-remove' title='Cancel'></span>","<span class='sp-choose dslc-icon dslc-icon-ok' title='Confirm'></span>","</div>","</div>","</div>"].join("")}();var E="spectrum.id";t.fn.spectrum=function(e,n){if(typeof e=="string"){var r=this;var s=Array.prototype.slice.call(arguments,1);this.each(function(){var n=i[t(this).data(E)];if(n){var o=n[e];if(!o){throw new Error("Spectrum: no such method: '"+e+"'")}if(e=="get"){r=n.get()}else if(e=="container"){r=n.container}else if(e=="option"){r=n.option.apply(n,s)}else if(e=="destroy"){n.destroy();t(this).removeData(E)}else{o.apply(n,s)}}});return r}return this.spectrum("destroy").each(function(){var n=t.extend({},e,t(this).data());var r=p(this,n);t(this).data(E,r.id)})};t.fn.spectrum.load=true;t.fn.spectrum.loadOpts={};t.fn.spectrum.draggable=y;t.fn.spectrum.defaults=r;t.spectrum={};t.spectrum.localization={};t.spectrum.palettes={};t.fn.spectrum.processNativeColorInputs=function(){if(!u){t("input[type=color]").spectrum({preferredFormat:"hex6"})}};(function(){function f(e,t){e=e?e:"";t=t||{};if(typeof e=="object"&&e.hasOwnProperty("_tc_id")){return e}var n=l(e);var i=n.r,o=n.g,u=n.b,a=n.a,c=s(100*a)/100,p=t.format||n.format;if(i<1){i=s(i)}if(o<1){o=s(o)}if(u<1){u=s(u)}return{ok:n.ok,format:p,_tc_id:r++,alpha:a,getAlpha:function(){return a},setAlpha:function(e){a=E(e);c=s(100*a)/100},toHsv:function(){var e=d(i,o,u);return{h:e.h*360,s:e.s,v:e.v,a:a}},toHsvString:function(){var e=d(i,o,u);var t=s(e.h*360),n=s(e.s*100),r=s(e.v*100);return a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+c+")"},toHsl:function(){var e=h(i,o,u);return{h:e.h*360,s:e.s,l:e.l,a:a}},toHslString:function(){var e=h(i,o,u);var t=s(e.h*360),n=s(e.s*100),r=s(e.l*100);return a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+c+")"},toHex:function(e){return m(i,o,u,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return g(i,o,u,a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:s(i),g:s(o),b:s(u),a:a}},toRgbString:function(){return a==1?"rgb("+s(i)+", "+s(o)+", "+s(u)+")":"rgba("+s(i)+", "+s(o)+", "+s(u)+", "+c+")"},toPercentageRgb:function(){return{r:s(S(i,255)*100)+"%",g:s(S(o,255)*100)+"%",b:s(S(u,255)*100)+"%",a:a}},toPercentageRgbString:function(){return a==1?"rgb("+s(S(i,255)*100)+"%, "+s(S(o,255)*100)+"%, "+s(S(u,255)*100)+"%)":"rgba("+s(S(i,255)*100)+"%, "+s(S(o,255)*100)+"%, "+s(S(u,255)*100)+"%, "+c+")"},toName:function(){if(a===0){return"transparent"}return b[m(i,o,u,true)]||false},toFilter:function(e){var n="#"+g(i,o,u,a);var r=n;var s=t&&t.gradientType?"GradientType = 1, ":"";if(e){var l=f(e);r=l.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+s+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this.format;var n=false;var r=!t&&a<1&&a>0;var i=r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="name");if(e==="rgb"){n=this.toRgbString()}if(e==="prgb"){n=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){n=this.toHexString()}if(e==="hex3"){n=this.toHexString(true)}if(e==="hex8"){n=this.toHex8String()}if(e==="name"){n=this.toName()}if(e==="hsl"){n=this.toHslString()}if(e==="hsv"){n=this.toHsvString()}if(i){return this.toRgbString()}return n||this.toHexString()}}}function l(e){var t={r:0,g:0,b:0};var n=1;var r=false;var i=false;if(typeof e=="string"){e=_(e)}if(typeof e=="object"){if(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")){t=c(e.r,e.g,e.b);r=true;i=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")){e.s=L(e.s);e.v=L(e.v);t=v(e.h,e.s,e.v);r=true;i="hsv"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")){e.s=L(e.s);e.l=L(e.l);t=p(e.h,e.s,e.l);r=true;i="hsl"}if(e.hasOwnProperty("a")){n=e.a}}n=E(n);return{ok:r,format:e.format||i,r:o(255,u(t.r,0)),g:o(255,u(t.g,0)),b:o(255,u(t.b,0)),a:n}}function c(e,t,n){return{r:S(e,255)*255,g:S(t,255)*255,b:S(n,255)*255}}function h(e,t,n){e=S(e,255);t=S(t,255);n=S(n,255);var r=u(e,t,n),i=o(e,t,n);var s,a,f=(r+i)/2;if(r==i){s=a=0}else{var l=r-i;a=f>.5?l/(2-r-i):l/(r+i);switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,l:f}}function p(e,t,n){function o(e,t,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return e+(t-e)*6*n;if(n<1/2)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;return e}var r,i,s;e=S(e,360);t=S(t,100);n=S(n,100);if(t===0){r=i=s=n}else{var u=n<.5?n*(1+t):n+t-n*t;var a=2*n-u;r=o(a,u,e+1/3);i=o(a,u,e);s=o(a,u,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function d(e,t,n){e=S(e,255);t=S(t,255);n=S(n,255);var r=u(e,t,n),i=o(e,t,n);var s,a,f=r;var l=r-i;a=r===0?0:l/r;if(r==i){s=0}else{switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,v:f}}function v(e,t,n){e=S(e,360)*6;t=S(t,100);n=S(n,100);var r=i.floor(e),s=e-r,o=n*(1-t),u=n*(1-s*t),a=n*(1-(1-s)*t),f=r%6,l=[n,u,o,o,a,n][f],c=[a,n,n,u,o,o][f],h=[o,o,a,n,n,u][f];return{r:l*255,g:c*255,b:h*255}}function m(e,t,n,r){var i=[k(s(e).toString(16)),k(s(t).toString(16)),k(s(n).toString(16))];if(r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)}return i.join("")}function g(e,t,n,r){var i=[k(A(r)),k(s(e).toString(16)),k(s(t).toString(16)),k(s(n).toString(16))];return i.join("")}function w(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){t[e[n]]=n}}return t}function E(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function S(e,t){if(N(e)){e="100%"}var n=C(e);e=o(t,u(0,parseFloat(e)));if(n){e=parseInt(e*t,10)/100}if(i.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function x(e){return o(1,u(0,e))}function T(e){return parseInt(e,16)}function N(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function C(e){return typeof e==="string"&&e.indexOf("%")!=-1}function k(e){return e.length==1?"0"+e:""+e}function L(e){if(e<=1){e=e*100+"%"}return e}function A(e){return Math.round(parseFloat(e)*255).toString(16)}function O(e){return T(e)/255}function _(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r=false;if(y[e]){e=y[e];r=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var i;if(i=M.rgb.exec(e)){return{r:i[1],g:i[2],b:i[3]}}if(i=M.rgba.exec(e)){return{r:i[1],g:i[2],b:i[3],a:i[4]}}if(i=M.hsl.exec(e)){return{h:i[1],s:i[2],l:i[3]}}if(i=M.hsla.exec(e)){return{h:i[1],s:i[2],l:i[3],a:i[4]}}if(i=M.hsv.exec(e)){return{h:i[1],s:i[2],v:i[3]}}if(i=M.hex8.exec(e)){return{a:O(i[1]),r:T(i[2]),g:T(i[3]),b:T(i[4]),format:r?"name":"hex8"}}if(i=M.hex6.exec(e)){return{r:T(i[1]),g:T(i[2]),b:T(i[3]),format:r?"name":"hex"}}if(i=M.hex3.exec(e)){return{r:T(i[1]+""+i[1]),g:T(i[2]+""+i[2]),b:T(i[3]+""+i[3]),format:r?"name":"hex"}}return false}var t=/^[\s,#]+/,n=/\s+$/,r=0,i=Math,s=i.round,o=i.min,u=i.max,a=i.random;f.fromRatio=function(e,t){if(typeof e=="object"){var n={};for(var r in e){if(e.hasOwnProperty(r)){if(r==="a"){n[r]=e[r]}else{n[r]=L(e[r])}}}e=n}return f(e,t)};f.equals=function(e,t){if(!e||!t){return false}return f(e).toRgbString()==f(t).toRgbString()};f.random=function(){return f.fromRatio({r:a(),g:a(),b:a()})};f.desaturate=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s-=t/100;n.s=x(n.s);return f(n)};f.saturate=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s+=t/100;n.s=x(n.s);return f(n)};f.greyscale=function(e){return f.desaturate(e,100)};f.lighten=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l+=t/100;n.l=x(n.l);return f(n)};f.darken=function(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l-=t/100;n.l=x(n.l);return f(n)};f.complement=function(e){var t=f(e).toHsl();t.h=(t.h+180)%360;return f(t)};f.triad=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]};f.tetrad=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]};f.splitcomplement=function(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]};f.analogous=function(e,t,n){t=t||6;n=n||30;var r=f(e).toHsl();var i=360/n;var s=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;){r.h=(r.h+i)%360;s.push(f(r))}return s};f.monochromatic=function(e,t){t=t||6;var n=f(e).toHsv();var r=n.h,i=n.s,s=n.v;var o=[];var u=1/t;while(t--){o.push(f({h:r,s:i,v:s}));s=(s+u)%1}return o};f.readability=function(e,t){var n=f(e).toRgb();var r=f(t).toRgb();var i=(n.r*299+n.g*587+n.b*114)/1e3;var s=(r.r*299+r.g*587+r.b*114)/1e3;var o=Math.max(n.r,r.r)-Math.min(n.r,r.r)+Math.max(n.g,r.g)-Math.min(n.g,r.g)+Math.max(n.b,r.b)-Math.min(n.b,r.b);return{brightness:Math.abs(i-s),color:o}};f.readable=function(e,t){var n=f.readability(e,t);return n.brightness>125&&n.color>500};f.mostReadable=function(e,t){var n=null;var r=0;var i=false;for(var s=0;s<t.length;s++){var o=f.readability(e,t[s]);var u=o.brightness>125&&o.color>500;var a=3*(o.brightness/125)+o.color/500;if(u&&!i||u&&i&&a>r||!u&&!i&&a>r){i=u;r=a;n=f(t[s])}}return n};var y=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var b=f.hexNames=w(y);var M=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var n="(?:"+t+")|(?:"+e+")";var r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";var i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();e.tinycolor=f})();t(function(){if(t.fn.spectrum.load){t.fn.spectrum.processNativeColorInputs()}})})(window,jQuery);
6
 
7
+ !function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function F(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=X({},b),a[t]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);E(b);for(var e in this)"_"===e.charAt(0)&&(this[e]=this[e].bind(this));this.nativeDraggable=!b.forceFallback&&x,J(a,"mousedown",this._onTapStart),J(a,"touchstart",this._onTapStart),this.nativeDraggable&&(J(a,"dragover",this),J(a,"dragenter",this)),C.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function G(b){d&&d.state!==b&&(M(d,"display",b?"none":""),!b&&d.state&&e.insertBefore(d,a),d.state=b)}function H(a,b,c){if(a){c=c||v;do if(">*"===b&&a.parentNode===c||V(a,b))return a;while(a!==c&&(a=a.parentNode))}return null}function I(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function J(a,b,c){a.addEventListener(b,c,!1)}function K(a,b,c){a.removeEventListener(b,c,!1)}function L(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(s," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(s," ")}}function M(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return v.defaultView&&v.defaultView.getComputedStyle?c=v.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function N(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;e<f;e++)c(d[e],e);return d}return[]}function O(a,b,c,e,f,g,h){var i=v.createEvent("Event"),j=(a||b[t]).options,k="on"+c.charAt(0).toUpperCase()+c.substr(1);i.initEvent(c,!0,!0),i.to=b,i.from=f||b,i.item=e||b,i.clone=d,i.oldIndex=g,i.newIndex=h,b.dispatchEvent(i),j[k]&&j[k].call(a,i)}function P(a,b,c,d,e,f){var g,j,h=a[t],i=h.options.onMove;return g=v.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),i&&(j=i.call(h,g)),j}function Q(a){a.draggable=!1}function R(){z=!1}function S(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function T(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function U(a,b){var c=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&V(a,b)&&c++;return c}function V(a,b){if(a){b=b.split(".");var c=b.shift().toUpperCase(),d=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}function W(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function X(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}if("undefined"==typeof window||"undefined"==typeof window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var a,b,c,d,e,f,g,h,i,j,k,l,m,n,p,q,r,o={},s=/\s+/g,t="Sortable"+(new Date).getTime(),u=window,v=u.document,w=u.parseInt,x=!!("draggable"in v.createElement("div")),y=function(a){return a=v.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),z=!1,A=Math.abs,C=([].slice,[]),D=W(function(a,b,c){if(c&&b.scroll){var d,e,n,p,f=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(h!==c&&(g=b.scroll,h=c,g===!0)){g=c;do if(g.offsetWidth<g.scrollWidth||g.offsetHeight<g.scrollHeight)break;while(g=g.parentNode)}g&&(d=g,e=void 0==g.parentNode?g.document.body.getBoundingClientRect():g.getBoundingClientRect(),n=(A(e.right-j)<=f)-(A(e.left-j)<=f),p=(A(e.bottom-k)<=f)-(A(e.top-k)<=f)),n||p||(n=(l-j<=f)-(j<=f),p=(m-k<=f)-(k<=f),(n||p)&&(d=u)),o.vx===n&&o.vy===p&&o.el===d||(o.el=d,o.vx=n,o.vy=p,clearInterval(o.pid),d&&(o.pid=setInterval(function(){d===u?u.scrollTo(u.pageXOffset+n*i,u.pageYOffset+p*i):(p&&(d.scrollTop+=p*i),n&&(d.scrollLeft+=n*i))},24)))}},30),E=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return F.prototype={constructor:F,_onTapStart:function(a){var b=this,c=this.el,d=this.options,e=a.type,f=a.touches&&a.touches[0],g=(f||a).target,h=g,i=d.filter;if(!("mousedown"===e&&0!==a.button||d.disabled)&&(g=H(g,d.draggable,c))){if(l=U(g,d.draggable),"function"==typeof i){if(i.call(this,a,g,this))return O(b,h,"filter",g,c,l),void a.preventDefault()}else if(i&&(i=i.split(",").some(function(a){if(a=H(h,a.trim(),c))return O(b,a,"filter",g,c,l),!0})))return void a.preventDefault();d.handle&&!H(h,d.handle,c)||this._prepareDragStart(a,f,g)}},_prepareDragStart:function(c,d,g){var l,h=this,i=h.el,j=h.options,k=i.ownerDocument;g&&!a&&g.parentNode===i&&(p=c,e=i,a=g,b=a.parentNode,f=a.nextSibling,n=j.group,a.style["will-change"]="transform",l=function(){h._disableDelayedDrag(),a.draggable=!0,L(a,h.options.chosenClass,!0),h._triggerDragStart(d)},j.ignore.split(",").forEach(function(b){N(a,b.trim(),Q)}),J(k,"mouseup",h._onDrop),J(k,"touchend",h._onDrop),J(k,"touchcancel",h._onDrop),j.delay?(J(k,"mouseup",h._disableDelayedDrag),J(k,"touchend",h._disableDelayedDrag),J(k,"touchcancel",h._disableDelayedDrag),J(k,"mousemove",h._disableDelayedDrag),J(k,"touchmove",h._disableDelayedDrag),h._dragStartTimer=setTimeout(l,j.delay)):l())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),K(a,"mouseup",this._disableDelayedDrag),K(a,"touchend",this._disableDelayedDrag),K(a,"touchcancel",this._disableDelayedDrag),K(a,"mousemove",this._disableDelayedDrag),K(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(b){b?(p={target:a,clientX:b.clientX,clientY:b.clientY},this._onDragStart(p,"touch")):this.nativeDraggable?(J(a,"dragend",this),J(e,"dragstart",this._onDragStart)):this._onDragStart(p,!0);try{v.selection?setTimeout(function(){v.selection.empty()}):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function(){e&&a&&(L(a,this.options.ghostClass,!0),F.active=this,O(this,e,"start",a,e,l))},_emulateDragOver:function(){if(q){if(this._lastX===q.clientX&&this._lastY===q.clientY)return;this._lastX=q.clientX,this._lastY=q.clientY,y||M(c,"display","none");var a=v.elementFromPoint(q.clientX,q.clientY),b=a,d=" "+this.options.group.name,e=C.length;if(b)do{if(b[t]&&b[t].options.groups.indexOf(d)>-1){for(;e--;)C[e]({clientX:q.clientX,clientY:q.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);y||M(c,"display","")}},_onTouchMove:function(a){if(p){F.active||this._dragStarted(),this._appendGhost();var b=a.touches?a.touches[0]:a,d=b.clientX-p.clientX,e=b.clientY-p.clientY,f=a.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";r=!0,q=b,M(c,"webkitTransform",f),M(c,"mozTransform",f),M(c,"msTransform",f),M(c,"transform",f),a.preventDefault()}},_appendGhost:function(){if(!c){var g,b=a.getBoundingClientRect(),d=M(a),f=this.options;c=a.cloneNode(!0),L(c,f.ghostClass,!1),L(c,f.fallbackClass,!0),M(c,"top",b.top-w(d.marginTop,10)),M(c,"left",b.left-w(d.marginLeft,10)),M(c,"width",b.width),M(c,"height",b.height),M(c,"opacity","0.8"),M(c,"position","fixed"),M(c,"zIndex","100000"),M(c,"pointerEvents","none"),f.fallbackOnBody&&v.body.appendChild(c)||e.appendChild(c),g=c.getBoundingClientRect(),M(c,"width",2*b.width-g.width),M(c,"height",2*b.height-g.height)}},_onDragStart:function(b,c){var f=b.dataTransfer,g=this.options;this._offUpEvents(),"clone"==n.pull&&(d=a.cloneNode(!0),M(d,"display","none"),e.insertBefore(d,a)),c?("touch"===c?(J(v,"touchmove",this._onTouchMove),J(v,"touchend",this._onDrop),J(v,"touchcancel",this._onDrop)):(J(v,"mousemove",this._onTouchMove),J(v,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(f&&(f.effectAllowed="move",g.setData&&g.setData.call(this,f,a)),J(v,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(g){var l,m,o,h=this.el,p=this.options,q=p.group,s=q.put,u=n===q,v=p.sort;if(void 0!==g.preventDefault&&(g.preventDefault(),!p.dragoverBubble&&g.stopPropagation()),r=!0,n&&!p.disabled&&(u?v||(o=!e.contains(a)):n.pull&&s&&(n.name===q.name||s.indexOf&&~s.indexOf(n.name)))&&(void 0===g.rootEl||g.rootEl===this.el)){if(D(g,p,this.el),z)return;if(l=H(g.target,p.draggable,h),m=a.getBoundingClientRect(),o)return G(!0),void(d||f?e.insertBefore(a,d||f):v||e.appendChild(a));if(0===h.children.length||h.children[0]===c||h===g.target&&(l=S(h,g))){if(l){if(l.animated)return;w=l.getBoundingClientRect()}G(u),P(e,h,a,m,l,w)!==!1&&(a.contains(h)||(h.appendChild(a),b=h),this._animate(m,a),l&&this._animate(w,l))}else if(l&&!l.animated&&l!==a&&void 0!==l.parentNode[t]){i!==l&&(i=l,j=M(l),k=M(l.parentNode));var J,w=l.getBoundingClientRect(),x=w.right-w.left,y=w.bottom-w.top,A=/left|right|inline/.test(j.cssFloat+j.display)||"flex"==k.display&&0===k["flex-direction"].indexOf("row"),B=l.offsetWidth>a.offsetWidth,C=l.offsetHeight>a.offsetHeight,E=(A?(g.clientX-w.left)/x:(g.clientY-w.top)/y)>.5,F=l.nextElementSibling,I=P(e,h,a,m,l,w);if(I!==!1){if(z=!0,setTimeout(R,30),G(u),1===I||I===-1)J=1===I;else if(A){var K=a.offsetTop,L=l.offsetTop;J=K===L?l.previousElementSibling===a&&!B||E&&B:l.previousElementSibling===a||a.previousElementSibling===l?(g.clientY-w.top)/y>.5:L>K}else J=F!==a&&!C||E&&C;a.contains(h)||(J&&!F?h.appendChild(a):l.parentNode.insertBefore(a,J?F:l)),b=a.parentNode,this._animate(m,a),this._animate(w,l)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();M(b,"transition","none"),M(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,M(b,"transition","all "+c+"ms"),M(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){M(b,"transition",""),M(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;K(v,"touchmove",this._onTouchMove),K(a,"mouseup",this._onDrop),K(a,"touchend",this._onDrop),K(a,"touchcancel",this._onDrop)},_onDrop:function(g){var h=this.el,i=this.options;clearInterval(this._loopId),clearInterval(o.pid),clearTimeout(this._dragStartTimer),K(v,"mousemove",this._onTouchMove),this.nativeDraggable&&(K(v,"drop",this),K(h,"dragstart",this._onDragStart)),this._offUpEvents(),g&&(r&&(g.preventDefault(),!i.dropBubble&&g.stopPropagation()),c&&c.parentNode.removeChild(c),a&&(this.nativeDraggable&&K(a,"dragend",this),Q(a),a.style["will-change"]="",L(a,this.options.ghostClass,!1),L(a,this.options.chosenClass,!1),e!==b?(m=U(a,i.draggable),m>=0&&(O(null,b,"sort",a,e,l,m),O(this,e,"sort",a,e,l,m),O(null,b,"add",a,e,l,m),O(this,e,"remove",a,e,l,m))):(d&&d.parentNode.removeChild(d),a.nextSibling!==f&&(m=U(a,i.draggable),m>=0&&(O(this,e,"update",a,e,l,m),O(this,e,"sort",a,e,l,m)))),F.active&&(null!=m&&m!==-1||(m=l),O(this,e,"end",a,e,l,m),this.save()))),this._nulling()},_nulling:function(){F.active===this&&(e=a=b=c=f=d=g=h=p=q=r=m=i=j=n=F.active=null)},handleEvent:function(b){var c=b.type;"dragover"===c||"dragenter"===c?a&&(this._onDragOver(b),I(b)):"drop"!==c&&"dragend"!==c||this._onDrop(b)},toArray:function(){for(var b,a=[],c=this.el.children,d=0,e=c.length,f=this.options;d<e;d++)b=c[d],H(b,f.draggable,this.el)&&a.push(b.getAttribute(f.dataIdAttr)||T(b));return a},sort:function(a){var b={},c=this.el;this.toArray().forEach(function(a,d){var e=c.children[d];H(e,this.options.draggable,c)&&(b[a]=e)},this),a.forEach(function(a){b[a]&&(c.removeChild(b[a]),c.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return H(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&E(c)))},destroy:function(){var a=this.el;a[t]=null,K(a,"mousedown",this._onTapStart),K(a,"touchstart",this._onTapStart),this.nativeDraggable&&(K(a,"dragover",this),K(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),C.splice(C.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},F.utils={on:J,off:K,css:M,find:N,is:function(a,b){return!!H(a,b,a)},extend:X,throttle:W,closest:H,toggleClass:L,index:U},F.create=function(a,b){return new F(a,b)},F.version="1.4.2",F});
 
8
 
9
  /**
10
  * Mutation observer library written by Alexey Petlenko
js/builder/builder.row.functions.js CHANGED
@@ -518,6 +518,8 @@ function dslc_row_copy( row ) {
518
  this.removeAttribute('data-jsinit'); // (2)
519
  });
520
 
 
 
521
 
522
  /**
523
  * Re-render modules inside of the new ROW
@@ -536,7 +538,7 @@ function dslc_row_copy( row ) {
536
  }).each(function(){
537
 
538
  // Current module
539
- dslc_module = jQuery(this);
540
 
541
  //Generate new ID for the new module and change it in HTML/CSS of the module.
542
  dslc_module_new_id( dslc_module[0] );
@@ -563,8 +565,6 @@ function dslc_row_copy( row ) {
563
  }, 300);
564
 
565
  dslc_show_publish_button();
566
-
567
-
568
  });
569
  }
570
 
518
  this.removeAttribute('data-jsinit'); // (2)
519
  });
520
 
521
+ new LiveComposer.Builder.Elements.CRow(dslcModulesSectionCloned);
522
+
523
 
524
  /**
525
  * Re-render modules inside of the new ROW
538
  }).each(function(){
539
 
540
  // Current module
541
+ var dslc_module = jQuery(this);
542
 
543
  //Generate new ID for the new module and change it in HTML/CSS of the module.
544
  dslc_module_new_id( dslc_module[0] );
565
  }, 300);
566
 
567
  dslc_show_publish_button();
 
 
568
  });
569
  }
570
 
js/builder/builder.sectionscontainer.class.js CHANGED
@@ -8,130 +8,51 @@ LiveComposer.Builder.Elements.CSectionsContainer = function(elem) {
8
 
9
  var self = this;
10
 
11
- this.sortable = Sortable.create(elem, {
12
- group: 'sections',
13
- animation: 150,
14
- handle: '.dslca-move-modules-section-hook',
15
- draggable: '.dslc-modules-section',
16
- // ghostClass: 'dslca-module-placeholder',
17
- chosenClass: 'dslca-section-dragging',
18
- sort: true,
19
- scroll: true, // or HTMLElement
20
- scrollSensitivity: 150, // px, how near the mouse must be to an edge to start scrolling.
21
- scrollSpeed: 15, // px
 
 
 
 
22
 
23
- setData: function (dataTransfer, dragEl) {
24
-
25
- dataTransfer.setData(LiveComposer.Utils.msieversion() !== false ? 'Text' : 'text/html', dragEl.innerHTML);
26
  },
27
-
28
- // dragging started
29
- onStart: function (evt) {
30
- evt.oldIndex; // element index within parent
31
 
32
  jQuery('body').removeClass('dslca-drag-not-in-progress').addClass('dslca-drag-in-progress');
33
  jQuery('body', LiveComposer.Builder.PreviewAreaDocument).removeClass('dslca-drag-not-in-progress').addClass('dslca-drag-in-progress');
34
-
35
- /* if ( jQuery('.dslc-module-front', evt.from).length < 2 ) {
36
-
37
- jQuery('.dslca-no-content:not(:visible)', evt.from).show().css({
38
- '-webkit-animation-name' : 'dslcBounceIn',
39
- '-moz-animation-name' : 'dslcBounceIn',
40
- 'animation-name' : 'dslcBounceIn',
41
- 'animation-duration' : '0.6s',
42
- '-webkit-animation-duration' : '0.6s',
43
- padding : 0
44
- }).animate({ padding : '35px 0' }, 300, function(){
45
-
46
- });
47
- }*/
48
  },
49
- // dragging ended
50
-
51
- onEnd: function (evt) {
52
- evt.oldIndex; // element's old index within parent
53
- evt.newIndex; // element's new index within parent
54
-
55
- evt.preventDefault();
56
 
57
  dslc_generate_code();
 
58
  LiveComposer.Builder.UI.stopScroller();
59
  jQuery('body', LiveComposer.Builder.PreviewAreaDocument).removeClass('dslca-drag-in-progress').addClass('dslca-drag-not-in-progress');
60
  jQuery('body').removeClass('dslca-drag-in-progress').addClass('dslca-drag-not-in-progress');
61
- },
62
-
63
- // Element is dropped into the list from another list
64
- onAdd: function (evt) {
65
- var itemEl = evt.item; // dragged HTMLElement
66
- evt.from; // previous list
67
- // + indexes from onEnd
68
- // evt.preventDefault();
69
- // evt.stopPropagation(); return false;
70
- },
71
-
72
- // Changed sorting within list
73
- onUpdate: function (evt) {
74
- var itemEl = evt.item; // dragged HTMLElement
75
- // + indexes from onEnd
76
- // evt.preventDefault();
77
- // evt.stopPropagation(); return false;
78
-
79
- dslc_show_publish_button();
80
- },
81
-
82
- // Called by any change to the list (add / update / remove)
83
- onSort: function (evt) {
84
- // same properties as onUpdate
85
- // evt.preventDefault();
86
- // evt.stopPropagation(); return false;
87
- },
88
-
89
- // Element is removed from the list into another list
90
- onRemove: function (evt) {
91
- // same properties as onUpdate
92
- },
93
-
94
- // Attempt to drag a filtered element
95
- onFilter: function (evt) {
96
- var itemEl = evt.item; // HTMLElement receiving the `mousedown|tapstart` event.
97
- },
98
-
99
- // Event when you move an item in the list or between lists
100
- onMove: function (evt) {
101
- // Example: http://jsbin.com/tuyafe/1/edit?js,output
102
- evt.dragged; // dragged HTMLElement
103
- evt.draggedRect; // TextRectangle {left, top, right и bottom}
104
- evt.related; // HTMLElement on which have guided
105
- evt.relatedRect; // TextRectangle
106
- // return false; — for cancel
107
-
108
- // Add here the function to update underlying class
109
- /**if ( jQuery('.dslc-modules-area-empty').find('.dslc-module-front').length > 0 ) {
110
-
111
- jQuery(this).removeClass('dslc-modules-area-empty').addClass('dslc-modules-area-not-empty');
112
-
113
- jQuery('.dslca-no-content:not(:visible)', this).show().css({
114
- '-webkit-animation-name' : 'dslcBounceIn',
115
- '-moz-animation-name' : 'dslcBounceIn',
116
- 'animation-name' : 'dslcBounceIn',
117
- 'animation-duration' : '0.6s',
118
- '-webkit-animation-duration' : '0.6s',
119
- padding : 0
120
- }).animate({ padding : '35px 0' }, 300, function(){
121
-
122
- });
123
- }*/
124
  }
125
  });
126
 
 
127
  /** Sort option setter */
128
  jQuery(document).on('LC.sortableOff', function(){
129
 
130
- self.sortable.option('disabled', true);
131
  });
132
 
133
  jQuery(document).on('LC.sortableOn', function(){
134
 
135
- self.sortable.option('disabled', false);
136
  });
137
  }
8
 
9
  var self = this;
10
 
11
+ this.sortable = jQuery(elem).sortable({
12
+ items: ".dslc-modules-section",
13
+ handle: '.dslca-move-modules-section-hook:not(".dslca-action-disabled")',
14
+ placeholder: 'dslca-modules-section-placeholder',
15
+ tolerance : 'intersect',
16
+ cursorAt: { bottom: 10 },
17
+ axis: 'y',
18
+ scroll: true,
19
+ scrollSensitivity: 140,
20
+ scrollSpeed : 5,
21
+ sort: function() {
22
+
23
+ jQuery( this ).removeClass( "ui-state-default" );
24
+ },
25
+ update: function (e, ui) {
26
 
27
+ dslc_show_publish_button();
 
 
28
  },
29
+ start: function(e, ui){
 
 
 
30
 
31
  jQuery('body').removeClass('dslca-drag-not-in-progress').addClass('dslca-drag-in-progress');
32
  jQuery('body', LiveComposer.Builder.PreviewAreaDocument).removeClass('dslca-drag-not-in-progress').addClass('dslca-drag-in-progress');
33
+ ui.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">' + DSLCString.str_row_helper_text + '</span></span>');
34
+ jQuery( '.dslc-content' ).sortable( "refreshPositions" );
 
 
 
 
 
 
 
 
 
 
 
 
35
  },
36
+ stop: function(e, ui){
 
 
 
 
 
 
37
 
38
  dslc_generate_code();
39
+
40
  LiveComposer.Builder.UI.stopScroller();
41
  jQuery('body', LiveComposer.Builder.PreviewAreaDocument).removeClass('dslca-drag-in-progress').addClass('dslca-drag-not-in-progress');
42
  jQuery('body').removeClass('dslca-drag-in-progress').addClass('dslca-drag-not-in-progress');
43
+ jQuery('.dslca-anim-opacity-drop').removeClass('dslca-anim-opacity-drop');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
  });
46
 
47
+
48
  /** Sort option setter */
49
  jQuery(document).on('LC.sortableOff', function(){
50
 
51
+ self.sortable.sortable('option','disabled', true);
52
  });
53
 
54
  jQuery(document).on('LC.sortableOn', function(){
55
 
56
+ self.sortable.sortable('option', 'disabled', false);
57
  });
58
  }
js/builder/builder.uigeneral.functions.js CHANGED
@@ -451,7 +451,7 @@ function dslc_drag_and_drop() {
451
  modules_list = [ document.createElement( 'div' ) ];
452
  }
453
 
454
- var modules_list_sortable = Sortable.create( modules_list[0] , {
455
  sort: false, // do not allow sorting inside the list of modules
456
  group: { name: 'modules', pull: 'clone', put: false },
457
  animation: 150,
@@ -655,7 +655,7 @@ function dslc_fix_contenteditable() {
655
  jQuery('[contenteditable]', LiveComposer.Builder.PreviewAreaDocument).attr('contenteditable', false);
656
  });
657
 
658
- LiveComposer.Builder.PreviewAreaDocument.on('dragend', '.dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section', function (e) {
659
 
660
  jQuery('[contenteditable]', LiveComposer.Builder.PreviewAreaDocument).attr('contenteditable', true);
661
  });
451
  modules_list = [ document.createElement( 'div' ) ];
452
  }
453
 
454
+ var modules_list_sortable = Sortable.create(modules_list[0], {
455
  sort: false, // do not allow sorting inside the list of modules
456
  group: { name: 'modules', pull: 'clone', put: false },
457
  animation: 150,
655
  jQuery('[contenteditable]', LiveComposer.Builder.PreviewAreaDocument).attr('contenteditable', false);
656
  });
657
 
658
+ LiveComposer.Builder.PreviewAreaDocument.on('dragend mousedown', '.dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section', function (e) {
659
 
660
  jQuery('[contenteditable]', LiveComposer.Builder.PreviewAreaDocument).attr('contenteditable', true);
661
  });
js/builder/builder.util.functions.js CHANGED
@@ -790,12 +790,12 @@ jQuery(document).ready(function($){
790
 
791
  jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ).siblings('.dslca-accordion-plain-content').val( content );
792
  var dslcAccordion = module.find('.dslc-accordion');
793
- dslc_accordion_generate_code( dslcAccordion );
794
  } else if ( module.hasClass('dslc-module-handle-like-tabs') ) {
795
 
796
  jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ).siblings('.dslca-tab-plain-content').val( content );
797
  var dslcTabs = module.find('.dslc-tabs');
798
- dslc_tabs_generate_code( dslcTabs );
799
  }
800
 
801
  dslc_editable_content_gen_code( jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ) );
790
 
791
  jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ).siblings('.dslca-accordion-plain-content').val( content );
792
  var dslcAccordion = module.find('.dslc-accordion');
793
+ LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code( dslcAccordion );
794
  } else if ( module.hasClass('dslc-module-handle-like-tabs') ) {
795
 
796
  jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ).siblings('.dslca-tab-plain-content').val( content );
797
  var dslcTabs = module.find('.dslc-tabs');
798
+ LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code( dslcTabs );
799
  }
800
 
801
  dslc_editable_content_gen_code( jQuery('.dslca-wysiwyg-active', LiveComposer.Builder.PreviewAreaDocument ) );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
3
  Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
4
  Requires at least: 4.3
5
  Tested up to: 4.6
6
- Stable tag: 1.1
7
  License: GPLv3
8
 
9
  Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
@@ -129,6 +129,19 @@ The Page Builder Sandwich available on WordPress.org is a light version of Page
129
 
130
  == Changelog ==
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  = 1.1 - August 16th 2016 =
133
 
134
  [See latest changes in details with animated gifs and videos](https://livecomposerplugin.com/blog/live-composer-1-1-released/)
3
  Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
4
  Requires at least: 4.3
5
  Tested up to: 4.6
6
+ Stable tag: 1.1.1
7
  License: GPLv3
8
 
9
  Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
129
 
130
  == Changelog ==
131
 
132
+ = 1.1.1 - August 17th 2016 =
133
+
134
+ [Report any bugs on GitHub](https://github.com/livecomposer/Live-Composer/issues/)
135
+ [See latest changes in details with animated gifs and videos](https://livecomposerplugin.com/blog/live-composer-1-1-released/)
136
+
137
+ = Bug fixes: =
138
+
139
+ * Infobox Title Editing is broken #162
140
+ * Icon selection control is broken #159
141
+ * Modules Row Edit Menu Disappears after moving. #158
142
+ * WP Admin Bar is not visible even when LC is not in active mode #155
143
+ * Cannot open "WP Editor" for Accordion or Tabs modules #153
144
+
145
  = 1.1 - August 16th 2016 =
146
 
147
  [See latest changes in details with animated gifs and videos](https://livecomposerplugin.com/blog/live-composer-1-1-released/)