Nimble Page Builder - Version 2.1.4

Version Description

July 18th 2020 = * fixed : [Customizer UI][device switcher] limit scenarii when preview is automatically set back to desktop, while user customizes mobile or tablet preview.

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Nimble Page Builder
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.0.20 to 2.1.4

assets/admin/img/nb_sec_pholder.png ADDED
Binary file
assets/admin/img/save_section_notice.png ADDED
Binary file
assets/czr/sek/css/sek-control.css CHANGED
@@ -105,30 +105,160 @@ li[id^="accordion-section-__nimble__"] > h3 {
105
  border-top:1px solid #ddd;
106
  }
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
 
109
  /* USER SECTIONS */
110
  .sek-user-section-wrapper {
111
  margin-bottom: 15px;
112
  float: left;
113
- }
114
- .sek-user-section-wrapper {
115
  width: 100%
116
  }
 
 
 
 
 
 
117
  .sek-user-section-wrapper [data-sek-is-user-section="true"] {
118
- height: auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  padding: 2%;
120
- width: 89%;
 
 
 
121
  }
122
- .sek-saved-section-date {
123
- font-size: 11px;
124
- text-align: left;
 
 
 
 
 
 
125
  }
126
- .sek-saved-section-description {
127
- font-size: 13px;
128
- font-style: italic;
129
- text-align: left;
 
 
 
130
  }
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  .sek-dragging [data-sek-content-type] {
133
  -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25)!important;
134
  box-shadow: 0 2px 5px rgba(0,0,0,.25)!important;
@@ -196,67 +326,15 @@ li[id^="accordion-section-__nimble__"] > h3 {
196
  -webkit-line-clamp: 2;
197
  -webkit-box-orient: vertical;
198
  }
199
- /* MODULE AND SECTION PICKER INPUT */
200
- [data-sek-content-type] {
201
- float: left;
202
- padding: 0%;
203
- margin: 1.8%;
204
- text-align: center;
205
- cursor: move;
206
- /*cursor: -webkit-grab;*/
207
- /*background: #eee;*/
208
- -webkit-transition: -webkit-box-shadow .2s ease;
209
- transition: -webkit-box-shadow .2s ease;
210
- -o-transition: box-shadow .2s ease;
211
- transition: box-shadow .2s ease;
212
- transition: box-shadow .2s ease, -webkit-box-shadow .2s ease;
213
- -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25);
214
- box-shadow: 0 2px 5px rgba(0,0,0,.25);
215
- border-radius: 4px;
216
- }
217
- [data-sek-content-type="module"] {
218
- width: 29%;
219
- height: 130px;
220
- }
221
- /* When sections are displayed in the module picker. Typically the columns sections */
222
- li[id*="sek_draggable_modules"] [data-sek-content-type="preset_section"] {
223
- width: 29%;
224
- height: 130px;
225
- }
226
 
227
- [data-sek-content-type="preset_section"] {
228
- width: 95%;
229
- height: 165px;
230
- position: relative
231
- }
232
-
233
- [data-sek-content-type="preset_section"] .sek-overlay {
234
- display: block;
235
- position: absolute;
236
- top: 0;
237
- left: 0;
238
- right: 0;
239
- bottom: 0;
240
- background-color: #000000;
241
- opacity: 0;
242
- -webkit-transition: opacity .35s ease;
243
- transition: opacity .35s ease;
244
- -o-transition: opacity .35s ease;
245
- }
246
- [data-sek-content-type="preset_section"]:hover .sek-overlay {
247
- opacity: 0.15;
248
- }
249
- /* don't elevate inactive modules ( introduced but not yet implemented ) */
250
- [data-sek-content-type][draggable="true"]:hover {
251
- -webkit-box-shadow: 0 12px 20px rgba(0,0,0,.2);
252
- box-shadow: 0 12px 20px rgba(0,0,0,.2);
253
- }
254
- [data-sek-content-type][draggable="false"] {
255
- background: #eee;
256
- opacity: 0.8;
257
- }
258
-
259
- /* ACCORDION MODULE */
260
  .sek-accord-title {
261
  color: #4b4a4a;
262
  overflow: hidden;
@@ -1039,7 +1117,9 @@ credits : Gutenberg team @wordpress */
1039
  /* Button style for the content type switcher and template dialog */
1040
  .sek-content-type-wrapper,
1041
  .sek-save-tmpl-mode-switcher,
1042
- .sek-save-tmpl-action {
 
 
1043
  margin-bottom: 8px;
1044
  width: 100%;
1045
  float: left;
@@ -1047,12 +1127,16 @@ credits : Gutenberg team @wordpress */
1047
  .sek-content-type-wrapper .sek-ui-button-group,
1048
  .sek-save-tmpl-mode-switcher .sek-ui-button-group,
1049
  .sek-save-tmpl-action .sek-ui-button-group,
 
 
1050
  #nimble-tmpl-gallery .sek-ui-button-group {
1051
  display: block;
1052
  }
1053
  .sek-content-type-wrapper .sek-ui-button,
1054
  .sek-save-tmpl-mode-switcher .sek-ui-button,
1055
  .sek-save-tmpl-action .sek-ui-button,
 
 
1056
  #nimble-tmpl-gallery .sek-ui-button {
1057
  text-align: center;
1058
  display: inline-block;
@@ -1061,7 +1145,10 @@ credits : Gutenberg team @wordpress */
1061
  text-transform: uppercase;
1062
  }
1063
  .sek-content-type-wrapper .sek-ui-button { width: 49%; }
1064
- .sek-save-tmpl-mode-switcher .sek-ui-button { width: 32%; }
 
 
 
1065
 
1066
  /* APRIL 2020 added for https://github.com/presscustomizr/nimble-builder/issues/651 */
1067
  .sek-content-type-wrapper [data-sek-content-type="template"] {
@@ -1480,8 +1567,11 @@ transition: background 200ms linear, color 200ms linear;
1480
  .sek-feedback-step-two-enjoying, .sek-feedback-step-two-not-enjoying, .sek-feedback-step-three-thanks { display: none;}
1481
  /* TOP SAVE TMPL UI
1482
  * introduced april 2020 for https://github.com/presscustomizr/nimble-builder/issues/655
 
 
1483
  */
1484
- #nimble-top-tmpl-save-ui {
 
1485
  height: auto;
1486
  min-height: 300px;
1487
  padding: 20px;
@@ -1514,41 +1604,62 @@ transition: background 200ms linear, color 200ms linear;
1514
  line-height: 1.5em;
1515
  }
1516
 
 
 
 
 
 
 
1517
  /*#nimble-top-tmpl-save-ui > div {
1518
  width: 100%;
1519
  }*/
1520
 
1521
- body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
 
1522
  /*visibility: inherit;*/
1523
  opacity: 1;
1524
  top:36px;
1525
  }
1526
 
1527
- #nimble-top-tmpl-save-ui .sek-close-dialog {
 
1528
  position: absolute;
1529
  bottom: 10px;
1530
  right: 10px;
 
1531
  }
1532
 
1533
- #nimble-top-tmpl-save-ui #sek-saved-tmpl-title.error {
 
1534
  border: 1px solid #ff0000;
1535
  }
1536
 
1537
 
1538
  /* INPUT STYLE */
1539
- .sek-tmpl-title, .sek-tmpl-description, select.sek-saved-tmpl-picker {
 
 
 
 
 
1540
  margin-top: 10px;
1541
  float: left;
1542
  clear: both;
1543
  width: 100%;
1544
  }
1545
 
1546
- .sek-tmpl-description textarea, input#sek-saved-tmpl-title, select.sek-saved-tmpl-picker {
 
 
 
 
 
1547
  width: 97%;
1548
  max-width: none;
1549
  margin-bottom: 10px;
1550
  }
1551
- .sek-tmpl-description textarea {
 
1552
  min-height: 100px;
1553
  }
1554
  .sek-saved-tmpl-picker,
@@ -1556,12 +1667,24 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1556
  .sek-tmpl-description,
1557
  .sek-save-tmpl-action .sek-do-save-tmpl,
1558
  .sek-save-tmpl-action .sek-do-update-tmpl,
1559
- .sek-save-tmpl-action .sek-open-remove-confirmation { display: none;}
 
 
 
 
 
 
 
 
1560
 
1561
  /* the template picker is visible when template collection has been ajaxily fetched */
1562
- .tmpl-collection-populated .sek-saved-tmpl-picker{display:block}
 
 
 
1563
 
1564
- .sek-tmpl-remove-dialog {
 
1565
  display: none;
1566
  color: red;
1567
  background: #ffffff;
@@ -1570,15 +1693,16 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1570
  float: left;
1571
  width: 96%;
1572
  }
1573
- .sek-tmpl-remove-dialog .sek-do-remove-tmpl {
 
1574
  color: red;
1575
  }
1576
 
1577
- /* VISIBILITY = f(mode) */
1578
  [data-sek-tmpl-dialog-mode="save"] .sek-saved-tmpl-picker {display: none;}
1579
  [data-sek-tmpl-dialog-mode="save"] .sek-tmpl-title {display: block;}
1580
  [data-sek-tmpl-dialog-mode="save"] .sek-tmpl-description {display: block;}
1581
- [data-sek-tmpl-dialog-mode="save"] .sek-do-save-tmpl {display: block;}
1582
 
1583
  [data-sek-tmpl-dialog-mode="update"].sek-tmpl-update-selected .sek-tmpl-title {display: block;}
1584
  [data-sek-tmpl-dialog-mode="update"].sek-tmpl-update-selected .sek-tmpl-description {display: block;}
@@ -1588,11 +1712,29 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1588
  [data-sek-tmpl-dialog-mode="remove"].sek-removal-confirmation-opened .sek-open-remove-confirmation {display: none!important;}
1589
  [data-sek-tmpl-dialog-mode="remove"].sek-removal-confirmation-opened .sek-tmpl-remove-dialog { display: block;}
1590
 
1591
- #nimble-top-tmpl-save-ui .spinner {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1592
  display: none;
1593
  }
1594
 
1595
- #nimble-top-tmpl-save-ui.nimble-tmpl-processing-ajax .spinner {
 
1596
  display: block;
1597
  visibility: visible;
1598
  }
@@ -1602,13 +1744,22 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1602
 
1603
 
1604
 
1605
- /* TOP SAVE SECTION UI */
1606
- #nimble-top-section-save-ui {
 
 
 
 
 
 
 
 
 
1607
  height: 300px;
1608
  padding: 20px;
1609
  position: absolute;
1610
  top: -300px;
1611
- /*text-align: center;*/
1612
  right: 0;
1613
  left: 0;
1614
  z-index: 20;
@@ -1619,17 +1770,11 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1619
  -ms-transition: all, 0.3s ease-in-out;
1620
  -o-transition: all, 0.3s ease-in-out;
1621
  transition: all 0.3s ease-in-out;
1622
- /*visibility: hidden;*/
1623
  opacity: 0.3;
1624
  background: rgba(0, 0, 0, 0.5);
1625
  z-index: 99999;
1626
- /*display: -webkit-box;
1627
- display: -ms-flexbox;
1628
- display: flex;
1629
- -webkit-box-align: center;
1630
- -ms-flex-align: center;
1631
- align-items: center;
1632
- flex: 0 0 100%;*/
1633
  max-width: 100%;
1634
  }
1635
 
@@ -1638,7 +1783,7 @@ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui {
1638
  }
1639
 
1640
  body.sek-save-section-ui-visible #nimble-top-section-save-ui {
1641
- /*visibility: inherit;*/
1642
  opacity: 1;
1643
  top:36px;
1644
  }
@@ -1652,6 +1797,7 @@ body.sek-save-section-ui-visible #nimble-top-section-save-ui {
1652
  #nimble-top-section-save-ui #sek-saved-section-title.error {
1653
  border: 1px solid #ff0000;
1654
  }
 
1655
  /* TEMPLATE GALLERY */
1656
  #nimble-tmpl-gallery {
1657
  -webkit-transition: top 0.3s ease-in-out;
105
  border-top:1px solid #ddd;
106
  }
107
 
108
+ /* MODULE AND SECTION PICKER INPUT */
109
+ [data-sek-content-type] {
110
+ float: left;
111
+ padding: 0%;
112
+ margin: 1.8%;
113
+ text-align: center;
114
+ cursor: move;
115
+ /*cursor: -webkit-grab;*/
116
+ /*background: #eee;*/
117
+ -webkit-transition: -webkit-box-shadow .2s ease;
118
+ transition: -webkit-box-shadow .2s ease;
119
+ -o-transition: box-shadow .2s ease;
120
+ transition: box-shadow .2s ease;
121
+ transition: box-shadow .2s ease, -webkit-box-shadow .2s ease;
122
+ -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25);
123
+ box-shadow: 0 2px 5px rgba(0,0,0,.25);
124
+ border-radius: 4px;
125
+ }
126
+ [data-sek-content-type="module"] {
127
+ width: 29%;
128
+ height: 130px;
129
+ }
130
+
131
+
132
+ /* When sections are displayed in the module picker. Typically the columns sections */
133
+ li[id*="sek_draggable_modules"] [data-sek-content-type="preset_section"] {
134
+ width: 29%;
135
+ height: 130px;
136
+ }
137
+
138
+ .sek-content-type-wrapper [data-sek-content-type="preset_section"] {
139
+ width: 95%;
140
+ height: 165px;
141
+ position: relative
142
+ }
143
+
144
+ [data-sek-content-type="preset_section"] .sek-overlay {
145
+ display: block;
146
+ position: absolute;
147
+ top: 0;
148
+ left: 0;
149
+ right: 0;
150
+ bottom: 0;
151
+ background-color: #000000;
152
+ opacity: 0;
153
+ -webkit-transition: opacity .35s ease;
154
+ transition: opacity .35s ease;
155
+ -o-transition: opacity .35s ease;
156
+ }
157
+ [data-sek-content-type="preset_section"]:hover .sek-overlay {
158
+ opacity: 0.15;
159
+ }
160
+ /* don't elevate inactive modules ( introduced but not yet implemented ) */
161
+ [data-sek-content-type][draggable="true"]:hover {
162
+ -webkit-box-shadow: 0 12px 20px rgba(0,0,0,.2);
163
+ box-shadow: 0 12px 20px rgba(0,0,0,.2);
164
+ }
165
+ [data-sek-content-type][draggable="false"] {
166
+ background: #eee;
167
+ opacity: 0.8;
168
+ }
169
 
170
+ /* JUNE 2020 style for user sections */
171
  /* USER SECTIONS */
172
  .sek-user-section-wrapper {
173
  margin-bottom: 15px;
174
  float: left;
 
 
175
  width: 100%
176
  }
177
+ .sek-user-section-wrapper [data-sek-content-type="preset_section"] .sek-overlay {
178
+ opacity: 0.40;
179
+ }
180
+ .sek-user-section-wrapper [data-sek-content-type="preset_section"]:hover .sek-overlay {
181
+ opacity: 0.50;
182
+ }
183
  .sek-user-section-wrapper [data-sek-is-user-section="true"] {
184
+ height: 165px;
185
+ margin: 0;
186
+ width: 97%;
187
+ }
188
+
189
+ .sek-user-section-wrapper .sek-sec-thumb {
190
+ position: absolute;
191
+ opacity: 0.5;
192
+ z-index: 0;
193
+ top: 0;
194
+ bottom: 0;
195
+ height: 100%;
196
+ width: 100%;
197
+ }
198
+ .sek-user-section-wrapper .sek-sec-info {
199
+ position: relative;
200
+ color: #ffffff;
201
  padding: 2%;
202
+ overflow: hidden;
203
+ height: 100%;
204
+ max-height: 138px;
205
+ padding: 10px;
206
  }
207
+
208
+ .sek-sec-info .sec-title {
209
+ color: #ffffff;
210
+ margin: 0;
211
+ line-height: 20px;
212
+ max-height: 20px;
213
+ overflow: hidden;
214
+ white-space: nowrap;
215
+ text-overflow: ellipsis;
216
  }
217
+ .sek-sec-info .sec-date, .sek-sec-info .sec-desc {
218
+ margin:0;
219
+ margin-top: 5px;
220
+ font-size: 12px;
221
+ }
222
+ .sek-sec-info .sec-date {
223
+ font-size: italic;
224
  }
225
 
226
+ .sek-sec-info > .remove-user-sec {
227
+ cursor: pointer;
228
+ font-size: 16px;
229
+ width: 30px;
230
+ height: 30px;
231
+ color: #535353;
232
+ background: rgba(255, 255, 255, 0.7);
233
+ border-radius: 30px;
234
+ opacity: 0;
235
+ -webkit-box-shadow: 0 2px 6px rgba(0,0,0,.2);
236
+ box-shadow: 0 2px 6px rgba(0,0,0,.2);
237
+ -webkit-transition: all .20s ease;
238
+ -o-transition: all .20s ease;
239
+ transition: all .20s ease;
240
+ -webkit-box-align: center;
241
+ -ms-flex-align: center;
242
+ align-items: center;
243
+ display: -webkit-box;
244
+ display: -ms-flexbox;
245
+ display: flex;
246
+ -webkit-box-pack: center;
247
+ -ms-flex-pack: center;
248
+ justify-content: center;
249
+ position: absolute;
250
+ bottom: 0px;
251
+ right: 5px;
252
+ }
253
+ .sek-sec-info:hover > .remove-user-sec {
254
+ opacity: 0.7;
255
+ }
256
+ .sek-sec-info > .remove-user-sec:hover {
257
+ opacity: 0.95;
258
+ color: red;
259
+ }
260
+
261
+ /* DRAGGING STUFFS */
262
  .sek-dragging [data-sek-content-type] {
263
  -webkit-box-shadow: 0 2px 5px rgba(0,0,0,.25)!important;
264
  box-shadow: 0 2px 5px rgba(0,0,0,.25)!important;
326
  -webkit-line-clamp: 2;
327
  -webkit-box-orient: vertical;
328
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
 
330
+ .sek-new-label {
331
+ background: #ffff00;
332
+ border: 1px solid yellow;
333
+ padding: 3px 4px;
334
+ line-height: 12px;
335
+ border-radius: 8px;
336
+ font-size: 12px;
337
+ }/* ACCORDION MODULE */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  .sek-accord-title {
339
  color: #4b4a4a;
340
  overflow: hidden;
1117
  /* Button style for the content type switcher and template dialog */
1118
  .sek-content-type-wrapper,
1119
  .sek-save-tmpl-mode-switcher,
1120
+ .sek-save-tmpl-action,
1121
+ .sek-save-section-mode-switcher,
1122
+ .sek-save-section-action {
1123
  margin-bottom: 8px;
1124
  width: 100%;
1125
  float: left;
1127
  .sek-content-type-wrapper .sek-ui-button-group,
1128
  .sek-save-tmpl-mode-switcher .sek-ui-button-group,
1129
  .sek-save-tmpl-action .sek-ui-button-group,
1130
+ .sek-save-section-mode-switcher .sek-ui-button-group,
1131
+ .sek-save-section-action .sek-ui-button-group,
1132
  #nimble-tmpl-gallery .sek-ui-button-group {
1133
  display: block;
1134
  }
1135
  .sek-content-type-wrapper .sek-ui-button,
1136
  .sek-save-tmpl-mode-switcher .sek-ui-button,
1137
  .sek-save-tmpl-action .sek-ui-button,
1138
+ .sek-save-section-mode-switcher .sek-ui-button,
1139
+ .sek-save-section-action .sek-ui-button,
1140
  #nimble-tmpl-gallery .sek-ui-button {
1141
  text-align: center;
1142
  display: inline-block;
1145
  text-transform: uppercase;
1146
  }
1147
  .sek-content-type-wrapper .sek-ui-button { width: 49%; }
1148
+ .sek-save-tmpl-mode-switcher .sek-ui-button,
1149
+ .sek-save-section-mode-switcher .sek-ui-button {
1150
+ width: 32%;
1151
+ }
1152
 
1153
  /* APRIL 2020 added for https://github.com/presscustomizr/nimble-builder/issues/651 */
1154
  .sek-content-type-wrapper [data-sek-content-type="template"] {
1567
  .sek-feedback-step-two-enjoying, .sek-feedback-step-two-not-enjoying, .sek-feedback-step-three-thanks { display: none;}
1568
  /* TOP SAVE TMPL UI
1569
  * introduced april 2020 for https://github.com/presscustomizr/nimble-builder/issues/655
1570
+ * and TOP SAVE SECTION UI
1571
+ * introduced June 2020 for for https://github.com/presscustomizr/nimble-builder/issues/520
1572
  */
1573
+ #nimble-top-tmpl-save-ui,
1574
+ #nimble-top-section-save-ui {
1575
  height: auto;
1576
  min-height: 300px;
1577
  padding: 20px;
1604
  line-height: 1.5em;
1605
  }
1606
 
1607
+ #nimble-top-tmpl-save-ui .nb-tmpl-save-inner,
1608
+ #nimble-top-section-save-ui .nb-section-save-inner {
1609
+ max-width: 800px;
1610
+ margin: auto;
1611
+ }
1612
+
1613
  /*#nimble-top-tmpl-save-ui > div {
1614
  width: 100%;
1615
  }*/
1616
 
1617
+ body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui,
1618
+ body.sek-save-section-ui-visible #nimble-top-section-save-ui {
1619
  /*visibility: inherit;*/
1620
  opacity: 1;
1621
  top:36px;
1622
  }
1623
 
1624
+ #nimble-top-tmpl-save-ui .sek-close-dialog,
1625
+ #nimble-top-section-save-ui .sek-close-dialog {
1626
  position: absolute;
1627
  bottom: 10px;
1628
  right: 10px;
1629
+ border-radius: 3px!important;
1630
  }
1631
 
1632
+ #nimble-top-tmpl-save-ui #sek-saved-tmpl-title.error,
1633
+ #nimble-top-section-save-ui #sek-saved-section-title.error {
1634
  border: 1px solid #ff0000;
1635
  }
1636
 
1637
 
1638
  /* INPUT STYLE */
1639
+ .sek-tmpl-title,
1640
+ .sek-tmpl-description,
1641
+ select.sek-saved-tmpl-picker,
1642
+ .sek-section-title,
1643
+ .sek-section-description,
1644
+ select.sek-saved-section-picker {
1645
  margin-top: 10px;
1646
  float: left;
1647
  clear: both;
1648
  width: 100%;
1649
  }
1650
 
1651
+ .sek-tmpl-description textarea,
1652
+ input#sek-saved-tmpl-title,
1653
+ select.sek-saved-tmpl-picker,
1654
+ .sek-section-description textarea,
1655
+ input#sek-saved-section-title,
1656
+ select.sek-saved-section-picker {
1657
  width: 97%;
1658
  max-width: none;
1659
  margin-bottom: 10px;
1660
  }
1661
+ .sek-tmpl-description textarea,
1662
+ .sek-section-description textarea {
1663
  min-height: 100px;
1664
  }
1665
  .sek-saved-tmpl-picker,
1667
  .sek-tmpl-description,
1668
  .sek-save-tmpl-action .sek-do-save-tmpl,
1669
  .sek-save-tmpl-action .sek-do-update-tmpl,
1670
+ .sek-save-tmpl-action .sek-open-remove-confirmation,
1671
+ .sek-saved-section-picker,
1672
+ .sek-section-title,
1673
+ .sek-section-description,
1674
+ .sek-save-section-action .sek-do-save-section,
1675
+ .sek-save-section-action .sek-do-update-section,
1676
+ .sek-save-section-action .sek-open-remove-confirmation {
1677
+ display: none;
1678
+ }
1679
 
1680
  /* the template picker is visible when template collection has been ajaxily fetched */
1681
+ .tmpl-collection-populated .sek-saved-tmpl-picker,
1682
+ .section-collection-populated .sek-saved-section-picker {
1683
+ display:block
1684
+ }
1685
 
1686
+ .sek-tmpl-remove-dialog,
1687
+ .sek-section-remove-dialog {
1688
  display: none;
1689
  color: red;
1690
  background: #ffffff;
1693
  float: left;
1694
  width: 96%;
1695
  }
1696
+ .sek-tmpl-remove-dialog .sek-do-remove-tmpl,
1697
+ .sek-section-remove-dialog .sek-do-remove-section {
1698
  color: red;
1699
  }
1700
 
1701
+ /* TMPL UI VISIBILITY = f(mode) */
1702
  [data-sek-tmpl-dialog-mode="save"] .sek-saved-tmpl-picker {display: none;}
1703
  [data-sek-tmpl-dialog-mode="save"] .sek-tmpl-title {display: block;}
1704
  [data-sek-tmpl-dialog-mode="save"] .sek-tmpl-description {display: block;}
1705
+ [data-sek-tmpl-dialog-mode="save"] .sek-do-save-tmpl {display: block;border-color: #ffff00;background: #f9f9b6f7;border-radius: 3px!important;}
1706
 
1707
  [data-sek-tmpl-dialog-mode="update"].sek-tmpl-update-selected .sek-tmpl-title {display: block;}
1708
  [data-sek-tmpl-dialog-mode="update"].sek-tmpl-update-selected .sek-tmpl-description {display: block;}
1712
  [data-sek-tmpl-dialog-mode="remove"].sek-removal-confirmation-opened .sek-open-remove-confirmation {display: none!important;}
1713
  [data-sek-tmpl-dialog-mode="remove"].sek-removal-confirmation-opened .sek-tmpl-remove-dialog { display: block;}
1714
 
1715
+ /* SECTION UI VISIBILITY = f(mode) */
1716
+ [data-sek-section-dialog-mode="save"] .sek-saved-section-picker {display: none;}
1717
+ [data-sek-section-dialog-mode="save"] .sek-section-title {display: block;}
1718
+ [data-sek-section-dialog-mode="save"] .sek-section-description {display: block;}
1719
+ [data-sek-section-dialog-mode="save"] .sek-do-save-section {display: block;border-color: #ffff00;background: #f9f9b6f7;border-radius: 3px!important;}
1720
+
1721
+ [data-sek-section-dialog-mode="update"].sek-section-update-selected .sek-section-title {display: block;}
1722
+ [data-sek-section-dialog-mode="update"].sek-section-update-selected .sek-section-description {display: block;}
1723
+ [data-sek-section-dialog-mode="update"].sek-section-update-selected .sek-do-update-section {display: block;}
1724
+
1725
+ [data-sek-section-dialog-mode="remove"].sek-section-remove-selected .sek-open-remove-confirmation {display: block;}
1726
+ [data-sek-section-dialog-mode="remove"].sek-removal-confirmation-opened .sek-open-remove-confirmation {display: none!important;}
1727
+ [data-sek-section-dialog-mode="remove"].sek-removal-confirmation-opened .sek-section-remove-dialog { display: block;}
1728
+ [data-sek-section-dialog-mode="remove"].sek-is-removal-only [data-section-mode-switcher="save"], [data-sek-section-dialog-mode="remove"].sek-is-removal-only [data-section-mode-switcher="update"] { display: none;}
1729
+
1730
+
1731
+ #nimble-top-tmpl-save-ui .spinner,
1732
+ #nimble-top-section-save-ui .spinner {
1733
  display: none;
1734
  }
1735
 
1736
+ #nimble-top-tmpl-save-ui.nimble-tmpl-processing-ajax .spinner,
1737
+ #nimble-top-section-save-ui.nimble-section-processing-ajax .spinner {
1738
  display: block;
1739
  visibility: visible;
1740
  }
1744
 
1745
 
1746
 
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+ /* OLD TOP SAVE SECTION UI */
1757
+ /* #nimble-top-section-save-ui {
1758
  height: 300px;
1759
  padding: 20px;
1760
  position: absolute;
1761
  top: -300px;
1762
+
1763
  right: 0;
1764
  left: 0;
1765
  z-index: 20;
1770
  -ms-transition: all, 0.3s ease-in-out;
1771
  -o-transition: all, 0.3s ease-in-out;
1772
  transition: all 0.3s ease-in-out;
1773
+
1774
  opacity: 0.3;
1775
  background: rgba(0, 0, 0, 0.5);
1776
  z-index: 99999;
1777
+
 
 
 
 
 
 
1778
  max-width: 100%;
1779
  }
1780
 
1783
  }
1784
 
1785
  body.sek-save-section-ui-visible #nimble-top-section-save-ui {
1786
+
1787
  opacity: 1;
1788
  top:36px;
1789
  }
1797
  #nimble-top-section-save-ui #sek-saved-section-title.error {
1798
  border: 1px solid #ff0000;
1799
  }
1800
+ */
1801
  /* TEMPLATE GALLERY */
1802
  #nimble-tmpl-gallery {
1803
  -webkit-transition: top 0.3s ease-in-out;
assets/czr/sek/css/sek-control.min.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(../fonts/material-icons/MaterialIcons-Regular.eot);src:local('Material Icons'),local('MaterialIcons-Regular'),url(../fonts/material-icons/MaterialIcons-Regular.woff2) format('woff2'),url(../fonts/material-icons/MaterialIcons-Regular.woff) format('woff'),url(../fonts/material-icons/MaterialIcons-Regular.ttf) format('truetype')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;-webkit-font-feature-settings:'liga';font-feature-settings:'liga'}#customize-preview iframe,#nimble-level-tree{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}#customize-preview iframe{z-index:1}ul[id*=sub-accordion-section-__nimble__]{background:#f2f2f2!important}#customize-theme-controls .customize-pane-child[id*="__nimble__"]{-webkit-transition:unset;-o-transition:unset;transition:unset}li[id*="__nimble__"].customize-control{margin:8px 0;padding:2px;width:calc(100% - 4px);border:1px solid rgba(221,221,221,.43);box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);-webkit-box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);background-color:#fff}li[id*="__nimble__"].customize-control span.customize-control-title:first-child{margin-left:21px}#customize-theme-controls ul[id*=sub-accordion-section-__nimble__].open{top:0!important}.sek-float-right{float:right}.sek-float-left{float:left}.sek-flex-vertical-center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}li[id^=accordion-section-__nimble__]{margin-top:16px}li[id^=accordion-section-__nimble__]>h3{border-top:1px solid #ddd}.sek-user-section-wrapper{margin-bottom:15px;float:left}.sek-user-section-wrapper{width:100%}.sek-user-section-wrapper [data-sek-is-user-section=true]{height:auto;padding:2%;width:89%}.sek-saved-section-date{font-size:11px;text-align:left}.sek-saved-section-description{font-size:13px;font-style:italic;text-align:left}.sek-dragging [data-sek-content-type]{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25)!important;box-shadow:0 2px 5px rgba(0,0,0,.25)!important}.sek-dragged{background:#33b3db3d;background:rgba(51,179,219,.24)}[data-sek-content-type] .sek-module-icon{display:block;padding:0}[data-sek-content-type] .sek-module-icon .nimble-module-icons{font-size:3rem;max-width:100%;color:#878787;max-height:86px}[data-sek-content-type] .sek-module-icon.is-font-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;min-height:70%}[data-sek-content-type] .sek-module-icon.is-font-icon i{font-size:35px}[data-sek-content-type] .sek-module-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 6px 0;font-size:.75rem;height:45px;justify-content:center;position:relative;top:-18px}.sek-centered-module-title{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[data-sek-content-type]{float:left;padding:0;margin:1.8%;text-align:center;cursor:move;-webkit-transition:-webkit-box-shadow .2s ease;transition:-webkit-box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;transition:box-shadow .2s ease,-webkit-box-shadow .2s ease;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25);box-shadow:0 2px 5px rgba(0,0,0,.25);border-radius:4px}[data-sek-content-type=module]{width:29%;height:130px}li[id*=sek_draggable_modules] [data-sek-content-type=preset_section]{width:29%;height:130px}[data-sek-content-type=preset_section]{width:95%;height:165px;position:relative}[data-sek-content-type=preset_section] .sek-overlay{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;-webkit-transition:opacity .35s ease;transition:opacity .35s ease;-o-transition:opacity .35s ease}[data-sek-content-type=preset_section]:hover .sek-overlay{opacity:.15}[data-sek-content-type][draggable=true]:hover{-webkit-box-shadow:0 12px 20px rgba(0,0,0,.2);box-shadow:0 12px 20px rgba(0,0,0,.2)}[data-sek-content-type][draggable=false]{background:#eee;opacity:.8}.sek-accord-title{color:#4b4a4a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;height:23px;line-height:22px;font-size:13px;float:left;padding-left:10px}.sek-pad-marg-inner{font-size:12px;display:-webkit-box;display:-ms-flexbox;display:flex;margin:10px auto 10px auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;background-color:#e6e6e6;border:1px solid #c5c5c5;height:192px;width:232px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}.sek-pm-top-bottom-wrap{height:46px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-flex-center-stretch{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.sek-pm-input{width:35px;height:15px;padding:0;text-align:center;font-family:Source Sans Pro;padding:5px;border-radius:3px;text-align:left;font-size:13px;outline:0;-webkit-box-shadow:inset 1px 1px 3px rgba(0,0,0,.15);box-shadow:inset 1px 1px 3px rgba(0,0,0,.15);border:1px solid #ced6d9}.sek-pm-input-parent .sek-pm-input{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:block;margin:auto 3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 3px;font-size:12px;font-weight:300;min-width:34px;min-height:20px;color:#313131}.sek-pm-middle-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;height:100px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sek-pm-margin-left,.sek-pm-margin-right{width:46px}.sek-pm-padding-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border:1px solid #ced6d9;height:100px;width:140px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:5px;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease;-webkit-box-sizing:border-box;box-sizing:border-box;margin:auto}.sek-flex-justify-center{min-height:0;min-width:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-flex-space-between{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sek-pm-input-parent{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.sek-pm-input-parent .sek-pm-input{min-height:25px;min-width:40px;background-color:#fff}.sek-pm-input-parent .sek-pm-input{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:block;margin:auto 3px!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 3px;font-size:12px;font-weight:300;min-width:34px;min-height:20px;color:#313131;width:40px!important;text-align:center}.sek-pm-padding-wrapper label{margin:0}.sek-pad-marg-inner label{-webkit-box-flex:0;-ms-flex:0;flex:0}.reset-spacing-wrap{padding:10px 0 0;font-size:.8em;text-decoration:underline;cursor:pointer;text-align:center}.reset-spacing-wrap:hover{color:#006799}.sek-bg-pos-wrapper{padding:10px;text-align:center;display:inline-block;width:90px;height:90px}.sek-bg-pos-wrapper{display:inline-block;width:90px;height:90px}.sek-bg-pos-wrapper .sek-bg-pos{cursor:pointer;width:24px;height:24px;margin:3px;float:left}.sek-bg-pos-wrapper input[type=radio]{display:none}.sek-bg-pos-wrapper .sek-bg-pos span{display:inline-block;width:100%;height:100%;border-radius:6px;background:#e6e6e6 no-repeat center;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}.sek-bg-pos-wrapper .sek-bg-pos span:hover{background-color:#33b3db}.sek-bg-pos-wrapper .sek-bg-pos span:hover svg{visibility:visible}.sek-bg-pos-wrapper .sek-bg-pos input[type=radio]:checked+span{background-color:#33b3db}.sek-bg-pos-wrapper .sek-bg-pos input[type=radio]:checked+span svg{visibility:visible}.sek-bg-pos-wrapper .sek-bg-pos span svg{visibility:hidden;shape-rendering:crispEdges}.sek-bg-pos-wrapper .sek-svg-bg-pos{fill:#fff}div[data-sek-align]{margin:0 5px;padding:4px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;text-align:center;width:23px;height:24px;top:-4px;border-radius:4px;cursor:pointer}div[data-input-type=horizTextAlignmentWithDeviceSwitcher] .czr-input{text-align:center}div[data-input-type=horizTextAlignmentWithDeviceSwitcher] .sek-h-align-wrapper{display:inline-block}div[data-input-type=horizAlignmentWithDeviceSwitcher] .czr-input{text-align:center}div[data-input-type=horizAlignmentWithDeviceSwitcher] .sek-h-align-wrapper{display:inline-block}.sek-h-align-wrapper .sek-align-icons{float:right}div[data-sek-align]:hover{-webkit-box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}div[data-sek-align].selected{outline:0;color:#fff;-webkit-box-shadow:none;box-shadow:none;background:#555d66}div[data-sek-grid-layout]{margin:0 5px;padding:1px 3px 1px 1px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;text-align:center;border-radius:4px;cursor:pointer}div[data-sek-grid-layout] i{font-size:50px}div[data-input-type=grid_layout] .czr-input{text-align:center}div[data-input-type=grid_layout] .sek-grid-layout-wrapper{display:inline-block}.sek-grid-layout-wrapper .sek-grid-icons{float:right}div[data-sek-grid-layout]:hover{-webkit-box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}div[data-sek-grid-layout].selected{outline:0;color:#fff;-webkit-box-shadow:none;box-shadow:none;background:#33b3db}.customize-control select[data-czrtype=categories]{height:28px}.sek-input-device-switcher .sek-switcher:before,.sek-mobile-device-icons .sek-switcher:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;color:#656a6f;position:relative;top:-5px}.sek-input-device-switcher .sek-switcher{cursor:pointer}.sek-input-device-switcher .sek-switcher,.sek-mobile-device-icons .sek-switcher{background:0 0;border:none;padding:0 1px;margin:0 0 0 -2px;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;-o-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.sek-input-device-switcher .sek-switcher:focus,.sek-input-device-switcher .sek-switcher:hover{background-color:#fff}.sek-input-device-switcher .sek-switcher.active:before{color:#191e23}.sek-input-device-switcher .sek-switcher:focus:before,.sek-input-device-switcher .sek-switcher:hover:before{color:#0073aa}.sek-input-device-switcher .preview-desktop:before,.sek-mobile-device-icons .preview-desktop:before{content:"\f472"}.sek-input-device-switcher .preview-tablet:before,.sek-mobile-device-icons .preview-tablet:before{content:"\f471"}.sek-input-device-switcher .preview-mobile:before,.sek-mobile-device-icons .preview-mobile:before{content:"\f470"}.sek-borders{width:100%;float:left;margin-bottom:8px}.sek-borders>div{float:left;width:100%}.sek-borders .sek-range-unit-wrapper>div{float:left}.sek-borders .sek-border-type-wrapper{margin-bottom:5px}.sek-borders .sek-range-unit-wrapper{margin-bottom:5px}.sek-borders .sek-range-unit-wrapper .sek-unit-wrapper{float:right}.sek-borders .sek-color-wrapper{width:100%}.sek-borders .sek-color-wrapper .sek-color-picker{width:50%;float:left}.sek-borders .sek-color-wrapper .sek-reset-button{width:50%;float:right}[data-sek-radius-type=top_right]>i.material-icons{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}[data-sek-radius-type=bottom_right]>i.material-icons{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}[data-sek-radius-type=bottom_left]>i.material-icons{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sek-range-with-unit-picker-wrapper{width:100%;float:left;margin-bottom:8px}.sek-range-with-unit-picker-wrapper .sek-unit-wrapper{float:right}.sek-range-with-unit-picker-wrapper>div{float:left}.sek-range-wrapper{width:44%;margin-right:4px}.sek-no-unit-picker .sek-range-wrapper{width:70%}.sek-number-wrapper,.sek-simple-number-wrapper{width:60px;margin-right:5px}.sek-simple-number-wrapper{text-align:right}.sek-range-input{flex:1;width:100%;padding:0;-webkit-appearance:none;background:0 0;height:26px}.sek-range-input::-webkit-slider-thumb{-webkit-appearance:none;height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-8px}.sek-range-input::-moz-range-thumb{height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.sek-range-input::-ms-thumb{height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-8px}.sek-range-input:focus{outline:0}.sek-range-input::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.sek-range-input::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.sek-range-input::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.sek-import-btn-wrap{padding:20px 0}.sek-import-btn-wrap input.sek-import-file{margin-bottom:10px}.sek-export-btn-wrap{padding-bottom:20px;border-bottom:1px solid #ddd}.sek-import-file{background:#eee;width:100%;margin:10px 0;padding:10px;font-size:12px}.sek-uploading{background:#eee;display:none;margin:10px 0;padding:10px;font-size:12px}.czr-import-dialog{display:none;padding:11px}.czr-import-message{padding-bottom:10px}.sek-import-btn-wrap .czr-import-dialog .czr-import-message{font-size:12px!important}.sek-import-btn-wrap .czr-import-dialog .button{margin:4px 0;font-size:12px!important}.sek-slide-thumb{width:32px;height:32px;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;float:left}.sek-slide-title{color:#4b4a4a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;height:32px;line-height:32px;font-size:13px;float:left;padding-left:10px}.sek-unit-wrapper{text-align:center}.sek-ui-button-group{display:inline-block}.sek-ui-button-group .sek-ui-button:first-child{border-radius:3px 0 0 3px}.sek-ui-button-group .sek-ui-button+.sek-ui-button{margin-left:-1px}.sek-ui-button-group .sek-ui-button:last-child{border-radius:0 3px 3px 0}.sek-ui-button{height:28px;padding:0 10px 2px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid;display:inline-flex;text-decoration:none;font-size:12px;line-height:25px;font-weight:400;margin:0;cursor:pointer;-webkit-appearance:none;background:0 0;color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;-ms-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.sek-ui-button:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;opacity:1!important}.sek-ui-button:active:not(:disabled){background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.sek-ui-button:focus:not(:disabled){background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #fbfbfb;outline:0}.sek-ui-button[aria-pressed=true]{background:#555d66;border-color:#555d66;box-shadow:inset 0 -1px 0 #555d66;color:#fff;text-decoration:none}.sek-ui-button[aria-pressed=true]:focus:not(:disabled),.sek-ui-button[aria-pressed=true]:hover{background:#555d66;border-color:#4f4f4f;color:#fff}.sek-ui-button[aria-pressed=true]:focus:not(:disabled){box-shadow:inset 0 -1px 0 #4f4f4f}.sek-ui-button[aria-pressed=true]:focus:not(:disabled){outline:0}.sek-content-type-wrapper,.sek-save-tmpl-action,.sek-save-tmpl-mode-switcher{margin-bottom:8px;width:100%;float:left}#nimble-tmpl-gallery .sek-ui-button-group,.sek-content-type-wrapper .sek-ui-button-group,.sek-save-tmpl-action .sek-ui-button-group,.sek-save-tmpl-mode-switcher .sek-ui-button-group{display:block}#nimble-tmpl-gallery .sek-ui-button,.sek-content-type-wrapper .sek-ui-button,.sek-save-tmpl-action .sek-ui-button,.sek-save-tmpl-mode-switcher .sek-ui-button{text-align:center;display:inline-block;padding:3px 10px;height:auto;text-transform:uppercase}.sek-content-type-wrapper .sek-ui-button{width:49%}.sek-save-tmpl-mode-switcher .sek-ui-button{width:32%}.sek-content-type-wrapper [data-sek-content-type=template]{width:98%;margin-top:5px}[data-input-type=module_option_switcher] .sek-content-type-wrapper{margin-bottom:0}[data-input-type=module_option_switcher] [aria-pressed=false]{opacity:.7}[data-input-type=module_option_switcher] [data-sek-option-type]{position:relative}.sek-wrap-opt-switch-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-input-type=module_option_switcher] [data-sek-option-type] .sek-wrap-opt-switch-btn>i{font-size:21px;line-height:24px}[data-input-type=module_option_switcher] [data-sek-option-type] .sek-wrap-opt-switch-btn>span{position:relative;padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.wp-core-ui .button.sek-reset-button{font-size:11px;padding:0 5px 1px;line-height:18px;height:25px;min-height:25px;color:#555;border-color:#ccc}.sek-animated-arrow{position:absolute;left:-20px;margin-left:6px;top:3px;font-size:10px;color:#617379;-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;-o-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-sek-expanded=true] label>.customize-control-title .sek-animated-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}[data-sek-expanded=true] label>.customize-control-title .sek-ctrl-accordion-title,[data-sek-expanded] label>.customize-control-title .sek-ctrl-accordion-title:hover{text-decoration:underline;text-underline-position:under}.customize-control-title .sek-ctrl-accordion-title>i{font-size:1.2em;position:relative;top:4px;padding-right:4px}.sek-level-option-icon{padding-right:5px;min-width:22px;text-align:center}.sek-input-title-icon{position:relative;top:6px}[data-sek-expanded=false]>.czr-open-pre-add-new{display:none}[data-sek-expanded=false]>.czr-items-wrapper{display:none}.sek-side-nimble-logo-wrapper{padding:4px 25px 0 2px!important}.sek-side-nimble-logo-wrapper .sek-nimble-logo{height:45px}[data-input-type=code_editor] .czr-input{width:100%;float:left}#customize-preview iframe{top:36px}#nimble-top-bar{max-height:36px;position:absolute;text-align:center;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;top:0;background:rgba(0,0,0,.5);padding:2px;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%}.outer-section-open #nimble-top-bar,.themes-panel-expanded #nimble-top-bar{display:none}body.nimble-top-bar-visible #nimble-top-bar{opacity:1}#nimble-top-bar:hover{background:rgba(0,0,0,.7)}#nimble-top-bar .nimble-top-bar-content{display:inline-block;line-height:20px;width:80%}#nimble-top-bar .sek-do-undo .icon:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;color:#fff}#nimble-top-bar .sek-settings,#nimble-top-bar .sek-tmpl-saving{font-size:18px;padding:0 5px}#nimble-top-bar button{background:0 0;border:none;color:#fff;cursor:pointer}#nimble-top-bar button[data-nimble-state=disabled]{cursor:inherit;opacity:.4!important;cursor:not-allowed}#nimble-top-bar .sek-do-undo button:hover{opacity:1}#nimble-top-bar .sek-do-undo button:focus{outline:0}#nimble-top-bar .sek-do-undo .icon:before{position:relative}#nimble-top-bar .sek-do-undo .icon.undo:before{content:"\f171";-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}#nimble-top-bar .sek-do-undo .icon.do:before{content:"\f172";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}#nimble-top-bar .sek-add-content button{padding-top:3px}#nimble-top-bar .sek-nimble-doc{position:absolute;right:10px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%}.rtl #nimble-top-bar .sek-nimble-doc{left:10px;right:auto}#nimble-top-bar .sek-nimble-doc img{width:30px;height:30px;position:relative;top:2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray}#nimble-top-bar .sek-nimble-doc:hover img{-webkit-filter:none;filter:none}#nimble-top-bar .sek-notifications{max-width:410px;overflow:hidden}#nimble-top-bar .sek-notifications .debug-mode-notif{color:red;line-height:1.5em;padding:3px;background:#fff;display:inline-block;overflow:hidden}#nimble-feedback{background:#fff;border-bottom:1px solid #aaa!important;border-left:4px solid #00a0d2;color:#222!important;font-size:12px!important;position:absolute;top:36px;right:0;left:0;height:150px;overflow:auto;padding:15px;z-index:0;-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.nimble-feedback-ui-visible #customize-preview iframe{top:217px;height:calc(100vh - 217px)}#nimble-feedback .sek-main-feedback-heading p{margin:0}#nimble-feedback .sek-feedback-step-three-thanks p{font-size:17px}.sek-feedback-nimble-icon{height:40px;width:40px}.sek-feedback-nimble-icon.big{height:60px;width:60px}.wp-core-ui #nimble-feedback .sek-feedback-btn{margin:0 6px;-webkit-transition:background .2s linear,color .2s linear;-ms-transition:background .2s linear,color .2s linear;transition:background .2s linear,color .2s linear;-webkit-border-radius:4px;border-radius:4px;box-shadow:none;font-weight:600}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos{border-color:#da791d!important;background:#f37656;color:#fff}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos:focus,.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos:hover{border-color:#f37656!important;background:0 0;color:#f37656;opacity:1}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg{border:1px solid #f37656;color:#f37656;background:#fff}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg:focus,.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg:hover{color:#fff;background:#f37656;border:1px solid #f37656}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-already{background:0 0;border:none;color:#00a0d2;font-weight:400}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-close-feedback-ui{background:#fff;border:none;font-weight:400}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-close-feedback-ui:hover{color:#f37656}#nimble-feedback p{font-size:14px;line-height:1.5em;font-style:normal;margin:0 0 10px}#nimble-feedback .sek-stars{color:#ffb900;cursor:pointer;font-size:25px}#nimble-feedback .sek-signature{font-size:13px;font-style:italic}.sek-close-feedback-ui{position:fixed;top:44px;right:25px}.sek-feedback-step-three-thanks,.sek-feedback-step-two-enjoying,.sek-feedback-step-two-not-enjoying{display:none}#nimble-top-tmpl-save-ui{height:auto;min-height:300px;padding:20px;position:absolute;top:-300px;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;background:rgba(0,0,0,.7);z-index:99999;max-width:100%;font-size:16px;line-height:1.5em}body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui{opacity:1;top:36px}#nimble-top-tmpl-save-ui .sek-close-dialog{position:absolute;bottom:10px;right:10px}#nimble-top-tmpl-save-ui #sek-saved-tmpl-title.error{border:1px solid red}.sek-tmpl-description,.sek-tmpl-title,select.sek-saved-tmpl-picker{margin-top:10px;float:left;clear:both;width:100%}.sek-tmpl-description textarea,input#sek-saved-tmpl-title,select.sek-saved-tmpl-picker{width:97%;max-width:none;margin-bottom:10px}.sek-tmpl-description textarea{min-height:100px}.sek-save-tmpl-action .sek-do-save-tmpl,.sek-save-tmpl-action .sek-do-update-tmpl,.sek-save-tmpl-action .sek-open-remove-confirmation,.sek-saved-tmpl-picker,.sek-tmpl-description,.sek-tmpl-title{display:none}.tmpl-collection-populated .sek-saved-tmpl-picker{display:block}.sek-tmpl-remove-dialog{display:none;color:red;background:#fff;padding:5px;text-transform:uppercase;float:left;width:96%}.sek-tmpl-remove-dialog .sek-do-remove-tmpl{color:red}[data-sek-tmpl-dialog-mode=save] .sek-saved-tmpl-picker{display:none}[data-sek-tmpl-dialog-mode=save] .sek-tmpl-title{display:block}[data-sek-tmpl-dialog-mode=save] .sek-tmpl-description{display:block}[data-sek-tmpl-dialog-mode=save] .sek-do-save-tmpl{display:block}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-tmpl-title{display:block}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-tmpl-description{display:block}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-do-update-tmpl{display:block}[data-sek-tmpl-dialog-mode=remove].sek-tmpl-remove-selected .sek-open-remove-confirmation{display:block}[data-sek-tmpl-dialog-mode=remove].sek-removal-confirmation-opened .sek-open-remove-confirmation{display:none!important}[data-sek-tmpl-dialog-mode=remove].sek-removal-confirmation-opened .sek-tmpl-remove-dialog{display:block}#nimble-top-tmpl-save-ui .spinner{display:none}#nimble-top-tmpl-save-ui.nimble-tmpl-processing-ajax .spinner{display:block;visibility:visible}#nimble-top-section-save-ui{height:300px;padding:20px;position:absolute;top:-300px;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;background:rgba(0,0,0,.5);z-index:99999;max-width:100%}#nimble-top-section-save-ui>div{width:100%}body.sek-save-section-ui-visible #nimble-top-section-save-ui{opacity:1;top:36px}#nimble-top-section-save-ui .sek-close-dialog{position:absolute;bottom:10px;right:10px}#nimble-top-section-save-ui #sek-saved-section-title.error{border:1px solid red}#nimble-tmpl-gallery{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}#nimble-tmpl-gallery{background:rgba(240,240,240,.89)!important;border-bottom:1px solid #aaa!important;color:#222!important;font-size:12px!important;position:absolute;top:-100vh;right:0;left:0;height:calc(100vh - 36px);overflow:auto;padding:15px;z-index:1000}.sek-template-gallery-expanded #nimble-tmpl-gallery{top:36px}#nimble-tmpl-gallery .sek-tmpl-gallery-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin-right:-10px;margin-left:-10px}#nimble-tmpl-gallery .sek-tmpl-gallery-inner *,#nimble-tmpl-gallery .sek-tmpl-gallery-inner :after,#nimble-tmpl-gallery .sek-tmpl-gallery-inner :before{box-sizing:border-box}.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%;padding:5px 10px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;cursor:pointer}@media (max-width:1300px){.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 33.333%;flex:0 0 33.333%;max-width:33.333%}}@media (max-width:1000px){.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}}.sek-tmpl-info{position:absolute;top:0;bottom:0;width:calc(100% - 20px);max-height:calc(100% - 20px);padding:10px;overflow:hidden}.sek-tmpl-info>h3,.sek-tmpl-info>p{color:#fff;overflow:hidden}.sek-tmpl-info>h3{font-size:15px;margin:.5em 0}.sek-tmpl-info>p{font-size:13px;margin:.5em 0}.sek-tmpl-info>.use-tmpl{cursor:pointer;font-size:25px;width:50px;height:50px;color:#535353;background:rgba(255,255,255,.7);border-radius:30px;opacity:0;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.sek-tmpl-info:hover>.use-tmpl{opacity:.7}.sek-tmpl-info>.use-tmpl:hover{opacity:.95}.sek-tmpl-info>.remove-tmpl{cursor:pointer;font-size:16px;width:30px;height:30px;color:#535353;background:rgba(255,255,255,.7);border-radius:30px;opacity:0;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;bottom:10px;right:10px}.sek-tmpl-info:hover>.remove-tmpl{opacity:.7}.sek-tmpl-info>.remove-tmpl:hover{opacity:.95;color:red}.sek-tmpl-gallery-inner .sek-tmpl-thumb{cursor:pointer;position:relative}.sek-tmpl-thumb img{max-width:100%}.sek-tmpl-gallery-inner .sek-tmpl-thumb::after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:.45;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;-ms-transition:opacity .3s ease-in-out;-o-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.sek-tmpl-gallery-inner .sek-tmpl-item:hover .sek-tmpl-thumb::after{opacity:.65}#sek-gal-top-bar{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}input.sek-filter-tmpl{width:60%}#sek-gal-top-bar .sek-ui-button-group{width:37%;text-align:right}.search-active .sek-tmpl-item{display:none}.search-active .sek-tmpl-item.search-match{display:-webkit-box;display:-ms-flexbox;display:flex}#nimble-level-tree{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}.sek-level-tree-expanded #customize-preview iframe{top:366px;height:calc(100vh - 366px)}.sek-level-tree-expanded #nimble-top-bar .sek-level-tree button{color:#44b9e2}#nimble-level-tree{background:#f0f0f0!important;border-bottom:1px solid #aaa!important;color:#222!important;font-size:12px!important;position:absolute;top:36px;right:0;left:0;height:299px;overflow:auto;padding:15px;z-index:0}#nimble-level-tree ul li{padding-left:30px;cursor:pointer;margin-bottom:8px}#nimble-level-tree ul li .sek-remove-level{font-size:16px;opacity:.6}#nimble-level-tree ul li .sek-remove-level:hover{opacity:1}#nimble-level-tree ul li .sek-level-infos{line-height:30px;height:30px;padding-left:33px;position:relative;width:calc(100% - 25px)}.sek-level-infos .sek-inner-level-infos{background:inherit;width:inherit;height:inherit;line-height:inherit;padding-left:4px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background .2s ease;transition:background .2s ease;-o-transition:background .2s ease}.sek-inner-level-infos:hover{color:#000;background:#fff}.sek-close-level-tree{position:fixed;top:44px;right:25px}img.sek-svg-mod-icon{max-width:45px}.sek-level-infos::before{position:absolute;left:-31px;background:#a2aab2;width:63px;height:2px;content:"";top:calc(50% - 1px)}#nimble-level-tree ul>li:first-child::before{position:absolute;content:"";background:#a2aab2;top:-15px;height:16px;bottom:0;left:-2px;width:2px}#nimble-level-tree ul>li:last-child::after{position:absolute;content:"";background:#f0f0f0;top:16px;bottom:0;left:-2px;width:2px}#nimble-level-tree ul{border-left:2px solid #a2aab2;position:relative}#nimble-level-tree ul>li:last-child{position:relative}
1
+ @font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(../fonts/material-icons/MaterialIcons-Regular.eot);src:local('Material Icons'),local('MaterialIcons-Regular'),url(../fonts/material-icons/MaterialIcons-Regular.woff2) format('woff2'),url(../fonts/material-icons/MaterialIcons-Regular.woff) format('woff'),url(../fonts/material-icons/MaterialIcons-Regular.ttf) format('truetype')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;-webkit-font-feature-settings:'liga';font-feature-settings:'liga'}#customize-preview iframe,#nimble-level-tree{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}#customize-preview iframe{z-index:1}ul[id*=sub-accordion-section-__nimble__]{background:#f2f2f2!important}#customize-theme-controls .customize-pane-child[id*="__nimble__"]{-webkit-transition:unset;-o-transition:unset;transition:unset}li[id*="__nimble__"].customize-control{margin:8px 0;padding:2px;width:calc(100% - 4px);border:1px solid rgba(221,221,221,.43);box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);-webkit-box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);background-color:#fff}li[id*="__nimble__"].customize-control span.customize-control-title:first-child{margin-left:21px}#customize-theme-controls ul[id*=sub-accordion-section-__nimble__].open{top:0!important}.sek-float-right{float:right}.sek-float-left{float:left}.sek-flex-vertical-center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}li[id^=accordion-section-__nimble__]{margin-top:16px}li[id^=accordion-section-__nimble__]>h3{border-top:1px solid #ddd}[data-sek-content-type]{float:left;padding:0;margin:1.8%;text-align:center;cursor:move;-webkit-transition:-webkit-box-shadow .2s ease;transition:-webkit-box-shadow .2s ease;-o-transition:box-shadow .2s ease;transition:box-shadow .2s ease;transition:box-shadow .2s ease,-webkit-box-shadow .2s ease;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25);box-shadow:0 2px 5px rgba(0,0,0,.25);border-radius:4px}[data-sek-content-type=module]{width:29%;height:130px}li[id*=sek_draggable_modules] [data-sek-content-type=preset_section]{width:29%;height:130px}.sek-content-type-wrapper [data-sek-content-type=preset_section]{width:95%;height:165px;position:relative}[data-sek-content-type=preset_section] .sek-overlay{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0;-webkit-transition:opacity .35s ease;transition:opacity .35s ease;-o-transition:opacity .35s ease}[data-sek-content-type=preset_section]:hover .sek-overlay{opacity:.15}[data-sek-content-type][draggable=true]:hover{-webkit-box-shadow:0 12px 20px rgba(0,0,0,.2);box-shadow:0 12px 20px rgba(0,0,0,.2)}[data-sek-content-type][draggable=false]{background:#eee;opacity:.8}.sek-user-section-wrapper{margin-bottom:15px;float:left;width:100%}.sek-user-section-wrapper [data-sek-content-type=preset_section] .sek-overlay{opacity:.4}.sek-user-section-wrapper [data-sek-content-type=preset_section]:hover .sek-overlay{opacity:.5}.sek-user-section-wrapper [data-sek-is-user-section=true]{height:165px;margin:0;width:97%}.sek-user-section-wrapper .sek-sec-thumb{position:absolute;opacity:.5;z-index:0;top:0;bottom:0;height:100%;width:100%}.sek-user-section-wrapper .sek-sec-info{position:relative;color:#fff;padding:2%;overflow:hidden;height:100%;max-height:138px;padding:10px}.sek-sec-info .sec-title{color:#fff;margin:0;line-height:20px;max-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sek-sec-info .sec-date,.sek-sec-info .sec-desc{margin:0;margin-top:5px;font-size:12px}.sek-sec-info .sec-date{font-size:italic}.sek-sec-info>.remove-user-sec{cursor:pointer;font-size:16px;width:30px;height:30px;color:#535353;background:rgba(255,255,255,.7);border-radius:30px;opacity:0;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;bottom:0;right:5px}.sek-sec-info:hover>.remove-user-sec{opacity:.7}.sek-sec-info>.remove-user-sec:hover{opacity:.95;color:red}.sek-dragging [data-sek-content-type]{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25)!important;box-shadow:0 2px 5px rgba(0,0,0,.25)!important}.sek-dragged{background:#33b3db3d;background:rgba(51,179,219,.24)}[data-sek-content-type] .sek-module-icon{display:block;padding:0}[data-sek-content-type] .sek-module-icon .nimble-module-icons{font-size:3rem;max-width:100%;color:#878787;max-height:86px}[data-sek-content-type] .sek-module-icon.is-font-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;min-height:70%}[data-sek-content-type] .sek-module-icon.is-font-icon i{font-size:35px}[data-sek-content-type] .sek-module-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 6px 0;font-size:.75rem;height:45px;justify-content:center;position:relative;top:-18px}.sek-centered-module-title{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sek-new-label{background:#ff0;border:1px solid #ff0;padding:3px 4px;line-height:12px;border-radius:8px;font-size:12px}.sek-accord-title{color:#4b4a4a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;height:23px;line-height:22px;font-size:13px;float:left;padding-left:10px}.sek-pad-marg-inner{font-size:12px;display:-webkit-box;display:-ms-flexbox;display:flex;margin:10px auto 10px auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;background-color:#e6e6e6;border:1px solid #c5c5c5;height:192px;width:232px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}.sek-pm-top-bottom-wrap{height:46px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-flex-center-stretch{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.sek-pm-input{width:35px;height:15px;padding:0;text-align:center;font-family:Source Sans Pro;padding:5px;border-radius:3px;text-align:left;font-size:13px;outline:0;-webkit-box-shadow:inset 1px 1px 3px rgba(0,0,0,.15);box-shadow:inset 1px 1px 3px rgba(0,0,0,.15);border:1px solid #ced6d9}.sek-pm-input-parent .sek-pm-input{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:block;margin:auto 3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 3px;font-size:12px;font-weight:300;min-width:34px;min-height:20px;color:#313131}.sek-pm-middle-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;height:100px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sek-pm-margin-left,.sek-pm-margin-right{width:46px}.sek-pm-padding-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border:1px solid #ced6d9;height:100px;width:140px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:5px;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease;-webkit-box-sizing:border-box;box-sizing:border-box;margin:auto}.sek-flex-justify-center{min-height:0;min-width:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-flex-space-between{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sek-pm-input-parent{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.sek-pm-input-parent .sek-pm-input{min-height:25px;min-width:40px;background-color:#fff}.sek-pm-input-parent .sek-pm-input{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;display:block;margin:auto 3px!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 3px;font-size:12px;font-weight:300;min-width:34px;min-height:20px;color:#313131;width:40px!important;text-align:center}.sek-pm-padding-wrapper label{margin:0}.sek-pad-marg-inner label{-webkit-box-flex:0;-ms-flex:0;flex:0}.reset-spacing-wrap{padding:10px 0 0;font-size:.8em;text-decoration:underline;cursor:pointer;text-align:center}.reset-spacing-wrap:hover{color:#006799}.sek-bg-pos-wrapper{padding:10px;text-align:center;display:inline-block;width:90px;height:90px}.sek-bg-pos-wrapper{display:inline-block;width:90px;height:90px}.sek-bg-pos-wrapper .sek-bg-pos{cursor:pointer;width:24px;height:24px;margin:3px;float:left}.sek-bg-pos-wrapper input[type=radio]{display:none}.sek-bg-pos-wrapper .sek-bg-pos span{display:inline-block;width:100%;height:100%;border-radius:6px;background:#e6e6e6 no-repeat center;-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}.sek-bg-pos-wrapper .sek-bg-pos span:hover{background-color:#33b3db}.sek-bg-pos-wrapper .sek-bg-pos span:hover svg{visibility:visible}.sek-bg-pos-wrapper .sek-bg-pos input[type=radio]:checked+span{background-color:#33b3db}.sek-bg-pos-wrapper .sek-bg-pos input[type=radio]:checked+span svg{visibility:visible}.sek-bg-pos-wrapper .sek-bg-pos span svg{visibility:hidden;shape-rendering:crispEdges}.sek-bg-pos-wrapper .sek-svg-bg-pos{fill:#fff}div[data-sek-align]{margin:0 5px;padding:4px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;text-align:center;width:23px;height:24px;top:-4px;border-radius:4px;cursor:pointer}div[data-input-type=horizTextAlignmentWithDeviceSwitcher] .czr-input{text-align:center}div[data-input-type=horizTextAlignmentWithDeviceSwitcher] .sek-h-align-wrapper{display:inline-block}div[data-input-type=horizAlignmentWithDeviceSwitcher] .czr-input{text-align:center}div[data-input-type=horizAlignmentWithDeviceSwitcher] .sek-h-align-wrapper{display:inline-block}.sek-h-align-wrapper .sek-align-icons{float:right}div[data-sek-align]:hover{-webkit-box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}div[data-sek-align].selected{outline:0;color:#fff;-webkit-box-shadow:none;box-shadow:none;background:#555d66}div[data-sek-grid-layout]{margin:0 5px;padding:1px 3px 1px 1px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:relative;text-align:center;border-radius:4px;cursor:pointer}div[data-sek-grid-layout] i{font-size:50px}div[data-input-type=grid_layout] .czr-input{text-align:center}div[data-input-type=grid_layout] .sek-grid-layout-wrapper{display:inline-block}.sek-grid-layout-wrapper .sek-grid-icons{float:right}div[data-sek-grid-layout]:hover{-webkit-box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}div[data-sek-grid-layout].selected{outline:0;color:#fff;-webkit-box-shadow:none;box-shadow:none;background:#33b3db}.customize-control select[data-czrtype=categories]{height:28px}.sek-input-device-switcher .sek-switcher:before,.sek-mobile-device-icons .sek-switcher:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;color:#656a6f;position:relative;top:-5px}.sek-input-device-switcher .sek-switcher{cursor:pointer}.sek-input-device-switcher .sek-switcher,.sek-mobile-device-icons .sek-switcher{background:0 0;border:none;padding:0 1px;margin:0 0 0 -2px;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;-o-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.sek-input-device-switcher .sek-switcher:focus,.sek-input-device-switcher .sek-switcher:hover{background-color:#fff}.sek-input-device-switcher .sek-switcher.active:before{color:#191e23}.sek-input-device-switcher .sek-switcher:focus:before,.sek-input-device-switcher .sek-switcher:hover:before{color:#0073aa}.sek-input-device-switcher .preview-desktop:before,.sek-mobile-device-icons .preview-desktop:before{content:"\f472"}.sek-input-device-switcher .preview-tablet:before,.sek-mobile-device-icons .preview-tablet:before{content:"\f471"}.sek-input-device-switcher .preview-mobile:before,.sek-mobile-device-icons .preview-mobile:before{content:"\f470"}.sek-borders{width:100%;float:left;margin-bottom:8px}.sek-borders>div{float:left;width:100%}.sek-borders .sek-range-unit-wrapper>div{float:left}.sek-borders .sek-border-type-wrapper{margin-bottom:5px}.sek-borders .sek-range-unit-wrapper{margin-bottom:5px}.sek-borders .sek-range-unit-wrapper .sek-unit-wrapper{float:right}.sek-borders .sek-color-wrapper{width:100%}.sek-borders .sek-color-wrapper .sek-color-picker{width:50%;float:left}.sek-borders .sek-color-wrapper .sek-reset-button{width:50%;float:right}[data-sek-radius-type=top_right]>i.material-icons{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}[data-sek-radius-type=bottom_right]>i.material-icons{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}[data-sek-radius-type=bottom_left]>i.material-icons{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sek-range-with-unit-picker-wrapper{width:100%;float:left;margin-bottom:8px}.sek-range-with-unit-picker-wrapper .sek-unit-wrapper{float:right}.sek-range-with-unit-picker-wrapper>div{float:left}.sek-range-wrapper{width:44%;margin-right:4px}.sek-no-unit-picker .sek-range-wrapper{width:70%}.sek-number-wrapper,.sek-simple-number-wrapper{width:60px;margin-right:5px}.sek-simple-number-wrapper{text-align:right}.sek-range-input{flex:1;width:100%;padding:0;-webkit-appearance:none;background:0 0;height:26px}.sek-range-input::-webkit-slider-thumb{-webkit-appearance:none;height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-8px}.sek-range-input::-moz-range-thumb{height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.sek-range-input::-ms-thumb{height:20px;width:20px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-8px}.sek-range-input:focus{outline:0}.sek-range-input::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.sek-range-input::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.sek-range-input::-ms-track{margin-top:-4px;background:0 0;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.sek-import-btn-wrap{padding:20px 0}.sek-import-btn-wrap input.sek-import-file{margin-bottom:10px}.sek-export-btn-wrap{padding-bottom:20px;border-bottom:1px solid #ddd}.sek-import-file{background:#eee;width:100%;margin:10px 0;padding:10px;font-size:12px}.sek-uploading{background:#eee;display:none;margin:10px 0;padding:10px;font-size:12px}.czr-import-dialog{display:none;padding:11px}.czr-import-message{padding-bottom:10px}.sek-import-btn-wrap .czr-import-dialog .czr-import-message{font-size:12px!important}.sek-import-btn-wrap .czr-import-dialog .button{margin:4px 0;font-size:12px!important}.sek-slide-thumb{width:32px;height:32px;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;float:left}.sek-slide-title{color:#4b4a4a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;height:32px;line-height:32px;font-size:13px;float:left;padding-left:10px}.sek-unit-wrapper{text-align:center}.sek-ui-button-group{display:inline-block}.sek-ui-button-group .sek-ui-button:first-child{border-radius:3px 0 0 3px}.sek-ui-button-group .sek-ui-button+.sek-ui-button{margin-left:-1px}.sek-ui-button-group .sek-ui-button:last-child{border-radius:0 3px 3px 0}.sek-ui-button{height:28px;padding:0 10px 2px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid;display:inline-flex;text-decoration:none;font-size:12px;line-height:25px;font-weight:400;margin:0;cursor:pointer;-webkit-appearance:none;background:0 0;color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;-ms-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.sek-ui-button:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;opacity:1!important}.sek-ui-button:active:not(:disabled){background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.sek-ui-button:focus:not(:disabled){background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #fbfbfb;outline:0}.sek-ui-button[aria-pressed=true]{background:#555d66;border-color:#555d66;box-shadow:inset 0 -1px 0 #555d66;color:#fff;text-decoration:none}.sek-ui-button[aria-pressed=true]:focus:not(:disabled),.sek-ui-button[aria-pressed=true]:hover{background:#555d66;border-color:#4f4f4f;color:#fff}.sek-ui-button[aria-pressed=true]:focus:not(:disabled){box-shadow:inset 0 -1px 0 #4f4f4f}.sek-ui-button[aria-pressed=true]:focus:not(:disabled){outline:0}.sek-content-type-wrapper,.sek-save-section-action,.sek-save-section-mode-switcher,.sek-save-tmpl-action,.sek-save-tmpl-mode-switcher{margin-bottom:8px;width:100%;float:left}#nimble-tmpl-gallery .sek-ui-button-group,.sek-content-type-wrapper .sek-ui-button-group,.sek-save-section-action .sek-ui-button-group,.sek-save-section-mode-switcher .sek-ui-button-group,.sek-save-tmpl-action .sek-ui-button-group,.sek-save-tmpl-mode-switcher .sek-ui-button-group{display:block}#nimble-tmpl-gallery .sek-ui-button,.sek-content-type-wrapper .sek-ui-button,.sek-save-section-action .sek-ui-button,.sek-save-section-mode-switcher .sek-ui-button,.sek-save-tmpl-action .sek-ui-button,.sek-save-tmpl-mode-switcher .sek-ui-button{text-align:center;display:inline-block;padding:3px 10px;height:auto;text-transform:uppercase}.sek-content-type-wrapper .sek-ui-button{width:49%}.sek-save-section-mode-switcher .sek-ui-button,.sek-save-tmpl-mode-switcher .sek-ui-button{width:32%}.sek-content-type-wrapper [data-sek-content-type=template]{width:98%;margin-top:5px}[data-input-type=module_option_switcher] .sek-content-type-wrapper{margin-bottom:0}[data-input-type=module_option_switcher] [aria-pressed=false]{opacity:.7}[data-input-type=module_option_switcher] [data-sek-option-type]{position:relative}.sek-wrap-opt-switch-btn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-input-type=module_option_switcher] [data-sek-option-type] .sek-wrap-opt-switch-btn>i{font-size:21px;line-height:24px}[data-input-type=module_option_switcher] [data-sek-option-type] .sek-wrap-opt-switch-btn>span{position:relative;padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.wp-core-ui .button.sek-reset-button{font-size:11px;padding:0 5px 1px;line-height:18px;height:25px;min-height:25px;color:#555;border-color:#ccc}.sek-animated-arrow{position:absolute;left:-20px;margin-left:6px;top:3px;font-size:10px;color:#617379;-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;-o-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-sek-expanded=true] label>.customize-control-title .sek-animated-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}[data-sek-expanded=true] label>.customize-control-title .sek-ctrl-accordion-title,[data-sek-expanded] label>.customize-control-title .sek-ctrl-accordion-title:hover{text-decoration:underline;text-underline-position:under}.customize-control-title .sek-ctrl-accordion-title>i{font-size:1.2em;position:relative;top:4px;padding-right:4px}.sek-level-option-icon{padding-right:5px;min-width:22px;text-align:center}.sek-input-title-icon{position:relative;top:6px}[data-sek-expanded=false]>.czr-open-pre-add-new{display:none}[data-sek-expanded=false]>.czr-items-wrapper{display:none}.sek-side-nimble-logo-wrapper{padding:4px 25px 0 2px!important}.sek-side-nimble-logo-wrapper .sek-nimble-logo{height:45px}[data-input-type=code_editor] .czr-input{width:100%;float:left}#customize-preview iframe{top:36px}#nimble-top-bar{max-height:36px;position:absolute;text-align:center;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;top:0;background:rgba(0,0,0,.5);padding:2px;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%}.outer-section-open #nimble-top-bar,.themes-panel-expanded #nimble-top-bar{display:none}body.nimble-top-bar-visible #nimble-top-bar{opacity:1}#nimble-top-bar:hover{background:rgba(0,0,0,.7)}#nimble-top-bar .nimble-top-bar-content{display:inline-block;line-height:20px;width:80%}#nimble-top-bar .sek-do-undo .icon:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;color:#fff}#nimble-top-bar .sek-settings,#nimble-top-bar .sek-tmpl-saving{font-size:18px;padding:0 5px}#nimble-top-bar button{background:0 0;border:none;color:#fff;cursor:pointer}#nimble-top-bar button[data-nimble-state=disabled]{cursor:inherit;opacity:.4!important;cursor:not-allowed}#nimble-top-bar .sek-do-undo button:hover{opacity:1}#nimble-top-bar .sek-do-undo button:focus{outline:0}#nimble-top-bar .sek-do-undo .icon:before{position:relative}#nimble-top-bar .sek-do-undo .icon.undo:before{content:"\f171";-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}#nimble-top-bar .sek-do-undo .icon.do:before{content:"\f172";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}#nimble-top-bar .sek-add-content button{padding-top:3px}#nimble-top-bar .sek-nimble-doc{position:absolute;right:10px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%}.rtl #nimble-top-bar .sek-nimble-doc{left:10px;right:auto}#nimble-top-bar .sek-nimble-doc img{width:30px;height:30px;position:relative;top:2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray}#nimble-top-bar .sek-nimble-doc:hover img{-webkit-filter:none;filter:none}#nimble-top-bar .sek-notifications{max-width:410px;overflow:hidden}#nimble-top-bar .sek-notifications .debug-mode-notif{color:red;line-height:1.5em;padding:3px;background:#fff;display:inline-block;overflow:hidden}#nimble-feedback{background:#fff;border-bottom:1px solid #aaa!important;border-left:4px solid #00a0d2;color:#222!important;font-size:12px!important;position:absolute;top:36px;right:0;left:0;height:150px;overflow:auto;padding:15px;z-index:0;-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.nimble-feedback-ui-visible #customize-preview iframe{top:217px;height:calc(100vh - 217px)}#nimble-feedback .sek-main-feedback-heading p{margin:0}#nimble-feedback .sek-feedback-step-three-thanks p{font-size:17px}.sek-feedback-nimble-icon{height:40px;width:40px}.sek-feedback-nimble-icon.big{height:60px;width:60px}.wp-core-ui #nimble-feedback .sek-feedback-btn{margin:0 6px;-webkit-transition:background .2s linear,color .2s linear;-ms-transition:background .2s linear,color .2s linear;transition:background .2s linear,color .2s linear;-webkit-border-radius:4px;border-radius:4px;box-shadow:none;font-weight:600}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos{border-color:#da791d!important;background:#f37656;color:#fff}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos:focus,.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-pos:hover{border-color:#f37656!important;background:0 0;color:#f37656;opacity:1}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg{border:1px solid #f37656;color:#f37656;background:#fff}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg:focus,.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-neg:hover{color:#fff;background:#f37656;border:1px solid #f37656}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-already{background:0 0;border:none;color:#00a0d2;font-weight:400}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-close-feedback-ui{background:#fff;border:none;font-weight:400}.wp-core-ui #nimble-feedback .sek-feedback-btn.sek-close-feedback-ui:hover{color:#f37656}#nimble-feedback p{font-size:14px;line-height:1.5em;font-style:normal;margin:0 0 10px}#nimble-feedback .sek-stars{color:#ffb900;cursor:pointer;font-size:25px}#nimble-feedback .sek-signature{font-size:13px;font-style:italic}.sek-close-feedback-ui{position:fixed;top:44px;right:25px}.sek-feedback-step-three-thanks,.sek-feedback-step-two-enjoying,.sek-feedback-step-two-not-enjoying{display:none}#nimble-top-section-save-ui,#nimble-top-tmpl-save-ui{height:auto;min-height:300px;padding:20px;position:absolute;top:-300px;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;background:rgba(0,0,0,.7);z-index:99999;max-width:100%;font-size:16px;line-height:1.5em}#nimble-top-section-save-ui .nb-section-save-inner,#nimble-top-tmpl-save-ui .nb-tmpl-save-inner{max-width:800px;margin:auto}body.sek-save-section-ui-visible #nimble-top-section-save-ui,body.sek-save-tmpl-ui-visible #nimble-top-tmpl-save-ui{opacity:1;top:36px}#nimble-top-section-save-ui .sek-close-dialog,#nimble-top-tmpl-save-ui .sek-close-dialog{position:absolute;bottom:10px;right:10px;border-radius:3px!important}#nimble-top-section-save-ui #sek-saved-section-title.error,#nimble-top-tmpl-save-ui #sek-saved-tmpl-title.error{border:1px solid red}.sek-section-description,.sek-section-title,.sek-tmpl-description,.sek-tmpl-title,select.sek-saved-section-picker,select.sek-saved-tmpl-picker{margin-top:10px;float:left;clear:both;width:100%}.sek-section-description textarea,.sek-tmpl-description textarea,input#sek-saved-section-title,input#sek-saved-tmpl-title,select.sek-saved-section-picker,select.sek-saved-tmpl-picker{width:97%;max-width:none;margin-bottom:10px}.sek-section-description textarea,.sek-tmpl-description textarea{min-height:100px}.sek-save-section-action .sek-do-save-section,.sek-save-section-action .sek-do-update-section,.sek-save-section-action .sek-open-remove-confirmation,.sek-save-tmpl-action .sek-do-save-tmpl,.sek-save-tmpl-action .sek-do-update-tmpl,.sek-save-tmpl-action .sek-open-remove-confirmation,.sek-saved-section-picker,.sek-saved-tmpl-picker,.sek-section-description,.sek-section-title,.sek-tmpl-description,.sek-tmpl-title{display:none}.section-collection-populated .sek-saved-section-picker,.tmpl-collection-populated .sek-saved-tmpl-picker{display:block}.sek-section-remove-dialog,.sek-tmpl-remove-dialog{display:none;color:red;background:#fff;padding:5px;text-transform:uppercase;float:left;width:96%}.sek-section-remove-dialog .sek-do-remove-section,.sek-tmpl-remove-dialog .sek-do-remove-tmpl{color:red}[data-sek-tmpl-dialog-mode=save] .sek-saved-tmpl-picker{display:none}[data-sek-tmpl-dialog-mode=save] .sek-tmpl-title{display:block}[data-sek-tmpl-dialog-mode=save] .sek-tmpl-description{display:block}[data-sek-tmpl-dialog-mode=save] .sek-do-save-tmpl{display:block;border-color:#ff0;background:#f9f9b6f7;border-radius:3px!important}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-tmpl-title{display:block}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-tmpl-description{display:block}[data-sek-tmpl-dialog-mode=update].sek-tmpl-update-selected .sek-do-update-tmpl{display:block}[data-sek-tmpl-dialog-mode=remove].sek-tmpl-remove-selected .sek-open-remove-confirmation{display:block}[data-sek-tmpl-dialog-mode=remove].sek-removal-confirmation-opened .sek-open-remove-confirmation{display:none!important}[data-sek-tmpl-dialog-mode=remove].sek-removal-confirmation-opened .sek-tmpl-remove-dialog{display:block}[data-sek-section-dialog-mode=save] .sek-saved-section-picker{display:none}[data-sek-section-dialog-mode=save] .sek-section-title{display:block}[data-sek-section-dialog-mode=save] .sek-section-description{display:block}[data-sek-section-dialog-mode=save] .sek-do-save-section{display:block;border-color:#ff0;background:#f9f9b6f7;border-radius:3px!important}[data-sek-section-dialog-mode=update].sek-section-update-selected .sek-section-title{display:block}[data-sek-section-dialog-mode=update].sek-section-update-selected .sek-section-description{display:block}[data-sek-section-dialog-mode=update].sek-section-update-selected .sek-do-update-section{display:block}[data-sek-section-dialog-mode=remove].sek-section-remove-selected .sek-open-remove-confirmation{display:block}[data-sek-section-dialog-mode=remove].sek-removal-confirmation-opened .sek-open-remove-confirmation{display:none!important}[data-sek-section-dialog-mode=remove].sek-removal-confirmation-opened .sek-section-remove-dialog{display:block}[data-sek-section-dialog-mode=remove].sek-is-removal-only [data-section-mode-switcher=save],[data-sek-section-dialog-mode=remove].sek-is-removal-only [data-section-mode-switcher=update]{display:none}#nimble-top-section-save-ui .spinner,#nimble-top-tmpl-save-ui .spinner{display:none}#nimble-top-section-save-ui.nimble-section-processing-ajax .spinner,#nimble-top-tmpl-save-ui.nimble-tmpl-processing-ajax .spinner{display:block;visibility:visible}#nimble-tmpl-gallery{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}#nimble-tmpl-gallery{background:rgba(240,240,240,.89)!important;border-bottom:1px solid #aaa!important;color:#222!important;font-size:12px!important;position:absolute;top:-100vh;right:0;left:0;height:calc(100vh - 36px);overflow:auto;padding:15px;z-index:1000}.sek-template-gallery-expanded #nimble-tmpl-gallery{top:36px}#nimble-tmpl-gallery .sek-tmpl-gallery-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin-right:-10px;margin-left:-10px}#nimble-tmpl-gallery .sek-tmpl-gallery-inner *,#nimble-tmpl-gallery .sek-tmpl-gallery-inner :after,#nimble-tmpl-gallery .sek-tmpl-gallery-inner :before{box-sizing:border-box}.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%;padding:5px 10px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;cursor:pointer}@media (max-width:1300px){.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 33.333%;flex:0 0 33.333%;max-width:33.333%}}@media (max-width:1000px){.sek-tmpl-gallery-inner .sek-tmpl-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}}.sek-tmpl-info{position:absolute;top:0;bottom:0;width:calc(100% - 20px);max-height:calc(100% - 20px);padding:10px;overflow:hidden}.sek-tmpl-info>h3,.sek-tmpl-info>p{color:#fff;overflow:hidden}.sek-tmpl-info>h3{font-size:15px;margin:.5em 0}.sek-tmpl-info>p{font-size:13px;margin:.5em 0}.sek-tmpl-info>.use-tmpl{cursor:pointer;font-size:25px;width:50px;height:50px;color:#535353;background:rgba(255,255,255,.7);border-radius:30px;opacity:0;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.sek-tmpl-info:hover>.use-tmpl{opacity:.7}.sek-tmpl-info>.use-tmpl:hover{opacity:.95}.sek-tmpl-info>.remove-tmpl{cursor:pointer;font-size:16px;width:30px;height:30px;color:#535353;background:rgba(255,255,255,.7);border-radius:30px;opacity:0;-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;bottom:10px;right:10px}.sek-tmpl-info:hover>.remove-tmpl{opacity:.7}.sek-tmpl-info>.remove-tmpl:hover{opacity:.95;color:red}.sek-tmpl-gallery-inner .sek-tmpl-thumb{cursor:pointer;position:relative}.sek-tmpl-thumb img{max-width:100%}.sek-tmpl-gallery-inner .sek-tmpl-thumb::after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:.45;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;-ms-transition:opacity .3s ease-in-out;-o-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.sek-tmpl-gallery-inner .sek-tmpl-item:hover .sek-tmpl-thumb::after{opacity:.65}#sek-gal-top-bar{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}input.sek-filter-tmpl{width:60%}#sek-gal-top-bar .sek-ui-button-group{width:37%;text-align:right}.search-active .sek-tmpl-item{display:none}.search-active .sek-tmpl-item.search-match{display:-webkit-box;display:-ms-flexbox;display:flex}#nimble-level-tree{-webkit-transition:top .3s ease-in-out;-moz-transition:top,.3s ease-in-out;-ms-transition:top,.3s ease-in-out;-o-transition:top,.3s ease-in-out;transition:top .3s ease-in-out}.sek-level-tree-expanded #customize-preview iframe{top:366px;height:calc(100vh - 366px)}.sek-level-tree-expanded #nimble-top-bar .sek-level-tree button{color:#44b9e2}#nimble-level-tree{background:#f0f0f0!important;border-bottom:1px solid #aaa!important;color:#222!important;font-size:12px!important;position:absolute;top:36px;right:0;left:0;height:299px;overflow:auto;padding:15px;z-index:0}#nimble-level-tree ul li{padding-left:30px;cursor:pointer;margin-bottom:8px}#nimble-level-tree ul li .sek-remove-level{font-size:16px;opacity:.6}#nimble-level-tree ul li .sek-remove-level:hover{opacity:1}#nimble-level-tree ul li .sek-level-infos{line-height:30px;height:30px;padding-left:33px;position:relative;width:calc(100% - 25px)}.sek-level-infos .sek-inner-level-infos{background:inherit;width:inherit;height:inherit;line-height:inherit;padding-left:4px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background .2s ease;transition:background .2s ease;-o-transition:background .2s ease}.sek-inner-level-infos:hover{color:#000;background:#fff}.sek-close-level-tree{position:fixed;top:44px;right:25px}img.sek-svg-mod-icon{max-width:45px}.sek-level-infos::before{position:absolute;left:-31px;background:#a2aab2;width:63px;height:2px;content:"";top:calc(50% - 1px)}#nimble-level-tree ul>li:first-child::before{position:absolute;content:"";background:#a2aab2;top:-15px;height:16px;bottom:0;left:-2px;width:2px}#nimble-level-tree ul>li:last-child::after{position:absolute;content:"";background:#f0f0f0;top:16px;bottom:0;left:-2px;width:2px}#nimble-level-tree ul{border-left:2px solid #a2aab2;position:relative}#nimble-level-tree ul>li:last-child{position:relative}
assets/czr/sek/css/sek-preview.css CHANGED
@@ -69,7 +69,7 @@
69
  /* Make sure tinyMce module is always accessible
70
  see https://github.com/presscustomizr/nimble-builder/issues/243
71
  */
72
- .sek-module [data-sek-input-type="detached_tinymce_editor"] {
73
  min-height: 30px
74
  }
75
 
@@ -180,12 +180,13 @@
180
  width: 1.6em!important;
181
  border-left: 1px dotted white;
182
  }
183
- .sek-dyn-ui-icons [data-sek-click-on="pick-content"] {
184
  /*padding-left: 9px;*/
185
  padding-left: 0.42em;
186
  margin-left: 0px;
187
  width: 1.6em!important;
188
  border-left: 1px dotted #fff;
 
189
  }
190
  .sek-dyn-ui-location-type {
191
  position: absolute;
@@ -1508,4 +1509,9 @@ https://github.com/presscustomizr/nimble-builder/issues/317 */
1508
  }
1509
  .nimble-shortcode-notice-in-preview > i {
1510
  color: #00a0d2;
 
 
 
 
 
1511
  }
69
  /* Make sure tinyMce module is always accessible
70
  see https://github.com/presscustomizr/nimble-builder/issues/243
71
  */
72
+ .sek-module [data-sek-input-type="detached_tinymce_editor"], [data-sek-module-type="czr_simple_html_module"] {
73
  min-height: 30px
74
  }
75
 
180
  width: 1.6em!important;
181
  border-left: 1px dotted white;
182
  }
183
+ .sek-dyn-ui-wrapper .sek-dyn-ui-icons [data-sek-click-on="toggle-save-section-ui"] {
184
  /*padding-left: 9px;*/
185
  padding-left: 0.42em;
186
  margin-left: 0px;
187
  width: 1.6em!important;
188
  border-left: 1px dotted #fff;
189
+ color: #ffff00!important;
190
  }
191
  .sek-dyn-ui-location-type {
192
  position: absolute;
1509
  }
1510
  .nimble-shortcode-notice-in-preview > i {
1511
  color: #00a0d2;
1512
+ }
1513
+ @media(max-width:768px) {
1514
+ .nimble-shortcode-notice-in-preview {
1515
+ font-size: 14px;
1516
+ }
1517
  }
assets/czr/sek/css/sek-preview.min.css CHANGED
@@ -1 +1 @@
1
- .sektion-wrapper{min-height:50px;margin-top:21px}.sek-section{position:relative}.sek-column{position:relative}.sek-column-inner.sek-empty-col{min-height:130px;height:100%}.sek-has-modules .sek-column-inner.sek-empty-col{min-height:auto;height:auto}.sek-module{position:relative}.sek-module-inner{position:relative;-webkit-transition:all .25s ease-in-out;-moz-transition:all,.25s ease-in-out;-ms-transition:all,.25s ease-in-out;-o-transition:all,.25s ease-in-out;transition:all .25s ease-in-out}[data-sek-level]:not([data-sek-bg-parallax]){-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.sek-duplicate [data-sek-level],.sek-refresh-stylesheet [data-sek-level],.sek-remove [data-sek-level]{-webkit-transition:inherit!important;-o-transition:inherit!important;transition:inherit!important}.sek-module [data-sek-input-type=detached_tinymce_editor]:hover{outline:1px solid #1d85bb}.sek-module [data-sek-input-type=detached_tinymce_editor]{min-height:30px}.sek-dyn-ui-wrapper{display:none;position:absolute;bottom:0;left:0;top:0;right:0;color:#fff;background:rgba(190,239,255,0);border-radius:4px;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important}.sek-dyn-ui-wrapper,.sek-dyn-ui-wrapper *{text-shadow:none;-webkit-touch-callout:none}.sek-dyn-ui-inner{position:absolute;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease}.sek-dyn-ui-inner.sek-is-expanded{display:block!important;z-index:2000!important}.sek-dyn-left-icons{left:0}.sek-dyn-right-icons{right:0}.sek-dyn-ui-inner:hover{opacity:1}.sek-dyn-ui-wrapper-active{position:relative}.sek-dyn-ui-icons{background:#00a0d2;float:left;min-height:18px;padding:0 4px;text-shadow:none;font-size:1em}.sek-dyn-ui-icons>span{display:block;float:left}.sek-dyn-ui-icons i{color:#fff!important;cursor:pointer;float:left;font-size:1em;height:1.4em;line-height:1.4em;opacity:.8;text-align:center;width:1em}.sek-dyn-left-icons .sek-dyn-ui-icons i,.sek-dyn-right-icons .sek-dyn-ui-icons i{margin:0 .3em}.sek-dyn-ui-icons i:hover{opacity:1}.sek-dyn-ui-icons .fa-arrows-alt{cursor:move}.sek-dyn-ui-icons [data-sek-click-on=remove]{padding-left:.42em;margin-left:0;width:1.6em!important;border-left:1px dotted #fff}.sek-dyn-ui-icons [data-sek-click-on=pick-content]{padding-left:.42em;margin-left:0;width:1.6em!important;border-left:1px dotted #fff}.sek-dyn-ui-location-type{position:absolute;z-index:2;bottom:0;padding:0 .5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;line-height:16px;font-style:normal;letter-spacing:0;text-align:center;text-indent:0;text-shadow:none;text-decoration:none;text-transform:none;right:0;cursor:pointer;opacity:.75}.sek-dyn-ui-location-type:hover{opacity:1}.sek-dyn-ui-location-inner{padding:3px 0}.sek-minimize-ui{float:left;text-align:center;width:16px;padding:3px}.sek-column-dyn-ui,.sek-module-dyn-ui,.sek-section-dyn-ui{font-size:16px}.sek-shrink-my-ui .sek-module-dyn-ui,.sek-shrink-my-ui>.sek-column-dyn-ui,.sek-shrink-my-ui>.sek-section-dyn-ui{font-size:11px}.sek-shrink-my-ui>.sek-column-dyn-ui .sek-ham__toggler-spn-wrapper,.sek-shrink-my-ui>.sek-module-dyn-ui .sek-ham__toggler-spn-wrapper,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-ham__toggler-spn-wrapper{height:8px;width:16px}.sek-shrink-my-ui .sek-module-dyn-ui .sek-ham__toggler-spn-wrapper .line,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-ham__toggler-spn-wrapper .line,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-ham__toggler-spn-wrapper .line{width:15px;height:1px}.sek-shrink-my-ui .sek-module-dyn-ui .sek-dyn-ui-location-type:hover .line,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-dyn-ui-location-type:hover .line,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-dyn-ui-location-type:hover .line{width:16px;-webkit-transform:translate(-1px,0);transform:translate(-1px,0)}.sek-shrink-my-ui .sek-module-dyn-ui .sek-dyn-ui-location-type,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-dyn-ui-location-type,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-dyn-ui-location-type{font-size:10px;line-height:11px}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#000;opacity:.75}.sek-section>.sek-section-dyn-ui .sek-dyn-ui-inner{z-index:1001;display:none}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons:hover{opacity:1}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1000;position:relative;float:left}.sek-section[data-sek-is-nested=true]>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1002}.sek-section-dyn-ui{border:2px dotted #000}.sek-section>.sek-section-dyn-ui .sek-dyn-ui-inner{top:-1px;z-index:1000}.sek-section[data-sek-is-nested=true]>.sek-section-dyn-ui .sek-dyn-ui-inner{top:18px}.sek-section.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,0,0,.8);box-shadow:0 0 2px rgba(0,0,0,.8)}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:left}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-left:.5em}.sek-column>.sek-column-dyn-ui .sek-dyn-ui-inner{bottom:0;z-index:1002;display:none}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#00b846}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1001;bottom:3px}.sek-column>.sek-dyn-ui-wrapper.sek-col-has-nested-section .sek-dyn-ui-location-type{top:0;bottom:auto}.sek-column>.sek-column-dyn-ui.sek-col-has-nested-section .sek-dyn-ui-inner{top:0;bottom:auto;z-index:1002;display:none}.sek-column-dyn-ui{border:2px dotted #00b846;font-size:16px}.sek-column-dyn-ui .dev-level-data{background:#0085ba}.sek-column.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,184,70,.8);box-shadow:0 0 2px rgba(0,184,70,.8)}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:right}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-right:.5em}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-module:hover{cursor:pointer}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-inner{bottom:0;z-index:1006;display:none}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#0085ba}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{left:0;top:auto;bottom:0;right:auto;z-index:1005}.sek-module-dyn-ui{border:2px dotted #0085ba;font-size:16px}.dev-level-data{position:absolute;bottom:0;left:0;background:#000;padding:1px 12px;font-size:11px}.sek-module-dyn-ui .dev-level-data{background:#c68f00;right:0;left:unset}.sek-module.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,133,186,.8);box-shadow:0 0 2px rgba(0,133,186,.8)}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:left}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-left:.5em}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-ham__toggler-spn-wrapper{height:10px;position:relative;width:16px;display:block}.sek-ham__toggler-spn-wrapper .line.line-1{top:10%}.sek-ham__toggler-spn-wrapper .line.line-2{top:60%}.sek-ham__toggler-spn-wrapper .line.line-3{top:110%}.sek-ham__toggler-spn-wrapper .line{background:#fff;display:block;width:16px;height:2px;position:absolute;-webkit-border-radius:5px;-webkit-background-clip:padding-box;-moz-border-radius:5px;-moz-background-clip:padding;border-radius:5px;background-clip:padding-box;-webkit-transition:all ease .2s;-o-transition:all ease .2s;transition:all ease .2s;-webkit-backface-visibility:hidden;backface-visibility:hidden}.sek-dyn-ui-location-type:hover .line{-webkit-transform:translate(-2px,0);transform:translate(-2px,0);width:20px}.sek-wp-content-wrapper{cursor:pointer;position:relative}.sek-wp-content-wrapper:after{content:'';display:block;clear:both}.sek-wp-content-wrapper:hover{outline:2px dashed #036697}.sek-wp-content-wrapper>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{left:auto;right:0;z-index:1005;background:#036697}.sek-wp-content-wrapper .sek-dyn-ui-icons{background-color:#036697}.sek-wp-content-wrapper .sek-dyn-ui-inner{top:0;z-index:1005}.sek-wp-content-dyn-ui{bottom:0;left:0;top:0;right:0;font-size:16px}.sek-empty-location-placeholder{position:relative;min-height:50px;margin:20px 0;border-radius:5px;text-align:center}[data-sek-is-footer-location=true]>.sek-empty-location-placeholder,[data-sek-is-header-location=true]>.sek-empty-location-placeholder{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#eee;line-height:45px;font-size:20px}.sek-header-footer-location-placeholder{opacity:1;-webkit-transition:opacity ease .4s;-o-transition:opacity ease .4s;transition:opacity ease .4s}.sek-header-footer-location-placeholder .sek-nimble-icon img{width:30px;height:30px;position:relative;top:-2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray;display:inline}.sek-empty-location-placeholder:hover .sek-nimble-icon img{-webkit-filter:none;filter:none;-webkit-filter:none;filter:none}.sek-empty-location-placeholder:hover .sek-header-footer-location-placeholder{opacity:.6}.sek-empty-location-placeholder:hover{outline:2px dotted #000}.sek-add-button-wrapper{text-align:center;width:100%;margin:16px 0;position:relative}.sek-no-modules-column{position:relative;height:100%;bottom:0;left:0;right:0;z-index:1}.sek-module-drop-zone-for-first-module{text-align:center;border:1px dotted #ccc;background:#eee;background:rgba(0,0,0,.1);height:100%;min-height:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:-webkit-box;display:flex}.sek-module-drop-zone-for-first-module:hover{background:rgba(0,0,0,.5)}.sek-module-drop-zone-for-first-module:hover [data-sek-click-on=pick-content]{color:#fff}.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{cursor:pointer;width:50px;height:50px;line-height:50px;font-size:22px;color:#535353;border-radius:30px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]:hover{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);color:#fff}.sek-col-10 [data-sek-click-on=pick-content],.sek-col-11 [data-sek-click-on=pick-content],.sek-col-12 [data-sek-click-on=pick-content],.sek-col-14 [data-sek-click-on=pick-content],.sek-col-16 [data-sek-click-on=pick-content],.sek-col-20 [data-sek-click-on=pick-content],.sek-col-25 [data-sek-click-on=pick-content],.sek-col-8 [data-sek-click-on=pick-content],.sek-col-9 [data-sek-click-on=pick-content]{font-size:14px}.sek-sortable-overing>.sek-no-modules-column{display:none}.sek-drop-zone{-webkit-transition:opacity,height,background .4s ease;-o-transition:opacity,height,background .4s ease;transition:opacity,height,background .4s ease;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;text-align:center}.sek-no-drop-possible-message{margin:auto;padding:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#004085;background-color:#cce5ff;border:1px solid #b8daff;border-radius:.25rem;font-size:16px;line-height:1.5em;max-width:80%}.sek-active-drop-zone.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{display:none}.sek-dynamic-drop-zone{opacity:0}.sek-active-drop-zone.sek-dynamic-drop-zone{height:auto!important;min-height:50px}.sek-dragging .sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{display:none}.sek-dragging .sek-drop-zone .sek-injection-instructions{display:none!important}.sek-dragging [data-sek-location=between-sections].sek-dynamic-drop-zone{height:15px}.sek-dragging .sek-dynamic-drop-zone{height:5px;-webkit-transition:all 3s ease;-o-transition:all 3s ease;transition:all 3s ease;border:2px dotted #72777c;background:#ddd;border-radius:5px}.sek-dragging .sek-drop-zone{-webkit-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.sek-dragging [data-sek-location=between-sections],.sek-dragging [data-sek-location=in-empty-location]{background:#ddd;border:2px dotted #72777c}.sek-dragging .sek-drag-is-approaching.sek-dynamic-drop-zone{height:20px}.sek-dragging .sek-drag-is-close.sek-dynamic-drop-zone{height:55px;-webkit-transition:all 1.5s ease;-o-transition:all 1.5s ease;transition:all 1.5s ease}.sek-dragging .sek-drag-is-very-close.sek-dynamic-drop-zone{height:55px;-webkit-transition:all 1.5s ease;-o-transition:all 1.5s ease;transition:all 1.5s ease}.sek-dragging .sek-drag-is-in.sek-dynamic-drop-zone{height:100px;-webkit-transition:all .75s ease;-o-transition:all .75s ease;transition:all .75s ease}.sek-dragging .sek-feed-me-seymore{-moz-box-shadow:inset 0 0 30px #000;-webkit-box-shadow:inset 0 0 30px #000;box-shadow:inset 0 0 30px #000}.sek-dragging .sek-module-drop-zone-for-first-module,.sek-dragging [data-sek-location=between-modules-and-nested-sections]{background:#dcefff;background:rgba(220,239,255,.84);border:2px dotted #1d85bb;border-radius:5px}.sek-dragging-element .sek-column-inner,.sek-dragging-element .sek-sektion-inner{min-height:50px}.sek-module-placeholder-content{text-align:center;text-transform:uppercase}.sek-module-placeholder-content>p{padding:35px 10px;font-size:16px!important}.sek-add-content-button{position:absolute;top:0;width:100%;z-index:1001;display:none}.sek-empty-location-placeholder .sek-add-content-button{top:50%}.sek-add-content-button.is_last{bottom:0;top:unset}.sek-add-content-button-wrapper{position:relative;top:-5px;width:100%;border:1px dashed #ccc;height:10px;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:.35s ease-in-out;-o-transition:.35s ease-in-out;transition:.35s ease-in-out}.is_last .sek-add-content-button-wrapper{top:10px}.sek-mouse-is-close .sek-add-content-button-wrapper{border:1px dashed #333}.sek-mouse-is-close .sek-add-content-button-wrapper .sek-add-content-btn{opacity:1}.sek-add-content-button-wrapper .sek-add-content-btn{text-decoration:none;margin:auto;padding:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:1000px;width:18px;height:18px;font-size:13px;line-height:18px;background-color:#000;color:#fff;border:none;outline:0;overflow:hidden;-webkit-transition:width .5s ease,background-color .5s ease;-o-transition:width .5s ease,background-color .5s ease;transition:width .5s ease,background-color .5s ease;font-weight:400;font-style:normal;cursor:pointer;position:absolute;left:calc(50% - 12px);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;opacity:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.sek-add-content-btn.sek-mouse-is-close{z-index:10000}.sek-add-content-btn:hover{width:26px;height:26px;--sek-add-content-btn-width:65px;width:calc(var(--sek-add-content-btn-width) + 70px);background-color:#000;opacity:1;left:calc(50% - var(--sek-add-content-btn-width));-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2)}.sek-click-on-button-icon{line-height:18px;width:18px}.sek-add-content-btn:hover .sek-click-on-button-icon{padding-left:6px;font-size:13px;line-height:26px}.action-button-text{visibility:hidden;display:none;white-space:nowrap;padding-left:5px;padding-bottom:2px;text-transform:none;letter-spacing:0;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.sek-add-content-btn:not(.disabled):hover .action-button-text{visibility:visible;display:inline-block}.sortable-placeholder{max-width:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background:#00a2d7;border-radius:4px;color:#fff!important;display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;-o-text-overflow:ellipsis;text-overflow:ellipsis;text-shadow:none;text-transform:none;white-space:nowrap;overflow:hidden;z-index:10}.in-new-sektion.sortable-placeholder{background:#72777c}.sek-moving-section [data-sek-level=location]{background:#ddd;border:2px dotted #72777c;border-radius:5px}.sek-moving-section .sek-empty-location-placeholder{display:none}.sek-sortable-section-over .sortable-placeholder{background:#72777c}.ui-resizable-helper{border:2px dotted #00b846}[data-sek-level=column] .ui-resizable-e{cursor:e-resize;width:7px;right:-4px;font-size:.55em}[data-sek-level=column] .ui-resizable-e i{background:#00b846;border-radius:12px;color:#fff;padding:2px;width:auto;display:none}[data-sek-level=section]:hover .ui-resizable-e{background:#d5d5d573;background:rgba(213,213,213,.42)}[data-sek-level=section]:hover .ui-resizable-e i{display:block}[data-sek-level=column] .ui-resizable-handle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-blur,.sek-refreshing{-webkit-filter:blur(3px);filter:blur(3px);-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out}.sek-level-clone{position:absolute!important;z-index:10000}.sek-level-clone::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;opacity:.5}#nimble-full-page-loader-wrapper{height:100vh;position:absolute;text-align:center;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;top:0;background:rgba(0,0,0,.8);padding:2px;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;display:none}@-webkit-keyframes sek-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}@keyframes sek-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}.sek-css-loader{display:none;width:50px;height:50px;position:absolute;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);top:50%;left:50%}.csstransforms3d .sek-css-loader{display:block}.sek-mr-loader>div:nth-child(0){-webkit-animation-delay:-.8s;animation-delay:-.8s}.sek-mr-loader>div:nth-child(1){-webkit-animation-delay:-.6s;animation-delay:-.6s}.sek-mr-loader>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.sek-mr-loader>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}.sek-mr-loader>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;border:2px solid #777;-webkit-animation:sek-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8);animation:sek-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8)}.white-loader>.sek-mr-loader>div{border:2px solid #fff}.nimble-unclickable{cursor:not-allowed!important}.nimble-shift-clickable{cursor:alias!important}[data-sek-is-global-location=true] .sek-empty-location-placeholder:hover{outline:2px dotted red}[data-sek-is-global-location=true] .sek-add-content-button-wrapper{border:1px dashed #ff7878}[data-sek-is-global-location=true] .sek-mouse-is-close .sek-add-content-button-wrapper{border:1px dashed red}[data-sek-is-global-location=true] .sek-add-content-button-wrapper .sek-add-content-btn{background-color:red}[data-sek-is-global-location=true] .sek-module-drop-zone-for-first-module{border:1px dotted red}[data-sek-is-global-location=true] .sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,[data-sek-is-global-location=true] .sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:red;opacity:.75}[data-sek-is-footer-location=true]{margin-bottom:40px}[data-sek-is-header-location=true]{margin-top:0}@keyframes sek-target-highlight{0%{background-color:#0085ba}50%{background-color:#00a0d2}100%{background-color:#0085ba}}.sek-target-for-double-click-insertion .sek-drop-zone{animation:sek-target-highlight 3s infinite;background-color:#eee}.sek-injection-instructions{display:none;font-size:13px;line-height:1.5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;color:#fff;padding:4px;overflow:hidden;max-width:80%;max-height:100%;min-height:50px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute}.sek-shrink-my-ui .sek-injection-instructions{font-size:10px}.sek-target-for-double-click-insertion .sek-drop-zone .sek-injection-instructions{display:-webkit-box;display:-ms-flexbox;display:flex}.sek-target-for-double-click-insertion .sek-drop-zone [data-sek-click-on=pick-content]{visibility:hidden}.sek-tiny-mce-module-placeholder-text{padding:10px;border:1px dotted;background:rgba(0,0,0,.35);color:#fff;font-size:1rem;line-height:1.5rem}.sek-module-placeholder.sek-post-grid{font-size:150px}[data-sek-module-type] .sek-mod-preview-placeholder{height:150px;background:#eee}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text{font-size:25px;position:relative;width:100%;height:100%;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:flex-end;align-items:flex-end}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text>p{padding:10px;position:relative;margin:0;color:#767676}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text::before{content:'';left:0;right:0;bottom:0;top:0;position:absolute;background-color:#fff;opacity:.6}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(../fonts/material-icons/MaterialIcons-Regular.eot);src:local('Material Icons'),local('MaterialIcons-Regular'),url(../fonts/material-icons/MaterialIcons-Regular.woff2) format('woff2'),url(../fonts/material-icons/MaterialIcons-Regular.woff) format('woff'),url(../fonts/material-icons/MaterialIcons-Regular.ttf) format('truetype')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}.sek-module-placeholder{text-align:center}.sek-module-placeholder .material-icons{font-size:inherit;color:#cfcfcf}.nimble-shortcode-notice-in-preview{font-size:16px;line-height:1.5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",sans-serif;padding:10px 20px;margin:5px 0 15px;position:relative;background:#fff;border:1px solid #ccd0d4;border-left-color:#00a0d2;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}.nimble-shortcode-notice-in-preview>i{color:#00a0d2}
1
+ .sektion-wrapper{min-height:50px;margin-top:21px}.sek-section{position:relative}.sek-column{position:relative}.sek-column-inner.sek-empty-col{min-height:130px;height:100%}.sek-has-modules .sek-column-inner.sek-empty-col{min-height:auto;height:auto}.sek-module{position:relative}.sek-module-inner{position:relative;-webkit-transition:all .25s ease-in-out;-moz-transition:all,.25s ease-in-out;-ms-transition:all,.25s ease-in-out;-o-transition:all,.25s ease-in-out;transition:all .25s ease-in-out}[data-sek-level]:not([data-sek-bg-parallax]){-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.sek-duplicate [data-sek-level],.sek-refresh-stylesheet [data-sek-level],.sek-remove [data-sek-level]{-webkit-transition:inherit!important;-o-transition:inherit!important;transition:inherit!important}.sek-module [data-sek-input-type=detached_tinymce_editor]:hover{outline:1px solid #1d85bb}.sek-module [data-sek-input-type=detached_tinymce_editor],[data-sek-module-type=czr_simple_html_module]{min-height:30px}.sek-dyn-ui-wrapper{display:none;position:absolute;bottom:0;left:0;top:0;right:0;color:#fff;background:rgba(190,239,255,0);border-radius:4px;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important}.sek-dyn-ui-wrapper,.sek-dyn-ui-wrapper *{text-shadow:none;-webkit-touch-callout:none}.sek-dyn-ui-inner{position:absolute;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease}.sek-dyn-ui-inner.sek-is-expanded{display:block!important;z-index:2000!important}.sek-dyn-left-icons{left:0}.sek-dyn-right-icons{right:0}.sek-dyn-ui-inner:hover{opacity:1}.sek-dyn-ui-wrapper-active{position:relative}.sek-dyn-ui-icons{background:#00a0d2;float:left;min-height:18px;padding:0 4px;text-shadow:none;font-size:1em}.sek-dyn-ui-icons>span{display:block;float:left}.sek-dyn-ui-icons i{color:#fff!important;cursor:pointer;float:left;font-size:1em;height:1.4em;line-height:1.4em;opacity:.8;text-align:center;width:1em}.sek-dyn-left-icons .sek-dyn-ui-icons i,.sek-dyn-right-icons .sek-dyn-ui-icons i{margin:0 .3em}.sek-dyn-ui-icons i:hover{opacity:1}.sek-dyn-ui-icons .fa-arrows-alt{cursor:move}.sek-dyn-ui-icons [data-sek-click-on=remove]{padding-left:.42em;margin-left:0;width:1.6em!important;border-left:1px dotted #fff}.sek-dyn-ui-wrapper .sek-dyn-ui-icons [data-sek-click-on=toggle-save-section-ui]{padding-left:.42em;margin-left:0;width:1.6em!important;border-left:1px dotted #fff;color:#ff0!important}.sek-dyn-ui-location-type{position:absolute;z-index:2;bottom:0;padding:0 .5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:11px;line-height:16px;font-style:normal;letter-spacing:0;text-align:center;text-indent:0;text-shadow:none;text-decoration:none;text-transform:none;right:0;cursor:pointer;opacity:.75}.sek-dyn-ui-location-type:hover{opacity:1}.sek-dyn-ui-location-inner{padding:3px 0}.sek-minimize-ui{float:left;text-align:center;width:16px;padding:3px}.sek-column-dyn-ui,.sek-module-dyn-ui,.sek-section-dyn-ui{font-size:16px}.sek-shrink-my-ui .sek-module-dyn-ui,.sek-shrink-my-ui>.sek-column-dyn-ui,.sek-shrink-my-ui>.sek-section-dyn-ui{font-size:11px}.sek-shrink-my-ui>.sek-column-dyn-ui .sek-ham__toggler-spn-wrapper,.sek-shrink-my-ui>.sek-module-dyn-ui .sek-ham__toggler-spn-wrapper,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-ham__toggler-spn-wrapper{height:8px;width:16px}.sek-shrink-my-ui .sek-module-dyn-ui .sek-ham__toggler-spn-wrapper .line,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-ham__toggler-spn-wrapper .line,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-ham__toggler-spn-wrapper .line{width:15px;height:1px}.sek-shrink-my-ui .sek-module-dyn-ui .sek-dyn-ui-location-type:hover .line,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-dyn-ui-location-type:hover .line,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-dyn-ui-location-type:hover .line{width:16px;-webkit-transform:translate(-1px,0);transform:translate(-1px,0)}.sek-shrink-my-ui .sek-module-dyn-ui .sek-dyn-ui-location-type,.sek-shrink-my-ui>.sek-column-dyn-ui .sek-dyn-ui-location-type,.sek-shrink-my-ui>.sek-section-dyn-ui .sek-dyn-ui-location-type{font-size:10px;line-height:11px}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#000;opacity:.75}.sek-section>.sek-section-dyn-ui .sek-dyn-ui-inner{z-index:1001;display:none}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons:hover{opacity:1}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1000;position:relative;float:left}.sek-section[data-sek-is-nested=true]>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1002}.sek-section-dyn-ui{border:2px dotted #000}.sek-section>.sek-section-dyn-ui .sek-dyn-ui-inner{top:-1px;z-index:1000}.sek-section[data-sek-is-nested=true]>.sek-section-dyn-ui .sek-dyn-ui-inner{top:18px}.sek-section.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,0,0,.8);box-shadow:0 0 2px rgba(0,0,0,.8)}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:left}.sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-left:.5em}.sek-column>.sek-column-dyn-ui .sek-dyn-ui-inner{bottom:0;z-index:1002;display:none}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#00b846}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{z-index:1001;bottom:3px}.sek-column>.sek-dyn-ui-wrapper.sek-col-has-nested-section .sek-dyn-ui-location-type{top:0;bottom:auto}.sek-column>.sek-column-dyn-ui.sek-col-has-nested-section .sek-dyn-ui-inner{top:0;bottom:auto;z-index:1002;display:none}.sek-column-dyn-ui{border:2px dotted #00b846;font-size:16px}.sek-column-dyn-ui .dev-level-data{background:#0085ba}.sek-column.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,184,70,.8);box-shadow:0 0 2px rgba(0,184,70,.8)}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:right}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-right:.5em}.sek-column>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-module:hover{cursor:pointer}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-inner{bottom:0;z-index:1006;display:none}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:#0085ba}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{left:0;top:auto;bottom:0;right:auto;z-index:1005}.sek-module-dyn-ui{border:2px dotted #0085ba;font-size:16px}.dev-level-data{position:absolute;bottom:0;left:0;background:#000;padding:1px 12px;font-size:11px}.sek-module-dyn-ui .dev-level-data{background:#c68f00;right:0;left:unset}.sek-module.sek-highlight-active-ui{-webkit-box-shadow:0 0 2px rgba(0,133,186,.8);box-shadow:0 0 2px rgba(0,133,186,.8)}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-hamb-menu-wrapper,.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{float:left}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-level-type{padding-left:.5em}.sek-module>.sek-dyn-ui-wrapper .sek-dyn-ui-location-inner{float:left}.sek-ham__toggler-spn-wrapper{height:10px;position:relative;width:16px;display:block}.sek-ham__toggler-spn-wrapper .line.line-1{top:10%}.sek-ham__toggler-spn-wrapper .line.line-2{top:60%}.sek-ham__toggler-spn-wrapper .line.line-3{top:110%}.sek-ham__toggler-spn-wrapper .line{background:#fff;display:block;width:16px;height:2px;position:absolute;-webkit-border-radius:5px;-webkit-background-clip:padding-box;-moz-border-radius:5px;-moz-background-clip:padding;border-radius:5px;background-clip:padding-box;-webkit-transition:all ease .2s;-o-transition:all ease .2s;transition:all ease .2s;-webkit-backface-visibility:hidden;backface-visibility:hidden}.sek-dyn-ui-location-type:hover .line{-webkit-transform:translate(-2px,0);transform:translate(-2px,0);width:20px}.sek-wp-content-wrapper{cursor:pointer;position:relative}.sek-wp-content-wrapper:after{content:'';display:block;clear:both}.sek-wp-content-wrapper:hover{outline:2px dashed #036697}.sek-wp-content-wrapper>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{left:auto;right:0;z-index:1005;background:#036697}.sek-wp-content-wrapper .sek-dyn-ui-icons{background-color:#036697}.sek-wp-content-wrapper .sek-dyn-ui-inner{top:0;z-index:1005}.sek-wp-content-dyn-ui{bottom:0;left:0;top:0;right:0;font-size:16px}.sek-empty-location-placeholder{position:relative;min-height:50px;margin:20px 0;border-radius:5px;text-align:center}[data-sek-is-footer-location=true]>.sek-empty-location-placeholder,[data-sek-is-header-location=true]>.sek-empty-location-placeholder{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#eee;line-height:45px;font-size:20px}.sek-header-footer-location-placeholder{opacity:1;-webkit-transition:opacity ease .4s;-o-transition:opacity ease .4s;transition:opacity ease .4s}.sek-header-footer-location-placeholder .sek-nimble-icon img{width:30px;height:30px;position:relative;top:-2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray;display:inline}.sek-empty-location-placeholder:hover .sek-nimble-icon img{-webkit-filter:none;filter:none;-webkit-filter:none;filter:none}.sek-empty-location-placeholder:hover .sek-header-footer-location-placeholder{opacity:.6}.sek-empty-location-placeholder:hover{outline:2px dotted #000}.sek-add-button-wrapper{text-align:center;width:100%;margin:16px 0;position:relative}.sek-no-modules-column{position:relative;height:100%;bottom:0;left:0;right:0;z-index:1}.sek-module-drop-zone-for-first-module{text-align:center;border:1px dotted #ccc;background:#eee;background:rgba(0,0,0,.1);height:100%;min-height:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:-webkit-box;display:flex}.sek-module-drop-zone-for-first-module:hover{background:rgba(0,0,0,.5)}.sek-module-drop-zone-for-first-module:hover [data-sek-click-on=pick-content]{color:#fff}.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{cursor:pointer;width:50px;height:50px;line-height:50px;font-size:22px;color:#535353;border-radius:30px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]:hover{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2);color:#fff}.sek-col-10 [data-sek-click-on=pick-content],.sek-col-11 [data-sek-click-on=pick-content],.sek-col-12 [data-sek-click-on=pick-content],.sek-col-14 [data-sek-click-on=pick-content],.sek-col-16 [data-sek-click-on=pick-content],.sek-col-20 [data-sek-click-on=pick-content],.sek-col-25 [data-sek-click-on=pick-content],.sek-col-8 [data-sek-click-on=pick-content],.sek-col-9 [data-sek-click-on=pick-content]{font-size:14px}.sek-sortable-overing>.sek-no-modules-column{display:none}.sek-drop-zone{-webkit-transition:opacity,height,background .4s ease;-o-transition:opacity,height,background .4s ease;transition:opacity,height,background .4s ease;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;text-align:center}.sek-no-drop-possible-message{margin:auto;padding:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#004085;background-color:#cce5ff;border:1px solid #b8daff;border-radius:.25rem;font-size:16px;line-height:1.5em;max-width:80%}.sek-active-drop-zone.sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{display:none}.sek-dynamic-drop-zone{opacity:0}.sek-active-drop-zone.sek-dynamic-drop-zone{height:auto!important;min-height:50px}.sek-dragging .sek-module-drop-zone-for-first-module [data-sek-click-on=pick-content]{display:none}.sek-dragging .sek-drop-zone .sek-injection-instructions{display:none!important}.sek-dragging [data-sek-location=between-sections].sek-dynamic-drop-zone{height:15px}.sek-dragging .sek-dynamic-drop-zone{height:5px;-webkit-transition:all 3s ease;-o-transition:all 3s ease;transition:all 3s ease;border:2px dotted #72777c;background:#ddd;border-radius:5px}.sek-dragging .sek-drop-zone{-webkit-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.sek-dragging [data-sek-location=between-sections],.sek-dragging [data-sek-location=in-empty-location]{background:#ddd;border:2px dotted #72777c}.sek-dragging .sek-drag-is-approaching.sek-dynamic-drop-zone{height:20px}.sek-dragging .sek-drag-is-close.sek-dynamic-drop-zone{height:55px;-webkit-transition:all 1.5s ease;-o-transition:all 1.5s ease;transition:all 1.5s ease}.sek-dragging .sek-drag-is-very-close.sek-dynamic-drop-zone{height:55px;-webkit-transition:all 1.5s ease;-o-transition:all 1.5s ease;transition:all 1.5s ease}.sek-dragging .sek-drag-is-in.sek-dynamic-drop-zone{height:100px;-webkit-transition:all .75s ease;-o-transition:all .75s ease;transition:all .75s ease}.sek-dragging .sek-feed-me-seymore{-moz-box-shadow:inset 0 0 30px #000;-webkit-box-shadow:inset 0 0 30px #000;box-shadow:inset 0 0 30px #000}.sek-dragging .sek-module-drop-zone-for-first-module,.sek-dragging [data-sek-location=between-modules-and-nested-sections]{background:#dcefff;background:rgba(220,239,255,.84);border:2px dotted #1d85bb;border-radius:5px}.sek-dragging-element .sek-column-inner,.sek-dragging-element .sek-sektion-inner{min-height:50px}.sek-module-placeholder-content{text-align:center;text-transform:uppercase}.sek-module-placeholder-content>p{padding:35px 10px;font-size:16px!important}.sek-add-content-button{position:absolute;top:0;width:100%;z-index:1001;display:none}.sek-empty-location-placeholder .sek-add-content-button{top:50%}.sek-add-content-button.is_last{bottom:0;top:unset}.sek-add-content-button-wrapper{position:relative;top:-5px;width:100%;border:1px dashed #ccc;height:10px;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:.35s ease-in-out;-o-transition:.35s ease-in-out;transition:.35s ease-in-out}.is_last .sek-add-content-button-wrapper{top:10px}.sek-mouse-is-close .sek-add-content-button-wrapper{border:1px dashed #333}.sek-mouse-is-close .sek-add-content-button-wrapper .sek-add-content-btn{opacity:1}.sek-add-content-button-wrapper .sek-add-content-btn{text-decoration:none;margin:auto;padding:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:1000px;width:18px;height:18px;font-size:13px;line-height:18px;background-color:#000;color:#fff;border:none;outline:0;overflow:hidden;-webkit-transition:width .5s ease,background-color .5s ease;-o-transition:width .5s ease,background-color .5s ease;transition:width .5s ease,background-color .5s ease;font-weight:400;font-style:normal;cursor:pointer;position:absolute;left:calc(50% - 12px);-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;opacity:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.sek-add-content-btn.sek-mouse-is-close{z-index:10000}.sek-add-content-btn:hover{width:26px;height:26px;--sek-add-content-btn-width:65px;width:calc(var(--sek-add-content-btn-width) + 70px);background-color:#000;opacity:1;left:calc(50% - var(--sek-add-content-btn-width));-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2)}.sek-click-on-button-icon{line-height:18px;width:18px}.sek-add-content-btn:hover .sek-click-on-button-icon{padding-left:6px;font-size:13px;line-height:26px}.action-button-text{visibility:hidden;display:none;white-space:nowrap;padding-left:5px;padding-bottom:2px;text-transform:none;letter-spacing:0;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.sek-add-content-btn:not(.disabled):hover .action-button-text{visibility:visible;display:inline-block}.sortable-placeholder{max-width:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background:#00a2d7;border-radius:4px;color:#fff!important;display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:400;font-size:12px;letter-spacing:1px;line-height:14px;margin:10px;padding:6px 8px 5px;position:relative;text-align:left;-o-text-overflow:ellipsis;text-overflow:ellipsis;text-shadow:none;text-transform:none;white-space:nowrap;overflow:hidden;z-index:10}.in-new-sektion.sortable-placeholder{background:#72777c}.sek-moving-section [data-sek-level=location]{background:#ddd;border:2px dotted #72777c;border-radius:5px}.sek-moving-section .sek-empty-location-placeholder{display:none}.sek-sortable-section-over .sortable-placeholder{background:#72777c}.ui-resizable-helper{border:2px dotted #00b846}[data-sek-level=column] .ui-resizable-e{cursor:e-resize;width:7px;right:-4px;font-size:.55em}[data-sek-level=column] .ui-resizable-e i{background:#00b846;border-radius:12px;color:#fff;padding:2px;width:auto;display:none}[data-sek-level=section]:hover .ui-resizable-e{background:#d5d5d573;background:rgba(213,213,213,.42)}[data-sek-level=section]:hover .ui-resizable-e i{display:block}[data-sek-level=column] .ui-resizable-handle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-blur,.sek-refreshing{-webkit-filter:blur(3px);filter:blur(3px);-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out}.sek-level-clone{position:absolute!important;z-index:10000}.sek-level-clone::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;opacity:.5}#nimble-full-page-loader-wrapper{height:100vh;position:absolute;text-align:center;right:0;left:0;z-index:20;color:#fff;display:block;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;opacity:.3;top:0;background:rgba(0,0,0,.8);padding:2px;z-index:99999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;flex:0 0 100%;max-width:100%;display:none}@-webkit-keyframes sek-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}@keyframes sek-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}.sek-css-loader{display:none;width:50px;height:50px;position:absolute;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);top:50%;left:50%}.csstransforms3d .sek-css-loader{display:block}.sek-mr-loader>div:nth-child(0){-webkit-animation-delay:-.8s;animation-delay:-.8s}.sek-mr-loader>div:nth-child(1){-webkit-animation-delay:-.6s;animation-delay:-.6s}.sek-mr-loader>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.sek-mr-loader>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}.sek-mr-loader>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;border:2px solid #777;-webkit-animation:sek-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8);animation:sek-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8)}.white-loader>.sek-mr-loader>div{border:2px solid #fff}.nimble-unclickable{cursor:not-allowed!important}.nimble-shift-clickable{cursor:alias!important}[data-sek-is-global-location=true] .sek-empty-location-placeholder:hover{outline:2px dotted red}[data-sek-is-global-location=true] .sek-add-content-button-wrapper{border:1px dashed #ff7878}[data-sek-is-global-location=true] .sek-mouse-is-close .sek-add-content-button-wrapper{border:1px dashed red}[data-sek-is-global-location=true] .sek-add-content-button-wrapper .sek-add-content-btn{background-color:red}[data-sek-is-global-location=true] .sek-module-drop-zone-for-first-module{border:1px dotted red}[data-sek-is-global-location=true] .sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-icons,[data-sek-is-global-location=true] .sek-section>.sek-dyn-ui-wrapper .sek-dyn-ui-location-type{background:red;opacity:.75}[data-sek-is-footer-location=true]{margin-bottom:40px}[data-sek-is-header-location=true]{margin-top:0}@keyframes sek-target-highlight{0%{background-color:#0085ba}50%{background-color:#00a0d2}100%{background-color:#0085ba}}.sek-target-for-double-click-insertion .sek-drop-zone{animation:sek-target-highlight 3s infinite;background-color:#eee}.sek-injection-instructions{display:none;font-size:13px;line-height:1.5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;color:#fff;padding:4px;overflow:hidden;max-width:80%;max-height:100%;min-height:50px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute}.sek-shrink-my-ui .sek-injection-instructions{font-size:10px}.sek-target-for-double-click-insertion .sek-drop-zone .sek-injection-instructions{display:-webkit-box;display:-ms-flexbox;display:flex}.sek-target-for-double-click-insertion .sek-drop-zone [data-sek-click-on=pick-content]{visibility:hidden}.sek-tiny-mce-module-placeholder-text{padding:10px;border:1px dotted;background:rgba(0,0,0,.35);color:#fff;font-size:1rem;line-height:1.5rem}.sek-module-placeholder.sek-post-grid{font-size:150px}[data-sek-module-type] .sek-mod-preview-placeholder{height:150px;background:#eee}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text{font-size:25px;position:relative;width:100%;height:100%;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:flex-end;align-items:flex-end}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text>p{padding:10px;position:relative;margin:0;color:#767676}[data-sek-module-type] .sek-mod-preview-placeholder .sek-preview-ph-text::before{content:'';left:0;right:0;bottom:0;top:0;position:absolute;background-color:#fff;opacity:.6}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(../fonts/material-icons/MaterialIcons-Regular.eot);src:local('Material Icons'),local('MaterialIcons-Regular'),url(../fonts/material-icons/MaterialIcons-Regular.woff2) format('woff2'),url(../fonts/material-icons/MaterialIcons-Regular.woff) format('woff'),url(../fonts/material-icons/MaterialIcons-Regular.ttf) format('truetype')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}.sek-module-placeholder{text-align:center}.sek-module-placeholder .material-icons{font-size:inherit;color:#cfcfcf}.nimble-shortcode-notice-in-preview{font-size:16px;line-height:1.5em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",sans-serif;padding:10px 20px;margin:5px 0 15px;position:relative;background:#fff;border:1px solid #ccd0d4;border-left-color:#00a0d2;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}.nimble-shortcode-notice-in-preview>i{color:#00a0d2}@media(max-width:768px){.nimble-shortcode-notice-in-preview{font-size:14px}}
assets/czr/sek/js/ccat-sek-control.js CHANGED
@@ -283,10 +283,15 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
283
  // this is used to know what ui elements are currently being displayed
284
  self.registered = new api.Value([]);
285
 
286
-
287
- api.bind( 'ready', function() {
288
  self.doSektionThinksOnApiReady();
289
- });//api.bind( 'ready' )
 
 
 
 
 
290
 
291
  // Add the skope id on save
292
  // Uses a WP core hook to filter the query on a customize_save action
@@ -296,7 +301,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
296
  // Example of use of $_POST['local_skope_id'] => @see sek_get_parent_level_model()
297
  // Helps fixing : https://github.com/presscustomizr/nimble-builder/issues/242, for which sek_add_css_rules_for_spacing() couldn't be set for columns margins
298
  api.bind( 'save-request-params', function( query ) {
299
- $.extend( query, { local_skope_id : api.czr_skopeBase.getSkopeProperty( 'skope_id' ) } );
 
 
 
300
  });
301
 
302
 
@@ -387,9 +395,37 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
387
  self.generateUI({ action : 'sek-generate-global-options-ui'});
388
  _section_.nimbleGlobalOptionGenerated = true;
389
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
 
391
  // This event has been introduced when implementing https://github.com/presscustomizr/nimble-builder/issues/304
392
  api.trigger('nimble-ready-for-current-skope');
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  };//doSkopeDependantActions()
394
 
395
  // populate the setting ids now if skopes are set
@@ -422,9 +458,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
422
  // Always set the previewed device back to desktop on ui change
423
  // event 'sek-ui-removed' id triggered when cleaning the registered ui controls
424
  // @see ::cleanRegistered()
425
- self.bind( 'sek-ui-removed', function() {
426
- api.previewedDevice( 'desktop' );
427
- });
 
428
 
429
  // Synchronize api.previewedDevice with the currently rendered ui
430
  // ensure that the selected device tab of the spacing module is the one being previewed
@@ -518,9 +555,8 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
518
  self.setupTopBar();//@see specific dev file
519
 
520
  // SAVE SECTION UI
521
- if ( sektionsLocalizedData.isSavedSectionEnabled ) {
522
- self.setupSaveSectionUI();
523
- }
524
 
525
  // SAVE TEMPLATE UI
526
  // April 2020 : introduced for https://github.com/presscustomizr/nimble-builder/issues/655
@@ -1304,9 +1340,12 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1304
  self.levelTreeExpanded.bind( function(expanded) {
1305
  self.cachedElements.$body.toggleClass( 'sek-level-tree-expanded', expanded );
1306
  if ( expanded ) {
1307
- // Close template gallery, template saver
1308
  self.templateGalleryExpanded(false);
1309
  self.tmplDialogVisible(false);
 
 
 
1310
 
1311
  // Set the level tree now
1312
  self.setLevelTreeValue();
@@ -1628,15 +1667,22 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1628
  // an svg file like Nimble__divider_icon.svg => in this case we build and return the full url
1629
  // or a font_icon like '<i class="fab fa-wordpress-simple"></i>'
1630
  getTreeModuleIcon : function( modType ) {
1631
- var _icon = {};
1632
  _.each( sektionsLocalizedData.moduleCollection, function( modData ) {
1633
  if ( !_.isEmpty( _icon ) )
1634
  return;
1635
  if ( modType === modData['content-id'] ) {
1636
- _icon = {
1637
- svg : modData.icon ? sektionsLocalizedData.moduleIconPath + modData.icon : '',
1638
- font : modData.font_icon ? modData.font_icon : ''
1639
- };
 
 
 
 
 
 
 
1640
  }
1641
  });
1642
  if ( !_.isEmpty( _icon.svg ) ) {
@@ -1660,20 +1706,616 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1660
  });//$.extend()
1661
  })( wp.customize, jQuery );
1662
  //global sektionsLocalizedData
1663
- // introduced in april 2020 for https://github.com/presscustomizr/nimble-builder/issues/655
 
1664
  var CZRSeksPrototype = CZRSeksPrototype || {};
1665
  (function ( api, $ ) {
1666
  $.extend( CZRSeksPrototype, {
1667
- // SAVE TMPL DIALOG BLOCK
1668
  // fired in ::initialize()
1669
- setupSaveTmplUI : function() {
1670
  var self = this;
1671
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1672
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1673
 
1674
 
1675
- // Declare api values and schedule reactions
1676
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1677
  self.tmplDialogVisible = new api.Value( false );// Hidden by default
1678
 
1679
  if ( !sektionsLocalizedData.isTemplateSaveEnabled ) {
@@ -1685,6 +2327,9 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1685
  // close level tree
1686
  self.templateGalleryExpanded(false);
1687
  self.levelTreeExpanded(false);
 
 
 
1688
  }
1689
  self.toggleSaveTmplUI(visible);
1690
  });
@@ -1696,7 +2341,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1696
  // - set the select value to default 'none'
1697
  self.allSavedTemplates.bind( function( tmpl_collection ) {
1698
  if ( !_.isObject(tmpl_collection) ) {
1699
- api.errare('error => tmpl collection should be an object');
1700
  return;
1701
  }
1702
  tmpl_collection = _.isEmpty(tmpl_collection) ? {} : tmpl_collection;
@@ -1812,7 +2457,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1812
  ///////////////////////////////////////////////
1813
  ///// DOM EVENTS
1814
  // Fired once, on first rendering
1815
- scheduleDOMEvents : function() {
1816
  var self = this, $tmplDialogWrapper = $('#nimble-top-tmpl-save-ui');
1817
  if ( $tmplDialogWrapper.data('nimble-tmpl-dom-events-scheduled') )
1818
  return;
@@ -2066,7 +2711,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
2066
  var self = this,
2067
  _renderAndSetup = function() {
2068
  $.when( self.renderTmplUI({}) ).done( function( $_el ) {
2069
- self.scheduleDOMEvents();
2070
  self.saveUIContainer = $_el;
2071
  //display
2072
  _.delay( function() {
@@ -2799,6 +3444,9 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
2799
  // Note : if the target location is empty ( is_first_section is true ), nothing is send to the preview when updating the api setting, and we refresh the location level. => this makes sure that we removes the placeholder printed in the previously empty location
2800
  'sek-add-section' : {
2801
  callback : function( params ) {
 
 
 
2802
  sendToPreview = ! _.isUndefined( params.send_to_preview ) ? params.send_to_preview : true;//<= when the level is refreshed when complete, we don't need to send to preview.
2803
  uiParams = {};
2804
  apiParams = {
@@ -3364,13 +4012,15 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3364
 
3365
 
3366
  // GENERATE UI ELEMENTS
 
 
 
3367
  'sek-pick-content' : function( params ) {
3368
  params = _.isObject(params) ? params : {};
3369
  // Set the active content type here
3370
  // This is used in api.czrInputMap.content_type_switcher()
3371
  // Fixes issue https://github.com/presscustomizr/nimble-builder/issues/248
3372
  api.czr_sektions.currentContentPickerType = api.czr_sektions.currentContentPickerType || new api.Value();
3373
- api.czr_sektions.currentContentPickerType( params.content_type || 'module' );
3374
 
3375
  // Set the last clicked target element id now => will be used for double click insertion of module / section
3376
  if ( _.isObject( params ) && params.id ) {
@@ -3405,6 +4055,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3405
  }
3406
  uiParams = {
3407
  action : 'sek-generate-level-options-ui',
 
3408
  level : params.level,
3409
  id : params.id,
3410
  in_sektion : params.in_sektion,
@@ -3501,9 +4152,11 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3501
  });
3502
  },
3503
 
 
3504
  'sek-toggle-save-section-ui' : function( params ) {
3505
  sendToPreview = false;
3506
- self.saveSectionUIVisible( true, params );
 
3507
  return $.Deferred(function(_dfd_) {
3508
  apiParams = {
3509
  // action : 'sek-refresh-level',
@@ -3738,6 +4391,8 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3738
  api.errare( '::generateUI() => error', er );
3739
  dfd = $.Deferred();
3740
  }
 
 
3741
  break;
3742
 
3743
  // Fired in ::initialize()
@@ -3804,7 +4459,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3804
  // 1) mono-items and multi-items module => input change
3805
  // 2) crud multi item => item added or removed => in this case some args are not passed, like params.settingParams.args.inputRegistrationParams
3806
  updateAPISettingAndExecutePreviewActions : function( params ) {
3807
- if ( _.isEmpty( params.settingParams ) || ! _.has( params.settingParams, 'to' ) ) {
3808
  api.errare( 'updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated', params );
3809
  return;
3810
  }
@@ -3818,7 +4473,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3818
  parentModuleType = null,
3819
  isMultiItemModule = false;
3820
 
3821
- if ( _.isEmpty( params.settingParams.args ) || ! _.has( params.settingParams.args, 'moduleRegistrationParams' ) ) {
3822
  api.errare( 'updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated', params );
3823
  return;
3824
  }
@@ -3827,7 +4482,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3827
  _module_id_ = params.settingParams.args.moduleRegistrationParams.id,
3828
  parentModuleInstance = _ctrl_.czr_Module( _module_id_ );
3829
 
3830
- if ( ! _.isEmpty( parentModuleInstance ) ) {
3831
  parentModuleType = parentModuleInstance.module_type;
3832
  isMultiItemModule = parentModuleInstance.isMultiItem();
3833
  } else {
@@ -3838,7 +4493,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3838
 
3839
  // The new module value can be a single item object if monoitem module, or an array of item objects if multi-item crud
3840
  // Let's normalize it
3841
- if ( ! isMultiItemModule && _.isObject( rawModuleValue ) ) {
3842
  moduleValueCandidate = self.normalizeAndSanitizeSingleItemInputValues( {
3843
  item_value : rawModuleValue,
3844
  parent_module_type : parentModuleType,
@@ -3879,22 +4534,22 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3879
  return inputRegistrationParams && _.isString( inputRegistrationParams.refresh_markup ) && 'true' !== inputRegistrationParams.refresh_markup && 'false' !== inputRegistrationParams.refresh_markup;
3880
  };
3881
 
3882
- if ( ! _.isUndefined( input_id ) ) {
3883
  inputRegistrationParams = self.getInputRegistrationParams( input_id, parentModuleType );
3884
- if ( ! _.isUndefined( inputRegistrationParams.refresh_stylesheet ) ) {
3885
  refresh_stylesheet = Boolean( inputRegistrationParams.refresh_stylesheet );
3886
  }
3887
- if ( ! _.isUndefined( inputRegistrationParams.refresh_markup ) ) {
3888
  if ( refreshMarkupWhenNeededForInput() ) {
3889
  refresh_markup = inputRegistrationParams.refresh_markup;
3890
  } else {
3891
  refresh_markup = Boolean( inputRegistrationParams.refresh_markup );
3892
  }
3893
  }
3894
- if ( ! _.isUndefined( inputRegistrationParams.refresh_fonts ) ) {
3895
  refresh_fonts = Boolean( inputRegistrationParams.refresh_fonts );
3896
  }
3897
- if ( ! _.isUndefined( inputRegistrationParams.refresh_preview ) ) {
3898
  refresh_preview = Boolean( inputRegistrationParams.refresh_preview );
3899
  }
3900
  }
@@ -3916,7 +4571,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3916
  _.each( moduleValueCandidate || {}, function( _val_, _key_ ) {
3917
  // Note : _.isEmpty( 5 ) returns true when checking an integer,
3918
  // that's why we need to cast the _val_ to a string when using _.isEmpty()
3919
- if ( ! _.isBoolean( _val_ ) && _.isEmpty( _val_ + "" ) )
3920
  return;
3921
  _valueCandidate[ _key_ ] = _val_;
3922
  });
@@ -3935,7 +4590,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
3935
  // So that the .fonts collection is ready server side
3936
  if ( true === refresh_fonts ) {
3937
  var newFontFamily = params.settingParams.args.input_value;
3938
- if ( ! _.isString( newFontFamily ) ) {
3939
  api.errare( 'updateAPISettingAndExecutePreviewActions => font-family must be a string', newFontFamily );
3940
  return;
3941
  }
@@ -4013,10 +4668,12 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4013
  if ( refreshMarkupWhenNeededForInput() ) {
4014
 
4015
  var _html_content = params.settingParams.args.input_value;
4016
- if ( ! _.isString( _html_content ) ) {
4017
  throw new Error( '::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.');
4018
  }
4019
- if ( ! self.htmlIncludesShortcodesOrTmplTags( _html_content ) ) {
 
 
4020
  api.previewer.send( 'sek-update-html-in-selector', {
4021
  selector : inputRegistrationParams.refresh_markup,
4022
  changed_item_id : _changed_item_id,
@@ -4054,7 +4711,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4054
  // this way we make sure that the customized value used when ajaxing will be taken into account when writing the google font http request link
4055
  if ( true === refresh_fonts ) {
4056
  var newFontFamily = params.settingParams.args.input_value;
4057
- if ( ! _.isString( newFontFamily ) ) {
4058
  api.errare( 'updateAPISettingAndExecutePreviewActions => font-family must be a string', newFontFamily );
4059
  return;
4060
  }
@@ -4103,8 +4760,8 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4103
  var currentGfonts = self.sniffGlobalGFonts( clonedGlobalOptions );
4104
 
4105
  // add it only if gfont
4106
- if ( ! _.isEmpty( newFontFamily ) && _.isString( newFontFamily ) ) {
4107
- if ( newFontFamily.indexOf('gfont') > -1 && ! _.contains( currentGfonts, newFontFamily ) ) {
4108
  currentGfonts.push( newFontFamily );
4109
  }
4110
  }
@@ -4130,7 +4787,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4130
  return;
4131
  // example of input_id candidate 'font_family_css'
4132
  if ( _.isString( _key_ ) && _key_.indexOf('font_family') > -1 ) {
4133
- if ( levelData.indexOf('gfont') > -1 && ! _.contains( gfonts, levelData ) ) {
4134
  gfonts.push( levelData );
4135
  }
4136
  }
@@ -4194,7 +4851,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4194
  _.each( params.item_value, function( _val, input_id ) {
4195
  if ( 'title' === input_id )
4196
  return;
4197
- if ( ! params.is_multi_items && 'id' === input_id )
4198
  return;
4199
 
4200
  if ( null !== params.parent_module_type ) {
@@ -4303,9 +4960,11 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4303
  *
4304
  * @param {string} content The content we want to scan for shortcodes.
4305
  */
4306
- htmlIncludesShortcodesOrTmplTags : function( content ) {
4307
  var shortcodes = content.match( /\[+([\w_-])+/g ),
4308
  tmpl_tags = content.match( /\{\{+([\w_-])+/g ),
 
 
4309
  shortcode_result = [],
4310
  tmpl_tag_result = [];
4311
 
@@ -4327,7 +4986,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4327
  }
4328
  }
4329
  }
4330
- return !_.isEmpty( shortcode_result ) || !_.isEmpty( tmpl_tag_result );
4331
  }
4332
  });//$.extend()
4333
  })( wp.customize, jQuery );//global sektionsLocalizedData
@@ -4369,6 +5028,21 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4369
  icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>'
4370
  },
4371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4372
  sek_intro_sec_picker_module : {
4373
  settingControlId : sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid() + '_sek_draggable_sections_ui',
4374
  module_type : 'sek_intro_sec_picker_module',
@@ -4434,27 +5108,13 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4434
  priority : 30,
4435
  icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>'
4436
  }
4437
- });
4438
 
4439
  // Beta features to merge here ?
4440
  // if ( sektionsLocalizedData.areBetaFeaturesEnabled ) {
4441
  // $.extend( registrationParams, {});
4442
  // }
4443
 
4444
- if ( sektionsLocalizedData.isSavedSectionEnabled ) {
4445
- $.extend( registrationParams, {
4446
- sek_my_sections_sec_picker_module : {
4447
- settingControlId : sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid() + '_sek_draggable_sections_ui',
4448
- module_type : 'sek_my_sections_sec_picker_module',
4449
- controlLabel : '@missi18n My sections',
4450
- content_type : 'section',
4451
- expandAndFocusOnInit : false,
4452
- priority : 10,
4453
- icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>'
4454
- }
4455
- });
4456
- }
4457
-
4458
 
4459
  // BAIL WITH A SEE-ME ANIMATION IF THIS UI IS CURRENTLY BEING DISPLAYED
4460
  // Is the UI currently displayed the one that is being requested ?
@@ -4532,16 +5192,20 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4532
 
4533
  var $title = _control_.container.find('label > .customize-control-title'),
4534
  _titleContent = $title.html();
 
4535
  // We wrap the original text content in this span.sek-ctrl-accordion-title in order to style it (underlined) independently ( without styling the icons next to it )
4536
  $title.html( ['<span class="sek-ctrl-accordion-title">', _titleContent, '</span>' ].join('') );
4537
 
 
 
 
 
4538
  // if this level has an icon, let's prepend it to the title
4539
  if ( ! _.isUndefined( optionData.icon ) ) {
4540
  $title.addClass('sek-flex-vertical-center').prepend( optionData.icon );
4541
  }
4542
 
4543
  // ACCORDION
4544
-
4545
  // Setup the accordion only for section content type
4546
  if ( 'section' === _control_.content_type ) {
4547
  // Hide the item wrapper
@@ -4894,6 +5558,13 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4894
  // Prepare the module map to register
4895
  var modulesRegistrationParams = {};
4896
 
 
 
 
 
 
 
 
4897
  $.extend( modulesRegistrationParams, {
4898
  bg : {
4899
  settingControlId : params.id + '__bg_options',
@@ -6730,7 +7401,6 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
6730
  });// self.preparePresetSectionForInjection.done()
6731
  };//_doWhenPresetSectionCollectionFetched()
6732
 
6733
-
6734
  // Try to fetch the sections from the server
6735
  // if sucessfull, resolve __presetSectionInjected__.promise()
6736
  self.getPresetSectionCollection({
@@ -6749,6 +7419,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
6749
  // OK. time to resolve __presetSectionInjected__.promise()
6750
  _doWhenPresetSectionCollectionFetched( presetColumnOrSectionCollection );
6751
  });//self.getPresetSectionCollection().done()
 
6752
  break;//case 'preset_section' :
6753
  }//switch( params.content_type)
6754
  break;
@@ -7147,57 +7818,27 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7147
  // @return a promise()
7148
  // caches the sections in api.sek_presetSections when api.section( '__content_picker__') is registered
7149
  // caches the user saved sections on the first drag and drop of a user-saved section
7150
- // @params {
7151
- // is_user_section : sectionParams.is_user_section
7152
- // preset_section_id : '' <= used for user_saved section
7153
- // }
7154
- _maybeFetchSectionsFromServer : function( params ) {
7155
  var dfd = $.Deferred(),
7156
  _ajaxRequest_;
7157
 
7158
- params = params || { is_user_section : false };
7159
- if ( true === params.is_user_section ) {
7160
- if ( ! _.isEmpty( api.sek_userSavedSections ) && ! _.isEmpty( api.sek_userSavedSections[ params.preset_section_id ] ) ) {
7161
- dfd.resolve( api.sek_userSavedSections );
7162
- } else {
7163
- api.sek_userSavedSections = api.sek_userSavedSections || {};
7164
- if ( ! _.isUndefined( api.sek_fetchingUserSavedSections ) && 'pending' == api.sek_fetchingUserSavedSections.state() ) {
7165
- _ajaxRequest_ = api.sek_fetchingUserSavedSections;
7166
- } else {
7167
- _ajaxRequest_ = wp.ajax.post( 'sek_get_user_saved_sections', {
7168
- nonce: api.settings.nonce.save,
7169
- preset_section_id : params.preset_section_id
7170
- });
7171
- api.sek_fetchingUserSavedSections = _ajaxRequest_;
7172
- }
7173
- _ajaxRequest_.done( function( _sectionData_ ) {
7174
- //api.sek_presetSections = JSON.parse( _collection_ );
7175
- api.sek_userSavedSections[ params.preset_section_id ] = _sectionData_;
7176
- dfd.resolve( api.sek_userSavedSections );
7177
- }).fail( function( _r_ ) {
7178
- dfd.reject( _r_ );
7179
- });
7180
- }
7181
  } else {
7182
- if ( ! _.isEmpty( api.sek_presetSections ) ) {
7183
- dfd.resolve( api.sek_presetSections );
7184
  } else {
7185
- if ( ! _.isUndefined( api.sek_fetchingPresetSections ) && 'pending' == api.sek_fetchingPresetSections.state() ) {
7186
- _ajaxRequest_ = api.sek_fetchingPresetSections;
7187
- } else {
7188
- _ajaxRequest_ = wp.ajax.post( 'sek_get_preset_sections', { nonce: api.settings.nonce.save } );
7189
- api.sek_fetchingPresetSections = _ajaxRequest_;
7190
- }
7191
- _ajaxRequest_.done( function( _collection_ ) {
7192
- //api.sek_presetSections = JSON.parse( _collection_ );
7193
- api.sek_presetSections = _collection_;
7194
- dfd.resolve( api.sek_presetSections );
7195
- }).fail( function( _r_ ) {
7196
- dfd.reject( _r_ );
7197
- });
7198
  }
 
 
 
 
 
 
 
7199
  }
7200
-
7201
  return dfd.promise();
7202
  },
7203
 
@@ -7218,69 +7859,112 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7218
  getPresetSectionCollection : function( sectionParams ) {
7219
  var self = this,
7220
  __dfd__ = $.Deferred();
7221
-
7222
- self._maybeFetchSectionsFromServer({
7223
- is_user_section : sectionParams.is_user_section,
7224
- preset_section_id : sectionParams.presetSectionId
7225
- })
7226
- .fail( function( er ) {
7227
- __dfd__.reject( er );
7228
  })
7229
- .done( function( _collection_ ) {
7230
- //api.infoLog( 'preset_sections fetched', api.sek_presetSections );
7231
- var presetSection,
7232
- allPresets = $.extend( true, {}, _.isObject( _collection_ ) ? _collection_ : {} );
7233
-
7234
- if ( _.isEmpty( allPresets ) ) {
7235
- throw new Error( 'getPresetSectionCollection => Invalid collection');
7236
- }
7237
- if ( _.isEmpty( allPresets[ sectionParams.presetSectionId ] ) ) {
7238
- throw new Error( 'getPresetSectionCollection => the preset section : "' + sectionParams.presetSectionId + '" has not been found in the collection');
7239
- }
7240
- var presetCandidate = allPresets[ sectionParams.presetSectionId ];
7241
-
7242
- // Ensure we have a string that's JSON.parse-able
7243
- // if ( typeof presetCandidate !== 'string' || presetCandidate[0] !== '{' ) {
7244
- // throw new Error( 'getPresetSectionCollection => ' + sectionParams.presetSectionId + ' is not JSON.parse-able');
7245
  // }
7246
- // presetCandidate = JSON.parse( presetCandidate );
7247
-
7248
- var setIds = function( collection ) {
7249
- _.each( collection, function( levelData ) {
7250
- levelData.id = sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid();
7251
- if ( _.isArray( levelData.collection ) ) {
7252
- setIds( levelData.collection );
7253
- }
7254
- });
7255
- return collection;
7256
- };
7257
 
7258
- var setVersion = function( collection ) {
7259
- _.each( collection, function( levelData ) {
7260
- levelData.ver_ini = sektionsLocalizedData.nimbleVersion;
7261
- if ( _.isArray( levelData.collection ) ) {
7262
- setVersion( levelData.collection );
7263
- }
7264
- });
7265
- return collection;
7266
- };
7267
 
7268
  // ID's
7269
  // the level's id have to be generated
7270
- presetCandidate.collection = setIds( presetCandidate.collection );
 
 
 
7271
 
7272
  // NIMBLE VERSION
7273
  // set the section version
7274
- presetCandidate.ver_ini = sektionsLocalizedData.nimbleVersion;
7275
  // the other level's version have to be added
7276
- presetCandidate.collection = setVersion( presetCandidate.collection );
7277
- __dfd__.resolve( presetCandidate );
7278
- });//_maybeFetchSectionsFromServer.done()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7280
  return __dfd__.promise();
7281
  },
7282
 
7283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7284
 
7285
 
7286
  // Walk the column collection of a preset section, and replace '__img_url__*' pattern by image ids that we get from ajax calls
@@ -7456,56 +8140,6 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7456
  return sektionsLocalizedData.settingIdForGlobalSections;
7457
  },
7458
 
7459
- // @params = { id : '', level : '' }
7460
- // Recursively walk the level tree until a match is found
7461
- // @return the level model object
7462
- getLevelModel : function( id, collection ) {
7463
- var self = this, _data_ = 'no_match',
7464
- // @param id mandatory
7465
- // @param collection mandatory
7466
- // @param collectionSettingId optional
7467
- // @param localOrGlobal optional
7468
- _walk_ = function( id, collection, collectionSettingId, localOrGlobal ) {
7469
- // do we have a collection ?
7470
- // if not, let's use the root one
7471
- if ( _.isUndefined( collection ) ) {
7472
- var currentSektionSettingValue = api( collectionSettingId )();
7473
- var sektionSettingValue = _.isObject( currentSektionSettingValue ) ? $.extend( true, {}, currentSektionSettingValue ) : $.extend( true, {}, self.getDefaultSektionSettingValue( localOrGlobal ) );
7474
- collection = _.isArray( sektionSettingValue.collection ) ? sektionSettingValue.collection : [];
7475
- }
7476
- _.each( collection, function( levelData ) {
7477
- // did we found a match recursively ?
7478
- if ( 'no_match' != _data_ )
7479
- return;
7480
- if ( id === levelData.id ) {
7481
- _data_ = levelData;
7482
- } else {
7483
- if ( _.isArray( levelData.collection ) ) {
7484
- _walk_( id, levelData.collection, collectionSettingId, localOrGlobal );
7485
- }
7486
- }
7487
- });
7488
- return _data_;
7489
- };
7490
-
7491
- // if a collection has been provided in the signature, let's walk it.
7492
- // Otherwise, let's walk the local and global ones until a match is found.
7493
- if ( ! _.isEmpty( collection ) ) {
7494
- _walk_( id, collection );
7495
- } else {
7496
- _.each( {
7497
- local : self.localSectionsSettingId(),
7498
- global : self.getGlobalSectionsSettingId()
7499
- }, function( collectionSettingId, localOrGlobal ) {
7500
- if ( 'no_match' === _data_ ) {
7501
- _walk_( id, collection, collectionSettingId, localOrGlobal );
7502
- }
7503
- });
7504
- }
7505
-
7506
- return _data_;
7507
- },
7508
-
7509
 
7510
  // @params = { id : '', level : '' }
7511
  // Recursively walk the level tree until a match is found
@@ -7564,6 +8198,16 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7564
  },
7565
 
7566
 
 
 
 
 
 
 
 
 
 
 
7567
  // used in react to preview or update api settings
7568
  // @params is an object {
7569
  //
@@ -7616,6 +8260,76 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7616
  return walkCollection( id ) !== 'no_match';
7617
  },
7618
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7619
 
7620
  getLevelPositionInCollection : function( id, collection ) {
7621
  var self = this, _position_ = 'no_match',
@@ -7662,7 +8376,6 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7662
  return _position_;
7663
  },
7664
 
7665
-
7666
  // @params = { property : 'options', id : }
7667
  // @return mixed type
7668
  getLevelProperty : function( params ) {
@@ -7718,6 +8431,13 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
7718
  return newIdWalker( deepClonedLevel );
7719
  },
7720
 
 
 
 
 
 
 
 
7721
  // Extract the default model values from the server localized registered module
7722
  // Invoked when registrating a module in api.czrModuleMap
7723
  // For example :
@@ -8753,12 +9473,12 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
8753
  before_section : $dropTarget.data('drop-zone-before-section'),
8754
  after_section : $dropTarget.data('drop-zone-after-section'),
8755
 
8756
- content_type : $(this).data('sek-content-type'),
8757
- content_id : $(this).data('sek-content-id'),
8758
 
8759
- section_type : $(this).data('sek-section-type'),
8760
  // Saved sections
8761
- is_user_section : "true" === $(this).data('sek-is-user-section')
8762
  });
8763
  // And reset the preview target
8764
  self.lastClickedTargetInPreview({});
@@ -9078,10 +9798,14 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
9078
  if ( ! $dropTarget.hasClass('sek-drop-zone') ) {
9079
  return false;
9080
  }
9081
- if ( ( isHeaderLocation || isFooterLocation ) && isContentSectionCandidate ) {
9082
- msg = isHeaderLocation ? sektionsLocalizedData.i18n['Header location only accepts modules and pre-built header sections'] : sektionsLocalizedData.i18n['Footer location only accepts modules and pre-built footer sections'];
9083
- maybePrintErrorMessage( msg );
9084
- return false;
 
 
 
 
9085
  }
9086
  if ( isFooterLocation && 'preset_section' === self.dndData.content_type && 'header' === self.dndData.section_type ) {
9087
  msg = sektionsLocalizedData.i18n['You can\'t drop a header section in the footer location'];
@@ -10727,7 +11451,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
10727
  // _html += '<div class="sek-tmpl-thumb"><img src="'+ _data.thumb_url +'"/></div>';
10728
  // _html += '</div>';
10729
  // });
10730
- var _thumbUrl = sektionsLocalizedData.baseUrl + '/assets/admin/img/wire_frame.png',
10731
  _dfd_ = $.Deferred(),
10732
  _titleAttr;
10733
 
@@ -10793,37 +11517,14 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
10793
  content_type_switcher : function( input_options ) {
10794
  var input = this,
10795
  _section_,
10796
- initial_content_type;
 
10797
 
10798
  if ( ! api.section.has( input.module.control.section() ) ) {
10799
  throw new Error( 'api.czrInputMap.content_type_switcher => section not registered' );
10800
  }
10801
  _section_ = api.section( input.module.control.section() );
10802
 
10803
- // attach click event on data-sek-content-type buttons
10804
- input.container.on('click', '[data-sek-content-type]', function( evt ) {
10805
- evt.preventDefault();
10806
- var _contentType = $(this).data( 'sek-content-type');
10807
- // handle the aria-pressed state
10808
- input.container.find('[data-sek-content-type]').attr( 'aria-pressed', false );
10809
-
10810
- // April 2020 : template case added for https://github.com/presscustomizr/nimble-builder/issues/651
10811
- if ( 'template' === _contentType ) {
10812
- var _isExpanded = api.czr_sektions.templateGalleryExpanded();
10813
- $(this).attr( 'aria-pressed', !_isExpanded );
10814
-
10815
- api.czr_sektions.templateGalleryExpanded(!_isExpanded);
10816
- } else {
10817
- // always close the template picker when selecting something else
10818
- api.czr_sektions.templateGalleryExpanded(false);
10819
-
10820
- $(this).attr( 'aria-pressed', true );
10821
- // case for section and module content type
10822
- api.czr_sektions.currentContentPickerType( _contentType );
10823
- }
10824
- });
10825
-
10826
-
10827
  var _do_ = function( contentType ) {
10828
  input.container.find( '[data-sek-content-type="' + ( contentType || 'module' ) + '"]').trigger('click');
10829
  _.each( _section_.controls(), function( _control_ ) {
@@ -10835,7 +11536,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
10835
 
10836
  // Initialize
10837
  // Fixes issue https://github.com/presscustomizr/nimble-builder/issues/248
10838
- api.czr_sektions.currentContentPickerType = api.czr_sektions.currentContentPickerType || new api.Value( input() );
10839
  // This event is emitted by ::generateUIforDraggableContent()
10840
  // this way we are sure that all controls for modules and sections are instantiated
10841
  // and we can use _section_.controls() to set the visibility of module / section controls when switching
@@ -10844,10 +11545,53 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
10844
  });
10845
 
10846
 
 
10847
  // Schedule a reaction to changes
10848
  api.czr_sektions.currentContentPickerType.bind( function( contentType ) {
10849
  _do_( contentType );
10850
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10851
  }
10852
  });
10853
  })( wp.customize, jQuery, _ );//global sektionsLocalizedData
@@ -10874,6 +11618,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
10874
  //console.log( this.id, input_options );
10875
  },
10876
 
 
10877
  section_picker : function( input_options ) {
10878
  var input = this;
10879
  // Mouse effect with cursor: -webkit-grab; -webkit-grabbing;
@@ -14144,58 +14889,133 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
14144
  api.CZRInput.prototype.initialize.call( input, name, options );
14145
  input.isReady.then( function() {
14146
  input.renderUserSavedSections();
14147
- api.czr_sektions.trigger( 'sek-refresh-dragzones', { type : 'preset_section', input_container : input.container } );
14148
  });
14149
  },
14150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14151
 
14152
  renderUserSavedSections : function() {
14153
  var input = this,
14154
  html = '',
14155
  $wrapper = input.container.find('.sek-content-type-wrapper'),
14156
- creation_date = '',
14157
  // https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date
14158
- formatDate = function(date) {
14159
- var monthNames = [
14160
- "January", "February", "March",
14161
- "April", "May", "June", "July",
14162
- "August", "September", "October",
14163
- "November", "December"
14164
- ];
14165
-
14166
- var day = date.getDate(),
14167
- monthIndex = date.getMonth(),
14168
- year = date.getFullYear(),
14169
- hours = date.getHours(),
14170
- minutes = date.getMinutes(),
14171
- seconds = date.getSeconds();
14172
-
14173
- return [
14174
- day,
14175
- monthNames[monthIndex],
14176
- year
14177
- //[hours,minutes,seconds].join(':')
14178
- ].join(' ');
14179
- };
14180
-
14181
- _.each( sektionsLocalizedData.userSavedSektions, function( secData, secKey ) {
14182
- try { creation_date = formatDate( new Date( secData.creation_date.replace( /-/g, '/' ) ) ); } catch( er ) {
14183
- api.errare( '::renderUserSavedSections => formatDate => error', er );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14184
  }
14185
- html = [
14186
- '<div class="sek-user-section-wrapper">',
14187
- '<div class="sek-saved-section-title"><i class="sek-remove-user-section far fa-trash-alt"></i>' + secData.title + '</div>',
14188
- '<div draggable="true" data-sek-is-user-section="true" data-sek-section-type="' + secData.type +'" data-sek-content-type="preset_section" data-sek-content-id="' + secKey +'" style="" title="' + secData.title + '">',
14189
- '<div class="sek-overlay"></div>',
14190
- '<div class="sek-saved-section-description">' + secData.description + '</div>',
14191
- ! _.isEmpty( creation_date ) ? ( '<div class="sek-saved-section-date"><i class="far fa-calendar-alt"></i> @missi18n Created : ' + creation_date + '</div>' ) : '',
14192
- '</div>',
14193
- '</div>'
14194
- ].join('');
14195
- $wrapper.append( html );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14196
  });
14197
  }
14198
- });
14199
 
14200
  // run the parent initialize
14201
  // Note : must be always invoked always after the input / item class extension
@@ -14203,7 +15023,7 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
14203
  api.CZRDynModule.prototype.initialize.call( module, id, options );
14204
 
14205
  // module.embedded.then( function() {
14206
- // console.log('MODULE READY=> lets dance', module.container, module.container.find('.sek-content-type-wrapper') );
14207
  // });
14208
  },//initialize
14209
  };
@@ -14218,19 +15038,17 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
14218
  // If not multi item, the single item content is rendered as soon as the item wrapper is rendered.
14219
  //4) some DOM behaviour. For example, a multi item shall be sortable.
14220
  api.czrModuleMap = api.czrModuleMap || {};
14221
- if ( sektionsLocalizedData.isSavedSectionEnabled ) {
14222
- $.extend( api.czrModuleMap, {
14223
- sek_my_sections_sec_picker_module : {
14224
- mthds : Constructor,
14225
- crud : false,
14226
- name : api.czr_sektions.getRegisteredModuleProperty( 'sek_my_sections_sec_picker_module', 'name' ),
14227
- has_mod_opt : false,
14228
- ready_on_section_expanded : false,
14229
- ready_on_control_event : 'sek-accordion-expanded',// triggered in ::scheduleModuleAccordion()
14230
- defaultItemModel : api.czr_sektions.getDefaultItemModelFromRegisteredModuleData( 'sek_my_sections_sec_picker_module' )
14231
- },
14232
- });
14233
- }
14234
  })( wp.customize , jQuery, _ );
14235
  //global sektionsLocalizedData, serverControlParams
14236
  //extends api.CZRDynModule
283
  // this is used to know what ui elements are currently being displayed
284
  self.registered = new api.Value([]);
285
 
286
+ // June 2020 : added for https://github.com/presscustomizr/nimble-builder/issues/708
287
+ if ( wp.customize.apiIsReady ) {
288
  self.doSektionThinksOnApiReady();
289
+ } else {
290
+ api.bind( 'ready', function() {
291
+ self.doSektionThinksOnApiReady();
292
+ });
293
+ }
294
+
295
 
296
  // Add the skope id on save
297
  // Uses a WP core hook to filter the query on a customize_save action
301
  // Example of use of $_POST['local_skope_id'] => @see sek_get_parent_level_model()
302
  // Helps fixing : https://github.com/presscustomizr/nimble-builder/issues/242, for which sek_add_css_rules_for_spacing() couldn't be set for columns margins
303
  api.bind( 'save-request-params', function( query ) {
304
+ $.extend( query, {
305
+ local_skope_id : api.czr_skopeBase.getSkopeProperty( 'skope_id' ),
306
+ active_locations : api.czr_sektions.activeLocations()
307
+ });
308
  });
309
 
310
 
395
  self.generateUI({ action : 'sek-generate-global-options-ui'});
396
  _section_.nimbleGlobalOptionGenerated = true;
397
  });
398
+ ////////////////////////////////////////////////////////////////////////////////
399
+ ///////////////////////////////////////////////////////////////////////////////////
400
+ ///////////////////////////////////////////////////////////////////////////////////
401
+ ///////////////////////////////////////////////////////////////////////////////////
402
+ ///////////////////////////////////////////////////////////////////////////////////
403
+ ///////////////////////////////////////////////////////////////////////////////////
404
+ ///////////////////////////////////////////////////////////////////////////////////
405
+ ///////////////////////////////////////////////////////////////////////////////////
406
+ ///////////////////////////////////////////////////////////////////////////////////
407
+ ///////////////////////////////////////////////////////////////////////////////////
408
+ ///////////////////////////////////////////////////////////////////////////////////
409
+ ///////////////////////////////////////////////////////////////////////////////////
410
+ ///////////////////////////////////////////////////////////////////////////////////
411
+ // June 2020 property introduced for https://github.com/presscustomizr/nimble-builder-pro/issues/12
412
+ self.nb_is_ready = true;
413
 
414
  // This event has been introduced when implementing https://github.com/presscustomizr/nimble-builder/issues/304
415
  api.trigger('nimble-ready-for-current-skope');
416
+ ////////////////////////////////////////////////////////////////////////////////
417
+ ///////////////////////////////////////////////////////////////////////////////////
418
+ ///////////////////////////////////////////////////////////////////////////////////
419
+ ///////////////////////////////////////////////////////////////////////////////////
420
+ ///////////////////////////////////////////////////////////////////////////////////
421
+ ///////////////////////////////////////////////////////////////////////////////////
422
+ ///////////////////////////////////////////////////////////////////////////////////
423
+ ///////////////////////////////////////////////////////////////////////////////////
424
+ ///////////////////////////////////////////////////////////////////////////////////
425
+ ///////////////////////////////////////////////////////////////////////////////////
426
+ ///////////////////////////////////////////////////////////////////////////////////
427
+ ///////////////////////////////////////////////////////////////////////////////////
428
+ ///////////////////////////////////////////////////////////////////////////////////
429
  };//doSkopeDependantActions()
430
 
431
  // populate the setting ids now if skopes are set
458
  // Always set the previewed device back to desktop on ui change
459
  // event 'sek-ui-removed' id triggered when cleaning the registered ui controls
460
  // @see ::cleanRegistered()
461
+ // July 2020 commented to fix https://github.com/presscustomizr/nimble-builder/issues/728
462
+ // self.bind( 'sek-ui-removed', function() {
463
+ // api.previewedDevice( 'desktop' );
464
+ // });
465
 
466
  // Synchronize api.previewedDevice with the currently rendered ui
467
  // ensure that the selected device tab of the spacing module is the one being previewed
555
  self.setupTopBar();//@see specific dev file
556
 
557
  // SAVE SECTION UI
558
+ // June 2020 : for https://github.com/presscustomizr/nimble-builder/issues/520 and https://github.com/presscustomizr/nimble-builder/issues/713
559
+ self.setupSaveSectionUI();
 
560
 
561
  // SAVE TEMPLATE UI
562
  // April 2020 : introduced for https://github.com/presscustomizr/nimble-builder/issues/655
1340
  self.levelTreeExpanded.bind( function(expanded) {
1341
  self.cachedElements.$body.toggleClass( 'sek-level-tree-expanded', expanded );
1342
  if ( expanded ) {
1343
+ // Close template gallery, template saver, section saver
1344
  self.templateGalleryExpanded(false);
1345
  self.tmplDialogVisible(false);
1346
+ if ( self.saveSectionDialogVisible ) {
1347
+ self.saveSectionDialogVisible(false);
1348
+ }
1349
 
1350
  // Set the level tree now
1351
  self.setLevelTreeValue();
1667
  // an svg file like Nimble__divider_icon.svg => in this case we build and return the full url
1668
  // or a font_icon like '<i class="fab fa-wordpress-simple"></i>'
1669
  getTreeModuleIcon : function( modType ) {
1670
+ var _icon = {}, icon_img_src;
1671
  _.each( sektionsLocalizedData.moduleCollection, function( modData ) {
1672
  if ( !_.isEmpty( _icon ) )
1673
  return;
1674
  if ( modType === modData['content-id'] ) {
1675
+ if ( !_.isEmpty( modData.icon ) ) {
1676
+ if ( 'http' === modData.icon.substring(0, 4) ) {
1677
+ icon_img_src = modData.icon;
1678
+ } else {
1679
+ icon_img_src = sektionsLocalizedData.moduleIconPath + modData.icon;
1680
+ }
1681
+ _icon = {
1682
+ svg : modData.icon ? icon_img_src : '',
1683
+ font : modData.font_icon ? modData.font_icon : ''
1684
+ };
1685
+ }
1686
  }
1687
  });
1688
  if ( !_.isEmpty( _icon.svg ) ) {
1706
  });//$.extend()
1707
  })( wp.customize, jQuery );
1708
  //global sektionsLocalizedData
1709
+ //
1710
+ //Note : idOfSectionToSave is set when user clicks on the save icon, and is reset when saving/updating closing save dialog
1711
  var CZRSeksPrototype = CZRSeksPrototype || {};
1712
  (function ( api, $ ) {
1713
  $.extend( CZRSeksPrototype, {
1714
+ // SAVE SECTION DIALOG BLOCK
1715
  // fired in ::initialize()
1716
+ setupSaveSectionUI : function() {
1717
  var self = this;
1718
 
1719
+ // Declare api values and schedule reactions
1720
+ self.saveSectionDialogVisible = new api.Value( false );// Hidden by default
1721
+
1722
+ // The observer for visibility
1723
+ // connected to other observers
1724
+ self.saveSectionDialogVisible.bind( function( visible ){
1725
+ if ( visible ) {
1726
+ // close template gallery
1727
+ // close level tree
1728
+ self.templateGalleryExpanded(false);
1729
+ self.levelTreeExpanded(false);
1730
+ if ( self.tmplDialogVisible ) {
1731
+ self.tmplDialogVisible(false);
1732
+ }
1733
+ }
1734
+ self.toggleSaveSectionUI(visible);
1735
+ });
1736
+
1737
+ // Will store the collection of saved sections
1738
+ self.allSavedSections = new api.Value('_not_populated_');
1739
+ // When the collection is refreshed
1740
+ // - populate select options
1741
+ // - set the select value to default 'none'
1742
+ self.allSavedSections.bind( function( sec_collection ) {
1743
+ if ( !_.isObject(sec_collection) ) {
1744
+ api.errare('error setupSaveSectionUI => section collection should be an object');
1745
+ return;
1746
+ }
1747
+ sec_collection = _.isEmpty(sec_collection) ? {} : sec_collection;
1748
+ self.refreshSectionPickerHtml( sec_collection );
1749
+ });
1750
 
1751
+ self.saveSectionDialogMode = new api.Value('hidden');// 'save' default mode is set when dialog html is rendered
1752
+ self.saveSectionDialogMode.bind( function(mode){
1753
+ if ( !_.contains(['hidden', 'save', 'update', 'remove' ], mode ) ) {
1754
+ api.errare('error setupSaveSectionUI => unknown section dialog mode', mode );
1755
+ mode = 'save';
1756
+ }
1757
+
1758
+ // Set the button pressed state
1759
+ var $secSaveDialogWrap = $('#nimble-top-section-save-ui'),
1760
+ $titleInput = $secSaveDialogWrap.find('#sek-saved-section-title'),
1761
+ $descInput = $secSaveDialogWrap.find('#sek-saved-section-description');
1762
+
1763
+ $secSaveDialogWrap.find('[data-section-mode-switcher]').attr('aria-pressed', false );
1764
+ $secSaveDialogWrap.find('[data-section-mode-switcher="' + mode +'"]').attr('aria-pressed', true );
1765
+
1766
+ // update the current mode
1767
+ $('#nimble-top-section-save-ui').attr('data-sek-section-dialog-mode', mode );
1768
+
1769
+ // make sure the remove dialog is hidden
1770
+ $secSaveDialogWrap.removeClass('sek-removal-confirmation-opened');
1771
+
1772
+ // execute actions depending on the selected mode
1773
+ switch( mode ) {
1774
+ case 'save' :
1775
+ // When selecting 'save', make sure the title and description input are cleaned
1776
+ $titleInput.val('');
1777
+ $descInput.val('');
1778
+ break;
1779
+ case 'update' :
1780
+ case 'remove' :
1781
+ var $selectEl = $secSaveDialogWrap.find('.sek-saved-section-picker');
1782
+ // Make sure the select value is always reset when switching mode
1783
+ $selectEl.val('none').trigger('change');
1784
+
1785
+ self.setSavedSectionCollection().done( function( sec_collection ) {
1786
+ // refresh section picker in case the user updated without changing anything
1787
+ self.refreshSectionPickerHtml();
1788
+ });
1789
+ break;
1790
+ }//switch
1791
+
1792
+ // when user clicks on the remove icon of a section in the collection
1793
+ // => hide save and update buttons
1794
+ if ( 'remove' === mode && _.isEmpty( self.idOfSectionToSave ) ) {
1795
+ $secSaveDialogWrap.addClass('sek-is-removal-only');
1796
+ } else {
1797
+ $secSaveDialogWrap.removeClass('sek-is-removal-only');
1798
+ }
1799
+ });//self.saveSectionDialogMode.bind()
1800
+
1801
+ },
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+ ///////////////////////////////////////////////
1811
+ ///// RENDER DIALOG BOX AND SCHEDULE CLICK ACTIONS
1812
+ refreshSectionPickerHtml : function( sec_collection ) {
1813
+ sec_collection = sec_collection || this.allSavedSections();
1814
+
1815
+ var $secSaveDialogWrap = $('#nimble-top-section-save-ui'),
1816
+ $selectEl = $secSaveDialogWrap.find('.sek-saved-section-picker');
1817
+ // Make sure the select value is always reset when switching mode
1818
+ $selectEl.val('none').trigger('change');
1819
+
1820
+ // empty all options but the default 'none' one
1821
+ $selectEl.find('option').each( function() {
1822
+ if ( 'none' !== $(this).attr('value') ) {
1823
+ $(this).remove();
1824
+ }
1825
+ });
1826
+
1827
+ // Make sure we don't populate the collection twice ( if user clicks two times fast )
1828
+ // if ( $secSaveDialogWrap.hasClass('sec-collection-populated') )
1829
+ // return;
1830
+
1831
+ var _default_title = 'section title not set',
1832
+ _title,
1833
+ _last_modified_date,
1834
+ _html = '';
1835
+ _.each( sec_collection, function( _sec_data, _sec_post_name ) {
1836
+ if ( !_.isObject(_sec_data) )
1837
+ return;
1838
+ _last_modified_date = _sec_data.last_modified_date ? _sec_data.last_modified_date : '';
1839
+ _title = _sec_data.title ? _sec_data.title : _default_title;
1840
+ _html +='<option value="' + _sec_post_name + '">' + [ _title, sektionsLocalizedData.i18n['Last modified'] + ' : ' + _last_modified_date ].join(' | ') + '</option>';
1841
+ });
1842
+
1843
+ $selectEl.append(_html);
1844
+
1845
+ // flag so we know it's done
1846
+ // => controls the CSS visibility of the select element
1847
+ $secSaveDialogWrap.addClass('section-collection-populated');
1848
+ },
1849
+
1850
+
1851
+ //@param = { }
1852
+ renderSectionSaveUI : function( params ) {
1853
+ if ( $('#nimble-top-section-save-ui').length > 0 )
1854
+ return $('#nimble-top-section-save-ui');
1855
+
1856
+ var self = this;
1857
+
1858
+ try {
1859
+ _tmpl = wp.template( 'nimble-top-section-save-ui' )( {} );
1860
+ } catch( er ) {
1861
+ api.errare( 'Error when parsing nimble-top-section-save-ui template', er );
1862
+ return false;
1863
+ }
1864
+ $('#customize-preview').after( $( _tmpl ) );
1865
+ return $('#nimble-top-section-save-ui');
1866
+ },
1867
+
1868
+
1869
+
1870
+ ///////////////////////////////////////////////
1871
+ ///// DOM EVENTS
1872
+ // Fired once, on first rendering
1873
+ maybeScheduleSectionSaveDOMEvents : function() {
1874
+ var self = this, $secSaveDialogWrap = $('#nimble-top-section-save-ui');
1875
+ if ( $secSaveDialogWrap.data('nimble-sec-save-dom-events-scheduled') )
1876
+ return;
1877
+
1878
+ // ATTACH DOM EVENTS
1879
+ // Dialog Mode Switcher
1880
+ $secSaveDialogWrap.on( 'click', '[data-section-mode-switcher]', function(evt) {
1881
+ evt.preventDefault();
1882
+ self.saveSectionDialogMode($(this).data('section-mode-switcher'));
1883
+ });
1884
+
1885
+ // React to section select
1886
+ // update title and description fields on section selection
1887
+ $secSaveDialogWrap.on( 'change', '.sek-saved-section-picker', function(evt){ self.reactOnSectionSelection(evt, $(this) ); });
1888
+
1889
+ // SAVE
1890
+ $secSaveDialogWrap.on( 'click', '.sek-do-save-section', function(evt){
1891
+ $secSaveDialogWrap.addClass('nimble-section-processing-ajax');
1892
+ self.saveOrUpdateSavedSection(evt).done( function( response ) {
1893
+ $secSaveDialogWrap.removeClass('nimble-section-processing-ajax');
1894
+ if ( response.success ) {
1895
+ self.saveSectionDialogVisible( false );
1896
+ self.setSavedSectionCollection( { refresh : true } );// <= true for refresh
1897
+ }
1898
+ });
1899
+ });
1900
+
1901
+ // UPDATE
1902
+ $secSaveDialogWrap.on( 'click', '.sek-do-update-section', function(evt){
1903
+ var $selectEl = $secSaveDialogWrap.find('.sek-saved-section-picker'),
1904
+ sectionPostNameCandidateForUpdate = $selectEl.val();
1905
+ // make sure we don't try to remove the default option
1906
+ if ( 'none' === sectionPostNameCandidateForUpdate || _.isEmpty(sectionPostNameCandidateForUpdate) )
1907
+ return;
1908
+
1909
+ $secSaveDialogWrap.addClass('nimble-section-processing-ajax');
1910
+ self.saveOrUpdateSavedSection(evt, sectionPostNameCandidateForUpdate).done( function(response) {
1911
+ $secSaveDialogWrap.removeClass('nimble-section-processing-ajax');
1912
+ if ( response.success ) {
1913
+ self.saveSectionDialogVisible( false );
1914
+ self.setSavedSectionCollection( { refresh : true } )// <= true for refresh
1915
+ .done( function( sec_collection ) {
1916
+ // refresh section picker in case the user updated without changing anything
1917
+ self.refreshSectionPickerHtml();
1918
+ });
1919
+ }
1920
+ });
1921
+ });
1922
+
1923
+ // REMOVE
1924
+ // Reveal remove dialog
1925
+ $secSaveDialogWrap.on( 'click', '.sek-open-remove-confirmation', function(evt){
1926
+ $secSaveDialogWrap.addClass('sek-removal-confirmation-opened');
1927
+ });
1928
+
1929
+ // Do Remove
1930
+ $secSaveDialogWrap.on( 'click', '.sek-do-remove-section', function(evt){
1931
+ var $selectEl = $secSaveDialogWrap.find('.sek-saved-section-picker'),
1932
+ sectionPostNameCandidateForRemoval = $selectEl.val();
1933
+ // make sure we don't try to remove the default option
1934
+ if ( 'none' === sectionPostNameCandidateForRemoval || _.isEmpty(sectionPostNameCandidateForRemoval) )
1935
+ return;
1936
+
1937
+ $secSaveDialogWrap.addClass('nimble-section-processing-ajax');
1938
+ self.removeSavedSection(evt, sectionPostNameCandidateForRemoval).done( function(response) {
1939
+ $secSaveDialogWrap.removeClass('nimble-section-processing-ajax');
1940
+ $secSaveDialogWrap.removeClass('sek-removal-confirmation-opened');
1941
+ if ( response.success ) {
1942
+ self.setSavedSectionCollection( { refresh : true } );// <= true for refresh
1943
+ }
1944
+ });
1945
+ });
1946
+
1947
+ // Cancel Remove
1948
+ $secSaveDialogWrap.on( 'click', '.sek-cancel-remove-section', function(evt){
1949
+ $secSaveDialogWrap.removeClass('sek-removal-confirmation-opened');
1950
+ });
1951
+
1952
+
1953
+ // Switch to update mode
1954
+ //$secSaveDialogWrap.on( 'click', '[data-section-mode-switcher="update"]', function(evt){ });
1955
+
1956
+ $('.sek-close-dialog', $secSaveDialogWrap ).on( 'click', function(evt) {
1957
+ evt.preventDefault();
1958
+ self.saveSectionDialogVisible(false);
1959
+ });
1960
+
1961
+ // Say we're done with DOM event scheduling
1962
+ $secSaveDialogWrap.data('nimble-sec-save-dom-events-scheduled', true );
1963
+ },
1964
+
1965
+
1966
+
1967
+ // Is used in update and remove modes
1968
+ reactOnSectionSelection : function(evt, $selectEl ){
1969
+ var self = this,
1970
+ $secSaveDialogWrap = $('#nimble-top-section-save-ui'),
1971
+ _sectionPostName = $selectEl.val(),
1972
+ $titleInput = $secSaveDialogWrap.find('#sek-saved-section-title'),
1973
+ $descInput = $secSaveDialogWrap.find('#sek-saved-section-description'),
1974
+ // The informative class control the visibility of the title and the description in CSS
1975
+ _informativeClass = 'update' === self.saveSectionDialogMode() ? 'sek-section-update-selected' : 'sek-section-remove-selected';
1976
+
1977
+ if ( 'none' === _sectionPostName ) {
1978
+ $titleInput.val('');
1979
+ $descInput.val('');
1980
+ $secSaveDialogWrap.removeClass(_informativeClass);
1981
+ } else {
1982
+ var _allSavedSections = self.allSavedSections();
1983
+ var _selectedSection = _sectionPostName;
1984
+
1985
+ // normalize
1986
+ _allSavedSections = ( _.isObject(_allSavedSections) && !_.isArray(_allSavedSections) ) ? _allSavedSections : {};
1987
+ _allSavedSections[_sectionPostName] = $.extend( {
1988
+ title : '',
1989
+ description : '',
1990
+ last_modified_date : ''
1991
+ }, _allSavedSections[_sectionPostName] || {} );
1992
+
1993
+ $titleInput.val( _allSavedSections[_sectionPostName].title );
1994
+ $descInput.val( _allSavedSections[_sectionPostName].description );
1995
+ $secSaveDialogWrap.addClass(_informativeClass);
1996
+ }
1997
+ },
1998
+
1999
+
2000
+
2001
+
2002
+ ///////////////////////////////////////////////
2003
+ ///// AJAX ACTIONS
2004
+ // Fired on 'click' on .sek-do-save-section btn
2005
+ // @param sectionPostNameCandidateForUpdate is only provided when saving
2006
+ saveOrUpdateSavedSection : function(evt, sectionPostNameCandidateForUpdate ) {
2007
+ var self = this, _dfd_ = $.Deferred();
2008
+ // idOfSectionToSave is set when reacting to click action
2009
+ // @see react to preview 'sek-toggle-save-section-ui'
2010
+ if ( !self.idOfSectionToSave || _.isEmpty( self.idOfSectionToSave ) ) {
2011
+ api.errare('saveOrUpdateSavedSection => error => missing section id');
2012
+ return _dfd_.resolve( {success:false});
2013
+ }
2014
+ evt.preventDefault();
2015
+ var $_title = $('#sek-saved-section-title'),
2016
+ section_title = $_title.val(),
2017
+ section_description = $('#sek-saved-section-description').val(),
2018
+ sectionModel = $.extend( true, {}, self.getLevelModel( self.idOfSectionToSave ) );
2019
+
2020
+ if ( 'no_match' == sectionModel ) {
2021
+ api.errare('saveOrUpdateSavedSection => error => no section model with id ' + self.idOfSectionToSave );
2022
+ return _dfd_.resolve( {success:false});
2023
+ }
2024
+
2025
+ if ( _.isEmpty( section_title ) ) {
2026
+ $_title.addClass('error');
2027
+ api.previewer.trigger('sek-notify', {
2028
+ type : 'error',
2029
+ duration : 10000,
2030
+ message : [
2031
+ '<span style="font-size:0.95em">',
2032
+ '<strong>' + sektionsLocalizedData.i18n['A title is required'] + '</strong>',
2033
+ '</span>'
2034
+ ].join('')
2035
+
2036
+ });
2037
+ return _dfd_.resolve( {success:false});
2038
+ }
2039
+
2040
+ $('#sek-saved-section-title').removeClass('error');
2041
+
2042
+ // Do some pre-processing before ajaxing
2043
+ // Note : ids will be replaced server side
2044
+ sectionModel = self.preProcessSection( sectionModel );
2045
+ if ( !_.isObject( sectionModel ) ) {
2046
+ api.errare('::saveOrUpdateSavedSection => error => invalid sectionModel');
2047
+ _dfd_.resolve( {success:false});
2048
+ }
2049
+
2050
+ wp.ajax.post( 'sek_save_user_section', {
2051
+ nonce: api.settings.nonce.save,
2052
+ section_data: JSON.stringify( sectionModel ),
2053
+ // the following will be saved in 'metas'
2054
+ section_title: section_title,
2055
+ section_description: section_description,
2056
+ section_post_name: sectionPostNameCandidateForUpdate || '',// <= provided when updating a section
2057
+ skope_id: api.czr_skopeBase.getSkopeProperty( 'skope_id' ),
2058
+ //active_locations : api.czr_sektions.activeLocations()
2059
+ })
2060
+ .done( function( response ) {
2061
+ //console.log('SAVED POST ID', response );
2062
+ _dfd_.resolve( {success:true});
2063
+
2064
+ // response is {section_post_id: 436}
2065
+ api.previewer.trigger('sek-notify', {
2066
+ type : 'success',
2067
+ duration : 10000,
2068
+ message : [
2069
+ '<span style="font-size:0.95em">',
2070
+ '<strong>' + sektionsLocalizedData.i18n['Template saved'] + '</strong>',
2071
+ '</span>'
2072
+ ].join('')
2073
+ });
2074
+ })
2075
+ .fail( function( er ) {
2076
+ _dfd_.resolve( {success:false});
2077
+ api.errorLog( 'ajax sek_save_section => error', er );
2078
+ api.previewer.trigger('sek-notify', {
2079
+ type : 'error',
2080
+ duration : 10000,
2081
+ message : [
2082
+ '<span style="font-size:0.95em">',
2083
+ '<strong>' + sektionsLocalizedData.i18n['Error when processing template'] + '</strong>',
2084
+ '</span>'
2085
+ ].join('')
2086
+ });
2087
+ })
2088
+ .always( function() {
2089
+ // reset the id of section to save
2090
+ // => because we need to know when we are in 'remove' mode when user clicked on remove icon in the section collection, => which hides save and update buttons
2091
+ self.idOfSectionToSave = null;
2092
+ });
2093
+ return _dfd_;
2094
+ },//saveOrUpdateSavedSection
2095
 
2096
 
 
2097
 
2098
+ // Fired on 'click on .sek-do-remove-section btn
2099
+ removeSavedSection : function(evt, sectionPostNameCandidateForRemoval ) {
2100
+ var self = this, _dfd_ = $.Deferred();
2101
+ evt.preventDefault();
2102
+ wp.ajax.post( 'sek_remove_user_section', {
2103
+ nonce: api.settings.nonce.save,
2104
+ section_post_name: sectionPostNameCandidateForRemoval
2105
+ //skope_id: api.czr_skopeBase.getSkopeProperty( 'skope_id' )
2106
+ })
2107
+ .done( function( response ) {
2108
+ _dfd_.resolve( {success:true});
2109
+ // response is {section_post_id: 436}
2110
+ api.previewer.trigger('sek-notify', {
2111
+ type : 'success',
2112
+ duration : 10000,
2113
+ message : [
2114
+ '<span style="font-size:0.95em">',
2115
+ '<strong>' + sektionsLocalizedData.i18n['Template removed'] + '</strong>',
2116
+ '</span>'
2117
+ ].join('')
2118
+ });
2119
+ })
2120
+ .fail( function( er ) {
2121
+ _dfd_.resolve( {success:false});
2122
+ api.errorLog( 'ajax sek_remove_section => error', er );
2123
+ api.previewer.trigger('sek-notify', {
2124
+ type : 'error',
2125
+ duration : 10000,
2126
+ message : [
2127
+ '<span style="font-size:0.95em">',
2128
+ '<strong>' + sektionsLocalizedData.i18n['Error when processing templates'] + '</strong>',
2129
+ '</span>'
2130
+ ].join('')
2131
+ });
2132
+ })
2133
+ .always( function() {
2134
+ // reset the id of section to save
2135
+ // => because we need to know when we are in 'remove' mode when user clicked on remove icon in the section collection, => which hides save and update buttons
2136
+ self.idOfSectionToSave = null;
2137
+ });
2138
+
2139
+ return _dfd_;
2140
+ },
2141
+
2142
+
2143
+
2144
+ ///////////////////////////////////////////////
2145
+ ///// REVEAL / HIDE DIALOG BOX
2146
+ /// react on self.saveSectionDialogVisible.bind(...)
2147
+ // @return void()
2148
+ // self.saveSectionDialogVisible.bind( function( visible ){
2149
+ // self.toggleSaveSectionUI( visible );
2150
+ // });
2151
+ toggleSaveSectionUI : function( visible ) {
2152
+ visible = _.isUndefined( visible ) ? true : visible;
2153
+ var self = this,
2154
+ _renderAndSetup = function() {
2155
+ $.when( self.renderSectionSaveUI({}) ).done( function( $_el ) {
2156
+ self.maybeScheduleSectionSaveDOMEvents();//<= schedule on the first display only
2157
+ self.saveUIContainer = $_el;
2158
+ //display
2159
+ _.delay( function() {
2160
+ // set dialog mode now so we display the relevant fields on init
2161
+ self.saveSectionDialogMode('save');// Default mode is save
2162
+ self.cachedElements.$body.addClass('sek-save-section-ui-visible');
2163
+ }, 200 );
2164
+ // set section id input value
2165
+ //$('#sek-saved-section-id').val( sectionId );
2166
+ });
2167
+ },
2168
+ _hide = function() {
2169
+ var dfd = $.Deferred();
2170
+ self.cachedElements.$body.removeClass('sek-save-section-ui-visible');
2171
+ if ( $( '#nimble-top-section-save-ui' ).length > 0 ) {
2172
+ //remove Dom element after slide up
2173
+ _.delay( function() {
2174
+ // set dialog mode back to 'hidden' mode
2175
+ self.saveSectionDialogMode = self.saveSectionDialogMode ? self.saveSectionDialogMode : new api.Value();
2176
+ self.saveSectionDialogMode('hidden');
2177
+ self.saveUIContainer.remove();
2178
+ // reset the id of section to save
2179
+ // => because we need to know when we are in 'remove' mode when user clicked on remove icon in the section collection, => which hides save and update buttons
2180
+ self.idOfSectionToSave = null;
2181
+ dfd.resolve();
2182
+ }, 250 );
2183
+ } else {
2184
+ dfd.resolve();
2185
+ }
2186
+ return dfd.promise();
2187
+ };
2188
+
2189
+ if ( visible ) {
2190
+ _renderAndSetup();
2191
+ } else {
2192
+ _hide().done( function() {
2193
+ self.saveSectionDialogVisible( false );//should be already false
2194
+ });
2195
+ }
2196
+ },
2197
+
2198
+
2199
+ ///////////////////////////////////////////////
2200
+ ///// TMPL COLLECTION
2201
+ // @return $.promise
2202
+ // @param params = {refresh : false};
2203
+ setSavedSectionCollection : function( params ) {
2204
+ var self = this, _dfd_ = $.Deferred();
2205
+
2206
+ // refresh is true on save, update, remove success
2207
+ params = params || {refresh : false};
2208
+
2209
+ // If the collection is already set, return it.
2210
+ // unless this is a "refresh" case
2211
+ if ( !params.refresh && '_not_populated_' !== self.allSavedSections() ) {
2212
+ return _dfd_.resolve( self.allSavedSections() );
2213
+ }
2214
+
2215
+ var _promise;
2216
+ // Prevent a double request while ajax request is being processed
2217
+ if ( self.sectionCollectionPromise && 'pending' === self.sectionCollectionPromise.state() ) {
2218
+ _promise = self.sectionCollectionPromise;
2219
+ } else {
2220
+ _promise = self.getSavedSectionCollection( params );
2221
+ }
2222
+ _promise.done( function( sec_collection ) {
2223
+ self.allSavedSections( sec_collection );
2224
+ _dfd_.resolve( sec_collection );
2225
+ });
2226
+ return _dfd_.promise();
2227
+ },
2228
+
2229
+ // @return a promise
2230
+ // @param params = {refresh : false};
2231
+ // also used from the input Constructor of sek_my_sections_sec_picker_module
2232
+ // @param params = {refresh : false};
2233
+ getSavedSectionCollection : function( params ) {
2234
+ var self = this;
2235
+ // refresh is true on save, update, remove success
2236
+ params = params || {refresh : false};
2237
+
2238
+ self.sectionCollectionPromise = $.Deferred();
2239
+ if ( !params.refresh && '_not_populated_' !== self.allSavedSections() ) {
2240
+ self.sectionCollectionPromise.resolve( self.allSavedSections() );
2241
+ return self.sectionCollectionPromise;
2242
+ }
2243
+ wp.ajax.post( 'sek_get_all_saved_sections', {
2244
+ nonce: api.settings.nonce.save
2245
+ //skope_id: api.czr_skopeBase.getSkopeProperty( 'skope_id' )
2246
+ })
2247
+ .done( function( sec_collection ) {
2248
+ if ( _.isObject(sec_collection) && !_.isArray( sec_collection ) ) {
2249
+ self.sectionCollectionPromise.resolve( sec_collection );
2250
+ } else {
2251
+ self.sectionCollectionPromise.resolve( {} );
2252
+ api.errorLog('control::getSavedSectionCollection => collection is empty or invalid');
2253
+ }
2254
+
2255
+ // response is {section_post_id: 436}
2256
+ //self.saveSectionDialogVisible( false );
2257
+ // api.previewer.trigger('sek-notify', {
2258
+ // type : 'success',
2259
+ // duration : 10000,
2260
+ // message : [
2261
+ // '<span style="font-size:0.95em">',
2262
+ // '<strong>@missi18n Your section has been saved.</strong>',
2263
+ // '</span>'
2264
+ // ].join('')
2265
+ // });
2266
+ })
2267
+ .fail( function( er ) {
2268
+ api.errorLog( 'ajax sek_get_all_saved_section => error', er );
2269
+ api.previewer.trigger('sek-notify', {
2270
+ type : 'error',
2271
+ duration : 10000,
2272
+ message : [
2273
+ '<span style="font-size:0.95em">',
2274
+ '<strong>' + sektionsLocalizedData.i18n['Error when processing templates'] + '</strong>',
2275
+ '</span>'
2276
+ ].join('')
2277
+ });
2278
+ self.sectionCollectionPromise.resolve({});
2279
+ });
2280
+
2281
+ return self.sectionCollectionPromise;
2282
+ },
2283
+
2284
+ // @return a section model
2285
+ // Note : ids are reset server side
2286
+ // Example of section model before preprocessing
2287
+ // {
2288
+ // collection: [{…}]
2289
+ // id: "" //<= reset server side
2290
+ // level: "section"
2291
+ // is_nested : false
2292
+ // options: {bg: {…}}
2293
+ // ver_ini: "1.1.8"
2294
+ // }
2295
+ preProcessSection : function( sectionModel ) {
2296
+ if ( !_.isObject( sectionModel ) ) {
2297
+ return null;
2298
+ }
2299
+ var preprocessedModel = $.extend( {}, true, sectionModel );
2300
+ // Make sure a nested section is saved as normal
2301
+ if ( _.has( preprocessedModel, 'is_nested') ) {
2302
+ preprocessedModel = _.omit( preprocessedModel, 'is_nested' );
2303
+ }
2304
+ return preprocessedModel;
2305
+ }
2306
+ });//$.extend()
2307
+ })( wp.customize, jQuery );
2308
+ //global sektionsLocalizedData
2309
+ // introduced in april 2020 for https://github.com/presscustomizr/nimble-builder/issues/655
2310
+ var CZRSeksPrototype = CZRSeksPrototype || {};
2311
+ (function ( api, $ ) {
2312
+ $.extend( CZRSeksPrototype, {
2313
+ // SAVE TMPL DIALOG BLOCK
2314
+ // fired in ::initialize()
2315
+ setupSaveTmplUI : function() {
2316
+ var self = this;
2317
+
2318
+ // Declare api values and schedule reactions
2319
  self.tmplDialogVisible = new api.Value( false );// Hidden by default
2320
 
2321
  if ( !sektionsLocalizedData.isTemplateSaveEnabled ) {
2327
  // close level tree
2328
  self.templateGalleryExpanded(false);
2329
  self.levelTreeExpanded(false);
2330
+ if ( self.saveSectionDialogVisible ) {
2331
+ self.saveSectionDialogVisible(false);
2332
+ }
2333
  }
2334
  self.toggleSaveTmplUI(visible);
2335
  });
2341
  // - set the select value to default 'none'
2342
  self.allSavedTemplates.bind( function( tmpl_collection ) {
2343
  if ( !_.isObject(tmpl_collection) ) {
2344
+ api.errare('error setupSaveTmplUI => tmpl collection should be an object');
2345
  return;
2346
  }
2347
  tmpl_collection = _.isEmpty(tmpl_collection) ? {} : tmpl_collection;
2457
  ///////////////////////////////////////////////
2458
  ///// DOM EVENTS
2459
  // Fired once, on first rendering
2460
+ scheduleTmplSaveDOMEvents : function() {
2461
  var self = this, $tmplDialogWrapper = $('#nimble-top-tmpl-save-ui');
2462
  if ( $tmplDialogWrapper.data('nimble-tmpl-dom-events-scheduled') )
2463
  return;
2711
  var self = this,
2712
  _renderAndSetup = function() {
2713
  $.when( self.renderTmplUI({}) ).done( function( $_el ) {
2714
+ self.scheduleTmplSaveDOMEvents();
2715
  self.saveUIContainer = $_el;
2716
  //display
2717
  _.delay( function() {
3444
  // Note : if the target location is empty ( is_first_section is true ), nothing is send to the preview when updating the api setting, and we refresh the location level. => this makes sure that we removes the placeholder printed in the previously empty location
3445
  'sek-add-section' : {
3446
  callback : function( params ) {
3447
+ // July 2020 => for #728
3448
+ api.previewedDevice( 'desktop' );
3449
+
3450
  sendToPreview = ! _.isUndefined( params.send_to_preview ) ? params.send_to_preview : true;//<= when the level is refreshed when complete, we don't need to send to preview.
3451
  uiParams = {};
3452
  apiParams = {
4012
 
4013
 
4014
  // GENERATE UI ELEMENTS
4015
+ // June 2020 :
4016
+ // When a user creates a new section, the content type switcher is set to section
4017
+ // For all other cases, when user clicks on the + icon, the content type switcher is set to module
4018
  'sek-pick-content' : function( params ) {
4019
  params = _.isObject(params) ? params : {};
4020
  // Set the active content type here
4021
  // This is used in api.czrInputMap.content_type_switcher()
4022
  // Fixes issue https://github.com/presscustomizr/nimble-builder/issues/248
4023
  api.czr_sektions.currentContentPickerType = api.czr_sektions.currentContentPickerType || new api.Value();
 
4024
 
4025
  // Set the last clicked target element id now => will be used for double click insertion of module / section
4026
  if ( _.isObject( params ) && params.id ) {
4055
  }
4056
  uiParams = {
4057
  action : 'sek-generate-level-options-ui',
4058
+ location : params.location,//<= added June 2020 for https://github.com/presscustomizr/nimble-builder-pro/issues/6
4059
  level : params.level,
4060
  id : params.id,
4061
  in_sektion : params.in_sektion,
4152
  });
4153
  },
4154
 
4155
+ // Updated June 2020 for https://github.com/presscustomizr/nimble-builder/issues/520
4156
  'sek-toggle-save-section-ui' : function( params ) {
4157
  sendToPreview = false;
4158
+ self.idOfSectionToSave = params.id;
4159
+ self.saveSectionDialogVisible( true );
4160
  return $.Deferred(function(_dfd_) {
4161
  apiParams = {
4162
  // action : 'sek-refresh-level',
4391
  api.errare( '::generateUI() => error', er );
4392
  dfd = $.Deferred();
4393
  }
4394
+ // June 2020 Make sure the content picker is set to "section" when user creates a new section
4395
+ api.czr_sektions.currentContentPickerType( params.content_type || 'module' );
4396
  break;
4397
 
4398
  // Fired in ::initialize()
4459
  // 1) mono-items and multi-items module => input change
4460
  // 2) crud multi item => item added or removed => in this case some args are not passed, like params.settingParams.args.inputRegistrationParams
4461
  updateAPISettingAndExecutePreviewActions : function( params ) {
4462
+ if ( _.isEmpty( params.settingParams ) || !_.has( params.settingParams, 'to' ) ) {
4463
  api.errare( 'updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated', params );
4464
  return;
4465
  }
4473
  parentModuleType = null,
4474
  isMultiItemModule = false;
4475
 
4476
+ if ( _.isEmpty( params.settingParams.args ) || !_.has( params.settingParams.args, 'moduleRegistrationParams' ) ) {
4477
  api.errare( 'updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated', params );
4478
  return;
4479
  }
4482
  _module_id_ = params.settingParams.args.moduleRegistrationParams.id,
4483
  parentModuleInstance = _ctrl_.czr_Module( _module_id_ );
4484
 
4485
+ if ( !_.isEmpty( parentModuleInstance ) ) {
4486
  parentModuleType = parentModuleInstance.module_type;
4487
  isMultiItemModule = parentModuleInstance.isMultiItem();
4488
  } else {
4493
 
4494
  // The new module value can be a single item object if monoitem module, or an array of item objects if multi-item crud
4495
  // Let's normalize it
4496
+ if ( !isMultiItemModule && _.isObject( rawModuleValue ) ) {
4497
  moduleValueCandidate = self.normalizeAndSanitizeSingleItemInputValues( {
4498
  item_value : rawModuleValue,
4499
  parent_module_type : parentModuleType,
4534
  return inputRegistrationParams && _.isString( inputRegistrationParams.refresh_markup ) && 'true' !== inputRegistrationParams.refresh_markup && 'false' !== inputRegistrationParams.refresh_markup;
4535
  };
4536
 
4537
+ if ( !_.isUndefined( input_id ) ) {
4538
  inputRegistrationParams = self.getInputRegistrationParams( input_id, parentModuleType );
4539
+ if ( !_.isUndefined( inputRegistrationParams.refresh_stylesheet ) ) {
4540
  refresh_stylesheet = Boolean( inputRegistrationParams.refresh_stylesheet );
4541
  }
4542
+ if ( !_.isUndefined( inputRegistrationParams.refresh_markup ) ) {
4543
  if ( refreshMarkupWhenNeededForInput() ) {
4544
  refresh_markup = inputRegistrationParams.refresh_markup;
4545
  } else {
4546
  refresh_markup = Boolean( inputRegistrationParams.refresh_markup );
4547
  }
4548
  }
4549
+ if ( !_.isUndefined( inputRegistrationParams.refresh_fonts ) ) {
4550
  refresh_fonts = Boolean( inputRegistrationParams.refresh_fonts );
4551
  }
4552
+ if ( !_.isUndefined( inputRegistrationParams.refresh_preview ) ) {
4553
  refresh_preview = Boolean( inputRegistrationParams.refresh_preview );
4554
  }
4555
  }
4571
  _.each( moduleValueCandidate || {}, function( _val_, _key_ ) {
4572
  // Note : _.isEmpty( 5 ) returns true when checking an integer,
4573
  // that's why we need to cast the _val_ to a string when using _.isEmpty()
4574
+ if ( !_.isBoolean( _val_ ) && _.isEmpty( _val_ + "" ) )
4575
  return;
4576
  _valueCandidate[ _key_ ] = _val_;
4577
  });
4590
  // So that the .fonts collection is ready server side
4591
  if ( true === refresh_fonts ) {
4592
  var newFontFamily = params.settingParams.args.input_value;
4593
+ if ( !_.isString( newFontFamily ) ) {
4594
  api.errare( 'updateAPISettingAndExecutePreviewActions => font-family must be a string', newFontFamily );
4595
  return;
4596
  }
4668
  if ( refreshMarkupWhenNeededForInput() ) {
4669
 
4670
  var _html_content = params.settingParams.args.input_value;
4671
+ if ( !_.isString( _html_content ) ) {
4672
  throw new Error( '::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.');
4673
  }
4674
+
4675
+ // Like shortcode tags, template tags, script tags
4676
+ if ( !self.htmlIncludesElementsThatNeedAnAjaxRefresh( _html_content ) ) {
4677
  api.previewer.send( 'sek-update-html-in-selector', {
4678
  selector : inputRegistrationParams.refresh_markup,
4679
  changed_item_id : _changed_item_id,
4711
  // this way we make sure that the customized value used when ajaxing will be taken into account when writing the google font http request link
4712
  if ( true === refresh_fonts ) {
4713
  var newFontFamily = params.settingParams.args.input_value;
4714
+ if ( !_.isString( newFontFamily ) ) {
4715
  api.errare( 'updateAPISettingAndExecutePreviewActions => font-family must be a string', newFontFamily );
4716
  return;
4717
  }
4760
  var currentGfonts = self.sniffGlobalGFonts( clonedGlobalOptions );
4761
 
4762
  // add it only if gfont
4763
+ if ( !_.isEmpty( newFontFamily ) && _.isString( newFontFamily ) ) {
4764
+ if ( newFontFamily.indexOf('gfont') > -1 && !_.contains( currentGfonts, newFontFamily ) ) {
4765
  currentGfonts.push( newFontFamily );
4766
  }
4767
  }
4787
  return;
4788
  // example of input_id candidate 'font_family_css'
4789
  if ( _.isString( _key_ ) && _key_.indexOf('font_family') > -1 ) {
4790
+ if ( levelData.indexOf('gfont') > -1 && !_.contains( gfonts, levelData ) ) {
4791
  gfonts.push( levelData );
4792
  }
4793
  }
4851
  _.each( params.item_value, function( _val, input_id ) {
4852
  if ( 'title' === input_id )
4853
  return;
4854
+ if ( !params.is_multi_items && 'id' === input_id )
4855
  return;
4856
 
4857
  if ( null !== params.parent_module_type ) {
4960
  *
4961
  * @param {string} content The content we want to scan for shortcodes.
4962
  */
4963
+ htmlIncludesElementsThatNeedAnAjaxRefresh : function( content ) {
4964
  var shortcodes = content.match( /\[+([\w_-])+/g ),
4965
  tmpl_tags = content.match( /\{\{+([\w_-])+/g ),
4966
+ // script detection introduced for https://github.com/presscustomizr/nimble-builder/issues/710
4967
+ script_tags = content.match( /<script[\s\S]*?>[\s\S]*?<\/script>/gi ),
4968
  shortcode_result = [],
4969
  tmpl_tag_result = [];
4970
 
4986
  }
4987
  }
4988
  }
4989
+ return !_.isEmpty( shortcode_result ) || !_.isEmpty( tmpl_tag_result ) || !_.isEmpty( script_tags );
4990
  }
4991
  });//$.extend()
4992
  })( wp.customize, jQuery );//global sektionsLocalizedData
5028
  icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>'
5029
  },
5030
 
5031
+ // June 2020 for : https://github.com/presscustomizr/nimble-builder/issues/520
5032
+ // and https://github.com/presscustomizr/nimble-builder/issues/713
5033
+ sek_my_sections_sec_picker_module : {
5034
+ settingControlId : sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid() + '_sek_draggable_sections_ui',
5035
+ module_type : 'sek_my_sections_sec_picker_module',
5036
+ controlLabel : sektionsLocalizedData.i18n['My sections'],
5037
+ content_type : 'section',
5038
+ expandAndFocusOnInit : false,
5039
+ priority : 10,
5040
+ icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>',
5041
+ is_new : true
5042
+ },
5043
+
5044
+ // Preset sections
5045
+ // to understand how those sections are registered server side, see @see https://github.com/presscustomizr/nimble-builder/issues/713
5046
  sek_intro_sec_picker_module : {
5047
  settingControlId : sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid() + '_sek_draggable_sections_ui',
5048
  module_type : 'sek_intro_sec_picker_module',
5108
  priority : 30,
5109
  icon : '<i class="fas fa-grip-vertical sek-level-option-icon"></i>'
5110
  }
5111
+ });//$.extend( registrationParams, { });
5112
 
5113
  // Beta features to merge here ?
5114
  // if ( sektionsLocalizedData.areBetaFeaturesEnabled ) {
5115
  // $.extend( registrationParams, {});
5116
  // }
5117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5118
 
5119
  // BAIL WITH A SEE-ME ANIMATION IF THIS UI IS CURRENTLY BEING DISPLAYED
5120
  // Is the UI currently displayed the one that is being requested ?
5192
 
5193
  var $title = _control_.container.find('label > .customize-control-title'),
5194
  _titleContent = $title.html();
5195
+
5196
  // We wrap the original text content in this span.sek-ctrl-accordion-title in order to style it (underlined) independently ( without styling the icons next to it )
5197
  $title.html( ['<span class="sek-ctrl-accordion-title">', _titleContent, '</span>' ].join('') );
5198
 
5199
+ if ( optionData.is_new ) {
5200
+ var _titleHtml = $title.html();
5201
+ $title.html( _titleHtml + ' <span class="sek-new-label">New!</span>' );
5202
+ }
5203
  // if this level has an icon, let's prepend it to the title
5204
  if ( ! _.isUndefined( optionData.icon ) ) {
5205
  $title.addClass('sek-flex-vertical-center').prepend( optionData.icon );
5206
  }
5207
 
5208
  // ACCORDION
 
5209
  // Setup the accordion only for section content type
5210
  if ( 'section' === _control_.content_type ) {
5211
  // Hide the item wrapper
5558
  // Prepare the module map to register
5559
  var modulesRegistrationParams = {};
5560
 
5561
+ // June 2020 : introduced for https://github.com/presscustomizr/nimble-builder-pro/issues/6
5562
+ // so we can remotely register modules
5563
+ api.trigger('nb_setup_level_ui_registration_params', {
5564
+ params : params,
5565
+ modulesRegistrationParams : modulesRegistrationParams
5566
+ });
5567
+
5568
  $.extend( modulesRegistrationParams, {
5569
  bg : {
5570
  settingControlId : params.id + '__bg_options',
7401
  });// self.preparePresetSectionForInjection.done()
7402
  };//_doWhenPresetSectionCollectionFetched()
7403
 
 
7404
  // Try to fetch the sections from the server
7405
  // if sucessfull, resolve __presetSectionInjected__.promise()
7406
  self.getPresetSectionCollection({
7419
  // OK. time to resolve __presetSectionInjected__.promise()
7420
  _doWhenPresetSectionCollectionFetched( presetColumnOrSectionCollection );
7421
  });//self.getPresetSectionCollection().done()
7422
+
7423
  break;//case 'preset_section' :
7424
  }//switch( params.content_type)
7425
  break;
7818
  // @return a promise()
7819
  // caches the sections in api.sek_presetSections when api.section( '__content_picker__') is registered
7820
  // caches the user saved sections on the first drag and drop of a user-saved section
7821
+ _maybeFetchSectionsFromServer : function() {
 
 
 
 
7822
  var dfd = $.Deferred(),
7823
  _ajaxRequest_;
7824
 
7825
+ if ( ! _.isEmpty( api.sek_presetSections ) ) {
7826
+ dfd.resolve( api.sek_presetSections );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7827
  } else {
7828
+ if ( ! _.isUndefined( api.sek_fetchingPresetSections ) && 'pending' == api.sek_fetchingPresetSections.state() ) {
7829
+ _ajaxRequest_ = api.sek_fetchingPresetSections;
7830
  } else {
7831
+ _ajaxRequest_ = wp.ajax.post( 'sek_get_preset_sections', { nonce: api.settings.nonce.save } );
7832
+ api.sek_fetchingPresetSections = _ajaxRequest_;
 
 
 
 
 
 
 
 
 
 
 
7833
  }
7834
+ _ajaxRequest_.done( function( _collection_ ) {
7835
+ //api.sek_presetSections = JSON.parse( _collection_ );
7836
+ api.sek_presetSections = _collection_;
7837
+ dfd.resolve( api.sek_presetSections );
7838
+ }).fail( function( _r_ ) {
7839
+ dfd.reject( _r_ );
7840
+ });
7841
  }
 
7842
  return dfd.promise();
7843
  },
7844
 
7859
  getPresetSectionCollection : function( sectionParams ) {
7860
  var self = this,
7861
  __dfd__ = $.Deferred();
7862
+ if ( sectionParams.is_user_section ) {
7863
+ wp.ajax.post( 'sek_get_user_section_json', {
7864
+ nonce: api.settings.nonce.save,
7865
+ section_post_name: sectionParams.presetSectionId
7866
+ //skope_id: api.czr_skopeBase.getSkopeProperty( 'skope_id' )
 
 
7867
  })
7868
+ .done( function( userSection ) {
7869
+ // User section looks like
7870
+ // {
7871
+ // data : {}
7872
+ // metas : {}
7873
+ // section_post_name : ''
 
 
 
 
 
 
 
 
 
 
7874
  // }
7875
+ if ( ! _.isObject( userSection ) || _.isEmpty( userSection ) || _.isUndefined( userSection.data ) ) {
7876
+ api.errare( 'getPresetSectionCollection => preset section type not found or empty : ' + sectionParams.presetSectionId, userSection );
7877
+ throw new Error( 'getPresetSectionCollection => preset section type not found or empty');
7878
+ }
 
 
 
 
 
 
 
7879
 
7880
+ var userSectionCandidate = $.extend( {}, true, userSection.data );
 
 
 
 
 
 
 
 
7881
 
7882
  // ID's
7883
  // the level's id have to be generated
7884
+ // 1) root level
7885
+ userSectionCandidate.id = sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid();
7886
+ // 2) children levels
7887
+ userSectionCandidate.collection = self.setPresetOrUserSectionIds( userSectionCandidate.collection );
7888
 
7889
  // NIMBLE VERSION
7890
  // set the section version
7891
+ userSectionCandidate.ver_ini = sektionsLocalizedData.nimbleVersion;
7892
  // the other level's version have to be added
7893
+ userSectionCandidate.collection = self.setPresetSectionVersion( userSectionCandidate.collection );
7894
+
7895
+ // OK. time to resolve __presetSectionInjected__.promise()
7896
+ __dfd__.resolve( userSectionCandidate );
7897
+ })
7898
+ .fail( function( er ) {
7899
+ __dfd__.reject( er );
7900
+ });
7901
+ } else {
7902
+ self._maybeFetchSectionsFromServer()
7903
+ .fail( function( er ) {
7904
+ __dfd__.reject( er );
7905
+ })
7906
+ .done( function( _collection_ ) {
7907
+ //api.infoLog( 'preset_sections fetched', api.sek_presetSections );
7908
+ var presetSection,
7909
+ allPresets = $.extend( true, {}, _.isObject( _collection_ ) ? _collection_ : {} );
7910
+
7911
+ if ( _.isEmpty( allPresets ) ) {
7912
+ throw new Error( 'getPresetSectionCollection => Invalid collection');
7913
+ }
7914
+ if ( _.isEmpty( allPresets[ sectionParams.presetSectionId ] ) ) {
7915
+ throw new Error( 'getPresetSectionCollection => the preset section : "' + sectionParams.presetSectionId + '" has not been found in the collection');
7916
+ }
7917
+ var presetCandidate = allPresets[ sectionParams.presetSectionId ];
7918
 
7919
+ // Ensure we have a string that's JSON.parse-able
7920
+ // if ( typeof presetCandidate !== 'string' || presetCandidate[0] !== '{' ) {
7921
+ // throw new Error( 'getPresetSectionCollection => ' + sectionParams.presetSectionId + ' is not JSON.parse-able');
7922
+ // }
7923
+ // presetCandidate = JSON.parse( presetCandidate );
7924
+
7925
+ // ID's
7926
+ // the level's id have to be generated
7927
+ presetCandidate.collection = self.setPresetOrUserSectionIds( presetCandidate.collection );
7928
+
7929
+ // NIMBLE VERSION
7930
+ // set the section version
7931
+ presetCandidate.ver_ini = sektionsLocalizedData.nimbleVersion;
7932
+ // the other level's version have to be added
7933
+ presetCandidate.collection = self.setPresetSectionVersion( presetCandidate.collection );
7934
+ __dfd__.resolve( presetCandidate );
7935
+ });//_maybeFetchSectionsFromServer.done()
7936
+ }
7937
  return __dfd__.promise();
7938
  },
7939
 
7940
 
7941
+ // SECTION HELPERS
7942
+ // Replaces __rep__me__ by an id looking like __nimble__1eda909f0cfe
7943
+ setPresetOrUserSectionIds : function( collection ) {
7944
+ var self = this;
7945
+ // Only collection set as arrays hold columns or modules
7946
+ if ( _.isArray( collection ) ) {
7947
+ _.each( collection, function( levelData ) {
7948
+ levelData.id = sektionsLocalizedData.optPrefixForSektionsNotSaved + self.guid();
7949
+ if ( _.isArray( levelData.collection ) ) {
7950
+ self.setPresetOrUserSectionIds( levelData.collection );
7951
+ }
7952
+ });
7953
+ }
7954
+ return collection;
7955
+ },
7956
+
7957
+ setPresetSectionVersion : function( collection ) {
7958
+ var self = this;
7959
+ _.each( collection, function( levelData ) {
7960
+ levelData.ver_ini = sektionsLocalizedData.nimbleVersion;
7961
+ if ( _.isArray( levelData.collection ) ) {
7962
+ self.setPresetSectionVersion( levelData.collection );
7963
+ }
7964
+ });
7965
+ return collection;
7966
+ },
7967
+
7968
 
7969
 
7970
  // Walk the column collection of a preset section, and replace '__img_url__*' pattern by image ids that we get from ajax calls
8140
  return sektionsLocalizedData.settingIdForGlobalSections;
8141
  },
8142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8143
 
8144
  // @params = { id : '', level : '' }
8145
  // Recursively walk the level tree until a match is found
8198
  },
8199
 
8200
 
8201
+
8202
+
8203
+
8204
+
8205
+
8206
+
8207
+
8208
+ //-------------------------------------------------------------------------------------------------
8209
+ //-- LOCATION HELPERS
8210
+ //-------------------------------------------------------------------------------------------------
8211
  // used in react to preview or update api settings
8212
  // @params is an object {
8213
  //
8260
  return walkCollection( id ) !== 'no_match';
8261
  },
8262
 
8263
+ // @return bool
8264
+ // June 2020 : introduced for https://github.com/presscustomizr/nimble-builder-pro/issues/6
8265
+ isHeaderLocation : function( id ) {
8266
+ var _locCollection = this.activeLocationsInfo(),
8267
+ _currentLocInfo = !_.isArray( _locCollection ) ? {} : _.findWhere( _locCollection, { id : id } );
8268
+ return _.isObject( _currentLocInfo ) && _currentLocInfo.is_header;
8269
+ },
8270
+
8271
+ // @return bool
8272
+ // June 2020 : introduced for https://github.com/presscustomizr/nimble-builder-pro/issues/6
8273
+ isFooterLocation : function( id ) {
8274
+ var _locCollection = self.activeLocationsInfo(),
8275
+ _currentLocInfo = !_.isArray( _locCollection ) ? {} : _.findWhere( _locCollection, { id : id } );
8276
+ return _.isObject( _currentLocInfo ) && _currentLocInfo.is_footer;
8277
+ },
8278
+
8279
+
8280
+
8281
+ //-------------------------------------------------------------------------------------------------
8282
+ //-- LEVEL HELPERS
8283
+ //-------------------------------------------------------------------------------------------------
8284
+ // @params = { id : '', level : '' }
8285
+ // Recursively walk the level tree until a match is found
8286
+ // @return the level model object
8287
+ getLevelModel : function( id, collection ) {
8288
+ var self = this, _data_ = 'no_match',
8289
+ // @param id mandatory
8290
+ // @param collection mandatory
8291
+ // @param collectionSettingId optional
8292
+ // @param localOrGlobal optional
8293
+ _walk_ = function( id, collection, collectionSettingId, localOrGlobal ) {
8294
+ // do we have a collection ?
8295
+ // if not, let's use the root one
8296
+ if ( _.isUndefined( collection ) ) {
8297
+ var currentSektionSettingValue = api( collectionSettingId )();
8298
+ var sektionSettingValue = _.isObject( currentSektionSettingValue ) ? $.extend( true, {}, currentSektionSettingValue ) : $.extend( true, {}, self.getDefaultSektionSettingValue( localOrGlobal ) );
8299
+ collection = _.isArray( sektionSettingValue.collection ) ? sektionSettingValue.collection : [];
8300
+ }
8301
+ _.each( collection, function( levelData ) {
8302
+ // did we found a match recursively ?
8303
+ if ( 'no_match' != _data_ )
8304
+ return;
8305
+ if ( id === levelData.id ) {
8306
+ _data_ = levelData;
8307
+ } else {
8308
+ if ( _.isArray( levelData.collection ) ) {
8309
+ _walk_( id, levelData.collection, collectionSettingId, localOrGlobal );
8310
+ }
8311
+ }
8312
+ });
8313
+ return _data_;
8314
+ };
8315
+
8316
+ // if a collection has been provided in the signature, let's walk it.
8317
+ // Otherwise, let's walk the local and global ones until a match is found.
8318
+ if ( ! _.isEmpty( collection ) ) {
8319
+ _walk_( id, collection );
8320
+ } else {
8321
+ _.each( {
8322
+ local : self.localSectionsSettingId(),
8323
+ global : self.getGlobalSectionsSettingId()
8324
+ }, function( collectionSettingId, localOrGlobal ) {
8325
+ if ( 'no_match' === _data_ ) {
8326
+ _walk_( id, collection, collectionSettingId, localOrGlobal );
8327
+ }
8328
+ });
8329
+ }
8330
+
8331
+ return _data_;
8332
+ },
8333
 
8334
  getLevelPositionInCollection : function( id, collection ) {
8335
  var self = this, _position_ = 'no_match',
8376
  return _position_;
8377
  },
8378
 
 
8379
  // @params = { property : 'options', id : }
8380
  // @return mixed type
8381
  getLevelProperty : function( params ) {
8431
  return newIdWalker( deepClonedLevel );
8432
  },
8433
 
8434
+
8435
+
8436
+
8437
+
8438
+ //-------------------------------------------------------------------------------------------------
8439
+ //-- REGISTRATION HELPERS
8440
+ //-------------------------------------------------------------------------------------------------
8441
  // Extract the default model values from the server localized registered module
8442
  // Invoked when registrating a module in api.czrModuleMap
8443
  // For example :
9473
  before_section : $dropTarget.data('drop-zone-before-section'),
9474
  after_section : $dropTarget.data('drop-zone-after-section'),
9475
 
9476
+ content_type : $(this).attr('data-sek-content-type'),
9477
+ content_id : $(this).attr('data-sek-content-id'),
9478
 
9479
+ section_type : $(this).attr('data-sek-section-type'),
9480
  // Saved sections
9481
+ is_user_section : "true" === $(this).attr('data-sek-is-user-section')
9482
  });
9483
  // And reset the preview target
9484
  self.lastClickedTargetInPreview({});
9798
  if ( ! $dropTarget.hasClass('sek-drop-zone') ) {
9799
  return false;
9800
  }
9801
+ // June 2020 : always allow user sections to be dropped in header and footer location
9802
+ // while preset section must explicitely be 'content' section_type to be allowed
9803
+ if ( !self.dndData.is_user_section ) {
9804
+ if ( ( isHeaderLocation || isFooterLocation ) && isContentSectionCandidate ) {
9805
+ msg = isHeaderLocation ? sektionsLocalizedData.i18n['Header location only accepts modules and pre-built header sections'] : sektionsLocalizedData.i18n['Footer location only accepts modules and pre-built footer sections'];
9806
+ maybePrintErrorMessage( msg );
9807
+ return false;
9808
+ }
9809
  }
9810
  if ( isFooterLocation && 'preset_section' === self.dndData.content_type && 'header' === self.dndData.section_type ) {
9811
  msg = sektionsLocalizedData.i18n['You can\'t drop a header section in the footer location'];
11451
  // _html += '<div class="sek-tmpl-thumb"><img src="'+ _data.thumb_url +'"/></div>';
11452
  // _html += '</div>';
11453
  // });
11454
+ var _thumbUrl = [ sektionsLocalizedData.baseUrl , '/assets/admin/img/wire_frame.png', '?ver=' , sektionsLocalizedData.nimbleVersion ].join(''),
11455
  _dfd_ = $.Deferred(),
11456
  _titleAttr;
11457
 
11517
  content_type_switcher : function( input_options ) {
11518
  var input = this,
11519
  _section_,
11520
+ initial_content_type,
11521
+ nbApiInstance = api.czr_sektions;
11522
 
11523
  if ( ! api.section.has( input.module.control.section() ) ) {
11524
  throw new Error( 'api.czrInputMap.content_type_switcher => section not registered' );
11525
  }
11526
  _section_ = api.section( input.module.control.section() );
11527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11528
  var _do_ = function( contentType ) {
11529
  input.container.find( '[data-sek-content-type="' + ( contentType || 'module' ) + '"]').trigger('click');
11530
  _.each( _section_.controls(), function( _control_ ) {
11536
 
11537
  // Initialize
11538
  // Fixes issue https://github.com/presscustomizr/nimble-builder/issues/248
11539
+ api.czr_sektions.currentContentPickerType = api.czr_sektions.currentContentPickerType || new api.Value();
11540
  // This event is emitted by ::generateUIforDraggableContent()
11541
  // this way we are sure that all controls for modules and sections are instantiated
11542
  // and we can use _section_.controls() to set the visibility of module / section controls when switching
11545
  });
11546
 
11547
 
11548
+
11549
  // Schedule a reaction to changes
11550
  api.czr_sektions.currentContentPickerType.bind( function( contentType ) {
11551
  _do_( contentType );
11552
  });
11553
+
11554
+ // initialize the content picker observer
11555
+ api.czr_sektions.currentContentPickerType( input() );
11556
+
11557
+ // attach click event on data-sek-content-type buttons
11558
+ input.container.on('click', '[data-sek-content-type]', function( evt ) {
11559
+ evt.preventDefault();
11560
+ var _contentType = $(this).data( 'sek-content-type');
11561
+ // handle the aria-pressed state
11562
+ input.container.find('[data-sek-content-type]').attr( 'aria-pressed', false );
11563
+
11564
+ // close other dialog
11565
+ nbApiInstance.templateGalleryExpanded(false);
11566
+ nbApiInstance.levelTreeExpanded(false);
11567
+ if ( nbApiInstance.tmplDialogVisible ) {
11568
+ nbApiInstance.tmplDialogVisible(false);
11569
+ }
11570
+ if ( nbApiInstance.saveSectionDialogVisible ) {
11571
+ nbApiInstance.saveSectionDialogVisible(false);
11572
+ }
11573
+
11574
+ // April 2020 : template case added for https://github.com/presscustomizr/nimble-builder/issues/651
11575
+ if ( 'template' === _contentType ) {
11576
+ var _isExpanded = api.czr_sektions.templateGalleryExpanded();
11577
+ $(this).attr( 'aria-pressed', !_isExpanded );
11578
+
11579
+ api.czr_sektions.templateGalleryExpanded(!_isExpanded);
11580
+ } else {
11581
+ // always close the template picker when selecting something else
11582
+ api.czr_sektions.templateGalleryExpanded(false);
11583
+
11584
+ $(this).attr( 'aria-pressed', true );
11585
+
11586
+ // case for section and module content type
11587
+ api.czr_sektions.currentContentPickerType( _contentType );
11588
+ }
11589
+ });
11590
+
11591
+ // initialize with module or section picker depending on the scenario :
11592
+ // 1) new section created => section picker
11593
+ // 2) all other cases => module picker
11594
+ _do_( api.czr_sektions.currentContentPickerType() );
11595
  }
11596
  });
11597
  })( wp.customize, jQuery, _ );//global sektionsLocalizedData
11618
  //console.log( this.id, input_options );
11619
  },
11620
 
11621
+ // June 2020 : input type used for both prebuilt and user sections
11622
  section_picker : function( input_options ) {
11623
  var input = this;
11624
  // Mouse effect with cursor: -webkit-grab; -webkit-grabbing;
14889
  api.CZRInput.prototype.initialize.call( input, name, options );
14890
  input.isReady.then( function() {
14891
  input.renderUserSavedSections();
14892
+ input.attachDomEvents();
14893
  });
14894
  },
14895
 
14896
+ // Ajax fetch the user section collection
14897
+ // or return the already cached collection
14898
+ getUserSavedSections : function() {
14899
+ var _dfd_ = $.Deferred();
14900
+ if ( !_.isEmpty( api.czr_sektions.userSavedSections ) ) {
14901
+ _dfd_.resolve( api.czr_sektions.userSavedSections );
14902
+ } else {
14903
+ api.czr_sektions.getSavedSectionCollection().done( function( sec_collection ) {
14904
+ _dfd_.resolve( sec_collection );
14905
+ });
14906
+ }
14907
+ return _dfd_.promise();
14908
+ },
14909
 
14910
  renderUserSavedSections : function() {
14911
  var input = this,
14912
  html = '',
14913
  $wrapper = input.container.find('.sek-content-type-wrapper'),
14914
+ creation_date = '';
14915
  // https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date
14916
+ // formatDate = function(date) {
14917
+ // var monthNames = [
14918
+ // "January", "February", "March",
14919
+ // "April", "May", "June", "July",
14920
+ // "August", "September", "October",
14921
+ // "November", "December"
14922
+ // ];
14923
+
14924
+ // var day = date.getDate(),
14925
+ // monthIndex = date.getMonth(),
14926
+ // year = date.getFullYear(),
14927
+ // hours = date.getHours(),
14928
+ // minutes = date.getMinutes(),
14929
+ // seconds = date.getSeconds();
14930
+
14931
+ // return [
14932
+ // day,
14933
+ // monthNames[monthIndex],
14934
+ // year
14935
+ // //[hours,minutes,seconds].join(':')
14936
+ // ].join(' ');
14937
+ // };
14938
+
14939
+ var _refreshUserSectionView = function( sec_collection ) {
14940
+ // clean
14941
+ $wrapper.find('.sek-user-section-wrapper').remove();
14942
+
14943
+ // Write
14944
+ if ( _.isEmpty( sec_collection ) ) {
14945
+ var _placeholdImgUrl = [ sektionsLocalizedData.baseUrl , '/assets/admin/img/save_section_notice.png', '?ver=' , sektionsLocalizedData.nimbleVersion ].join('');
14946
+ doc_url = 'https://docs.presscustomizr.com/article/417-how-to-save-and-reuse-sections-with-nimble-builder';
14947
+ html = [
14948
+ '<div class="sek-user-section-wrapper">',
14949
+ '<img src="'+ _placeholdImgUrl +'" />',
14950
+ '<br/><a href="'+ doc_url +'" target="_blank" rel="noreferrer nofollow">'+ doc_url +'</a>',
14951
+ '</div>'
14952
+ ].join('');
14953
+ $wrapper.append( html );
14954
+ input.module.container.find('.czr-item-content .customize-control-title').html('You did not save any section yet.');
14955
+ } else {
14956
+ var _thumbUrl = [ sektionsLocalizedData.baseUrl , '/assets/admin/img/nb_sec_pholder.png', '?ver=' , sektionsLocalizedData.nimbleVersion ].join(''),
14957
+ styleAttr = 'background: url(' + _thumbUrl + ') 50% 50% / cover no-repeat;';
14958
+ _.each( sec_collection, function( secData, secKey ) {
14959
+ // try { creation_date = formatDate( new Date( secData.creation_date.replace( /-/g, '/' ) ) ); } catch( er ) {
14960
+ // api.errare( '::renderUserSavedSections => formatDate => error', er );
14961
+ // }
14962
+ if( !_.isEmpty( secData.description ) ) {
14963
+ _titleAttr = [ secData.title, secData.last_modified_date, secData.description ].join(' | ');
14964
+ } else {
14965
+ _titleAttr = [ secData.title, secData.last_modified_date ].join(' | ');
14966
+ }
14967
+ html = [
14968
+ '<div class="sek-user-section-wrapper">',
14969
+ '<div draggable="true" data-sek-is-user-section="true" data-sek-section-type="content" data-sek-content-type="preset_section" data-sek-content-id="' + secKey +'" style="" title="' + secData.title + '">',
14970
+ '<div class="sek-sec-thumb" style="'+ styleAttr +'"></div>',//<img src="'+ _thumbUrl +'"/>
14971
+ '<div class="sek-overlay"></div>',
14972
+ '<div class="sek-sec-info" title="'+ _titleAttr +'">',
14973
+ '<h3 class="sec-title">' + secData.title + '</h3>',
14974
+ '<p class="sec-date"><i>' + [ sektionsLocalizedData.i18n['Last modified'], ' : ', secData.last_modified_date ].join(' ') + '</i></p>',
14975
+ '<p class="sec-desc">' + secData.description + '</p>',
14976
+ '<i class="material-icons remove-user-sec" title="'+ sektionsLocalizedData.i18n['Remove this template'] +'">delete_forever</i>',
14977
+ //'<div class="sek-overlay"></div>',
14978
+ //'<div class="sek-saved-section-description">' + secData.description + '</div>',
14979
+ //! _.isEmpty( creation_date ) ? ( '<div class="sek-saved-section-date"><i class="far fa-calendar-alt"></i> @missi18n Created : ' + creation_date + '</div>' ) : '',
14980
+ '</div>',
14981
+ '</div>',
14982
+ '</div>'
14983
+ ].join('');
14984
+ $wrapper.append( html );
14985
+ });//_.each
14986
  }
14987
+
14988
+ // Make section draggable now
14989
+ api.czr_sektions.trigger( 'sek-refresh-dragzones', { type : 'preset_section', input_container : input.container } );
14990
+ };//_refreshUserSectionView
14991
+
14992
+ // on input instantiation, render the collection
14993
+ input.getUserSavedSections().done( function( sec_collection ) {
14994
+ _refreshUserSectionView( sec_collection );
14995
+ });
14996
+
14997
+ // when the collection is modified : save, update, remove actions => NB refreshes the collection
14998
+ api.czr_sektions.allSavedSections.bind( function( sec_collection ) {
14999
+ _refreshUserSectionView( sec_collection );
15000
+ });
15001
+ },//renderUserSavedSections
15002
+
15003
+ // with delegation
15004
+ attachDomEvents : function() {
15005
+ // Attach events
15006
+ this.container.on('click', '.sek-sec-info .remove-user-sec', function(evt) {
15007
+ evt.preventDefault();
15008
+ var self = api.czr_sektions;
15009
+ var _focusOnRemoveCandidate = function( mode ) {
15010
+ self.saveSectionDialogMode( 'remove' );
15011
+ // self unbind
15012
+ self.saveSectionDialogMode.unbind( _focusOnRemoveCandidate );
15013
+ };
15014
+ self.saveSectionDialogMode.bind( _focusOnRemoveCandidate );
15015
+ self.saveSectionDialogVisible(true);
15016
  });
15017
  }
15018
+ });//module.inputConstructor
15019
 
15020
  // run the parent initialize
15021
  // Note : must be always invoked always after the input / item class extension
15023
  api.CZRDynModule.prototype.initialize.call( module, id, options );
15024
 
15025
  // module.embedded.then( function() {
15026
+ // console.log('MODULE READY=> lets dance', module.container, module.container.find('.sek-ctrl-accordion-title') );
15027
  // });
15028
  },//initialize
15029
  };
15038
  // If not multi item, the single item content is rendered as soon as the item wrapper is rendered.
15039
  //4) some DOM behaviour. For example, a multi item shall be sortable.
15040
  api.czrModuleMap = api.czrModuleMap || {};
15041
+ $.extend( api.czrModuleMap, {
15042
+ sek_my_sections_sec_picker_module : {
15043
+ mthds : Constructor,
15044
+ crud : false,
15045
+ name : api.czr_sektions.getRegisteredModuleProperty( 'sek_my_sections_sec_picker_module', 'name' ),
15046
+ has_mod_opt : false,
15047
+ ready_on_section_expanded : false,
15048
+ ready_on_control_event : 'sek-accordion-expanded',// triggered in ::scheduleModuleAccordion()
15049
+ defaultItemModel : api.czr_sektions.getDefaultItemModelFromRegisteredModuleData( 'sek_my_sections_sec_picker_module' )
15050
+ },
15051
+ });
 
 
15052
  })( wp.customize , jQuery, _ );
15053
  //global sektionsLocalizedData, serverControlParams
15054
  //extends api.CZRDynModule
assets/czr/sek/js/ccat-sek-control.min.js CHANGED
@@ -1 +1 @@
1
- !function(p,m){p.CZR_Helpers.getInputSubTemplate=function(e){return 0<m("#tmpl-nimble-subtemplate___"+e).length?wp.template("nimble-subtemplate___"+e):(p.errare("problem in api.czr_sektions.getInputSubTemplate(), missing js template in the DOM for template_name : "+e),null)};var f=p.CZR_Helpers.getModuleTmpl;p.CZR_Helpers.getModuleTmpl=function(n){if(-1===(n=_.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:p.settings.nonce.save},n)).module_id.indexOf("__nimble__"))return f(n);var o=m.Deferred();if((_.isEmpty(n.tmpl)||_.isEmpty(n.module_type))&&o.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),!p.czr_sektions.isModuleRegistered(n.module_type))return o.reject("api.CZR_Helpers.getModuleTmpl => module type not registered"),o.resolve(),f(n);if(_.contains([],n.module_type))return o.resolve(),f(n);var e=p.czr_sektions.getRegisteredModuleProperty(n.module_type,"tmpl"),t=_.isObject(e)&&e[n.tmpl]?e[n.tmpl]:{};!_.isEmpty(t)&&_.isObject(t)||(p.errare("getModuleTmpl => Error empty or invalid input map for module : ",n.module_type),o.reject("getModuleTmpl => Error empty or invalid input map for module : ",n.module_type));var r=n.item_model,i=m.extend(!0,{},p.czr_sektions.getDefaultItemModelFromRegisteredModuleData(n.module_type)),s=m.extend(!0,{},i);r=m.extend(s,r),_.isEmpty(r)&&(p.errare("getModuleTmpl => Error invalid item model for module : ",n.module_type),o.reject("getModuleTmpl => Error invalid item model for module : ",n.module_type));var a,c="",l=function(e){var i="";return _.each(e,function(e,t){a=e.input_type;try{i+=wp.template("nimble-input-wrapper")({input_type:a,input_data:e,input_id:t,item_model:r,input_tmpl:function(e){var t=e;switch(e){case"czr_layouts":case"select":case"simpleselect":case"fa_icon_picker":case"font_picker":t="simpleselect";break;case"simpleselectWithDeviceSwitcher":t="simpleselect_deviceswitcher";break;case"multiselect":case"category_picker":t="multiselect";break;case"h_alignment":case"horizAlignmentWithDeviceSwitcher":t="h_alignment";break;case"h_text_alignment":case"horizTextAlignmentWithDeviceSwitcher":t="h_text_alignment";break;case"range_simple":case"range_simple_device_switcher":t="range_simple";break;case"number_simple":t="number_simple";break;case"font_size":case"line_height":case"range_with_unit_picker":case"range_with_unit_picker_device_switcher":t="range_with_unit_picker";break;case"spacing":case"spacingWithDeviceSwitcher":t="spacing";break;case"upload":case"upload_url":t="upload";break;case"bg_position":case"bgPositionWithDeviceSwitcher":t="bg_position";break;case"verticalAlignWithDeviceSwitcher":t="v_alignment"}return 0<m("#tmpl-nimble-input___"+t).length?wp.template("nimble-input___"+t):(p.errare("problem in getInputTemplate(), missing js template in the DOM for input_type : "+e),null)}(a),control_id:n.control_id})}catch(e){return p.errare("getModuleTmpl => Error when parsing the nimble-input-wrapper template",e),o.reject("getModuleTmpl => Error when parsing the nimble-input-wrapper template"),!1}}),i};if(t.tabs){var d="",u="";_.each(t.tabs,function(e,t){var i=m.extend(!0,{},e);i=m.extend({inputs:{},title:""},i);var n=_.isEmpty(i.attributes)?"":i.attributes;d+='<li data-tab-id="section-topline-'+(+t+1)+'" '+n+'><a href="#" title="'+i.title+'"><span>'+i.title+"</span></a></li>";var o=l(i.inputs);u+='<section id="section-topline-'+(+t+1)+'">'+o+"</section>"}),c+=['<div class="tabs tabs-style-topline">',"<nav>","<ul>",d,"</ul>","</nav>",'<div class="content-wrap">',u,"</div>","</div>"].join("")}else c=l(t);return o.resolve(c).promise()}}(wp.customize,jQuery);var CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{cachedElements:{$body:s("body"),$window:s(window)},initialize:function(){var e=this;if(_.isUndefined(window.sektionsLocalizedData))throw new Error("CZRSeksPrototype => missing localized server params sektionsLocalizedData");if(!_.isFunction(r.czr_activeSkopes))throw new Error("CZRSeksPrototype => api.czr_activeSkopes");e.SECTION_ID_FOR_GLOBAL_OPTIONS="__globalOptionsSectionId",e.SECTION_ID_FOR_LOCAL_OPTIONS="__localOptionsSection",e.SECTION_ID_FOR_CONTENT_PICKER="__content_picker__",e.MAX_NUMBER_OF_COLUMNS=12,e.SETTING_UPDATE_BUFFER=100,e.TINYMCE_EDITOR_HEIGHT=100,e.defaultLocalSektionSettingValue=e.getDefaultSektionSettingValue("local"),e.localSectionsSettingId=new r.Value({}),e.registered=new r.Value([]),r.bind("ready",function(){e.doSektionThinksOnApiReady()}),r.bind("save-request-params",function(e){s.extend(e,{local_skope_id:r.czr_skopeBase.getSkopeProperty("skope_id")})});var t=function(){_.isArray(r.czrActiveWPEditors)&&(_.each(r.czrActiveWPEditors,function(e){wp.editor.remove(e)}),r.czrActiveWPEditors=[])};r.bind("sek-before-clean-registered",t),r.bind("czr-all-items-closed",t)},doSektionThinksOnApiReady:function(){var o=this;o.registerAndSetupDefaultPanelSectionOptions(),o.localSectionsSettingId.callbacks.add(function(e,t){try{o.setupSettingsToBeSaved()}catch(e){r.errare("Error in self.localSectionsSettingId.callbacks => self.setupSettingsToBeSaved()",e)}o.initializeHistoryLogWhenSettingsRegistered(),r.previewer.send("sek-request-active-locations")});var i=function(e,t){o.setContextualCollectionSettingIdWhenSkopeSet(e,t),r.section(o.SECTION_ID_FOR_LOCAL_OPTIONS,function(e){e.deferred.embedded.done(function(){!0!==e.boundForLocalOptionGeneration&&(e.boundForLocalOptionGeneration=!0,e.expanded.bind(function(e){!0===e&&o.generateUI({action:"sek-generate-local-skope-options-ui"})}))})}),r.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){!0!==e.nimbleGlobalOptionGenerated&&(o.generateUI({action:"sek-generate-global-options-ui"}),e.nimbleGlobalOptionGenerated=!0)}),r.trigger("nimble-ready-for-current-skope")};_.isEmpty(r.czr_activeSkopes().local)||i(),r.czr_activeSkopes.callbacks.add(function(e,t){i(e,t)}),o.reactToPreviewMsg(),o.setupDnd(),o.setupTinyMceEditor(),o.schedulePrintSectionJson(),o.bind("sek-ui-removed",function(){r.previewedDevice("desktop")}),r.previewedDevice.bind(function(t){var e=_.filter(o.registered(),function(e){return"control"==e.what});_.each(e||[],function(e){r.control(e.id,function(e){e.container.find('[data-sek-device="'+t+'"]').each(function(){s(this).trigger("click")})})})}),s("#customize-notifications-area").on("click",'[data-sek-reset="true"]',function(){r.previewer.trigger("sek-reset-collection",{scope:"local"})}),o.bind("sek-ui-pre-removal",function(e){"control"==e.what&&-1<e.id.indexOf("draggable")&&r.control(e.id,function(e){e.container.find("[draggable]").each(function(){s(this).off("dragstart dragend")})}),"control"==e.what&&r.control(e.id,function(e){e.container.find("select").each(function(){_.isUndefined(s(this).data("czrSelect2"))||s(this).czrSelect2("destroy")})})}),r.bind("czr-new-registered",function(e){if(_.isUndefined(e.origin))throw new Error("czr-new-registered event => missing params.origin");if("nimble"===e.origin&&!1!==e.track){var t=o.registered(),i=s.extend(!0,[],t),n=_.findWhere(i,{id:e.id});if(!_.isEmpty(n)&&_.isEqual(n,e))throw new Error("register => duplicated element in self.registered() collection "+e.id);i.push(e),o.registered(i)}}),o.activeLocations=new r.Value([]),o.activeLocationsInfo=new r.Value([]),r.previewer.bind("sek-active-locations-in-preview",function(e){o.activeLocations(_.isObject(e)&&_.isArray(e.active_locations)?e.active_locations:[]),o.activeLocationsInfo(_.isObject(e)&&_.isArray(e.active_locs_info)?e.active_locs_info:[])}),o.setupTopBar(),sektionsLocalizedData.isSavedSectionEnabled&&o.setupSaveSectionUI(),o.setupSaveTmplUI(),o.lastClickedTargetInPreview=new r.Value,o.lastClickedTargetInPreview.bind(function(e,t){_.isObject(e)&&e.id?r.previewer.send("sek-set-double-click-target",e):r.previewer.send("sek-reset-double-click-target"),clearTimeout(o.cachedElements.$window.data("_preview_target_timer_")),o.cachedElements.$window.data("_preview_target_timer_",setTimeout(function(){o.lastClickedTargetInPreview({}),r.previewer.send("sek-reset-double-click-target")},2e4))}),r.previewer.bind("sek-clean-target-drop-zone",function(){o.lastClickedTargetInPreview({})}),s(document).keydown(function(e){e&&27===e.keyCode&&o.lastClickedTargetInPreview({})}),sektionsLocalizedData.hasActiveCachePlugin&&_.delay(function(){r.previewer.trigger("sek-notify",{notif_id:"has-active-cache-plugin",type:"info",duration:2e4,message:['<span style="color:#0075a2">',sektionsLocalizedData.i18n["You seem to be using a cache plugin."],!_.isString(sektionsLocalizedData.hasActiveCachePlugin)||sektionsLocalizedData.hasActiveCachePlugin.length<2?"":"<strong> ("+sektionsLocalizedData.hasActiveCachePlugin+")</strong><br/>"," <strong>",sektionsLocalizedData.i18n["It is recommended to disable your cache plugin when customizing your website."],"</strong>","</span>"].join("")})},2e3),r.previewer.bind("multi-items-module-refreshed",function(t){_.isUndefined(t.apiParams.control_id)||r.control(t.apiParams.control_id,function(e){_.isUndefined(e.params.sek_registration_params)||r.control(e.id).params.sek_registration_params.module_id===t.apiParams.id&&e.czr_Module.each(function(e){e.czr_Item.each(function(e){"expanded"===e.viewState()&&e.trigger("sek-request-item-focus-in-preview")})})})}),o.setupTemplateGallery()},registerAndSetupDefaultPanelSectionOptions:function(){var o=this,e=r.Panel.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}});r.panel(sektionsLocalizedData.sektionsPanelId,function(n){n.deferred.embedded.done(function(){var e=n.container.find("h3.accordion-section-title"),t=(n.container.find(".panel-meta .accordion-section-title"),['<img class="sek-nimble-logo" alt="'+n.params.title+'" src="',sektionsLocalizedData.baseUrl,"/assets/img/nimble/nimble_horizontal.svg?ver="+sektionsLocalizedData.nimbleVersion,'"/>'].join(""));if(0<e.length){var i=e.find("span");e.addClass("sek-side-nimble-logo-wrapper").html(t).append(i)}sektionsLocalizedData.eligibleForFeedbackNotification&&n.expanded.bind(function(e){e&&_.isUndefined(o.feedbackUIVisible)&&(o.setupFeedBackUI(),setTimeout(function(){r.previewer.send("sek-print-confettis",{duration:Date.now()+2e3})},1e3))})})}),r.CZR_Helpers.register({origin:"nimble",what:"panel",id:sektionsLocalizedData.sektionsPanelId,title:sektionsLocalizedData.i18n["Nimble Builder"],priority:-1e3,constructWith:e,track:!1}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_GLOBAL_OPTIONS,title:sektionsLocalizedData.i18n["Site wide options"],panel:sektionsLocalizedData.sektionsPanelId,priority:20,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.prepend('<i class="fas fa-globe sek-level-option-icon"></i>'),0<i.length&&i.find(".customize-action").after('<i class="fas fa-globe sek-level-option-icon"></i>'),o.scheduleModuleAccordion.call(e)})}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_LOCAL_OPTIONS,title:sektionsLocalizedData.i18n["Current page options"],panel:sektionsLocalizedData.sektionsPanelId,priority:10,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_LOCAL_OPTIONS,function(e){var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.prepend('<i class="fas fa-map-marker-alt sek-level-option-icon"></i>'),0<i.length&&i.find(".customize-action").after('<i class="fas fa-map-marker-alt sek-level-option-icon"></i>'),o.scheduleModuleAccordion.call(e)})}),r.CZR_Helpers.register({origin:"nimble",what:"setting",id:sektionsLocalizedData.optNameForGlobalOptions,dirty:!1,value:sektionsLocalizedData.globalOptionDBValues,transport:"postMessage",type:"option"}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_CONTENT_PICKER,title:sektionsLocalizedData.i18n["Content Picker"],panel:sektionsLocalizedData.sektionsPanelId,priority:30,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_CONTENT_PICKER,function(e){"resolved"!=r.czr_initialSkopeCollectionPopulated.state()?r.czr_initialSkopeCollectionPopulated.done(function(){r.previewer.trigger("sek-pick-content",{focus:!1})}):r.previewer.trigger("sek-pick-content",{focus:!1})})})},setContextualCollectionSettingIdWhenSkopeSet:function(e,t){t=t||{},!_.isEmpty(t.local)&&r.panel(sektionsLocalizedData.sektionsPanelId).expanded()&&r.previewer.trigger("sek-pick-content"),sektionsData=r.czr_skopeBase.getSkopeProperty("sektions","local"),sektionsLocalizedData.isDevMode&&r.infoLog("::setContextualCollectionSettingIdWhenSkopeSet => SEKTIONS DATA ? ",sektionsData),_.isEmpty(sektionsData)&&r.errare("::setContextualCollectionSettingIdWhenSkopeSet() => no sektionsData"),_.isEmpty(sektionsData.setting_id)&&r.errare("::setContextualCollectionSettingIdWhenSkopeSet() => missing setting_id"),this.localSectionsSettingId(sektionsData.setting_id)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{setupTopBar:function(){var t=this;t.topBarId="#nimble-top-bar",t.topBarVisible=new r.Value(!1),t.topBarVisible.bind(function(e){t.levelTreeExpanded()||t.toggleTopBar(e)}),t.mouseMovedRecently=new r.Value({}),t.mouseMovedRecently.bind(function(e){t.topBarVisible(!_.isEmpty(e))});var e=function(e){t.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(t.cachedElements.$window.data("_scroll_move_timer_")),t.cachedElements.$window.data("_scroll_move_timer_",setTimeout(function(){t.mouseMovedRecently.set({})},4e3))};t.cachedElements.$window.on("mousemove scroll,",_.throttle(e,50)),r.previewer.bind("ready",function(){s(r.previewer.targetWindow().document).on("mousemove scroll,",_.throttle(e,50))}),t.setupLevelTree()},toggleTopBar:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?s.when(i.renderAndSetupTopBarTmpl({})).done(function(e){i.topBarContainer=e,_.delay(function(){i.cachedElements.$body.addClass("nimble-top-bar-visible")},200)}):(t=s.Deferred(),i.cachedElements.$body.removeClass("nimble-top-bar-visible"),i.topBarContainer&&i.topBarContainer.length?_.delay(function(){t.resolve()},300):t.resolve(),t.promise()).done(function(){i.topBarVisible(!1)})},renderAndSetupTopBarTmpl:function(e){var t,i=this;if(0<s(i.topBarId).length)return s(i.topBarId);try{t=wp.template("nimble-top-bar")({})}catch(e){return r.errare("Error when parsing the the top note template",e),!1}s("#customize-preview").after(s(t)),s(document).keydown(function(e){if(e.ctrlKey&&_.contains([89,90],e.keyCode))try{i.navigateHistory(90===e.keyCode?"undo":"redo")}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),s(".sek-add-content",i.topBarId).on("click",function(e){e.preventDefault(),r.previewer.trigger("sek-pick-content",{content_type:"module"})}),s(".sek-level-tree",i.topBarId).on("click",function(e){e.preventDefault(),i.levelTreeExpanded(!i.levelTreeExpanded())}),s("[data-nimble-history]",i.topBarId).on("click",function(e){try{i.navigateHistory(s(this).data("nimble-history"))}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),s(".sek-settings",i.topBarId).on("click",function(e){r.panel(sektionsLocalizedData.sektionsPanelId,function(e){i.rootPanelFocus(),e.focus()})}),s(".sek-nimble-doc",i.topBarId).on("click",function(e){e.preventDefault(),window.open(s(this).data("doc-href"),"_blank")}),s(".sek-tmpl-saving",i.topBarId).on("click",function(e){e.preventDefault(),i.tmplDialogVisible(!i.tmplDialogVisible())});var n=function(e){s(i.topBarId).length<1||sektionsLocalizedData.isDebugMode||(_.isObject(e)&&e.local_template&&"default"!==e.local_template?s(i.topBarId).find(".sek-notifications").html(['<span class="fas fa-info-circle"></span>',sektionsLocalizedData.i18n["This page uses a custom template."]].join(" ")):s(i.topBarId).find(".sek-notifications").html(""))},o=function(){r(i.localSectionsSettingId(),function(e){var t=e(),i=_.isObject(t)&&t.local_options&&t.local_options.template?t.local_options.template:null;n(i)}),r(i.getLocalSkopeOptionId()+"__template",function(e){e.bind(function(e,t){n(e)})})};return o(),r.bind("nimble-ready-for-current-skope",function(){o()}),s(i.topBarId)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{initializeHistoryLogWhenSettingsRegistered:function(){this.historyLog=new l.Value([{status:"current",value:{local:l(this.localSectionsSettingId())(),global:l(this.getGlobalSectionsSettingId())()},action:"initial"}]),this.historyLog.bind(function(e){if(!_.isEmpty(e)){var t=_.findKey(e,{status:"current"});t=Number(t),d("#nimble-top-bar").find("[data-nimble-history]").each(function(){"undo"===d(this).data("nimble-history")?d(this).attr("data-nimble-state",t<=0?"disabled":"enabled"):d(this).attr("data-nimble-state",e.length<=t+1?"disabled":"enabled")})}})},trackHistoryLog:function(e,t){var i=this,n=e.id===i.getGlobalSectionsSettingId();if(!_.isObject(t)||!_.isFunction(i.historyLog)||!_.isArray(i.historyLog()))throw l.errare("params, self.historyLog() ",t,i.historyLog()),new Error("trackHistoryLog => invalid params or historyLog value");var o,r=[],s=d.extend(!0,[],i.historyLog());_.isEmpty(t.in_sektion)?_.isEmpty(t.to_sektion)||(o=t.to_sektion):o=t.in_sektion,_.each(s,function(e){"future"!=e.status&&(d.extend(e,{status:"previous"}),r.push(e))}),r.push({status:"current",value:n?{global:e()}:{local:e()},action:_.isObject(t)&&t.action||"",sektionToRefresh:o}),i.historyLog(r)},navigateHistory:function(i){var t,n,o,r,e=this,s=d.extend(!0,[],e.historyLog()),a=[];if(_.each(s,function(e){if(_.isEmpty(r)){switch(e.status){case"previous":t=e;break;case"current":n=e;break;case"future":o=e}switch(i){case"undo":_.isEmpty(n)||_.isEmpty(t)||(r=t.value,n.sektionToRefresh,t.sektionToRefresh);break;case"redo":_.isEmpty(o)||(r=o.value,n.sektionToRefresh,o.sektionToRefresh)}}}),!_.isUndefined(r)){_.isEmpty(r.local)||(l(e.localSectionsSettingId())(e.validateSettingValue(r.local,"local"),{navigatingHistoryLogs:!0}),l.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0})),_.isEmpty(r.global)||l(e.getGlobalSectionsSettingId())(e.validateSettingValue(r.global,"global"),{navigatingHistoryLogs:!0});l.previewer.refresh(),l.previewer.trigger("sek-pick-content",{}),e.cleanRegistered(),e.cleanRegisteredLevelSettingsAfterHistoryNavigation()}var c=_.findKey(s,{status:"current"});c=Number(c),_.isNumber(c)?(_.each(s,function(e,t){switch(newLog=d.extend(!0,{},e),t=Number(t),i){case"undo":0<c&&(t===c-1?newLog.status="current":t===c&&(newLog.status="future"));break;case"redo":s.length>c+1&&(t===c?newLog.status="previous":t===c+1&&(newLog.status="current"))}a.push(newLog)}),e.historyLog(a)):l.errare("Error when navigating the history log, the current key should be a number")}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(b,z){z.extend(CZRSeksPrototype,{setupLevelTree:function(){var i=this;i.levelTree=new b.Value([]),i.levelTree.bind(function(){i.levelTreeExpanded()&&i.renderOrRefreshTree()}),i.levelTreeExpanded=new b.Value(!1),i.levelTreeExpanded.bind(function(e){if(i.cachedElements.$body.toggleClass("sek-level-tree-expanded",e),e){if(i.templateGalleryExpanded(!1),i.tmplDialogVisible(!1),i.setLevelTreeValue(),_.isEmpty(i.levelTree()))return b.previewer.trigger("sek-notify",{type:"info",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["No sections to navigate"]+"</strong>","</span>"].join("")}),void i.levelTreeExpanded(!1);z("#customize-preview iframe").css("z-index",1),i.renderOrRefreshTree()}else 0<z("#nimble-level-tree").length&&_.delay(function(){z("#nimble-level-tree").remove(),z("#customize-preview iframe").css("z-index","")},300)}),i.activeLocations.bind(function(){_.isEmpty(i.levelTree())||i.renderOrRefreshTree()}),b.previewer.bind("ready",function(){i.localSectionsSettingId.callbacks.add(function(){i.levelTreeExpanded(!1),_.each([i.getGlobalSectionsSettingId(),i.localSectionsSettingId(),sektionsLocalizedData.optNameForGlobalOptions],function(e){b(e)._isBoundForNimbleLevelTree||(b(e).bind(function(e){i.setLevelTreeValue()}),b(e)._isBoundForNimbleLevelTree=!0)})})}),i.cachedElements.$body.on("click","#nimble-level-tree [data-nimb-level]",function(e){e.preventDefault(),e.stopPropagation();var i=z(e.target).closest("[data-nimb-level]");b.previewer.send("sek-animate-to-level",{id:i.data("nimb-id")}),b.previewer.send("sek-clean-level-uis"),_.delay(function(){b.previewer.send("sek-display-level-ui",{id:i.data("nimb-id")});var e=i.data("nimb-id"),t=i.data("nimb-level");"column"===t||"section"===t?b.previewer.trigger("sek-edit-options",{id:e,level:t}):"module"===t&&b.previewer.trigger("sek-edit-module",{id:e,level:t})},100)}),i.cachedElements.$body.on("click","#nimble-level-tree .sek-remove-level",function(e){e.preventDefault(),e.stopPropagation();var t=z(e.target).closest("[data-nimb-level]");b.previewer.trigger("sek-remove",{level:t.data("nimb-level"),id:t.data("nimb-id"),location:t.closest('[data-nimb-level="location"]').data("nimb-id"),in_sektion:t.closest('[data-nimb-level="section"]').data("nimb-id"),in_column:t.closest('[data-nimb-level="column"]').data("nimb-id")}),t.fadeOut("slow"),i.renderOrRefreshTree()}),i.cachedElements.$body.on("click",".sek-close-level-tree",function(e){e.preventDefault(),i.levelTreeExpanded(!1)})},setLevelTreeValue:function(){var e,t,i,n,o,r=this.getGlobalSectionsSettingId(),s=this.localSectionsSettingId(),a=sektionsLocalizedData.optNameForGlobalOptions,c=!1;if(_.each([r,s,a],function(e){b.has(e)||(c=e)}),!1===c){e=b(r)(),i=_.isObject(e)?z.extend(!0,{},e):{},i=_.isEmpty(i.collection)?[]:i.collection,i=_.isArray(i)?i:[],t=b(s)(),t=_.isObject(t)?t:{},n=z.extend(!0,{},t),n=_.isEmpty(n.collection)?[]:n.collection,n=_.isArray(n)?n:[];var l,d=_.union(i,n),u=!1,p=!1;o=b(a)(),o=_.isObject(o)?o:{},t.local_options&&t.local_options.local_header_footer&&(u="nimble_local"===(l=t.local_options.local_header_footer["header-footer"])),o.global_header_footer&&!u&&"theme"!==l&&(p="nimble_global"===o.global_header_footer["header-footer"]||"nimble_global"===l);var m,f,g=z.extend(!0,[],d);g=_.filter(g,function(e,t){return!_.contains(["nimble_global_header","nimble_global_footer","nimble_local_header","nimble_local_footer"],e.id)});var h=function(e){m=_.findWhere(d,{id:"nimble_"+e+"_header"}),f=_.findWhere(d,{id:"nimble_"+e+"_footer"}),g.unshift(m),g.push(f)};u?h("local"):p&&h("global");var k,v=this.activeLocations(),y=[];_.isEmpty(v)?y=g:_.each(v,function(e){k=_.findWhere(g,{id:e}),_.isUndefined(k)||y.push(k)}),this.levelTree(y)}else b.errare("::setLevelTreeValue => a setting id is not registered ")},renderOrRefreshTree:function(){var e;if(z("#nimble-level-tree").length<1){try{e=wp.template("nimble-level-tree")({})}catch(e){return b.errare("Error when parsing the nimble-level-tree template",e),!1}z("#customize-preview").after(z(e))}z("#nimble-level-tree").find(".sek-tree-wrap").html(this.getLevelTreeHtml())},getLevelTreeHtml:function(e,t){var i=this;e=e||i.levelTree();var n,o,r,s=!1;if(!_.isArray(e)||_.isEmpty(e))return b.errare("::buildLevelTree => invalid collection param",e),r;var a='<i class="material-icons sek-remove-level" title="'+sektionsLocalizedData.i18n["Remove this element"]+'">delete_forever</i>';return r="<ul>",_.each(e,function(e){_.isUndefined(e.level)?b.errare("::buildLevelTree => missing level property",e):_.isUndefined(e.id)?b.errare("::buildLevelTree => missing id property",e):(n=e.level,"location"===(o=n)&&(s=!_.contains(i.activeLocations(),e.id)),s||(sektionsLocalizedData.i18n[n]&&(o=sektionsLocalizedData.i18n[n]),!0===e.is_nested&&(o=sektionsLocalizedData.i18n["nested section"]),a="location"!==n?a:"",r+='<li data-nimb-level="'+n+'" data-nimb-id="'+e.id+'">',r+='<div class="sek-level-infos"><div class="sek-inner-level-infos">',"module"===n&&(r+=[i.getTreeModuleIcon(e.module_type),i.getTreeModuleTitle(e.module_type)].join(" ")),r+=[" ",o,"( id :",e.id,")",a].join(" "),r+="</div></div>",_.isArray(e.collection)&&!_.isEmpty(e.collection)&&(r+=i.getLevelTreeHtml(e.collection,t)),r+="</li>"))}),r+="</ul>"},getTreeModuleIcon:function(t){var i={};return _.each(sektionsLocalizedData.moduleCollection,function(e){_.isEmpty(i)&&t===e["content-id"]&&(i={svg:e.icon?sektionsLocalizedData.moduleIconPath+e.icon:"",font:e.font_icon?e.font_icon:""})}),_.isEmpty(i.svg)?_.isEmpty(i.font)?void 0:i.font:'<img class="sek-svg-mod-icon" src="'+i.svg+'"/>'},getTreeModuleTitle:function(t){var i={};return _.each(sektionsLocalizedData.moduleCollection,function(e){_.isEmpty(i)&&t===e["content-id"]&&(i=e.title)}),i}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,l){l.extend(CZRSeksPrototype,{setupSaveTmplUI:function(){var o=this;o.tmplDialogVisible=new c.Value(!1),sektionsLocalizedData.isTemplateSaveEnabled&&(o.tmplDialogVisible.bind(function(e){e&&(o.templateGalleryExpanded(!1),o.levelTreeExpanded(!1)),o.toggleSaveTmplUI(e)}),o.allSavedTemplates=new c.Value("_not_populated_"),o.allSavedTemplates.bind(function(e){_.isObject(e)?(e=_.isEmpty(e)?{}:e,o.refreshTmplPickerHtml(e)):c.errare("error => tmpl collection should be an object")}),o.tmplDialogMode=new c.Value("hidden"),o.tmplDialogMode.bind(function(e){_.contains(["hidden","save","update","remove"],e)||(c.errare("::setupSaveTmplUI => unknown tmpl dialog mode",e),e="save");var t=l("#nimble-top-tmpl-save-ui"),i=t.find("#sek-saved-tmpl-title"),n=t.find("#sek-saved-tmpl-description");switch(t.find("[data-tmpl-mode-switcher]").attr("aria-pressed",!1),t.find('[data-tmpl-mode-switcher="'+e+'"]').attr("aria-pressed",!0),l("#nimble-top-tmpl-save-ui").attr("data-sek-tmpl-dialog-mode",e),t.removeClass("sek-removal-confirmation-opened"),e){case"save":i.val(""),n.val("");break;case"update":case"remove":t.find(".sek-saved-tmpl-picker").val("none").trigger("change"),o.setSavedTmplCollection().done(function(e){o.refreshTmplPickerHtml()})}}))},refreshTmplPickerHtml:function(e){e=e||this.allSavedTemplates();var t=l("#nimble-top-tmpl-save-ui"),i=t.find(".sek-saved-tmpl-picker");i.val("none").trigger("change"),i.find("option").each(function(){"none"!==l(this).attr("value")&&l(this).remove()});var n,o,r="";_.each(e,function(e,t){_.isObject(e)&&(o=e.last_modified_date?e.last_modified_date:"",n=e.title?e.title:"template title not set",r+='<option value="'+t+'">'+[n,sektionsLocalizedData.i18n["Last modified"]+" : "+o].join(" | ")+"</option>")}),i.append(r),t.addClass("tmpl-collection-populated")},renderTmplUI:function(e){if(0<l("#nimble-top-tmpl-save-ui").length)return l("#nimble-top-tmpl-save-ui");try{_tmpl=wp.template("nimble-top-tmpl-save-ui")({})}catch(e){return c.errare("Error when parsing nimble-top-tmpl-save-ui template",e),!1}return l("#customize-preview").after(l(_tmpl)),l("#nimble-top-tmpl-save-ui")},scheduleDOMEvents:function(){var i=this,n=l("#nimble-top-tmpl-save-ui");n.data("nimble-tmpl-dom-events-scheduled")||(n.on("click","[data-tmpl-mode-switcher]",function(e){e.preventDefault(),i.tmplDialogMode(l(this).data("tmpl-mode-switcher"))}),n.on("change",".sek-saved-tmpl-picker",function(e){i.reactOnTemplateSelection(e,l(this))}),n.on("click",".sek-do-save-tmpl",function(e){n.addClass("nimble-tmpl-processing-ajax"),i.saveOrUpdateTemplate(e).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),e.success&&(i.tmplDialogVisible(!1),i.setSavedTmplCollection({refresh:!0}))})}),n.on("click",".sek-do-update-tmpl",function(e){var t=n.find(".sek-saved-tmpl-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-tmpl-processing-ajax"),i.saveOrUpdateTemplate(e,t).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),e.success&&(i.tmplDialogVisible(!1),i.setSavedTmplCollection({refresh:!0}).done(function(e){i.refreshTmplPickerHtml()}))}))}),n.on("click",".sek-open-remove-confirmation",function(e){n.addClass("sek-removal-confirmation-opened")}),n.on("click",".sek-do-remove-tmpl",function(e){var t=n.find(".sek-saved-tmpl-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-tmpl-processing-ajax"),i.removeTemplate(e,t).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),n.removeClass("sek-removal-confirmation-opened"),e.success&&i.setSavedTmplCollection({refresh:!0})}))}),n.on("click",".sek-cancel-remove-tmpl",function(e){n.removeClass("sek-removal-confirmation-opened")}),l(".sek-close-dialog",n).on("click",function(e){e.preventDefault(),i.tmplDialogVisible(!1)}),n.data("nimble-tmpl-dom-events-scheduled",!0))},reactOnTemplateSelection:function(e,t){var i=l("#nimble-top-tmpl-save-ui"),n=t.val(),o=i.find("#sek-saved-tmpl-title"),r=i.find("#sek-saved-tmpl-description"),s="update"===this.tmplDialogMode()?"sek-tmpl-update-selected":"sek-tmpl-remove-selected";if("none"===n)o.val(""),r.val(""),i.removeClass(s);else{var a=this.allSavedTemplates();(a=_.isObject(a)&&!_.isArray(a)?a:{})[n]=l.extend({title:"",description:"",last_modified_date:""},a[n]||{}),o.val(a[n].title),r.val(a[n].description),i.addClass(s)}},saveOrUpdateTemplate:function(e,t){var i=l.Deferred();e.preventDefault();var n=l("#sek-saved-tmpl-title"),o=n.val(),r=l("#sek-saved-tmpl-description").val(),s=this.localSectionsSettingId(),a=this.preProcessTmpl(c(s)());return _.isEmpty(o)?(n.addClass("error"),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["A title is required"]+"</strong>","</span>"].join("")}),i.resolve({success:!1})):(l("#sek-saved-tmpl-title").removeClass("error"),wp.ajax.post("sek_save_user_template",{nonce:c.settings.nonce.save,tmpl_data:JSON.stringify(a),tmpl_title:o,tmpl_description:r,tmpl_post_name:t||"",skope_id:c.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:c.czr_sektions.activeLocations()}).done(function(e){i.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template saved"]+"</strong>","</span>"].join("")})}).fail(function(e){i.resolve({success:!1}),c.errorLog("ajax sek_save_template => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing template"]+"</strong>","</span>"].join("")})}),i)},removeTemplate:function(e,t){var i=l.Deferred();return e.preventDefault(),wp.ajax.post("sek_remove_user_template",{nonce:c.settings.nonce.save,tmpl_post_name:t}).done(function(e){i.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template removed"]+"</strong>","</span>"].join("")})}).fail(function(e){i.resolve({success:!1}),c.errorLog("ajax sek_remove_template => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")})}),i},toggleSaveTmplUI:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?l.when(i.renderTmplUI({})).done(function(e){i.scheduleDOMEvents(),i.saveUIContainer=e,_.delay(function(){i.tmplDialogMode("save"),i.cachedElements.$body.addClass("sek-save-tmpl-ui-visible")},200)}):(t=l.Deferred(),i.cachedElements.$body.removeClass("sek-save-tmpl-ui-visible"),0<l("#nimble-top-tmpl-save-ui").length?_.delay(function(){i.tmplDialogMode=i.tmplDialogMode?i.tmplDialogMode:new c.Value,i.tmplDialogMode("hidden"),i.saveUIContainer.remove(),t.resolve()},250):t.resolve(),t.promise()).done(function(){i.tmplDialogVisible(!1)})},setSavedTmplCollection:function(e){var t=this,i=l.Deferred();return(e=e||{refresh:!1}).refresh||"_not_populated_"===t.allSavedTemplates()?((t.templateCollectionPromise&&"pending"===t.templateCollectionPromise.state()?t.templateCollectionPromise:t.getSavedTmplCollection()).done(function(e){t.allSavedTemplates(e),i.resolve(e)}),i.promise()):i.resolve(t.allSavedTemplates())},getSavedTmplCollection:function(){var t=this;return t.templateCollectionPromise=l.Deferred(),wp.ajax.post("sek_get_all_saved_tmpl",{nonce:c.settings.nonce.save}).done(function(e){_.isObject(e)&&!_.isArray(e)?t.templateCollectionPromise.resolve(e):(t.templateCollectionPromise.resolve({}),c.errare("control::getSavedTmplCollection => error => tmpl collection is invalid"))}).fail(function(e){c.errorLog("ajax sek_get_all_saved_tmpl => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")}),t.templateCollectionPromise.resolve({})}),t.templateCollectionPromise},preProcessTmpl:function(e){return console.log("TO DO => make sure template is ok to be saved"),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{setupFeedBackUI:function(){var t=this;t.feedbackLastUserAction="none",t.feedbackUIId="#nimble-feedback",t.feedbackUIVisible=new r.Value(!1),t.feedbackUIVisible.bind(function(e){t.levelTreeExpanded()||t.toggleFeddBackUI(e),e&&t.refreshSelfClosingTimer()}),t.feedbackUIVisible(!0)},refreshSelfClosingTimer:function(){var e=this;clearTimeout(s(e.feedbackUIId).data("_feedback_user_action_timer_")),s(e.feedbackUIId).data("_feedback_user_action_timer_",setTimeout(function(){_.contains(["go_review","reporting_problem"],e.feedbackLastUserAction)||e.feedbackUIVisible(!1)},6e4))},toggleFeddBackUI:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?s.when(i.renderAndSetupFeedbackTmpl({})).done(function(e){_.delay(function(){i.cachedElements.$body.addClass("nimble-feedback-ui-visible")},200)}):(t=s.Deferred(),i.cachedElements.$body.removeClass("nimble-feedback-ui-visible"),0<s(i.feedbackUIId).length?_.delay(function(){s(i.feedbackUIId).remove(),t.resolve()},300):t.resolve(),t.promise()).done(function(){i.feedbackUIVisible(!1)})},renderAndSetupFeedbackTmpl:function(e){var t,i=this;if(0<s(i.feedbackUIId).length)return s(i.feedbackUIId);try{t=wp.template("nimble-feedback-ui")({})}catch(e){return r.errare("Error when parsing the the feedback template",e),!1}if(s("#customize-preview").after(s(t)),!i.feedbackEventsScheduled){var n=s(i.feedbackUIId).data("sek-dismiss-pointer"),o=function(){wp.ajax.post("dismiss-wp-pointer",{pointer:n}).fail(function(e){r.errare("ajax dismiss failure",e)})};return i.cachedElements.$body.on("click","[data-sek-feedback-action]",function(e){e.preventDefault(),i.refreshSelfClosingTimer();var t=s(this).data("sek-feedback-action");switch(i.feedbackLastUserAction=t){case"not_enjoying":s(i.feedbackUIId).find(".sek-feedback-step-one").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").show();break;case"enjoying":s(i.feedbackUIId).find(".sek-feedback-step-one").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").show();break;case"reporting_problem":window.open(s(this).data("problem-href"),"_blank");break;case"go_review":window.open("https://wordpress.org/support/plugin/nimble-builder/reviews/?filter=5/#new-post","_blank");break;case"maybe_later":i.feedbackUIVisible(!1),wp.ajax.post("sek_postpone_feedback",{nonce:r.settings.nonce.save,transient_duration_in_days:30}).fail(function(e){r.errare("ajax dismiss failure",e)});break;case"already_did":s(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").hide(),s(i.feedbackUIId).find(".sek-feedback-step-three-thanks").show(),_.delay(function(){i.feedbackUIVisible(!1)},3e3),o();break;case"dismiss":i.feedbackUIVisible(!1),o();break;default:r.errare("::renderAndSetupFeedbackTmpl => invalid action")}}),i.feedbackEventsScheduled=!0,s(i.feedbackUIId)}}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,e){jQuery.extend(CZRSeksPrototype,{getRevisionHistory:function(e){return wp.ajax.post("sek_get_revision_history",{nonce:r.settings.nonce.save,skope_id:e.is_local?r.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId})},setSingleRevision:function(i){var n=this,o=function(e,t){r.previewer.trigger("sek-notify",{notif_id:"restore-revision-error",type:t||"info",duration:1e4,message:['<span style="">',"<strong>",e||"","</strong>","</span>"].join("")})};wp.ajax.post("sek_get_single_revision",{nonce:r.settings.nonce.save,revision_post_id:i.revision_post_id}).done(function(e){var t=i.is_local?n.localSectionsSettingId():n.getGlobalSectionsSettingId();_.isEqual(r(t)(),e)?o(sektionsLocalizedData.i18n["This is the current version."],"info"):n.updateAPISetting({action:"sek-restore-revision",is_global_location:!i.is_local,revision_value:e}).done(function(){r.previewer.refresh()}).fail(function(e){r.errare("::setSingleRevision error when firing ::updateAPISetting",e),o(sektionsLocalizedData.i18n["The revision could not be restored."],"error")})}).fail(function(e){r.errare("::setSingleRevision ajax error",e),o(sektionsLocalizedData.i18n["The revision could not be restored."],"error")})}})}(wp.customize);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,l){l.extend(CZRSeksPrototype,{setupSettingsToBeSaved:function(){var i,o=this,e={local:{collectionSettingId:o.localSectionsSettingId()},global:{collectionSettingId:o.getGlobalSectionsSettingId()}};_.each(e,function(e,t){if(i=c.czr_skopeBase.getSkopeProperty("sektions",t).db_values,_.isEmpty(e.collectionSettingId))throw new Error("setupSettingsToBeSaved => the collectionSettingId is invalid");if(!c.has(e.collectionSettingId)){c.CZR_Helpers.register({what:"setting",id:e.collectionSettingId,value:o.validateSettingValue(_.isObject(i)?i:o.getDefaultSektionSettingValue(t),t),transport:"postMessage",type:"option",track:!1,origin:"nimble"});c(e.collectionSettingId,function(n){n.bind(_.debounce(function(e,t,i){if(!_.isObject(i)||!0!==i.navigatingHistoryLogs)try{o.trackHistoryLog(n,i)}catch(e){c.errare("setupSettingsToBeSaved => trackHistoryLog",e)}},1e3))})}})},validateSettingValue:function(i,n){if(!_.isObject(i))return c.errare("::validateSettingValue => validation error => the setting should be an object",i),null;if(!_.isEmpty(n)&&_.contains(["local","global"],n)){var o={},r=!1,e=[],s=function(e){c.errare(e,i),sektionsLocalizedData.isDevMode&&c.previewer.trigger("sek-notify",{type:"error",duration:6e4,message:['<span style="font-size:0.95em">',"<strong>"+e+"</strong>","<br>",sektionsLocalizedData.i18n["If this problem locks Nimble Builder, you can try resetting the sections of this page."],"<br>",'<span style="text-align:center;display:block">','<button type="button" class="button" aria-label="'+sektionsLocalizedData.i18n.Reset+'" data-sek-reset="true">'+sektionsLocalizedData.i18n.Reset+"</button>","</span>","</span>"].join("")}),r=!0},a=function(t){if(!r)if(_.isUndefined(t)&&_.isEmpty(o)){if(t=l.extend(!0,{},i),_.isUndefined(t.id)||_.isUndefined(t.level)){if(_.isUndefined(t.collection))return void s("validation error => the root level is missing the collection of locations");if(!_.isEmpty(t.level)||!_.isEmpty(t.id))return void s('validation error => the root level should not have a "level" or an "id" property');_.each(t,function(e,t){switch(n){case"local":if(!_.contains(["collection","local_options","fonts"],t))return void s("validation error => unauthorized option group for local setting value => "+t);break;case"global":if(!_.contains(["collection","fonts"],t))return void s("validation error => unauthorized option group for global setting value => "+t)}}),_.each(i.collection,function(e){o=t,a(e)})}}else{if(_.isEmpty(t.id)||!_.isString(t.id))return void s("validation error => a "+t.level+" level must have a valid id");if(_.contains(e,t.id))return void s("validation error => duplicated level id : "+t.id);if(e.push(t.id),_.isEmpty(t.level)||!_.isString(t.level))return void s("validation error => a "+t.level+" level must have a level property");if(!_.contains(["location","section","column","module"],t.level))return void s('validation error => the level "'+t.level+'" is not authorized');if("module"==t.level){if(!_.isUndefined(t.collection))return void s("validation error => a module can not have a collection property")}else if(_.isUndefined(t.collection))return void s("validation error => missing collection property for level => "+t.level+" "+t.id);switch(_.isUndefined(t.ver_ini)&&c.errare("validateSettingValue() => validation error => a "+t.level+' should have a version property : "ver_ini"'),t.level){case"location":if(!_.isEmpty(o.level))return void s("validation error => the parent of location "+t.id+" should have no level set");break;case"section":if(t.is_nested&&"column"!=o.level)return void s("validation error => the nested section "+t.id+" must be child of a column");if(!t.is_nested&&"location"!=o.level)return void s("validation error => the section "+t.id+" must be child of a location");break;case"column":if("section"!=o.level)return void s("validation error => the column "+t.id+" must be child of a section");break;case"module":if("column"!=o.level)return void s("validation error => the module "+t.id+" must be child of a column")}"module"!=t.level&&_.each(t.collection,function(e){o=l.extend(!0,{},t),_.isUndefined(e)?s("validation error => undefined level "):a(e)})}};return a(),r?null:i}c.errare("::validateSettingValue => invalid scope provided.",n)},resetCollectionSetting:function(e){if(_.isEmpty(e)||!_.contains(["local","global"],e))throw new Error("resetCollectionSetting => invalid scope provided.",e);return l.extend(!0,{},this.getDefaultSektionSettingValue(e))}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,n){n.extend(CZRSeksPrototype,{reactToPreviewMsg:function(){var o=this,r={},s={},a=!0,e={"sek-add-section":{callback:function(e){return a=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,s={},r={action:"sek-add-section",id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),before_section:e.before_section,after_section:e.after_section,is_first_section:e.is_first_section},o.updateAPISetting(r)},complete:function(e){e.apiParams.is_first_section&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location}),c.previewer.trigger("sek-pick-content",{id:e.apiParams?e.apiParams.id:"",content_type:"section"}),c.previewer.send("sek-animate-to-level",{id:e.apiParams.id})}},"sek-add-column":{callback:function(e){return a=!0,s={},r={id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),action:"sek-add-column",in_sektion:e.in_sektion,autofocus:e.autofocus},o.updateAPISetting(r)},complete:function(e){!1!==e.apiParams.autofocus&&c.previewer.trigger("sek-pick-content",{})}},"sek-add-module":{callback:function(e){return a=!0,s={},r={id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),action:"sek-add-module",in_sektion:e.in_sektion,in_column:e.in_column,module_type:e.content_id,before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_column,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")})}},"sek-remove":{callback:function(e){switch(a=!0,s={},e.level){case"section":var t=o.getLevelModel(e.id);if("no_match"===t){c.errare("reactToPreviewMsg => sek-remove-section => no sektionToRemove matched");break}r={action:"sek-remove-section",id:e.id,location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:t.is_nested};break;case"column":r={action:"sek-remove-column",id:e.id,in_sektion:e.in_sektion};break;case"module":r={action:"sek-remove-module",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column};break;default:c.errare("::reactToPreviewMsg => sek-remove => missing level ",e)}return o.updateAPISetting(r)},complete:function(e){if(c.previewer.trigger("sek-pick-content",{}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),"sek-remove-section"===e.apiParams.action){var t=o.getLevelModel(e.apiParams.location);_.isEmpty(t.collection)&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location})}}},"sek-move":{callback:function(e){switch(a=!0,s={},e.level){case"section":r={action:"sek-move-section",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),newOrder:e.newOrder,from_location:e.from_location,to_location:e.to_location};break;case"column":r={action:"sek-move-column",id:e.id,newOrder:e.newOrder,from_sektion:e.from_sektion,to_sektion:e.to_sektion};break;case"module":r={action:"sek-move-module",id:e.id,newOrder:e.newOrder,from_column:e.from_column,to_column:e.to_column,from_sektion:e.from_sektion,to_sektion:e.to_sektion}}return o.updateAPISetting(r)},complete:function(e){switch(e.apiParams.action){case"sek-move-section":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"section",in_sektion:e.apiParams.id}),e.apiParams.from_location!=e.apiParams.to_location&&(c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.to_location}),c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.from_location}));break;case"sek-move-column":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"column",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column});break;case"sek-refresh-modules-in-column":c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column})}}},"sek-move-section-up":{callback:function(e){return a=!1,s={},r={action:"sek-move-section-up-down",direction:"up",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),location:e.location,in_column:e.in_column},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location,original_action:"sek-move-section-up",moved_level_id:e.apiParams.id}),e.apiParams.new_location&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.new_location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id})}},"sek-move-section-down":{callback:function(e){return a=!1,s={},r={action:"sek-move-section-up-down",direction:"down",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),location:e.location,in_column:e.in_column},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id}),e.apiParams.new_location&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.new_location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id})}},"sek-duplicate":{callback:function(e){switch(a=!0,s={},e.level){case"section":r={action:"sek-duplicate-section",id:e.id,location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column)};break;case"column":r={action:"sek-duplicate-column",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column};break;case"module":r={action:"sek-duplicate-module",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column}}return o.updateAPISetting(r)},complete:function(e){var t;switch(e.apiParams.action){case"sek-duplicate-section":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"section",in_sektion:e.apiParams.id}),t=e.apiParams.location,e.apiParams.is_nested&&c.previewer.refresh(),c.previewer.send("sek-animate-to-level",{id:e.apiParams.id});break;case"sek-duplicate-column":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"column",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),t=e.apiParams.in_sektion;break;case"sek-duplicate-module":c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),t=e.apiParams.in_column}c.previewer.trigger("sek-refresh-stylesheet",{id:t,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")})}},"sek-resize-columns":function(e){return a=!0,s={},r=e,o.updateAPISetting(r)},"sek-add-content-in-new-sektion":{callback:function(e){switch(a=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,s={},(r=e).action="sek-add-content-in-new-sektion",r.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),e.content_type){case"module":r.droppedModuleId=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid();break;case"preset_section":c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),c.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0})}return o.updateAPISetting(r)},complete:function(e){switch(e.apiParams.content_type){case"module":c.previewer.trigger("sek-edit-module",{level:"module",id:e.apiParams.droppedModuleId});break;case"preset_section":c.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0})}o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)});var t=e.location_skope_id;_.isUndefined(t)&&(t=!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:c.czr_skopeBase.getSkopeProperty("skope_id")),c.previewer.trigger("sek-refresh-stylesheet",{location_skope_id:t,is_global_location:o.isGlobalLocation(e.apiParams)}),e.apiParams.is_first_section&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location}),e.apiParams.sektion_to_replace&&c.previewer.trigger("sek-remove",{id:e.apiParams.sektion_to_replace,location:e.apiParams.location,in_column:e.apiParams.in_column,level:"section"})}},"sek-add-preset-section-in-new-nested-sektion":{callback:function(e){return a=!1,s={},(r=e).action="sek-add-preset-section-in-new-nested-sektion",c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),o.updateAPISetting(r)},complete:function(e){o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_sektion,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")}),c.previewer.trigger("sek-refresh-level",{level:"section",id:e.apiParams.in_sektion})}},"sek-pick-content":function(e){return e=_.isObject(e)?e:{},c.czr_sektions.currentContentPickerType=c.czr_sektions.currentContentPickerType||new c.Value,c.czr_sektions.currentContentPickerType(e.content_type||"module"),_.isObject(e)&&e.id&&o.lastClickedTargetInPreview({id:e.id}),a=!0,r={},s={action:"sek-generate-draggable-candidates-picker-ui",content_type:(e=e||{}).content_type||"module",was_triggered:!_.has(e,"was_triggered")||e.was_triggered,focus:!_.has(e,"focus")||e.focus},o.generateUI(s)},"sek-edit-options":function(e){return a=!0,r={},_.isEmpty(e.id)?n.Deferred(function(){this.reject("missing id")}):(s={action:"sek-generate-level-options-ui",level:e.level,id:e.id,in_sektion:e.in_sektion,in_column:e.in_column,options:e.options||[]},o.generateUI(s))},"sek-edit-module":function(e){return a=!0,r={},s={action:"sek-generate-module-ui",level:e.level,id:e.id,in_sektion:e.in_sektion,in_column:e.in_column,options:e.options||[]},o.generateUI(s)},"sek-notify":function(t){a=!1;var i=t.notif_id||"sek-notify";return o.lastNimbleNotificationId&&c.notifications.remove(o.lastNimbleNotificationId),n.Deferred(function(){c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification(i,{type:t.type||"info",message:t.message,dismissible:!0})),o.lastNimbleNotificationId=i,_.delay(function(){c.notifications.remove(i)},t.duration||5e3)}),this.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-level":function(t){return a=!0,n.Deferred(function(e){r={action:"sek-refresh-level",level:t.level,id:t.id,original_action:t.original_action,moved_level_id:t.moved_level_id},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-stylesheet":function(t){return a=!0,t=t||{},n.Deferred(function(e){r={id:t.id},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-toggle-save-section-ui":function(t){return a=!1,o.saveSectionUIVisible(!0,t),n.Deferred(function(e){r={},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-reset-collection":{callback:function(e){return a=!1,s={},(r=e).action="sek-reset-collection",r.scope=e.scope,o.updateAPISetting(r)},complete:function(e){c.previewer.refresh(),c.previewer.trigger("sek-notify",{notif_id:"reset-success",type:"success",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset complete"],"</strong>","</span>"].join("")})}}};_.each(e,function(i,n){c.previewer.bind(n,function(t){var e;if(_.isFunction(i))e=i;else{if(!_.isFunction(i.callback))return void c.errare("::reactToPreviewMsg => invalid callback for action "+n);e=i.callback}"sek-notify"!==n&&(o.templateGalleryExpanded(!1),o.tmplDialogVisible(!1));try{e(t).done(function(e){e=e||{},a?c.previewer.send(n,{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:c.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:r,uiParams:s,cloneId:!_.isEmpty(e.cloneId)&&e.cloneId,all_params:t}):c.previewer.trigger([n,"done"].join("_"),{apiParams:r,uiParams:s}),o.trigger([n,"done"].join("_"),t)}).fail(function(e){c.errare("reactToPreviewMsg => problem or error when running action "+n,e),!_.isEmpty(e)&&sektionsLocalizedData.isDevMode&&c.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+e+"</strong>","<br>",sektionsLocalizedData.i18n["If this problem locks Nimble Builder, you can try resetting the sections of this page."],"<br>",'<span style="text-align:center;display:block">','<button type="button" class="button" aria-label="'+sektionsLocalizedData.i18n.Reset+'" data-sek-reset="true">'+sektionsLocalizedData.i18n.Reset+"</button>","</span>","</span>"].join("")})})}catch(e){c.errare("reactToPreviewMsg => error when receiving "+n,e)}})}),_.each(e,function(t,i){c.previewer.bind([i,"done"].join("_"),function(e){if(_.isFunction(t.complete))try{t.complete(e)}catch(e){c.errare("reactToPreviewMsg done => error when receiving "+[i,"done"].join("_"),e)}})})},schedulePrintSectionJson:function(){var i=this;c.previewer.bind("sek-to-json",function(e){var t=n.extend(!0,{},i.getLevelModel(e.id));console.log(JSON.stringify(i.cleanIds(t)))})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(v,y){y.extend(CZRSeksPrototype,{generateUI:function(e){var t=this,i=y.Deferred();switch(_.isEmpty(e.action)&&i.reject("generateUI => missing action"),e.action){case"sek-generate-module-ui":try{i=t.generateUIforFrontModules(e,i)}catch(e){v.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-level-options-ui":try{i=t.generateUIforLevelOptions(e,i)}catch(e){v.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-draggable-candidates-picker-ui":t.cleanRegistered();try{i=t.generateUIforDraggableContent(e,i)}catch(e){v.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-local-skope-options-ui":t.cleanRegistered();try{i=t.generateUIforLocalSkopeOptions(e,i)}catch(e){v.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-global-options-ui":t.cleanRegistered();try{i=t.generateUIforGlobalOptions(e,i)}catch(e){v.errare("::generateUI() => error",e),i=y.Deferred()}}return"pending"==i.state()?i.resolve().promise():i.promise()},updateAPISettingAndExecutePreviewActions:function(o){if(!_.isEmpty(o.settingParams)&&_.has(o.settingParams,"to")){var r,s=this,e=o.settingParams.to,t=null,a=!1;if(!_.isEmpty(o.settingParams.args)&&_.has(o.settingParams.args,"moduleRegistrationParams")){var c=o.settingParams.args.moduleRegistrationParams.control,i=o.settingParams.args.moduleRegistrationParams.id,n=c.czr_Module(i);if(_.isEmpty(n)?v.errare("updateAPISettingAndExecutePreviewActions => missing parentModuleInstance",o):(t=n.module_type,a=n.isMultiItem()),!a&&_.isObject(e)?r=s.normalizeAndSanitizeSingleItemInputValues({item_value:e,parent_module_type:t,is_multi_items:!1}):(r=[],_.each(e,function(e){r.push(s.normalizeAndSanitizeSingleItemInputValues({item_value:e,parent_module_type:t,is_multi_items:!0}))})),_.isEmpty(o.defaultPreviewAction))v.errare("updateAPISettingAndExecutePreviewActions => missing defaultPreviewAction in passed params. No action can be triggered to the api.previewer.",o);else{var l,d="refresh_stylesheet"===o.defaultPreviewAction,u="refresh_markup"===o.defaultPreviewAction,p="refresh_fonts"===o.defaultPreviewAction,m="refresh_preview"===o.defaultPreviewAction,f=o.settingParams.args.input_changed,g=function(){return l&&_.isString(l.refresh_markup)&&"true"!==l.refresh_markup&&"false"!==l.refresh_markup};_.isUndefined(f)||(l=s.getInputRegistrationParams(f,t),_.isUndefined(l.refresh_stylesheet)||(d=Boolean(l.refresh_stylesheet)),_.isUndefined(l.refresh_markup)||(u=g()?l.refresh_markup:Boolean(l.refresh_markup)),_.isUndefined(l.refresh_fonts)||(p=Boolean(l.refresh_fonts)),_.isUndefined(l.refresh_preview)||(m=Boolean(l.refresh_preview)));var h=function(){if(!0!==o.isGlobalOptions)return s.updateAPISetting({action:o.uiParams.action,id:o.uiParams.id,value:r,in_column:o.uiParams.in_column,in_sektion:o.uiParams.in_sektion,options_type:o.options_type,settingParams:o.settingParams}).done(function(e){var t;!0===d&&v.previewer.send("sek-refresh-stylesheet",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:v.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:v.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-stylesheet",id:o.uiParams.id,level:o.uiParams.level}}),a&&o.settingParams.args.inputRegistrationParams&&_.isFunction(o.settingParams.args.inputRegistrationParams.input_parent)&&(t=o.settingParams.args.inputRegistrationParams.input_parent.id);var i=function(){v.previewer.send("sek-refresh-level",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:v.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:v.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-level",id:o.uiParams.id,level:o.uiParams.level,changed_item_id:t,control_id:c.id,is_multi_items:a},skope_id:v.czr_skopeBase.getSkopeProperty("skope_id")})};if(!0===u&&i(),g()){var n=o.settingParams.args.input_value;if(!_.isString(n))throw new Error("::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.");s.htmlIncludesShortcodesOrTmplTags(n)?i():v.previewer.send("sek-update-html-in-selector",{selector:l.refresh_markup,changed_item_id:t,is_multi_items:a,html:n,id:o.uiParams.id,location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:v.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:v.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-update-html-in-selector",id:o.uiParams.id,level:o.uiParams.level},skope_id:v.czr_skopeBase.getSkopeProperty("skope_id")})}!0===m&&v.previewer.refresh()}).fail(function(e){v.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated",e),v.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated => params ",o)});if(_.isEmpty(o.options_type))v.errare("updateAPISettingAndExecutePreviewActions => error when updating the global options => missing options_type");else{var e=v(sektionsLocalizedData.optNameForGlobalOptions)(),t=y.extend(!0,{},_.isObject(e)?e:{}),i={};if(_.each(r||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(i[t]=e)}),t[o.options_type]=i,v(sektionsLocalizedData.optNameForGlobalOptions)(t),!1!==m&&v.previewer.refresh(),!0===p){var n=o.settingParams.args.input_value;if(!_.isString(n))return void v.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",n);s.updateGlobalGFonts(n)}!0===d&&v.previewer.send("sek-refresh-stylesheet",{local_skope_id:v.czr_skopeBase.getSkopeProperty("skope_id"),location_skope_id:sektionsLocalizedData.globalSkopeId})}};if(!0===p){var k=o.settingParams.args.input_value;if(!_.isString(k))return void v.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",k);!0===o.isGlobalOptions?h():s.updateAPISetting({action:"sek-update-fonts",font_family:k,is_global_location:s.isGlobalLocation(o.uiParams)}).always(function(){h().then(function(){s.updateAPISetting({action:"sek-update-fonts",is_global_location:s.isGlobalLocation(o.uiParams)})})})}else h()}}else v.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated",o)}else v.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated",o)},updateGlobalGFonts:function(e){var t=v(sektionsLocalizedData.optNameForGlobalOptions)(),i=y.extend(!0,{},_.isObject(t)?t:{}),n=this.sniffGlobalGFonts(i);!_.isEmpty(e)&&_.isString(e)&&-1<e.indexOf("gfont")&&!_.contains(n,e)&&n.push(e),i.fonts=n,v(sektionsLocalizedData.optNameForGlobalOptions)(i)},sniffGlobalGFonts:function(e){var i=[],n=function(e){_.each(e,function(e,t){"fonts"!==t&&(_.isString(t)&&-1<t.indexOf("font_family")&&-1<e.indexOf("gfont")&&!_.contains(i,e)&&i.push(e),(_.isArray(e)||_.isObject(e))&&n(e))})};return(_.isArray(e)||_.isObject(e))&&n(e),i},normalizeAndSanitizeSingleItemInputValues:function(o){var i,r={},n={},s=null,a=this;return _.each(o.item_value,function(e,t){var i,n;"title"!==t&&((o.is_multi_items||"id"!==t)&&(null!==o.parent_module_type&&"id"!==t&&"no_default_value_specified"===(s=a.getInputDefaultValue(t,o.parent_module_type))&&v.infoLog("::normalizeAndSanitizeSingleItemInputValues => missing default value for input "+t+" in module "+o.parent_module_type),i=e,n=s,(_.isBoolean(i)||_.isBoolean(n)?Boolean(i)===Boolean(n):_.isNumber(i)||_.isNumber(n)?Number(i)===Number(n):_.isString(i)||_.isString(n)?i+""==n+"":_.isObject(i)&&_.isObject(n)?_.isEqual(i,n):_.isArray(i)&&_.isArray(n)?JSON.stringify(i.sort())===JSON.stringify(n.sort()):i===n)||(_.isString(e)||_.isObject(e))&&_.isEmpty(e)||(r[t]=e)))}),_.each(r,function(e,t){switch(a.getInputType(t,o.parent_module_type)){case"text":case"textarea":case"check":case"gutencheck":case"select":case"radio":case"number":case"upload":case"upload_url":case"color":case"wp_color_alpha":case"wp_color":case"content_picker":case"detached_tinymce_editor":case"nimble_tinymce_editor":case"password":case"range":case"range_slider":case"hidden":case"h_alignment":case"h_text_alignment":case"spacing":case"bg_position":case"v_alignment":case"font_size":case"line_height":case"font_picker":default:i=e}n[t]=i}),n},isUIControlAlreadyRegistered:function(t){var e=_.filter(this.registered(),function(e){return e.id==t&&"control"===e.what}),i=!1;return _.isEmpty(e)?i=v.control.has(t):(i=!0,1<e.length&&v.errare("isUIControlAlreadyRegistered => why is this control registered more than once ? => "+t)),i},htmlIncludesShortcodesOrTmplTags:function(e){var t=e.match(/\[+([\w_-])+/g),i=e.match(/\{\{+([\w_-])+/g),n=[],o=[];if(t)for(var r=0;r<t.length;r++){var s=t[r].replace(/^\[+/g,"");-1===n.indexOf(s)&&n.push(s)}if(i)for(var a=0;a<i.length;a++){var c=i[a].replace(/^\[+/g,"");-1===o.indexOf(c)&&o.push(c)}return!_.isEmpty(n)||!_.isEmpty(o)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(s,a){a.extend(CZRSeksPrototype,{generateUIforDraggableContent:function(o,e){var r=this,t={};a.extend(t,{content_type_switcher:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+"_sek_content_type_switcher_ui",module_type:"sek_content_type_switcher_module",controlLabel:sektionsLocalizedData.i18n["Select a content type"],priority:10,settingValue:{content_type:o.content_type}},module_picker:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+"_sek_draggable_modules_ui",module_type:"sek_module_picker_module",controlLabel:sektionsLocalizedData.i18n["Pick a module"],content_type:"module",priority:20,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_intro_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_intro_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Sections for an introduction"],content_type:"section",expandAndFocusOnInit:!0,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_features_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_features_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Sections for services and features"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_about_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_about_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["About us sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_contact_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_contact_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Contact-us sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_column_layouts_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_column_layouts_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Empty sections with columns layout"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_header_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_header_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Header sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_footer_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_footer_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Footer sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'}}),sektionsLocalizedData.isSavedSectionEnabled&&a.extend(t,{sek_my_sections_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+r.guid()+"_sek_draggable_sections_ui",module_type:"sek_my_sections_sec_picker_module",controlLabel:"@missi18n My sections",content_type:"section",expandAndFocusOnInit:!1,priority:10,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'}});var i=_.keys(t)[0],n=t[i].settingControlId;return r.isUIControlAlreadyRegistered(n)?s.control(n,function(t){t.focus({completeCallback:function(){var e=t.container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}})}):(_do_register_=function(){_.each(t,function(n,e){s.has(n.settingControlId)||(s(n.settingControlId,function(e){e.bind(function(e,t){s.errare("generateUIforDraggableContent => the setting() should not changed")})}),s.CZR_Helpers.register({origin:"nimble",level:o.level,what:"setting",id:n.settingControlId,dirty:!1,value:n.settingValue||{},transport:"postMessage",type:"_nimble_ui_"})),s.CZR_Helpers.register({origin:"nimble",level:o.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:r.SECTION_ID_FOR_CONTENT_PICKER,priority:n.priority||10,settings:{default:n.settingControlId},track:!1}).done(function(){s.control(n.settingControlId,function(e){e.content_type=n.content_type,!0===o.focus&&e.focus({completeCallback:function(){}});var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),"section"===e.content_type?(e.container.attr("data-sek-expanded","false"),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&e.container.addClass("sek-expand-on-init")):e.container.attr("data-sek-accordion","no")})})}),s.trigger("nimble-modules-and-sections-controls-registered")},s.section(r.SECTION_ID_FOR_CONTENT_PICKER,function(e){_do_register_();var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.find(".sek-level-option-icon").length<1&&t.prepend('<i class="fas fa-grip-vertical sek-level-option-icon"></i>'),0<i.length&&i.find(".sek-level-option-icon").length<1&&i.find(".customize-action").after('<i class="fas fa-grip-vertical sek-level-option-icon"></i>'),r.scheduleModuleAccordion.call(e,{expand_first_control:!1}),e.container.find(".customize-control.sek-expand-on-init").find("label > .customize-control-title").trigger("click")})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,u){u.extend(CZRSeksPrototype,{generateUIforFrontModules:function(r,e){var s=this;_.isEmpty(r.id)&&e.reject("generateUI => missing id");var i=s.getLevelProperty({property:"value",id:r.id}),t=s.getLevelProperty({property:"module_type",id:r.id}),n=s.getRegisteredModuleProperty(t,"name");_.isEmpty(t)&&e.reject("generateUI => module => invalid module_type");var o={};if(!0===s.getRegisteredModuleProperty(t,"is_father")){var a=s.getRegisteredModuleProperty(t,"children");if(_.isEmpty(a))throw new Error("::generateUIforFrontModules => a father module "+t+" is missing children modules ");_.each(a,function(e,t){o[t]={settingControlId:r.id+"__"+t,module_type:e,controlLabel:s.getRegisteredModuleProperty(e,"name")}})}else o.__no_option_group_to_be_updated_by_children_modules__={settingControlId:r.id,module_type:t,controlLabel:n};var c=_.keys(o)[0],l=o[c].settingControlId;return s.isUIControlAlreadyRegistered(l)?d.control(l).focus({completeCallback:function(){var e=d.control(l).container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}}):(s.cleanRegistered(),_do_register_=function(){_.each(o,function(n,o){if(!d.has(n.settingControlId)){var t=function(e,t,i){try{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_markup",uiParams:_.extend(r,{action:"sek-set-module-value"}),options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){d.errare("::generateUIforFrontModules => Error in updateAPISettingAndExecutePreviewActions",e)}};d(n.settingControlId,function(e){e.bind(_.debounce(t,s.SETTING_UPDATE_BUFFER))});var e=u.extend(!0,{},i);"__no_option_group_to_be_updated_by_children_modules__"!==o&&(e=!_.isEmpty(e)&&_.isObject(e)&&_.isObject(e[o])?e[o]:{}),d.CZR_Helpers.register({origin:"nimble",level:r.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}d.CZR_Helpers.register({origin:"nimble",level:r.level,what:"control",module_id:r.id,id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:r.id,priority:20,settings:{default:n.settingControlId}}).done(function(){}),d.control(n.settingControlId,function(e){d.control(n.settingControlId).focus({completeCallback:function(){}}),e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=u("<div/>").html(t.html()).text();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false")})})},d.section(r.id,function(e){d.section(r.id).focus(),s.generateModuleOptionSwitcherUI(r.id,r.action),_do_register_(),e.container.find(".accordion-section-title").first().hide();var t=e.container.find(".customize-section-title h3");0<t.length&&t.find(".customize-action").after('<i class="fas fa-pencil-alt sek-level-option-icon"></i>'),s.scheduleModuleAccordion.call(e,{expand_first_control:!0})}),d.CZR_Helpers.register({origin:"nimble",what:"section",id:r.id,title:sektionsLocalizedData.i18n["Content for"]+" "+n,panel:sektionsLocalizedData.sektionsPanelId,priority:1e3}).done(function(){})),e},generateModuleOptionSwitcherUI:function(e,t){var i=e+"__option_switcher";d.has(i)||(d(i,function(e){e.bind(function(e,t){d.errare("generateUIforDraggableContent => the setting() should not changed")})}),d.CZR_Helpers.register({origin:"nimble",level:"module",what:"setting",id:i,dirty:!1,value:"",transport:"postMessage",type:"_nimble_ui_"})),d.CZR_Helpers.register({origin:"nimble",level:"module",what:"control",module_id:e,id:i,label:"",type:"czr_module",module_type:"sek_mod_option_switcher_module",section:e,priority:10,settings:{default:i},has_accordion:!1,ui_action:t}).done(function(){d.control(i,function(e){e.deferred.embedded.done(function(){e.container.find(".customize-control-title").hide(),e.container.attr("data-sek-accordion","no")})})})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforLevelOptions:function(s,e){var a=this,c=a.getLevelProperty({property:"options",id:s.id});c=_.isObject(c)?c:{};var t={};d.extend(t,{bg:{settingControlId:s.id+"__bg_options",module_type:"sek_level_bg_module",controlLabel:sektionsLocalizedData.i18n["Background settings for the"]+" "+sektionsLocalizedData.i18n[s.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">gradient</i>'}}),"section"===s.level&&d.extend(t,{level_text:{settingControlId:s.id+"__text_options",module_type:"sek_level_text_module",controlLabel:sektionsLocalizedData.i18n["Text settings for the"]+" "+sektionsLocalizedData.i18n[s.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">text_format</i>'}}),d.extend(t,{border:{settingControlId:s.id+"__border_options",module_type:"sek_level_border_module",controlLabel:sektionsLocalizedData.i18n["Borders settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="material-icons sek-level-option-icon">rounded_corner</i>'},spacing:{settingControlId:s.id+"__spacing_options",module_type:"sek_level_spacing_module",controlLabel:sektionsLocalizedData.i18n["Padding and margin settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="material-icons sek-level-option-icon">center_focus_weak</i>'},anchor:{settingControlId:s.id+"__anchor_options",module_type:"sek_level_anchor_module",controlLabel:sektionsLocalizedData.i18n["Custom anchor ( CSS ID ) and CSS classes for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-anchor sek-level-option-icon"></i>'},visibility:{settingControlId:s.id+"__visibility_options",module_type:"sek_level_visibility_module",controlLabel:sektionsLocalizedData.i18n["Device visibility settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="far fa-eye sek-level-option-icon"></i>'},height:{settingControlId:s.id+"__height_options",module_type:"sek_level_height_module",controlLabel:sektionsLocalizedData.i18n["Height and vertical alignment for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-vertical sek-level-option-icon"></i>'}}),"section"===s.level&&(d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_section",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),d.extend(t,{breakpoint:{settingControlId:s.id+"__breakpoint_options",module_type:"sek_level_breakpoint_module",controlLabel:sektionsLocalizedData.i18n["Responsive settings : breakpoint, column direction"],icon:'<i class="material-icons sek-level-option-icon">devices</i>'}})),"column"===s.level&&d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_column",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),"module"===s.level&&d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_module",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}});var i=_.keys(t)[0],n=t[i].settingControlId;return a.isUIControlAlreadyRegistered(n)?l.control(n).focus({completeCallback:function(){var e=l.control(n).container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}}):(a.cleanRegistered(),_do_register_=function(){_.each(t,function(n,o){if(a.isUIControlAlreadyRegistered(n.settingControlId))l.section(l.control(n.settingControlId).section()).expanded(!0);else{if(!l.has(n.settingControlId)){var t=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_stylesheet",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforLevelOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};l(n.settingControlId,function(e){e.bind(_.debounce(t,a.SETTING_UPDATE_BUFFER))});var e=c[o]||{},i=a.getModuleStartingValue(n.module_type);if("no_starting_value"!==i&&_.isObject(i)){var r=d.extend(!0,{},i);e=d.extend(r,e)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,level_id:s.id,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.id,priority:20,settings:{default:n.settingControlId}}).done(function(){}),l.control(n.settingControlId,function(e){!0===n.expandAndFocusOnInit&&e.focus({completeCallback:function(){}}),e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})}})},l.section(s.id,function(e){_do_register_(),"module"===s.level&&a.generateModuleOptionSwitcherUI(s.id,s.action),e.container.find(".accordion-section-title").first().hide();var t=e.container.find(".customize-section-title h3");0<t.length&&t.find(".sek-level-option-icon").length<1&&t.find(".customize-action").after('<i class="fas fa-sliders-h sek-level-option-icon"></i>'),a.scheduleModuleAccordion.call(e,{expand_first_control:!1})}),l.CZR_Helpers.register({origin:"nimble",what:"section",id:s.id,title:sektionsLocalizedData.i18n["Settings for the"]+" "+s.level,panel:sektionsLocalizedData.sektionsPanelId,priority:10}).done(function(){})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{getLocalSkopeOptionId:function(){var e=l.czr_skopeBase.getSkopeProperty("skope_id");return _.isEmpty(e)?(l.errare("czr_sektions::getLocalSkopeOptionId => empty skope_id "),""):sektionsLocalizedData.optPrefixForSektionsNotSaved+e+"__localSkopeOptions"},generateUIforLocalSkopeOptions:function(s,e){var a=this,i=a.getLocalSkopeOptionId();if(a.isUIControlAlreadyRegistered(i))return e;if(a.localOptionsRegistrationParams={},_.isUndefined(sektionsLocalizedData.localOptionsMap)||!_.isObject(sektionsLocalizedData.localOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid localOptionsMap"),e;!0===s.clean_settings&&a.cleanRegisteredLocalOptionSettings(),_.each(sektionsLocalizedData.localOptionsMap,function(e,t){switch(t){case"template":a.localOptionsRegistrationParams[t]={settingControlId:i+"__template",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page template"],expandAndFocusOnInit:!1,icon:'<i class="material-icons sek-level-option-icon">check_box_outline_blank</i>'};break;case"local_header_footer":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_header_footer",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page header and footer"],icon:'<i class="material-icons sek-level-option-icon">web</i>'};break;case"widths":a.localOptionsRegistrationParams[t]={settingControlId:i+"__widths",module_type:e,controlLabel:sektionsLocalizedData.i18n["Inner and outer widths"],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'};break;case"custom_css":a.localOptionsRegistrationParams[t]={settingControlId:i+"__custom_css",module_type:e,controlLabel:sektionsLocalizedData.i18n["Custom CSS"],icon:'<i class="material-icons sek-level-option-icon">code</i>'};break;case"local_performances":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_performances",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page speed optimizations"],icon:'<i class="fas fa-fighter-jet sek-level-option-icon"></i>'};break;case"local_reset":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_reset",module_type:e,controlLabel:sektionsLocalizedData.i18n["Reset the sections in this page"],icon:'<i class="material-icons sek-level-option-icon">cached</i>'};break;case"local_revisions":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_revisions",module_type:e,controlLabel:sektionsLocalizedData.i18n["Revision history of local sections"],icon:'<i class="material-icons sek-level-option-icon">history</i>'};break;case"import_export":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_imp_exp",module_type:e,controlLabel:sektionsLocalizedData.i18n["Export / Import"],icon:'<i class="material-icons sek-level-option-icon">import_export</i>'};break;default:l.errare("::generateUIforLocalOptions => an option group could not be registered => "+e,t)}});var t=l(a.localSectionsSettingId())(),c=d.extend(!0,{},_.isObject(t.local_options)?t.local_options:{});return _do_register_=function(){_.each(a.localOptionsRegistrationParams,function(n,o){var e=a.getModuleStartingValue(n.module_type),t=_.isObject(c[o])?c[o]:{};if(!l.has(n.settingControlId)){var i=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_preview",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforLocalSkopeOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};if(l(n.settingControlId,function(e){e.bind(_.debounce(i,a.SETTING_UPDATE_BUFFER))}),"no_starting_value"!==e&&_.isObject(e)){var r=d.extend(!0,{},e);t=d.extend(r,t)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:t,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.SECTION_ID_FOR_LOCAL_OPTIONS,priority:10,settings:{default:n.settingControlId}}).done(function(){l.control(n.settingControlId,function(e){e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})})})},_do_register_(),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforGlobalOptions:function(s,e){var a=this,i=sektionsLocalizedData.optPrefixForSektionsNotSaved+sektionsLocalizedData.optNameForGlobalOptions;if(a.isUIControlAlreadyRegistered(i))return e;var n={};if(_.isUndefined(sektionsLocalizedData.globalOptionsMap)||!_.isObject(sektionsLocalizedData.globalOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid globalOptionsMap"),e;_.each(sektionsLocalizedData.globalOptionsMap,function(e,t){switch(t){case"global_text":n[t]={settingControlId:i+"__global_text",module_type:e,controlLabel:sektionsLocalizedData.i18n["Global text options for Nimble sections"],icon:'<i class="material-icons sek-level-option-icon">text_format</i>'};break;case"widths":n[t]={settingControlId:i+"__widths",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide inner and outer sections widths"],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'};break;case"breakpoint":n[t]={settingControlId:i+"__breakpoint",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide breakpoint for Nimble sections"],expandAndFocusOnInit:!1,icon:'<i class="material-icons sek-level-option-icon">devices</i>'};break;case"global_header_footer":n[t]={settingControlId:i+"__header_footer",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide header and footer"],icon:'<i class="material-icons sek-level-option-icon">web</i>'};break;case"performances":n[t]={settingControlId:i+"__performances",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide page speed optimizations"],icon:'<i class="fas fa-fighter-jet sek-level-option-icon"></i>'};break;case"recaptcha":n[t]={settingControlId:i+"__recaptcha",module_type:e,controlLabel:sektionsLocalizedData.i18n["Protect your contact forms with Google reCAPTCHA"],icon:'<i class="material-icons sek-level-option-icon">security</i>'};break;case"global_revisions":n[t]={settingControlId:i+"__global_revisions",module_type:e,controlLabel:sektionsLocalizedData.i18n["Revision history of global sections"],icon:'<i class="material-icons sek-level-option-icon">history</i>'};break;case"global_imp_exp":n[t]={settingControlId:i+"__global_imp_exp",module_type:e,controlLabel:sektionsLocalizedData.i18n["Export / Import global sections"],icon:'<i class="material-icons sek-level-option-icon">import_export</i>'};break;case"global_reset":n[t]={settingControlId:i+"__global_reset",module_type:e,controlLabel:sektionsLocalizedData.i18n["Reset the sections displayed in global locations"],icon:'<i class="material-icons sek-level-option-icon">cached</i>'};break;case"beta_features":n[t]={settingControlId:i+"__beta_features",module_type:e,controlLabel:sektionsLocalizedData.i18n["Beta features"],icon:'<i class="material-icons sek-level-option-icon">widgets</i>'};break;default:l.errare("::generateUIforGlobalOptions => an option group could not be registered => "+e,t)}});var c=sektionsLocalizedData.globalOptionDBValues;return _do_register_=function(){_.each(n,function(n,o){if(!l.has(n.settingControlId)){var t=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({isGlobalOptions:!0,defaultPreviewAction:"refresh_preview",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforGlobalOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};l(n.settingControlId,function(e){e.bind(_.debounce(t,a.SETTING_UPDATE_BUFFER))});var e=a.getModuleStartingValue(n.module_type),i=_.isObject(c)&&!_.isEmpty(c[o])?c[o]:{};if("no_starting_value"!==e&&_.isObject(e)){var r=d.extend(!0,{},e);i=d.extend(r,i)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:i,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.SECTION_ID_FOR_GLOBAL_OPTIONS,priority:20,settings:{default:n.settingControlId},track:!1}).done(function(){l.control(n.settingControlId,function(e){e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})})})},_do_register_(),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(Ce,Se){Se.extend(CZRSeksPrototype,{updateAPISetting:function(Ie){var we=this,Me=Se.Deferred();(Ie=Ie||{}).is_global_location="global"===Ie.scope||we.isGlobalLocation(Ie);var De=Ie.is_global_location?we.getGlobalSectionsSettingId():we.localSectionsSettingId(),t=function(){var r,t,s,i,n,o,a,e,c,l,d=Ce(De)(),u=_.isObject(d)?Se.extend(!0,{},d):we.getDefaultSektionSettingValue(Ie.is_global_location?"global":"local"),p="_not_injection_scenario_";switch(u.collection=_.isArray(u.collection)?u.collection:we.getDefaultSektionSettingValue(Ie.is_global_location?"global":"local").collection,Ie.action){case"sek-add-section":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.location))throw new Error("updateAPISetting => "+Ie.action+" => missing location");if(!0===Ie.is_nested){if(s=we.getLevelModel(Ie.in_column,u.collection),"no_match"==(c=we.getLevelModel(Ie.in_sektion,u.collection))){Me.reject("updateAPISetting => "+Ie.action+" => no grand parent sektion found");break}if(!0===c.is_nested){Me.reject(""),Ce.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]+"</strong>","</span>"].join("")});break}if("no_match"==s){Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}s.collection=_.isArray(s.collection)?s.collection:[],s.collection.push({id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})}else{if("no_match"==(r=we.getLevelModel(Ie.location,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.isArray(r.collection)?r.collection:[],_.each(r.collection,function(e,t){Ie.before_section===e.id&&(l=t),Ie.after_section===e.id&&(l=t+1)}),r.collection=_.isArray(r.collection)?r.collection:[],r.collection.splice(l,0,{id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion})}break;case"sek-duplicate-section":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.location))throw new Error("updateAPISetting => "+Ie.action+" => missing location");var m;try{m=we.cloneLevel(Ie.id)}catch(e){Ce.errare("updateAPISetting => "+Ie.action,e);break}we.maybeGenerateNewItemIdsForCrudModules(m);var f=we.getLevelPositionInCollection(Ie.id,u.collection);if(!0===Ie.is_nested){if("no_match"==(s=we.getLevelModel(Ie.in_column,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}s.collection=_.isArray(s.collection)?s.collection:[],s.collection.splice(parseInt(f+1,10),0,m)}else{if("no_match"==(r=we.getLevelModel(Ie.location,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.isArray(r.collection)?r.collection:[],r.collection.splice(parseInt(f+1,10),0,m)}a=m.id;break;case"sek-remove-section":if(!0===Ie.is_nested)"no_match"!=(s=we.getLevelModel(Ie.in_column,u.collection))?(s.collection=_.isArray(s.collection)?s.collection:[],s.collection=_.filter(s.collection,function(e){return e.id!=Ie.id})):Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched");else{if("no_match"==(r=we.getLevelModel(Ie.location,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.filter(r.collection,function(e){return e.id!=Ie.id})}break;case"sek-move-section":var g,h,k=we.getLevelModel(Ie.to_location,u.collection);if(_.isEmpty(k)||"no_match"==k)throw new Error("updateAPISetting => "+Ie.action+" => missing target location");if(Ie.from_location!=Ie.to_location){var v=we.getLevelModel(Ie.from_location,u.collection);if(_.isEmpty(v)||"no_match"==v)throw new Error("updateAPISetting => "+Ie.action+" => missing source location");v.collection=_.isArray(v.collection)?v.collection:[],g=we.getLevelModel(Ie.id,v.collection),h=Se.extend(!0,{},g),v.collection=_.filter(v.collection,function(e){return e.id!=Ie.id})}k.collection=_.isArray(k.collection)?k.collection:[],n=Se.extend(!0,[],k.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_location!=Ie.to_location&&e==h.id)o.push(h);else{if(t=we.getLevelModel(e,n),_.isEmpty(t)||"no_match"==t)throw new Error("updateAPISetting => "+Ie.action+" => missing section candidate");o.push(t)}}),k.collection=o;break;case"sek-move-section-up-down":if(parentCandidate=we.getLevelModel(Ie.is_nested?Ie.in_column:Ie.location,u.collection),_.isEmpty(parentCandidate)||"no_match"==parentCandidate)throw new Error("updateAPISetting => "+Ie.action+" => missing target location");parentCandidate.collection=_.isArray(parentCandidate.collection)?parentCandidate.collection:[],n=Se.extend(!0,[],parentCandidate.collection),o=Se.extend(!0,[],parentCandidate.collection);var y=_.findIndex(n,function(e){return e.id===Ie.id});if(-1===y)throw new Error("updateAPISetting => "+Ie.action+" => invalid index");var b,z,I=Ie.direction||"up",w=n.length===y+1,M=0===y,D=we.activeLocationsInfo(),C=_.isArray(D)?_.findWhere(D,{id:Ie.location}):{};b=_.isObject(C)&&C.is_global,z=_.isObject(C)&&C.is_header_footer;var S=[];_.isArray(D)&&_.each(we.activeLocationsInfo(),function(e){e.is_global||e.is_header_footer||S.push(e.id)});var x,P=_.findIndex(S,function(e){return e===Ie.location}),E=!Ie.is_nested&&!b&&!z,R=0===P,L=S.length===P+1;E&&w&&"up"!==I&&!L?(x=S[P+1],we.getLevelModel(x,u.collection).collection.unshift(n[y]),parentCandidate.collection.pop(),Ie.new_location=x):E&&M&&"up"===I&&!R?(x=S[P-1],we.getLevelModel(x,u.collection).collection.push(n[y]),parentCandidate.collection.shift(),Ie.new_location=x):"up"!==I&&n.length===y+1?Ce.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["The section cannot be moved lower."]+"</strong>","</span>"].join("")}):"up"===I&&0===y?Ce.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["The section cannot be moved higher."]+"</strong>","</span>"].join("")}):(o[y]=n["up"===I?y-1:y+1],o["up"===I?y-1:y+1]=n[y],parentCandidate.collection=o);break;case"sek-add-column":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(t=we.getLevelModel(Ie.in_sektion,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],we.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}we.resetColumnsWidthInSection(t),t.collection.push({id:Ie.id,level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"sek-remove-column":if("no_match"!=(t=we.getLevelModel(Ie.in_sektion,u.collection))){if(1===_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["A section must have at least one column."]);break}t.collection=_.isArray(t.collection)?t.collection:[],t.collection=_.filter(t.collection,function(e){return e.id!=Ie.id}),we.resetColumnsWidthInSection(t)}else Ce.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched");break;case"sek-duplicate-column":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(t=we.getLevelModel(Ie.in_sektion,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],we.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}var O;try{O=we.cloneLevel(Ie.id)}catch(e){Ce.errare("updateAPISetting => "+Ie.action,e);break}we.maybeGenerateNewItemIdsForCrudModules(O);var j=we.getLevelPositionInCollection(Ie.id,u.collection);a=O.id,t.collection.splice(parseInt(j+1,10),0,O),we.resetColumnsWidthInSection(t);break;case"sek-resize-columns":if(Ie.col_number<2)break;var A=we.getLevelModel(Ie.resized_column,u.collection),T=we.getLevelModel(Ie.sister_column,u.collection);if("no_match"==A){Ce.errare("updateAPISetting => "+Ie.action+" => no resized column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no resized column matched");break}var V=function(e,t){var i=Se.extend(!0,{},e.options||{});return i.width=_.isObject(i.width)&&i.width["custom-width"]?i.width:{},i.width["custom-width"]=t,e.options=i,we.cachedElements.$body.find('[data-sek-width-range-column-id="'+e.id+'"]').val(t).trigger("input",{is_resize_column_trigger:!0}),t},Z=V(A,parseFloat(Ie.resizedColumnWidthInPercent));Z=parseFloat(Z);var F=we.getLevelModel(Ie.in_sektion,u.collection),U=_.filter(F.collection,function(e){return e.id!=A.id&&e.id!=T.id}),N=parseFloat(Z.toFixed(3));_.isEmpty(U)||_.each(U,function(e){var t,i,n;currentColWidth=(t=e,i="_not_set_",n=_.isObject(t.options)?t.options:{},!_.isEmpty(n)&&n.width&&n.width["custom-width"]&&(i=parseFloat(1*n.width["custom-width"])),i),("_not_set_"===currentColWidth||!_.isNumber(1*currentColWidth)||_.isEmpty(currentColWidth+"")||currentColWidth<1)&&(currentColWidth=V(e,parseFloat((100/Ie.col_number).toFixed(3)))),N=parseFloat((N+currentColWidth).toFixed(3))}),V(T,parseFloat((100-N).toFixed(3)));break;case"sek-move-column":var B,Q,G=we.getLevelModel(Ie.to_sektion,u.collection);if(_.isEmpty(G)||"no_match"==G)throw new Error("updateAPISetting => "+Ie.action+" => missing target sektion");if(Ie.from_sektion!=Ie.to_sektion){var H=we.getLevelModel(Ie.from_sektion,u.collection);if(_.isEmpty(H)||"no_match"==H)throw new Error("updateAPISetting => "+Ie.action+" => missing source column");H.collection=_.isArray(H.collection)?H.collection:[],B=we.getLevelModel(Ie.id,H.collection),Q=Se.extend(!0,{},B),H.collection=_.filter(H.collection,function(e){return e.id!=Ie.id}),we.resetColumnsWidthInSection(H)}G.collection=_.isArray(G.collection)?G.collection:[],n=Se.extend(!0,[],G.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_sektion!=Ie.to_sektion&&e==Q.id)o.push(Q);else{if(s=we.getLevelModel(e,n),_.isEmpty(s)||"no_match"==s)throw new Error("updateAPISetting => moveColumn => missing columnCandidate");o.push(s)}}),G.collection=o,we.resetColumnsWidthInSection(G);break;case"sek-add-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.module_type))throw new Error("updateAPISetting => "+Ie.action+" => missing module_type");if("no_match"===(s=we.getLevelModel(Ie.in_column,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}l=0,s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_module_or_nested_section===e.id&&(l=t),Ie.after_module_or_nested_section===e.id&&(l=t+1)});var W={id:Ie.id,level:"module",module_type:Ie.module_type,ver_ini:sektionsLocalizedData.nimbleVersion};"no_starting_value"!==(e=we.getModuleStartingValue(Ie.module_type))&&(W.value=e),s.collection.splice(l,0,W);break;case"sek-duplicate-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(s=we.getLevelModel(Ie.in_column,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}var $;s.collection=_.isArray(s.collection)?s.collection:[];try{$=we.cloneLevel(Ie.id)}catch(e){Ce.errare("updateAPISetting => "+Ie.action,e),Me.reject("updateAPISetting => "+Ie.action+" => error when cloning the level");break}we.maybeGenerateNewItemIdsForCrudModules($);var q=we.getLevelPositionInCollection(Ie.id,u.collection);a=$.id,s.collection.splice(parseInt(q+1,10),0,$);break;case"sek-remove-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");"no_match"!=(s=we.getLevelModel(Ie.in_column,u.collection))?(s.collection=_.isArray(s.collection)?s.collection:[],s.collection=_.filter(s.collection,function(e){return e.id!=Ie.id})):Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched");break;case"sek-move-module":var Y,J,K;if(Y=we.getLevelModel(Ie.to_column,u.collection),_.isEmpty(Y)||"no_match"==Y)throw new Error("updateAPISetting => "+Ie.action+" => missing target column");if(Ie.from_column!=Ie.to_column){var X;if(X=we.getLevelModel(Ie.from_column,u.collection),_.isEmpty(X)||"no_match"==X)throw new Error("updateAPISetting => "+Ie.action+" => missing source column");X.collection=_.isArray(X.collection)?X.collection:[],J=we.getLevelModel(Ie.id,u.collection),K=Se.extend(!0,{},J),X.collection=_.filter(X.collection,function(e){return e.id!=Ie.id})}if(Y.collection=_.isArray(Y.collection)?Y.collection:[],n=Se.extend(!0,[],Y.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_column!=Ie.to_column&&e==K.id)o.push(K);else{if(i=we.getLevelModel(e,u.collection),_.isEmpty(i)||"no_match"==i)throw new Error("updateAPISetting => "+Ie.action+" => missing moduleCandidate");o.push(i)}}),o.length!=_.uniq(o).length)throw new Error("updateAPISetting => "+Ie.action+" => there are duplicated modules in column : "+Y.id);Y.collection=o;break;case"sek-set-module-value":i=we.getLevelModel(Ie.id,u.collection);var ee=Ie.settingParams.args.moduleRegistrationParams.control,te=Ie.settingParams.args.moduleRegistrationParams.id,ie=ee.czr_Module(te);_.isEmpty(ie)?Ce.errare("updateAPISetting => missing parentModuleInstance",Ie):isMultiItemModule=ie.isMultiItem();var ne=isMultiItemModule?[]:{};if(_.each(Ie.value||(isMultiItemModule?[]:{}),function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(ne[t]=e)}),"no_match"==i){Ce.errare("updateAPISetting => "+Ie.action+" => no module matched",Ie),Me.reject("updateAPISetting => "+Ie.action+" => error no module matched");break}if(_.isEmpty(Ie.options_type)){Ce.errare("updateAPISetting => "+Ie.action+" => missing options_type"),Me.reject("updateAPISetting => "+Ie.action+" => missing options_type");break}if("__no_option_group_to_be_updated_by_children_modules__"===Ie.options_type)i.value=ne;else{var oe=Se.extend(!0,{},_.isEmpty(i.value)?{}:i.value);oe[Ie.options_type]=ne,i.value=oe}break;case"sek-generate-level-options-ui":var re=we.getLevelModel(Ie.id,u.collection),se={};if("no_match"===re){Ce.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}var ae=Se.extend(!0,{},re.options||{});_.each(Ie.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(se[t]=e)}),_.isEmpty(Ie.options_type)&&Ce.errare("updateAPISetting => "+Ie.action+" => missing options_type"),ae[Ie.options_type]=se,re.options=ae;break;case"sek-generate-local-skope-options-ui":se={};var ce=Se.extend(!0,{},_.isObject(u.local_options)?u.local_options:{});if(_.each(Ie.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(se[t]=e)}),_.isEmpty(Ie.options_type)||!_.isString(Ie.options_type))Ce.errare("updateAPISetting => "+Ie.action+" => missing options_type");else{var le={};le[Ie.options_type]=se,u.local_options=Se.extend(ce,le)}break;case"sek-add-content-in-new-sektion":var de=0;if("no_match"==(r=we.getLevelModel(Ie.location,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}switch(r.collection=_.isArray(r.collection)?r.collection:[],_.each(r.collection,function(e,t){Ie.before_section===e.id&&(de=t),Ie.after_section===e.id&&(de=t+1)}),Ie.content_type){case"module":e=we.getModuleStartingValue(Ie.content_id),r.collection.splice(de,0,{id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[{id:Ie.droppedModuleId,level:"module",module_type:Ie.content_id,value:"no_starting_value"!==e?e:null,ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"preset_section":p=Se.Deferred();var ue=function(e,i){var t=!1;if(!_.isEmpty(Ie.sektion_to_replace)){var n=we.getLevelModel(Ie.sektion_to_replace,u.collection);"no_match"===n&&(Ce.errare("updateAPISetting => "+Ie.action+" => no sektionToReplace matched"),Me.reject("updateAPISetting => "+Ie.action+" => no sektionToReplace matched")),t=!0===n.is_nested}var o=sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid();Ie.collection_of_preset_section_id=Ie.collection_of_preset_section_id||[],Ie.collection_of_preset_section_id.push(o),t?("no_match"===(s=we.getLevelModel(Ie.in_column,u.collection))&&(Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched")),s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_section===e.id&&(i=t),Ie.after_section===e.id&&(i=t+1)}),s.collection.splice(i,0,{id:o,is_nested:!0,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})):r.collection.splice(i,0,{id:o,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})};we.getPresetSectionCollection({is_user_section:Ie.is_user_section,presetSectionId:Ie.content_id}).fail(function(e){Ce.errare("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()",e),Me.reject("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){var t;_.isObject(e)&&!_.isEmpty(e)||(Ce.errare("updateAPISetting => "+Ie.action+" => preset section type not found or empty : "+Ie.content_id,e),Me.reject("updateAPISetting => "+Ie.action+" => preset section type not found or empty")),t=e,we.preparePresetSectionForInjection(t).fail(function(e){Me.reject("updateAPISetting => error when preparePresetSectionForInjection => "+Ie.action+" => "+e),p.reject(e)}).done(function(e){"section"===e.collection[0].level?_.each(e.collection,function(e){ue(e,de),de++}):ue(e,de),p.resolve()})})}break;case"sek-add-preset-section-in-new-nested-sektion":if("no_match"===(s=we.getLevelModel(Ie.in_column,u.collection))){Ce.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}var pe=0;if(s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_module_or_nested_section===e.id&&(pe=t),Ie.after_module_or_nested_section===e.id&&(pe=t+1)}),"no_match"==(c=we.getLevelModel(Ie.in_sektion,u.collection))){Me.reject("updateAPISetting => "+Ie.action+" => no grand parent sektion found");break}if(!0===c.is_nested){Me.reject(""),Ce.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]+"</strong>","</span>"].join("")});break}p=Se.Deferred();we.getPresetSectionCollection({is_user_section:Ie.is_user_section,presetSectionId:Ie.content_id}).fail(function(){Ce.errare("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()",_er_),Me.reject("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){var t;_.isObject(e)&&!_.isEmpty(e)||(Ce.errare("updateAPISetting => "+Ie.action+" => preset section type not found or empty : "+Ie.content_id,e),Me.reject("updateAPISetting => "+Ie.action+" => preset section type not found or empty")),t=e,we.preparePresetSectionForInjection(t).fail(function(e){Me.reject("updateAPISetting => error when preparePresetSectionForInjection => "+Ie.action+" => "+e),p.reject(e)}).done(function(e){var t=function(e,t){t=t||0;var i=sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid();Ie.collection_of_preset_section_id=Ie.collection_of_preset_section_id||[],Ie.collection_of_preset_section_id.push(i),s.collection.splice(t,0,{id:i,level:"section",collection:e.collection,options:e.options||{},is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})};"section"===e.collection[0].level?_.each(e.collection,function(e){t(e,pe),pe++}):t(e,pe),p.resolve()})});break;case"sek-update-fonts":var _e=we.sniffGFonts({is_global_location:Ie&&!0===Ie.is_global_location});!_.isEmpty(Ie.font_family)&&_.isString(Ie.font_family)&&-1<Ie.font_family.indexOf("gfont")&&!_.contains(_e,Ie.font_family)&&_e.push(Ie.font_family),u.fonts=_e;break;case"sek-restore-revision":u=Ie.revision_value;break;case"sek-import-from-file":if(Ce.infoLog("sek-import-from-file",Ie),_.isUndefined(Ie.imported_content.data)||_.isUndefined(Ie.imported_content.metas)){Ce.errare("updateAPISetting::sek-import-from-file => invalid imported content",imported_content);break}var me=_.isArray(Ie.imported_content.data.collection)?Se.extend(!0,[],Ie.imported_content.data.collection):[];if(!0===Ie.assign_missing_locations){var fe=Ie.imported_content.metas.active_locations,ge=Ce.czr_sektions.activeLocations(),he=_.first(ge);if(!_.isEmpty(he)&&!_.isEmpty(fe)&&_.isArray(fe)){var ke=Se(fe).not(ge).get(),ve=we.getLevelModel(he,u.collection),ye=we.getLevelModel(he,Ie.imported_content.data.collection),be=[];ve.collection=_.isArray(ve.collection)?ve.collection:[],ye.collection=_.isArray(ye.collection)?ye.collection:[],_.each(fe,function(e){var t=we.getLevelModel(e,me);_.isEmpty(t.collection)||(be=_.union(be,t.collection))}),ye.collection=be,Ie.imported_content.data.collection=_.filter(Ie.imported_content.data.collection,function(e){return!_.contains(ke,e.id)})}}!0===Ie.keep_existing_sections&&(_.each(me,function(e){var t=we.getLevelModel(e.id,u.collection);if(!_.isEmpty(t.collection)){var i=we.getLevelModel(e.id,Ie.imported_content.data.collection);i.collection=_.union(t.collection,i.collection)}}),u.fonts&&!_.isEmpty(u.fonts)&&_.isArray(u.fonts)&&(Ie.imported_content.data.fonts=_.isArray(Ie.imported_content.data.fonts)?Ie.imported_content.data.fonts:[],Ie.imported_content.data.fonts=_.uniq(_.union(u.fonts,Ie.imported_content.data.fonts)))),u=Ie.imported_content.data;break;case"sek-reset-collection":try{u=Ce.czr_sektions.resetCollectionSetting(Ie.scope)}catch(e){Ce.errare("sek-reset-collection => error when firing resetCollectionSetting()",e)}}if("pending"==Me.state()){var ze=function(){var e=Ie.settingParams&&Ie.settingParams.from&&Ie.settingParams.to;e&&_.isEqual(Ie.settingParams.from,Ie.settingParams.to)?Me.reject("updateAPISetting => main sektion setting change => the new setting value is unchanged when firing action : "+Ie.action):!e&&_.isEqual(d,u)?Me.reject("updateAPISetting => the new setting value is unchanged when firing action : "+Ie.action):null!==we.validateSettingValue(u,Ie.is_global_location?"global":"local")?(Ce(De)(u,Ie),Ie.cloneId=a,Me.resolve(Ie)):Me.reject("Validation problem for action "+Ie.action)};"_not_injection_scenario_"===p?(ze(),"pending"===Me.state()&&Ce.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")):p.done(function(){ze(),"pending"===Me.state()&&Ce.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")}).fail(function(e){Ce.errare("updateAPISetting => __presetSectionInjected__ failed",e)})}};return Ce(De,function(e){t()}),Me.promise()},resetColumnsWidthInSection:function(e){_.each(e.collection,function(e){e.options&&e.options.width&&e.options.width["custom-width"]&&(e.options.width=_.omit(e.options.width,"custom-width")),e.width=""})},_maybeFetchSectionsFromServer:function(t){var e,i=Se.Deferred();return!0===(t=t||{is_user_section:!1}).is_user_section?_.isEmpty(Ce.sek_userSavedSections)||_.isEmpty(Ce.sek_userSavedSections[t.preset_section_id])?(Ce.sek_userSavedSections=Ce.sek_userSavedSections||{},_.isUndefined(Ce.sek_fetchingUserSavedSections)||"pending"!=Ce.sek_fetchingUserSavedSections.state()?(e=wp.ajax.post("sek_get_user_saved_sections",{nonce:Ce.settings.nonce.save,preset_section_id:t.preset_section_id}),Ce.sek_fetchingUserSavedSections=e):e=Ce.sek_fetchingUserSavedSections,e.done(function(e){Ce.sek_userSavedSections[t.preset_section_id]=e,i.resolve(Ce.sek_userSavedSections)}).fail(function(e){i.reject(e)})):i.resolve(Ce.sek_userSavedSections):_.isEmpty(Ce.sek_presetSections)?(_.isUndefined(Ce.sek_fetchingPresetSections)||"pending"!=Ce.sek_fetchingPresetSections.state()?(e=wp.ajax.post("sek_get_preset_sections",{nonce:Ce.settings.nonce.save}),Ce.sek_fetchingPresetSections=e):e=Ce.sek_fetchingPresetSections,e.done(function(e){Ce.sek_presetSections=e,i.resolve(Ce.sek_presetSections)}).fail(function(e){i.reject(e)})):i.resolve(Ce.sek_presetSections),i.promise()},getPresetSectionCollection:function(r){var s=this,a=Se.Deferred();return s._maybeFetchSectionsFromServer({is_user_section:r.is_user_section,preset_section_id:r.presetSectionId}).fail(function(e){a.reject(e)}).done(function(e){var t=Se.extend(!0,{},_.isObject(e)?e:{});if(_.isEmpty(t))throw new Error("getPresetSectionCollection => Invalid collection");if(_.isEmpty(t[r.presetSectionId]))throw new Error('getPresetSectionCollection => the preset section : "'+r.presetSectionId+'" has not been found in the collection');var i=t[r.presetSectionId],n=function(e){return _.each(e,function(e){e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+s.guid(),_.isArray(e.collection)&&n(e.collection)}),e},o=function(e){return _.each(e,function(e){e.ver_ini=sektionsLocalizedData.nimbleVersion,_.isArray(e.collection)&&o(e.collection)}),e};i.collection=n(i.collection),i.ver_ini=sektionsLocalizedData.nimbleVersion,i.collection=o(i.collection),a.resolve(i)}),a.promise()},preparePresetSectionForInjection:function(o){var i=this,n={},r=Se.Deferred();i.maybeGenerateNewItemIdsForCrudModules(o);var s=function(e){return _.each(e,function(e,t){_.isObject(e)||_.isArray(e)?s(e):_.isString(e)&&-1!=e.indexOf("__img_url__")&&(_.has(n,e)||(n[e]=i.importAttachment(e.replace("__img_url__",""))))}),n},a=function(i,n){return _.each(i,function(e,t){_.isObject(e)||_.isArray(e)?a(e,n):_.isString(e)&&-1!=e.indexOf("__img_url__")&&_.has(n,e)&&_.isObject(n[e])&&(i[t]=n[e].id)}),o};return i.whenAllPromisesInParallel(s(o)).done(function(e){var t=a(o,e);r.resolve(t)}).fail(function(e){r.reject(e)}),r.promise()}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(n,o){o.extend(CZRSeksPrototype,{cleanRegistered:function(t){var i=this,e=o.extend(!0,[],i.registered()||[]);n.trigger("sek-before-clean-registered"),e=_.filter(e,function(e){if("setting"!==e.what&&n[e.what].has(e.id)){if(!_.isEmpty(t)&&e.id!==t)return;_.isFunction(n[e.what](e.id).trigger)&&i.trigger("sek-ui-pre-removal",{what:e.what,id:e.id}),o.when(n[e.what](e.id).container.remove()).done(function(){n[e.what].remove(e.id),i.trigger("sek-ui-removed",{what:e.what,id:e.id})})}return"setting"===e.what}),i.registered(e)},cleanRegisteredLocalOptionSettings:function(){var t=this.getLocalSkopeOptionId(),e=o.extend(!0,[],this.registered()||[]);e=_.filter(e,function(e){return e.id&&-1!==e.id.indexOf(t)&&n.has(e.id)&&n.remove(e.id),e.id&&-1===e.id.indexOf(t)}),this.registered(e)},cleanRegisteredLevelSettingsAfterHistoryNavigation:function(){var e=o.extend(!0,[],this.registered()||[]);e=_.filter(e,function(e){return!_.isEmpty(e.level)&&"setting"===e.what&&n.has(e.id)&&n.remove(e.id),_.isEmpty(e.level)&&"setting"===e.what}),this.registered(e)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(u,p){p.extend(CZRSeksPrototype,{rootPanelFocus:function(){u.section.has(u.czr_activeSectionId())?u.section(u.czr_activeSectionId()).expanded(!1):u.section.each(function(e){e.expanded(!1)}),u.panel.each(function(e){e.expanded(!1)})},guid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()},getGlobalSectionsSettingId:function(){return sektionsLocalizedData.settingIdForGlobalSections},getLevelModel:function(i,n){var s=this,a="no_match",c=function(t,e,i,n){if(_.isUndefined(e)){var o=u(i)(),r=_.isObject(o)?p.extend(!0,{},o):p.extend(!0,{},s.getDefaultSektionSettingValue(n));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){"no_match"==a&&(t===e.id?a=e:_.isArray(e.collection)&&c(t,e.collection,i,n))}),a};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,n,e,t)}):c(i,n),a},getParentSectionFromColumnId:function(i,n){var s=this,a="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=u(n)(),r=_.isObject(t)?p.extend(!0,{},t):p.extend(!0,{},s.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){var t;"no_match"==a&&("section"==e.level&&(t=_.findWhere(e.collection,{id:i})),_.isEmpty(t)?_.isArray(e.collection)&&c(i,e.collection,n,o):a=e)}),a};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,n,e,t)}):c(i,n),a},isGlobalLocation:function(e){var t=!1;return e=e||{},_.has(e,"is_global_location")?t=e.is_global_location:_.has(e,"scope")?t="global"===e.scope:_.isEmpty(e.location)?_.isEmpty(e.in_sektion)?_.isEmpty(e.id)||(t=this.isChildOfAGlobalLocation(e.id)):t=this.isChildOfAGlobalLocation(e.in_sektion):t=this.isChildOfAGlobalLocation(e.location),t},isChildOfAGlobalLocation:function(e){var r=this,s=function(t,e){var i="no_match";if(_.isUndefined(e)){var n=u(r.getGlobalSectionsSettingId())(),o=_.isObject(n)?p.extend(!0,{},n):r.getDefaultSektionSettingValue("global");e=_.isArray(o.collection)?o.collection:[]}return _.each(e,function(e){"no_match"==i&&(t===e.id?i=e:_.isArray(e.collection)&&(i=s(t,e.collection)))}),i};return"no_match"!==s(e)},getLevelPositionInCollection:function(i,n){var s=this,a="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=u(n)(),r=_.isObject(t)?p.extend(!0,{},t):p.extend(!0,{},s.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}_.each(e,function(e,t){"no_match"==a&&(i===e.id?a=t:_.isArray(e.collection)&&c(i,e.collection,n,o))})};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,e,t,n)}):c(i,n),a},getLevelProperty:function(e){if(e=_.extend({id:"",property:""},e),_.isEmpty(e.id))u.errare("getLevelProperty => invalid id provided");else{var t=this.getLevelModel(e.id);if("no_match"!=t){if(_.isObject(t))return t[e.property];u.errare("getLevelProperty => invalid model for id : "+e.id,t)}else u.errare("getLevelProperty => no level model found for id : "+e.id)}},cloneLevel:function(e){var t=this,i=t.getLevelModel(e);if("no_match"==i)throw new Error("cloneLevel => no match for level id : "+e);var n=p.extend(!0,{},i),o=function(e){if(_.isEmpty(e.id))throw new Error("cloneLevel => missing level id");if(e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+t.guid(),!_.isEmpty(e.collection)){if(!_.isArray(e.collection))throw new Error("cloneLevel => the collection must be an array for level id : "+e.id);_.each(e.collection,function(e){e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+t.guid(),o(e)})}return e};return o(n)},getDefaultItemModelFromRegisteredModuleData:function(e){if(!this.isModuleRegistered(e))return{};if(sektionsLocalizedData.registeredModules[e].is_father)return u.errare("getDefaultItemModelFromRegisteredModuleData => Father modules should be treated specifically"),{};var t=sektionsLocalizedData.registeredModules[e].tmpl["item-inputs"],i={id:"",title:""};return _.each(t,function(e,t){switch(t){case"tabs":_.each(e,function(e){_.each(e.inputs,function(e,t){i[t]=e.default||""})});break;default:i[t]=e.default||""}}),i},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sektionsLocalizedData.registeredModules[e][t]:"not_set"},isModuleRegistered:function(e){return sektionsLocalizedData.registeredModules&&!_.isUndefined(sektionsLocalizedData.registeredModules[e])},isMultiItemsModule:function(e){return sektionsLocalizedData.registeredModules[e]&&!0===sektionsLocalizedData.registeredModules[e].is_crud},maybeGenerateNewItemIdsForCrudModules:function(t){var i=this;return(_.isArray(t)||_.isObject(t))&&_.each(t,function(e){_.isArray(t)&&_.isObject(e)&&e.id&&!_.has(e,"level")?-1===e.id.indexOf(sektionsLocalizedData.optPrefixForSektionsNotSaved)&&(e.id=i.guid()):(_.isArray(e)||_.isObject(e))&&i.maybeGenerateNewItemIdsForCrudModules(e)}),t},sniffGFonts:function(e){var o=this,r=[],s=function(i,n,e){if(_.isUndefined(e)){var t=u(i)();e=_.isObject(t)?p.extend(!0,{},t):p.extend(!0,{},o.getDefaultSektionSettingValue(n))}_.each(e,function(e,t){_.isString(t)&&"_css"===t.substr(t.length-4)&&!0===o.inputIsAFontFamilyModifier(t)&&-1<e.indexOf("gfont")&&!_.contains(r,e)&&r.push(e),(_.isArray(e)||_.isObject(e))&&s(i,n,e)})};return(e=e||{is_global_location:!1}).is_global_location?s(o.getGlobalSectionsSettingId(),"global"):s(o.localSectionsSettingId(),"local"),r},sniffAllFonts:function(){var n=this,o=[],r=function(i,e){if(_.isUndefined(e)){var t=u(i)();e=_.isObject(t)?p.extend(!0,{},t):p.extend(!0,{},n.getDefaultSektionSettingValue(localOrGlobal))}_.each(e,function(e,t){_.isString(t)&&_.isString(e)&&(-1<e.indexOf("[gfont]")||-1<e.indexOf("[cfont]"))&&o.push(e),(_.isArray(e)||_.isObject(e))&&r(i,e)})};return _.each([n.localSectionsSettingId(),n.getGlobalSectionsSettingId(),sektionsLocalizedData.optNameForGlobalOptions],function(e){r(e)}),o},getInputDefaultValue:function(i,n,e){var o=this;if(o.cachedDefaultInputValues=o.cachedDefaultInputValues||{},o.cachedDefaultInputValues[n]=o.cachedDefaultInputValues[n]||{},_.has(o.cachedDefaultInputValues[n],i))return o.cachedDefaultInputValues[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))u.errare("getInputDefaultValue => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))u.errare("getInputDefaultValue => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r="no_default_value_specified";return _.each(e,function(e,t){"no_default_value_specified"===r&&(i!==t||_.isUndefined(e.default)||(r=e.default),"no_default_value_specified"===r&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputDefaultValue(i,n,e)),"no_default_value_specified"!==r&&(o.cachedDefaultInputValues[n][i]=r))}),r}u.errare("getInputDefaultValue => Father modules should be treated specifically")}},getInputType:function(i,n,e){var o=this;if(o.cachedInputTypes=o.cachedInputTypes||{},o.cachedInputTypes[n]=o.cachedInputTypes[n]||{},_.has(o.cachedInputTypes[n],i))return o.cachedInputTypes[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))u.errare("getInputType => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))u.errare("getInputType => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r="no_input_type_specified";return _.each(e,function(e,t){"no_input_type_specified"===r&&(i!==t||_.isUndefined(e.input_type)||(r=e.input_type),"no_input_type_specified"===r&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputType(i,n,e)),"no_input_type_specified"!==r&&(o.cachedInputTypes[n][i]=r))}),r}u.errare("getInputType => Father modules should be treated specifically")}},getInputRegistrationParams:function(i,n,e){var o=this;if(o.cachedInputRegistrationParams=o.cachedInputRegistrationParams||{},o.cachedInputRegistrationParams[n]=o.cachedInputRegistrationParams[n]||{},_.has(o.cachedInputRegistrationParams[n],i))return o.cachedInputRegistrationParams[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))u.errare("getInputRegistrationParams => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))u.errare("getInputRegistrationParams => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r={};return _.each(e,function(e,t){_.isEmpty(r)&&(i!==t||_.isUndefined(e.input_type)||(r=e),_.isEmpty(r)&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputRegistrationParams(i,n,e)),_.isEmpty(r)||(o.cachedInputRegistrationParams[n][i]=r))}),r}u.errare("getInputRegistrationParams => Father modules should be treated specifically")}},inputIsAFontFamilyModifier:function(i,e){var n=this;if(n.cachedFontFamilyModifier=n.cachedFontFamilyModifier||{},_.has(n.cachedFontFamilyModifier,i))return n.cachedFontFamilyModifier[i];if(!_.isUndefined(sektionsLocalizedData.registeredModules)){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules);var o="not_set";return _.each(e,function(e,t){"not_set"===o&&(i!==t||_.isUndefined(e.input_type)||(o=!_.isUndefined(e.refresh_fonts)&&e.refresh_fonts),"not_set"===o&&(_.isArray(e)||_.isObject(e))&&(o=n.inputIsAFontFamilyModifier(i,e)),"not_set"!==o&&(n.cachedFontFamilyModifier[i]=o))}),o}u.errare("inputIsAFontFamilyModifier => missing sektionsLocalizedData.registeredModules")},getModuleStartingValue:function(e){var a=this;if(!sektionsLocalizedData.registeredModules)return u.errare("getModuleStartingValue => missing sektionsLocalizedData.registeredModules"),"no_starting_value";if(_.isUndefined(sektionsLocalizedData.registeredModules[e]))return u.errare("getModuleStartingValue => the module type "+e+" is not registered"),"no_starting_value";var t,i,n,c=function(e){return readyStartValues=[],_.each(e,function(e){if(_.isObject(e)){var t=p.extend(!0,{},e);t.id=u.czr_sektions.guid(),readyStartValues.push(t)}else u.errare("getModuleStartingValue => multi-item module => items should be objects for module "+mod_type)}),readyStartValues},l={},d=(t=e,sektionsLocalizedData.registeredModules[t]&&sektionsLocalizedData.registeredModules[t].starting_value?sektionsLocalizedData.registeredModules[t].starting_value:{});return n=e,sektionsLocalizedData.registeredModules[n]&&!0===sektionsLocalizedData.registeredModules[n].is_father?_.each((i=e,sektionsLocalizedData.registeredModules[i]&&sektionsLocalizedData.registeredModules[i].children?sektionsLocalizedData.registeredModules[i].children:{}),function(e,t){var i,n,o,r,s=(i=e,r=(o=d)[n=t]?o[n]:{},a.isMultiItemsModule(i)&&_.isArray(r)?c(r):r);_.isEmpty(s)||(l[t]=s)}):l=a.isMultiItemsModule(e)&&_.isArray(d)?c(d):d,_.isEmpty(l)?"no_starting_value":l},selectNextTabbableOrFocusable:function(e){var t=p(e),i=p(":focus"),n=0;if(1===i.length){var o=t.index(i);o+1<t.length&&(n=o+1)}t.eq(n).focus()},selectPrevTabbableOrFocusable:function(e){var t=p(e),i=p(":focus"),n=t.length-1;if(1===i.length){var o=t.index(i);0<o&&(n=o-1)}t.eq(n).focus()},setupSelectInput:function(e){var n=this,t=(n.input_parent,n.module,u.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type)),i={params:e=_.isEmpty(e)?t.choices:e};if(n.module.trigger("nimble-set-select-input-options",i),e=i.params,!_.isEmpty(e)&&_.isObject(e))switch(n.type){case"simpleselect":_.each(e,function(e,t){var i={value:t,html:e};t==n()?p.extend(i,{selected:"selected"}):"px"===t&&p.extend(i,{selected:"selected"}),p("select[data-czrtype]",n.container).append(p("<option>",i))}),p("select[data-czrtype]",n.container).selecter();break;case"multiselect":var o=n();o=_.isString(o)?[o]:o,o=_.isArray(o)?o:[],_.each(e,function(e,t){var i={value:t,html:e};_.contains(o,t)&&p.extend(i,{selected:"selected"}),p("select[data-czrtype]",n.container).append(p("<option>",i))}),p("select[data-czrtype]",n.container).czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),p("select[data-czrtype]",n.container).on("change",function(){0===p(this).find("option:selected").length&&n([])});break;default:u.errare("::setupSelectInput => invalid input type => "+n.type)}else u.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+n.id+" in module "+n.module.module_type)},maybeSetupDeviceSwitcherForInput:function(){var n=this;if(!n.previewedDevice){var e=['<span class="sek-input-device-switcher">','<i data-sek-device="desktop" class="sek-switcher preview-desktop active" title="'+sektionsLocalizedData.i18n["Settings on desktops"]+'"></i>','<i data-sek-device="tablet" class="sek-switcher preview-tablet" title="'+sektionsLocalizedData.i18n["Settings on tablets"]+'"></i>','<i data-sek-device="mobile" class="sek-switcher preview-mobile" title="'+sektionsLocalizedData.i18n["Settings on mobiles"]+'"></i>',"</span>"].join(" ");n.container.find(".customize-control-title").first().prepend(e),n.previewedDevice=new u.Value(u.previewedDevice()),syncWithPreviewedDevice=function(e){e.stopPropagation(),n.container.find("[data-sek-device]").removeClass("active"),p(this).addClass("active");var t,i="desktop";try{i=p(this).data("sek-device")}catch(e){u.errare("maybeSetupDeviceSwitcherForInput => error when binding sek-switcher",e)}try{u.previewedDevice(i)}catch(e){u.errare("maybeSetupDeviceSwitcherForInput => error when setting the previewed device",e)}n.previewedDevice(i),_.isUndefined(e.isTrigger)&&n.module&&n.module.control&&n.module.control.params.section&&(t=n.module.control.params.section,_.delay(function(){u.previewer.send("sek-animate-to-level",{id:t})},600))},n.container.on("click","[data-sek-device]",syncWithPreviewedDevice);var t=n.container.find('[data-sek-device="'+u.previewedDevice()+'"]');0<t.length&&t.trigger("click")}},scheduleModuleAccordion:function(e){e=e||{expand_first_control:!0};var i=this;if(!0!==i.container.data("sek-module-accordion-has-been-setup")&&(p(i.container).on("click",".customize-control label > .customize-control-title",function(e){e.stopPropagation();var t=p(this).closest(".customize-control");"no"!==t.attr("data-sek-accordion")&&(i.container.find(".customize-control").not(t).each(function(){p(this).attr("data-sek-accordion")||p(this).attr("data-sek-expanded","false")}),t.attr("data-sek-expanded","false"==t.attr("data-sek-expanded")?"true":"false"),t.trigger("true"==t.attr("data-sek-expanded")?"sek-accordion-expanded":"sek-accordion-collapsed"))}),i.container.data("sek-module-accordion-has-been-setup",!0),e.expand_first_control)){var t=_.filter(i.controls(),function(e){return!e.params||!e.params.sek_registration_params||!1!==e.params.sek_registration_params.has_accordion}),n=_.first(t);_.isObject(n)&&!_.isEmpty(n.id)&&u.control(n.id,function(e){e.container.one("items-collection-populated",function(){p(this).find("label > .customize-control-title").trigger("click")}),e.container.trigger("sek-accordion-expanded")})}},isPromise:function(e){return e&&"function"==typeof e.then&&String(p.Deferred().then)===String(e.then)},whenAllPromisesInParallel:function(e){var i=this,t=p.Deferred(),n=[],o=_.keys(e);return _.each(e,function(e,t){n.push(p.Deferred(function(t){(i.isPromise(e)?e:p.Deferred()).done(t.resolve).fail(function(e){t.reject(e)})}))}),p.when.apply(this,n).done(function(){var i={},e=Array.prototype.slice.call(arguments);_.each(e,function(e,t){i[o[t]]=e}),t.resolve(i)}).fail(t.reject),t},whenAllPromisesInSerie:function(t,i,n,o){i=i||0,n=n||{},o=o||p.Deferred();var r=this;if(_.isArray(t)){var e=t[i];(r.isPromise(e)?e:p.Deferred(function(e){e.resolve()})).always(function(e){n[i]=e,i+1==t.length?o.resolve(n):i+1<t.length&&r.whenAllPromisesInSerie(t,i+1,n,o)})}return o},importAttachment:function(t){return wp.ajax.post("sek_import_attachment",{img_url:t,nonce:u.settings.nonce.save}).fail(function(e){u.errare("sek_import_attachment ajax action failed for image "+t,e)})},cleanIds:function(e){e.id="";var t=this;return _.each(e.collection,function(e){e.id="",_.isArray(e.collection)&&t.cleanIds(e)}),e},getDefaultSektionSettingValue:function(e){return!_.isUndefined(e)&&_.contains(["local","global"],e)||u.errare("getDefaultSektionSettingValue => the skope should be set to local or global"),"global"===e?sektionsLocalizedData.defaultGlobalSektionSettingValue:sektionsLocalizedData.defaultLocalSektionSettingValue},scheduleVisibilityOfInputId:function(t,i){var n=this.input_parent;if(!_.isFunction(i)||_.isEmpty(t))throw new Error("::scheduleVisibilityOfInputId => error when firing for input id : "+this.id);if(!n.czr_Input.has(t))throw new Error("::scheduleVisibilityOfInputId => missing input id : "+t);n.czr_Input(t).visible(i()),this.bind(function(e){n.czr_Input(t).visible(i())})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,m){m.extend(CZRSeksPrototype,{setupDnd:function(){var t=this;t.bind("sek-refresh-dragzones",function(e){!0!="draggable"in document.createElement("span")&&c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification("drag-drop-support",{type:"error",message:sektionsLocalizedData.i18n["This browser does not support drag and drop. You might need to update your browser or use another one."],dismissible:!0})),_.delay(function(){c.notifications.remove("drag-drop-support")},1e4)}),t.setupNimbleDragZones(e.input_container)}),c.previewer.bind("ready",function(){try{t.setupNimbleDropZones()}catch(e){c.errare("::setupDnd => error on self.setupNimbleDropZones()",e)}_.isUndefined(_.findWhere(t.registered(),{module_type:"sek_intro_sec_picker_module"}))&&_.isUndefined(_.findWhere(t.registered(),{module_type:"sek_module_picker_module"}))||t.rootPanelFocus()}),t.reactToDrop()},setupNimbleDragZones:function(e){var n=this,o=function(){c.notifications.add(new c.Notification("missing-injection-target",{type:"info",message:sektionsLocalizedData.i18n["You first need to click on a target ( with a + icon ) in the preview."],dismissible:!0})),_.delay(function(){c.notifications.remove("missing-injection-target")},3e4)};e.find('[draggable="true"]').each(function(){m(this).on("dragstart",function(e){(function(e){n.lastClickedTargetInPreview({}),e.originalEvent.dataTransfer.setData("sek-content-type",m(this).data("sek-content-type")),e.originalEvent.dataTransfer.setData("sek-eligible-for-module-dropzones",m(this).data("sek-eligible-for-module-dropzones")),e.originalEvent.dataTransfer.setData("sek-content-id",m(this).data("sek-content-id")),e.originalEvent.dataTransfer.setData("sek-section-type",m(this).data("sek-section-type")),e.originalEvent.dataTransfer.setData("sek-is-user-section",m(this).data("sek-is-user-section")),n.dndData={content_type:e.originalEvent.dataTransfer.getData("sek-content-type"),eligible_for_module_dropzones:"true"===e.originalEvent.dataTransfer.getData("sek-eligible-for-module-dropzones"),content_id:e.originalEvent.dataTransfer.getData("sek-content-id"),section_type:e.originalEvent.dataTransfer.getData("sek-section-type"),is_user_section:"true"===e.originalEvent.dataTransfer.getData("sek-is-user-section")};try{e.originalEvent.dataTransfer.setData("browserSupport","browserSupport"),e.originalEvent.dataTransfer.clearData("browserSupport")}catch(e){c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification("drag-drop-support",{type:"error",message:sektionsLocalizedData.i18n["This browser does not support drag and drop. You might need to update your browser or use another one."],dismissible:!0})),_.delay(function(){c.notifications.remove("drag-drop-support")},1e4)})}m(this).addClass("sek-dragged"),n.cachedElements.$body.addClass("sek-dragging"),c.previewer.send("sek-drag-start",{content_type:n.dndData.content_type,eligible_for_module_dropzones:n.dndData.eligible_for_module_dropzones})}).call(m(this),e)}).on("dragend",function(e){(function(e){n.cachedElements.$body.removeClass("sek-dragging"),m(this).removeClass("sek-dragged"),c.previewer.send("sek-drag-stop")}).call(m(this),e)}).dblclick(function(e){(function(e){var t,i=n.lastClickedTargetInPreview();!_.isEmpty(i)&&i.id?t=n.dnd_getDropZonesElements().find('[data-sek-id="'+i.id+'"]').find(".sek-module-drop-zone-for-first-module").first():o(),t&&0<t.length?(c.czr_sektions.trigger("sek-content-dropped",{drop_target_element:t,location:t.closest('[data-sek-level="location"]').data("sek-id"),before_module_or_nested_section:t.data("drop-zone-before-module-or-nested-section"),after_module_or_nested_section:t.data("drop-zone-after-module-or-nested-section"),before_section:t.data("drop-zone-before-section"),after_section:t.data("drop-zone-after-section"),content_type:m(this).data("sek-content-type"),content_id:m(this).data("sek-content-id"),section_type:m(this).data("sek-section-type"),is_user_section:"true"===m(this).data("sek-is-user-section")}),n.lastClickedTargetInPreview({})):(o(),c.errare("Double click insertion => the target zone was not found"))}).call(m(this),e)})})},setupNimbleDropZones:function(){var t=this;if(this.$dropZones=this.dnd_getDropZonesElements(),this.preDropElement=m("<div>",{class:sektionsLocalizedData.preDropElementClass,html:""}),this.$dropZones.length<1)throw new Error("::setupNimbleDropZones => invalid Dom element");this.$dropZones.each(function(){var e=m(this);!0!==e.data("zone-droppable-setup")&&(t.enterOverTimer=null,e.on("dragenter dragover",sektionsLocalizedData.dropSelectors,function(e){_.isNull(t.enterOverTimer)&&(t.enterOverTimer=!0,_.delay(function(){t.currentMousePosition&&t.currentMousePosition+""==e.clientY+""+e.clientX?t.enterOverTimer=null:(t.currentMousePosition=e.clientY+""+e.clientX,t.dnd_toggleDragApproachClassesToDropZones(e))},100)),t.dnd_canDrop({targetEl:m(this),evt:e})&&(e.stopPropagation(),t.dnd_OnEnterOver(m(this),e))}).on("dragleave drop",sektionsLocalizedData.dropSelectors,function(e){switch(e.type){case"dragleave":t.dnd_isOveringDropTarget(m(this),e)||t.dnd_cleanOnLeaveDrop(m(this),e);break;case"drop":this.$cachedDropZoneCandidates=null,t.dnd_canDrop({targetEl:m(this),evt:e})&&(e.preventDefault(),t.dnd_onDrop(m(this),e),t.dnd_cleanOnLeaveDrop(m(this),e),c.previewer.send("sek-drag-stop"))}}).data("zone-droppable-setup",!0))})},dnd_isInTarget:function(e,t){var i=t.clientY,n=t.clientX,o=e[0].getBoundingClientRect(),r=n<=o.right&&o.left<=n;return i>=o.top&&o.bottom>=i&&r},dnd_toggleDragApproachClassesToDropZones:function(u){var p=this;this.$dropZones=this.$dropZones||this.dnd_getDropZonesElements(),this.$cachedDropZoneCandidates=_.isEmpty(this.$cachedDropZoneCandidates)?this.$dropZones.find(".sek-drop-zone"):this.$cachedDropZoneCandidates,this.distanceTable=[],this.$dropZones.find(".sek-drop-zone").each(function(){var e,t,i=u.clientY,n=u.clientX,o=m(this)[0].getBoundingClientRect(),r=Math.abs(i-(o.bottom-(o.bottom-o.top)/2)),s=(Math.abs(o.top-i),Math.abs(n-(o.right-(o.right-o.left)/2))),a=(o.right,o.left,r<50),c=s<50,l=n<=o.right&&o.left<=n,d=i>=o.top&&o.bottom>=i;p.distanceTable.push({el:m(this),dist:d&&l?0:(e=s,t=r,Math.sqrt(e*e+t*t))}),m(this).removeClass("sek-drag-is-in"),(a||d)&&(c||l)?(m(this).removeClass("sek-drag-is-approaching"),m(this).removeClass("sek-drag-is-close"),m(this).addClass("sek-drag-is-very-close")):(m(this).removeClass("sek-drag-is-approaching"),m(this).removeClass("sek-drag-is-close"),m(this).removeClass("sek-drag-is-very-close")),m(this).removeClass("sek-drag-is-in")});var t=_.min(_.pluck(p.distanceTable,"dist"));p.$dropTargetCandidate=null,_.each(p.distanceTable,function(e){_.isNull(p.$dropTargetCandidate)&&t===e.dist&&(p.$dropTargetCandidate=e.el)}),p.$dropTargetCandidate&&0<p.$dropTargetCandidate.length&&p.dnd_isInTarget(p.$dropTargetCandidate,u)&&p.$dropTargetCandidate.addClass("sek-drag-is-in"),p.enterOverTimer=null},dnd_getPreDropElementContent:function(e){var t,i,n=m(e.currentTarget);switch(this.dndData.content_type){case"module":t=sektionsLocalizedData.i18n["Insert here"],0<n.length&&("between-sections"!==n.data("sek-location")&&"in-empty-location"!==n.data("sek-location")||(t=sektionsLocalizedData.i18n["Insert in a new section"])),i='<div class="sek-module-placeholder-content"><p>'+t+"</p></div>";break;case"preset_section":i='<div class="sek-module-placeholder-content"><p>'+(t=sektionsLocalizedData.i18n["Insert a new section here"])+"</p></div>";break;default:c.errare("::dnd_getPreDropElementContent => invalid content type provided")}return i},dnd_getDropZonesElements:function(){return m(c.previewer.targetWindow().document)},dnd_canDrop:function(e){var t=this,i=(e=_.extend({targetEl:{},evt:{}},e||{})).targetEl;if(!_.isObject(i)||i.length<1)return!1;if(i.closest('[data-sek-level="location"]').length<1)return!1;var n=i.hasClass("sek-content-preset_section-drop-zone"),o=i.hasClass("sek-module-drop-zone-for-first-module"),r=!0===i.closest('[data-sek-level="location"]').data("sek-is-header-location"),s=!0===i.closest('[data-sek-level="location"]').data("sek-is-footer-location"),a="preset_section"===t.dndData.content_type&&"content"===t.dndData.section_type,c=function(e){m(".sek-no-drop-possible-message",i).length<1&&i.append(['<div class="sek-no-drop-possible-message">','<i class="material-icons">not_interested</i>',e,"</div>"].join(""))};return!!i.hasClass("sek-drop-zone")&&((r||s)&&a?(c(r?sektionsLocalizedData.i18n["Header location only accepts modules and pre-built header sections"]:sektionsLocalizedData.i18n["Footer location only accepts modules and pre-built footer sections"]),!1):s&&"preset_section"===t.dndData.content_type&&"header"===t.dndData.section_type?(c(sektionsLocalizedData.i18n["You can't drop a header section in the footer location"]),!1):r&&"preset_section"===t.dndData.content_type&&"footer"===t.dndData.section_type?(c(sektionsLocalizedData.i18n["You can't drop a footer section in the header location"]),!1):"preset_section"===t.dndData.content_type&&!0===t.dndData.eligible_for_module_dropzones&&!n||("preset_section"===t.dndData.content_type&&n||"module"===t.dndData.content_type&&!n||"preset_section"===t.dndData.content_type&&o))},dnd_OnEnterOver:function(e,t){t.preventDefault(),!0!==e.data("is-drag-entered")&&(e.data("is-drag-entered",!0),e.addClass("sek-active-drop-zone"),this.$dropZones.addClass("sek-is-dragging"));try{this.dnd_mayBePrintPreDropElement(e,t)}catch(e){c.errare("Error when trying to insert the preDrop content",e)}},dnd_cleanOnLeaveDrop:function(e,t){var i=this;this.$dropZones=this.$dropZones||this.dnd_getDropZonesElements(),this.preDropElement.remove(),this.$dropZones.removeClass("sek-is-dragging"),m(sektionsLocalizedData.dropSelectors,this.$dropZones).each(function(){i.dnd_cleanSingleDropTarget(m(this))})},dnd_cleanSingleDropTarget:function(e){_.isEmpty(e)||e.length<1||(e.data("is-drag-entered",!1),e.data("preDrop-position",!1),e.removeClass("sek-active-drop-zone"),e.find(".sek-drop-zone").removeClass("sek-drag-is-close"),e.find(".sek-drop-zone").removeClass("sek-drag-is-approaching"),e.removeClass("sek-feed-me-seymore"),e.find(".sek-no-drop-possible-message").remove())},dnd_getPosition:function(e,t){var i=e[0].getBoundingClientRect(),n=i.height;return"before"===e.data("preDrop-position")?n+=this.preDropElement.outerHeight():"after"===e.data("preDrop-position")&&(n-=this.preDropElement.outerHeight()),0<t.originalEvent.clientY-i.top-n/2?"after":"before"},dnd_mayBePrintPreDropElement:function(e,t){var i=this,n=e.data("preDrop-position"),o=this.dnd_getPosition(e,t);if(n!==o&&!0!==i.isPrintingPreDrop){i.isPrintingPreDrop=!0,this.dnd_cleanSingleDropTarget(this.$currentPreDropTarget);var r="between-sections"===e.data("sek-location")||"in-empty-location"===e.data("sek-location");m.when(i.preDropElement.remove()).done(function(){e["before"===o?"prepend":"append"](i.preDropElement).find("."+sektionsLocalizedData.preDropElementClass).html(i.dnd_getPreDropElementContent(t)),e.find("."+sektionsLocalizedData.preDropElementClass).toggleClass("in-new-sektion",r),e.data("preDrop-position",o),e.addClass("sek-feed-me-seymore"),i.isPrintingPreDrop=!1,i.$currentPreDropTarget=e})}},dnd_isOveringDropTarget:function(e,t){var i=e[0].getBoundingClientRect(),n=t.clientX,o=t.clientY,r=i.left,s=i.right,a=i.top,c=i.bottom;return r<=n&&n-r<=s-r&&(a<=o&&o-a<=c-a)},dnd_onDrop:function(e,t){t.stopPropagation();this.dnd_getPosition(e,t),e.index();c.czr_sektions.trigger("sek-content-dropped",{drop_target_element:e,location:e.closest('[data-sek-level="location"]').data("sek-id"),before_module_or_nested_section:e.data("drop-zone-before-module-or-nested-section"),after_module_or_nested_section:e.data("drop-zone-after-module-or-nested-section"),before_section:e.data("drop-zone-before-section"),after_section:e.data("drop-zone-after-section"),content_type:t.originalEvent.dataTransfer.getData("sek-content-type"),eligible_for_module_dropzones:"true"===t.originalEvent.dataTransfer.getData("sek-eligible-for-module-dropzones"),content_id:t.originalEvent.dataTransfer.getData("sek-content-id"),section_type:t.originalEvent.dataTransfer.getData("sek-section-type"),is_user_section:"true"===t.originalEvent.dataTransfer.getData("sek-is-user-section")})},reactToDrop:function(){this.bind("sek-content-dropped",function(e){try{!function(e){if(!_.isObject(e))throw new Error("Invalid params provided");if(e.drop_target_element.length<1)throw new Error("Invalid drop_target_element");var t,i=e.drop_target_element,n="content-in-column";switch(i.data("sek-location")){case"between-sections":n="content-in-a-section-to-create";break;case"in-empty-location":e.is_first_section=!0,e.send_to_preview=!1,n="content-in-empty-location";break;case"between-columns":n="content-in-new-column"}"preset_section"===e.content_type&&(i.hasClass("sek-module-drop-zone-for-first-module")?1<(t=i.closest('div[data-sek-level="section"]')).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length?(n="preset-section-in-a-nested-section-to-create",e.is_nested=!0,e.in_column=i.closest('[data-sek-level="column"]').data("sek-id"),e.in_sektion=t.data("sek-id")):(e.sektion_to_replace=t.data("sek-id"),e.after_section=e.sektion_to_replace,e.in_column=t.closest('[data-sek-level="column"]').data("sek-id"),n="content-in-a-section-to-replace"):("between-sections"===i.data("sek-location")&&(n="content-in-a-section-to-create"),"between-modules-and-nested-sections"===i.data("sek-location")&&e.eligible_for_module_dropzones&&(n="preset-section-eligible-for-module-dropzones-in-new-nested-sektion",e.is_nested=!0,e.in_column=i.closest('[data-sek-level="column"]').data("sek-id"),t=i.closest('div[data-sek-level="section"]'),e.in_sektion=t.data("sek-id"))));switch(n){case"content-in-column":var o=i.closest("div[data-sek-level]");if(o.length<1)throw new Error("No valid level dom element found");var r=o.data("sek-level"),s=o.data("sek-id");if(_.isEmpty(r)||_.isEmpty(s))throw new Error("No valid level id found");c.previewer.trigger("sek-add-module",{level:r,id:s,in_column:i.closest('div[data-sek-level="column"]').data("sek-id"),in_sektion:i.closest('div[data-sek-level="section"]').data("sek-id"),before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section,content_type:e.content_type,content_id:e.content_id});break;case"content-in-a-section-to-create":case"content-in-a-section-to-replace":case"content-in-empty-location":c.previewer.trigger("sek-add-content-in-new-sektion",e);break;case"preset-section-in-a-nested-section-to-create":c.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",e);break;case"preset-section-eligible-for-module-dropzones-in-new-nested-sektion":var a=m.extend(!0,{},e);a=m.extend(a,{before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section}),c.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",a);break;default:c.errare("sek control panel => ::reactToDrop => invalid drop case : "+n)}}(e)}catch(e){c.errare("error when reactToDrop",e)}})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{setupTinyMceEditor:function(){var n=this;l.sekEditorExpanded=new l.Value(!1),n.editorEventsListenerSetup=!1,n.$editorPane=d("#czr-customize-content_editor-pane"),n.$editorDragbar=d("#czr-customize-content_editor-dragbar"),n.$preview=d("#customize-preview"),n.$collapseSidebar=d(".collapse-sidebar"),n.attachResizeEventsToEditor();d("#customize-theme-controls").on("click",'[data-czr-action="open-tinymce-editor"]',function(){var e=d(this).data("czr-control-id"),t=d(this).data("czr-input-id");_.isEmpty(e)||_.isEmpty(t)?l.errare("toggle-tinymce-editor => missing input or control id"):l.sekEditorExpanded(!0)}),l.sekEditorExpanded.bind(function(e,t,i){!function(){l.sekTinyMceEditor=tinyMCE.get(sektionsLocalizedData.idOfDetachedTinyMceTextArea);var e=function(){!1===n.editorEventsListenerSetup&&(n.editorEventsListenerSetup=!0,n.trigger("sek-tiny-mce-editor-bound-and-instantiated"))};l.sekTinyMceEditor&&(l.sekTinyMceEditor.initialized?e():l.sekTinyMceEditor.on("init",function(){e()}))}(),e&&l.sekTinyMceEditor&&l.sekTinyMceEditor.focus(),d(document.body).toggleClass("czr-customize-content_editor-pane-open",e),n.cachedElements.$window[e?"on":"off"]("resize",function(){l.sekEditorExpanded()&&_.delay(function(){n.czrResizeEditor(window.innerHeight-n.$editorPane.height())},50)}),e?(n.czrResizeEditor(window.innerHeight-n.$editorPane.height()),_.delay(function(){n.cachedElements.$window.trigger("resize")},100)):(n.$preview.css("bottom",""),n.$collapseSidebar.css("bottom",""))}),d("#czr-customize-content_editor-pane").on("click",'[data-czr-action="close-tinymce-editor"]',function(){l.sekEditorExpanded(!1)}),d("#customize-controls").on("click",function(e){"open-tinymce-editor"!=d(e.target).data("czr-action")&&l.sekEditorExpanded(!1,{context:"clicked anywhere"})}),d(document).on("keydown",_.throttle(function(e){27===e.keyCode&&l.sekEditorExpanded(!1)},50)),n.bind("sek-tiny-mce-editor-bound-and-instantiated",function(){var e=d(l.sekTinyMceEditor.iframeElement).contents().get(0);d(e).on("keydown",_.throttle(function(e){27===e.keyCode&&l.sekEditorExpanded(!1)},50))}),_.each(["sek-click-on-inactive-zone","sek-add-section","sek-add-column","sek-add-module","sek-remove","sek-move","sek-duplicate","sek-resize-columns","sek-add-content-in-new-sektion","sek-pick-content","sek-edit-options","sek-edit-module","sek-notify"],function(e){"sek-edit-module"!=e?l.previewer.bind(e,function(){l.sekEditorExpanded(!1)}):l.previewer.bind(e,function(e){l.sekEditorExpanded("czr_tiny_mce_editor_module"===e.module_type)})})},attachResizeEventsToEditor:function(){var t=this;d("#czr-customize-content_editor-pane").on("mousedown mouseup",function(e){if(("mousedown"!==e.type||"czr-customize-content_editor-dragbar"===d(e.target).attr("id")||d(e.target).hasClass("czr-resize-handle"))&&l.sekEditorExpanded())switch(e.type){case"mousedown":d(document).on("mousemove."+sektionsLocalizedData.idOfDetachedTinyMceTextArea,function(e){e.preventDefault(),d(document.body).addClass("czr-customize-content_editor-pane-resize"),d("#czr-customize-content_editor_ifr").css("pointer-events","none"),t.czrResizeEditor(e.pageY)});break;case"mouseup":d(document).off("mousemove."+sektionsLocalizedData.idOfDetachedTinyMceTextArea),d(document.body).removeClass("czr-customize-content_editor-pane-resize"),d("#czr-customize-content_editor_ifr").css("pointer-events","")}})},czrResizeEditor:function(e){var t,i=this,n=window.innerHeight,o=(window.innerWidth,{}),r=d("#czr-customize-content_editor_ifr"),s=d("#wp-czr-customize-content_editor-tools"),a=i.$editorPane.find(".mce-toolbar-grp"),c=i.$editorPane.find(".mce-statusbar");l.sekEditorExpanded()&&(_.isNaN(e)||(t=n-e),o.height=t,o.components=s.outerHeight()+a.outerHeight()+c.outerHeight(),t<40&&(o.height=40),n-1<t&&(o.height=n-1),n<i.$editorPane.outerHeight()&&(o.height=n),i.$preview.css("bottom",o.height),i.$editorPane.css("height",o.height),r.css("height",o.height-o.components))}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,a){a.extend(CZRSeksPrototype,{export_template:function(e){e=e||{},e=a.extend({scope:"local"},e);var i=[],t={sek_export_nonce:d.settings.nonce.save,skope_id:"local"===e.scope?d.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId,active_locations:d.czr_sektions.activeLocations()};_.each(t,function(e,t){i.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),wp.ajax.post("sek_pre_export_checks",{nonce:d.settings.nonce.save,sek_export_nonce:d.settings.nonce.save,skope_id:"local"===e.scope?d.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId,active_locations:d.czr_sektions.activeLocations()}).done(function(){a(window).off("beforeunload"),window.location.href=[sektionsLocalizedData.customizerURL,"?",i.join("&")].join(""),a(window).on("beforeunload")}).fail(function(e){d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Export failed"],encodeURIComponent(e)].join(" "),"</strong>","</span>"].join("")})})},getTmplJsonFromUserTmpl:function(e){var t=a.Deferred();return wp.ajax.post("sek_get_user_tmpl_json",{nonce:d.settings.nonce.save,tmpl_post_name:e}).done(function(e){t.resolve({success:!0,tmpl_json:e})}).fail(function(e){t.resolve({success:!1}),d.errorLog("ajax getTmplJsonFromUserTmpl => error",e),d.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n error when fetching the template</strong>","</span>"].join("")})}),t},getTmplJsonFromApi:function(i){var n=a.Deferred();return a.getJSON("https://api.nimblebuilder.com/wp-json/nimble/v2/cravan").done(function(e){_.isObject(e)&&e.lib&&e.lib.templates||(d.errare("::import_nimble_template success but invalid response => ",e),n.resolve({success:!1}));var t=e.lib.templates[i];t||(d.errare("::import_nimble_template => the requested template is not available",e.lib.templates),d.previewer.trigger("sek-notify",{notif_id:"missing-tmpl",type:"info",duration:1e4,message:['<span style="color:#0075a2">',"<strong>","@missi18n the requested template is not available","</strong>","</span>"].join("")}),n.resolve({success:!1})),n.resolve({success:!0,tmpl_json:t})}).fail(function(e){d.errare("::import_nimble_template failed => ",e),n.resolve({success:!1})}),n.promise()},import_nimble_template:function(e){var t=this,i=(e=a.extend({template_name:"",from:"user"},e||{})).template_name;!_.isEmpty(i)&&_.isString(i)||d.errare("::import => error => invalid template name"),console.log("import_nimble_template params ?",e),("nimble_api"===e.from?t.getTmplJsonFromApi(i):t.getTmplJsonFromUserTmpl(i)).done(function(e){console.log("SO IMPORT ??",e),e.success&&t.import_template_from_user_collection_or_remote_api({pre_import_check:!1,template_name:i,template_data:e.tmpl_json})})},import_template_from_user_collection_or_remote_api:function(t){console.log("import_template_from_user_collection_or_remote_api",t);var i=this;t=t||{};var e;if(!(t=a.extend({is_file_import:!1,pre_import_check:!1,assign_missing_locations:!1},t)).template_data)throw new Error("::import_template => missing remote template data");e=wp.ajax.post("sek_process_template_json",{nonce:d.settings.nonce.save,template_data:JSON.stringify(t.template_data),pre_import_check:!1}).done(function(e){d.infoLog("TEMPLATE PRE PROCESS DONE",e)}).fail(function(e){d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Export failed"],encodeURIComponent(e)].join(" "),"</strong>","</span>"].join("")})}),d.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0,duration:3e4}),_.delay(function(){"pending"===e.state()&&d.previewer.trigger("sek-notify",{notif_id:"import-too-long",type:"error",duration:2e4,message:["<span>","<strong>",sektionsLocalizedData.i18n['Import exceeds server response time, try to uncheck "import images" option.'],"</strong>","</span>"].join("")})},3e4),e.done(function(e){_.isObject(e)&&(e={success:!0,data:e}),d.czr_sektions.isImportedContentEligibleForAPI(e,t)?(e.data.data.collection=i.setIdsForImportedTmpl(e.data.data.collection),d.czr_sektions.doUpdateApiSettingAfterTmplImport(e,t)):d.infoLog("::import_template problem => !api.czr_sektions.isImportedContentEligibleForAPI",e,t)}).fail(function(e){d.errare("::import_template => ajax error",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["Import failed, file problem"],"</strong>","</span>"].join("")})})},import_template_from_file:function(i){console.log("import_template_from_file",i),i=i||{};var e,t,n=(i=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},i)).input;if(_.isEmpty(n))throw new Error("::import_template => missing file_input param");if(_.isEmpty(i.file_input))throw new Error("::import_template => missing file_input param");if(i.file_input.length<1||_.isUndefined(i.file_input[0])||!i.file_input[0].files||_.isEmpty(i.file_input.val()))d.previewer.trigger("sek-notify",{notif_id:"missing-import-file",type:"info",duration:3e4,message:['<span style="color:#0075a2">',"<strong>",sektionsLocalizedData.i18n["Missing file"],"</strong>","</span>"].join("")});else{t=d.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type).scope,n.container.find(".sek-uploading").show(),d.notifications.remove("missing-import-file"),d.notifications.remove("import-success"),d.notifications.remove("import-failed"),d.notifications.remove("img-import-errors");var o=new FormData;if(o.append("file_candidate",i.file_input[0].files[0]),o.append("action","sek_get_manually_imported_file_content"),o.append("nonce",d.settings.nonce.save),_.contains(["local","global"],t)){if(o.append("skope",t),i.pre_import_check&&o.append("pre_import_check",i.pre_import_check),o.append("import_img",n.input_parent.czr_Input("import_img")()),n.container.find(".sek-uploading").show(),e=a.ajax({url:wp.ajax.settings.url,data:o,processData:!1,contentType:!1,type:"POST"}),i.pre_import_check)return a.Deferred(function(){var t=this;e.done(function(e){e.success||t.reject(e),d.czr_sektions.isImportedContentEligibleForAPI(e,i)||t.reject(e),t.resolve(e)}).fail(function(e){t.reject(e)})});d.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0,duration:3e4}),_.delay(function(){"pending"===e.state()&&d.previewer.trigger("sek-notify",{notif_id:"import-too-long",type:"error",duration:2e4,message:["<span>","<strong>",sektionsLocalizedData.i18n['Import exceeds server response time, try to uncheck "import images" option.'],"</strong>","</span>"].join("")})},3e4),e.done(function(e){d.czr_sektions.isImportedContentEligibleForAPI(e,i)?(e.data.data.collection=d.czr_sektions.setIdsForImportedTmpl(e.data.data.collection),d.czr_sektions.doUpdateApiSettingAfterTmplImport(e,i)):d.infoLog("::import_template problem => !api.czr_sektions.isImportedContentEligibleForAPI",e,i)}).fail(function(e){d.errare("::import_template => ajax error",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["Import failed, file problem"],"</strong>","</span>"].join("")})}).always(function(){d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(i)})}else d.errare("::import_template => invalid scope provided",t)}},pre_checks_from_file_import:function(e,t){if(t=t||{},(t=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},t)).is_file_import&&_.isEmpty(t.input))throw new Error("::pre_checks_from_file_import => missing file_input param");var i=d.czr_sektions.activeLocations(),n=a.extend(!0,[],_.isArray(e.data.metas.active_locations)?e.data.metas.active_locations:[]),o=t.input,r=d.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type);if(n=_.filter(n,function(e){return!_.contains(["nimble_local_header","nimble_local_footer"],e)}),_.isArray(n)&&_.isArray(i)){var s=a(n).not(i).get();_.isEmpty(s)?d.czr_sektions.import_template_from_file(t):(t.is_file_import&&(o.container.find('button[data-czr-action="sek-pre-import"]').hide(),"local"===r.scope?o.container.find(".czr-import-dialog.czr-local-import").slideToggle():o.container.find(".czr-import-dialog.czr-global-import").slideToggle()),d.infoLog("sek-pre-import => imported locations missing in current page.",s))}else d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"info",duration:3e4,message:['<span style="color:#0075a2">',"<strong>",sektionsLocalizedData.i18n["Import failed"],"</strong>","</span>"].join("")}),t.is_file_import&&d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(t)},setIdsForImportedTmpl:function(i){var n=this;return(_.isObject(i)||_.isArray(i))&&_.each(i,function(e,t){(_.isObject(e)||_.isArray(e))&&(i[t]=n.setIdsForImportedTmpl(e)),"id"!==t||!_.isString(e)||0!==e.indexOf("__rep__me__")&&0!==e.indexOf("__nimble__")||(i[t]=sektionsLocalizedData.optPrefixForSektionsNotSaved+d.czr_sektions.guid())}),i},isImportedContentEligibleForAPI:function(e,t){var i=!0,n=e.data,o=null;e.success||(o=[sektionsLocalizedData.i18n["Import failed"],n].join(" : ")),_.isNull(o)&&!_.isObject(n)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var r=n.data,s=n.metas,a=n.img_errors;_.isNull(o)&&!_.isObject(r)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]),_.isNull(o)&&!_.isObject(s)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var c=d.czr_sektions.localSectionsSettingId();if(t.is_file_import){var l=t.input;c="local"===d.czr_sektions.getInputRegistrationParams(l.id,l.module.module_type).scope?c:d.czr_sektions.getGlobalSectionsSettingId()}return _.isNull(o)&&_.isEqual(d(c)(),r)&&(d.infoLog("::isImportedContentEligibleForAPI => Setting unchanged"),i=!1),_.isNull(o)||(d.errare("::isImportedContentEligibleForAPI => invalid data sent from server",n),d.errare("::isImportedContentEligibleForAPI => importErrorMsg",o),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",o,"</strong>","</span>"].join("")}),i=!1),_.isEmpty(a)||d.previewer.trigger("sek-notify",{notif_id:"img-import-errors",type:"info",duration:6e4,message:['<span style="color:#0075a2">',["<strong>"+sektionsLocalizedData.i18n["Some image(s) could not be imported"]+"</strong><br/>",'<span style="font-size:11px">'+a+"</span>"].join(" : "),"</span>"].join("")}),i},doUpdateApiSettingAfterTmplImport:function(e,t){if(t=t||{},d.czr_sektions.isImportedContentEligibleForAPI(e,t)||!t.is_file_import){var i="local",n=!1;if(t.is_file_import){var o=t.input,r=d.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type);i=r.scope,n="local"===r.scope&&o.input_parent.czr_Input("keep_existing_sections")()}d.czr_sektions.updateAPISetting({action:"sek-import-from-file",scope:i,imported_content:e.data,assign_missing_locations:t.assign_missing_locations,keep_existing_sections:n}).done(function(){"local"===i&&d.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0}),d.previewer.refresh(),d.previewer.trigger("sek-notify",{notif_id:"import-success",type:"success",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["File successfully imported"],"</strong>","</span>"].join("")})}).fail(function(e){d.errare("::doUpdateApiSettingAfterTmplImport => error when firing ::updateAPISetting",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Import failed"],e].join(" : "),"</strong>","</span>"].join("")})}),d.previewer.refresh()}else d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(t)},doAlwaysAfterManualImportAndApiSettingUpdate:function(e){if(d.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0}),e=e||{},(e=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},e)).is_file_import){var t=e.input;t.container.find(".sek-uploading").hide(),e.file_input.val("").trigger("change"),t.container.find(".czr-import-dialog").hide(),t.container.find('button[data-czr-action="sek-pre-import"]').show()}}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(n,d){d.extend(CZRSeksPrototype,{setupTemplateGallery:function(){var t=this;t.templateGalleryExpanded=new n.Value(!1),sektionsLocalizedData.isTemplateGalleryEnabled&&(t.templateGalleryExpanded.bind(function(e){t.cachedElements.$body.toggleClass("sek-template-gallery-expanded",e),e?(t.tmplDialogVisible(!1),t.levelTreeExpanded(!1),d("#customize-preview iframe").css("z-index",1),t.renderOrRefreshTempGallery()):d("#customize-preview iframe").css("z-index","")}),n.previewer.bind("ready",function(){t.templateGalleryExpanded(!1)}))},renderTmplGalleryUI:function(){if(0<d("#nimble-tmpl-gallery").length)return d("#nimble-tmpl-gallery");try{_tmpl=wp.template("nimble-top-tmpl-gallery")({})}catch(e){return n.errare("Error when parsing nimble-top-tmpl-gallery template",e),!1}return d("#customize-preview").after(d(_tmpl)),d("#nimble-tmpl-gallery")},renderOrRefreshTempGallery:function(){var e=this;d("#nimble-tmpl-gallery").length<1&&d.when(e.renderTmplGalleryUI({})).done(function(){e.setupTmplGalleryDOMEvents()});var t=d("#nimble-tmpl-gallery").find(".sek-tmpl-gallery-inner");t.html(""),e.getTemplateGalleryHtml().done(function(e){t.html(e)})},setupTmplGalleryDOMEvents:function(){var l=d("#nimble-tmpl-gallery"),i=this;l.on("click",".sek-tmpl-item .use-tmpl",function(e){e.preventDefault(),e.stopPropagation();var t=d(this).closest(".sek-tmpl-item").data("sek-tmpl-item-id");_.isEmpty(t)&&n.errare("::setupTmplGalleryDOMEvents => error => invalid template id"),n.czr_sektions.import_nimble_template({template_name:t,from:"user"}),i.templateGalleryExpanded(!1)}).on("propertychange change click keyup input paste",".sek-filter-tmpl",_.debounce(function(e){e.preventDefault();var t=d(this).val();console.log("searched string ??",t);var i,n,o,r,s,a,c=function(){l.removeClass("search-active"),l.find(".sek-tmpl-item").each(function(){d(this).removeClass("search-match")})};_.isString(t)?(t=t.trim().toLowerCase(),_.isEmpty(t.replace(/\s/g,""))?c():(l.addClass("search-active"),l.find(".sek-tmpl-item").each(function(){i=(d(this).find(".tmpl-title").html()+"").toLowerCase(),n=(d(this).find(".tmpl-desc").html()+"").toLowerCase(),o=(d(this).find(".tmpl-date").html()+"").toLowerCase(),r=-1!=i.indexOf(t),s=-1!=n.indexOf(t),a=-1!=o.indexOf(t),d(this).toggleClass("search-match",r||s||a)}))):c()},100)).on("click",".sek-tmpl-info .remove-tmpl",function(e){e.preventDefault();var t=function(e){i.tmplDialogMode("remove"),i.tmplDialogMode.unbind(t)};i.tmplDialogMode.bind(t),i.tmplDialogVisible(!0)}).on("click",".sek-close-dialog",function(e){e.preventDefault(),i.templateGalleryExpanded(!1)})},getTemplateGalleryHtml:function(){var i,n="",o=sektionsLocalizedData.baseUrl+"/assets/admin/img/wire_frame.png",r=d.Deferred();return this.getSavedTmplCollection().done(function(e){_.each(e,function(e,t){i=_.isEmpty(e.description)?[e.title,e.last_modified_date].join(" | "):[e.title,e.last_modified_date,e.description].join(" | "),n+='<div class="sek-tmpl-item" data-sek-tmpl-item-id="'+t+'">',n+='<div class="sek-tmpl-thumb"><img src="'+o+'"/></div>',n+='<div class="sek-tmpl-info" title="'+i+'">',n+='<h3 class="tmpl-title">'+e.title+"</h3>",n+='<p class="tmpl-date"><i>'+[sektionsLocalizedData.i18n["Last modified"]," : ",e.last_modified_date].join(" ")+"</i></p>",n+='<p class="tmpl-desc">'+e.description+"</p>",n+='<i class="material-icons use-tmpl" title="'+sektionsLocalizedData.i18n["Use this template"]+'">add_circle_outline</i>',n+='<i class="material-icons remove-tmpl" title="'+sektionsLocalizedData.i18n["Remove this template"]+'">delete_forever</i>',n+="</div>",n+="</div>"});var t=d("#nimble-tmpl-gallery").find(".czr-css-loader");0<t.length?t.hide({duration:300,complete:function(){d(this).remove(),r.resolve(n)}}):r.resolve(n)}),r.promise()}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(t,e){jQuery.extend(CZRSeksPrototype,t.Events);var i=t.Class.extend(CZRSeksPrototype);try{t.czr_sektions=new i}catch(e){t.errare("api.czr_sektions => problem on instantiation",e)}}(wp.customize),function(o,r,s){o.czrInputMap=o.czrInputMap||{},r.extend(o.czrInputMap,{content_type_switcher:function(e){var i,n=this;if(!o.section.has(n.module.control.section()))throw new Error("api.czrInputMap.content_type_switcher => section not registered");i=o.section(n.module.control.section()),n.container.on("click","[data-sek-content-type]",function(e){e.preventDefault();var t=r(this).data("sek-content-type");if(n.container.find("[data-sek-content-type]").attr("aria-pressed",!1),"template"===t){var i=o.czr_sektions.templateGalleryExpanded();r(this).attr("aria-pressed",!i),o.czr_sektions.templateGalleryExpanded(!i)}else o.czr_sektions.templateGalleryExpanded(!1),r(this).attr("aria-pressed",!0),o.czr_sektions.currentContentPickerType(t)});var t=function(t){n.container.find('[data-sek-content-type="'+(t||"module")+'"]').trigger("click"),s.each(i.controls(),function(e){s.isUndefined(e.content_type)||e.active(t===e.content_type)})};o.czr_sektions.currentContentPickerType=o.czr_sektions.currentContentPickerType||new o.Value(n()),o.bind("nimble-modules-and-sections-controls-registered",function(){t(o.czr_sektions.currentContentPickerType())}),o.czr_sektions.currentContentPickerType.bind(function(e){t(e)})}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{module_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"module",input_container:this.container})},section_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:this.container})}})}(wp.customize,jQuery,_),function(s,a,c){s.czrInputMap=s.czrInputMap||{},a.extend(s.czrInputMap,{module_option_switcher:function(e){var t=this;if(!s.section.has(t.module.control.section()))throw new Error(t.input_type+" => section not registered");s.section(t.module.control.section());var i,n="",o=t.module.control.params.sek_registration_params;if(c.isUndefined(o))throw new Error(t.input_type+" => missing registration params");if(o&&o.module_id&&(n=o.module_id,i=o.ui_action),c.isEmpty(n))throw new Error(t.input_type+" => missing module id");t.container.on("click","[data-sek-option-type]",function(e){e.preventDefault(),t.container.find("[data-sek-option-type]").removeClass("is-selected").attr("aria-pressed",!1),a(this).addClass("is-selected").attr("aria-pressed",!0),s.previewer.trigger("settings"===a(this).data("sek-option-type")?"sek-edit-options":"sek-edit-module",{id:n,level:"module"})});var r="sek-generate-level-options-ui"===i?"settings":"content";t.container.find("[data-sek-option-type]").removeClass("is-selected").attr("aria-pressed",!1),t.container.find('[data-sek-option-type="'+r+'"]').addClass("is-selected").attr("aria-pressed",!0)}})}(wp.customize,jQuery,_),function(l,d,u){l.czrInputMap=l.czrInputMap||{};var p=function(e){return u.contains(["px","em","%"],e)||(l.errare("error : invalid unit for input "+this.id,e),e="px"),e},_=function(i){var n=this;i.on("click",".sek-ui-button",function(e,t){e.preventDefault(),i.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),d(this).addClass("is-selected").attr("aria-pressed",!0),n.css_unit(d(this).data("sek-unit"),t)}),i.find('.sek-ui-button[data-sek-unit="'+(n.initial_unit||"px")+'"]').addClass("is-selected").attr("aria-pressed",!0)},m=function(t,i){var n=this;t.on("click",".reset-spacing-wrap",function(e){e.preventDefault(),t.find('input[type="number"]').each(function(){d(this).val("")}),n(i),d(".sek-unit-wrapper",t).find('[data-sek-unit="px"]').trigger("click")})};d.extend(l.czrInputMap,{spacing:function(e){var o=this,i=d(".sek-spacing-wrapper",o.container),t=l.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),n=u.isEmpty(t)||u.isEmpty(t.default)?[]:t.default;if(i.on("input",'input[type="number"]',function(e){var t=d(this).closest("[data-sek-spacing]").data("sek-spacing"),i=d.extend(!0,{},u.isObject(o())?o():{}),n=d(this).val();u.isString(n)&&!u.isEmpty(n)||u.isNumber(n)?i[t]=n:i=u.omit(i,t),o(i)}),m.call(o,i,n),u.isObject(o())){u.each(o(),function(e,t){d('[data-sek-spacing="'+t+'"]',i).find('input[type="number"]').val(e)});var r="px";d(".sek-unit-wrapper .sek-ui-button",o.container).each(function(){var e=d(this).data("sek-unit");u.isEmpty(o())||u.isEmpty(o().unit)||e===o().unit&&(r=e)}),d(".sek-unit-wrapper",o.container).find('[data-sek-unit="'+p.call(o,r)+'"]').trigger("click")}var s=o();o.initial_unit="px",u.isEmpty(s)||(o.initial_unit=u.isEmpty(s.unit)?"px":s.unit),o.css_unit=new l.Value(p.call(o,o.initial_unit)),o.css_unit.bind(function(e){var t;e=u.isEmpty(e)?"px":e,(t=d.extend(!0,{},u.isObject(o())?o():{})).unit=e,o(t)}),_.call(o,i)}}),d.extend(l.czrInputMap,{spacingWithDeviceSwitcher:function(e){var r=this,s=d(".sek-spacing-wrapper",r.container),t=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),a=u.isEmpty(t)||u.isEmpty(t.default)?{}:t.default,c=function(e,t){var i=["mobile","tablet","desktop"];if(u.has(e,t))return e[t];var n=u.findIndex(i,function(e){return t===e});return!u.isEmpty(t)&&n<i.length?c(e,i[n+1]):{}},i=function(e){var t=d.extend(!0,{},u.isObject(r())?r():{}),i=d.extend(!0,{},a);t=u.isObject(t)?d.extend(i,t):i;var n=c(t,e);d("[data-sek-spacing]",s).each(function(){var e=d(this).data("sek-spacing"),t="";u.isEmpty(n)||u.isEmpty(n[e])||(t=n[e]),d(this).find('input[type="number"]').val(t)});var o="px";d(".sek-unit-wrapper .sek-ui-button",r.container).each(function(){var e=d(this).data("sek-unit");u.isEmpty(n)||u.isEmpty(n.unit)||e===n.unit&&(o=e)}),d(".sek-unit-wrapper",r.container).find('[data-sek-unit="'+p.call(r,o)+'"]').trigger("click",{previewed_device_switched:!0})};l.czr_sektions.maybeSetupDeviceSwitcherForInput.call(r);var n=r();r.initial_unit="px",u.isEmpty(n)||u.isEmpty(n[r.previewedDevice()])||(r.initial_unit=u.isEmpty(n[r.previewedDevice()].unit)?"px":n[r.previewedDevice()].unit),r.css_unit=new l.Value(p.call(r,r.initial_unit)),s.on("input",'input[type="number"]',function(e){var t,i=d(this).closest("[data-sek-spacing]").data("sek-spacing"),n=d(this).val(),o=l.previewedDevice()||"desktop";(t=d.extend(!0,{},u.isObject(r())?r():{}))[o]=d.extend(!0,{},t[o]||{}),u.isString(n)&&!u.isEmpty(n)||u.isNumber(n)?t[o][i]=n:t[o]=u.omit(t[o],i),t[o].unit&&r.css_unit()==t[o].unit||(t[o].unit=r.css_unit()),r(t)}),m.call(r,s,a),r.previewedDevice.bind(function(e){try{i(e)}catch(e){l.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+r.id,e)}}),r.css_unit.bind(function(e,t,i){if(!u.isObject(i)||!0!==i.previewed_device_switched){e=u.isEmpty(e)?"px":e;var n,o=r.previewedDevice()||"desktop";(n=d.extend(!0,{},u.isObject(r())?r():{}))[o]=d.extend(!0,{},n[o]||{}),n[o].unit=e,r(n)}}),_.call(r,s);try{i(l.previewedDevice())}catch(e){l.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+r.id,e)}}})}(wp.customize,jQuery,_),function(n,a,c){n.czrInputMap=n.czrInputMap||{},a.extend(n.czrInputMap,{bg_position:function(e){var t=this;a(".sek-bg-pos-wrapper",t.container).on("change",'input[type="radio"]',function(e){t(a(this).val())}),c.isEmpty(t())||t.container.find('input[value="'+t()+'"]').attr("checked",!0).trigger("click")},bgPositionWithDeviceSwitcher:function(e){var o=this,t=n.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),r=c.isEmpty(t)||c.isEmpty(t.default)?{}:t.default;n.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var s=function(e,t){var i=["mobile","tablet","desktop"];if(c.has(e,t))return e[t];var n=c.findIndex(i,function(e){return t===e});return!c.isEmpty(t)&&n<i.length?s(e,i[n+1]):{}},i=function(e){var t=a.extend(!0,{},c.isObject(o())?o():{}),i=a.extend(!0,{},r);t=c.isObject(t)?a.extend(i,t):i;var n=s(t,e);o.container.find('input[value="'+n+'"]').attr("checked",!0).trigger("click",{previewed_device_switched:!0})};a(".sek-bg-pos-wrapper",o.container).on("change",'input[type="radio"]',function(e){var t,i=a(this).val();(t=a.extend(!0,{},c.isObject(o())?o():{}))[n.previewedDevice()||"desktop"]=i,o(t)}),o.previewedDevice.bind(function(e){try{i(e)}catch(e){n.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+o.id,e)}});try{i(n.previewedDevice())}catch(e){n.errare("Error when firing syncWithPreviewedDevice for input type bgPositionWithDeviceSwitcher for input id "+o.id,e)}}})}(wp.customize,jQuery,_),function(c,l,d){c.czrInputMap=c.czrInputMap||{};var e=function(e){var o=this,t=c.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),r=d.isEmpty(t)||d.isEmpty(t.default)?{}:t.default,i="verticalAlignWithDeviceSwitcher"===o.type?".sek-v-align-wrapper":".sek-h-align-wrapper",s=l(i,o.container);c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var a=function(e,t){var i=["mobile","tablet","desktop"];if(d.has(e,t))return e[t];var n=d.findIndex(i,function(e){return t===e});return!d.isEmpty(t)&&n<i.length?a(e,i[n+1]):{}},n=function(e){var t=l.extend(!0,{},d.isObject(o())?o():{}),i=l.extend(!0,{},r);t=d.isObject(t)?l.extend(i,t):i;var n=a(t,e);s.find(".selected").removeClass("selected"),s.find('div[data-sek-align="'+n+'"]').addClass("selected")};s.on("click","[data-sek-align]",function(e){var t;e.preventDefault(),(t=l.extend(!0,{},d.isObject(o())?o():{}))[c.previewedDevice()||"desktop"]=l(this).data("sek-align"),s.find(".selected").removeClass("selected"),l.when(l(this).addClass("selected")).done(function(){o(t)})}),o.previewedDevice.bind(function(e){try{n(e)}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type : "+o.type+" for input id "+o.id,e)}});try{n(c.previewedDevice())}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type : "+o.type+" for input id "+o.id,e)}};l.extend(c.czrInputMap,{horizTextAlignmentWithDeviceSwitcher:e,horizAlignmentWithDeviceSwitcher:e,verticalAlignWithDeviceSwitcher:e})}(wp.customize,jQuery,_),function(f,g,h){f.czrInputMap=f.czrInputMap||{},g.extend(f.czrInputMap,{font_picker:function(e){var p=this,_=p.input_parent,n=function(e,t){_();var n=g('select[data-czrtype="'+p.id+'"]',p.container);h.isNull(p())||h.isEmpty(p())?n.append('<option value="none" selected="selected">'+sektionsLocalizedData.i18n["Select a font family"]+"</option>"):n.append('<option value="none">'+sektionsLocalizedData.i18n["Select a font family"]+"</option>");var i=[{title:sektionsLocalizedData.i18n["Web safe fonts"],type:"cfont",list:t.cfonts},{title:sektionsLocalizedData.i18n["Google fonts"],type:"gfont",list:t.gfonts}],o=f.czr_sektions.sniffAllFonts(),r=sektionsLocalizedData.alreadyUsedFonts,s=[],a=[];if(!h.isEmpty(r)&&h.isObject(r)&&h.each(r,function(e){a.push(e)}),h.isArray(o)&&h.each(o,function(e){a.push(e)}),!h.isEmpty(a)){var c={},l=[];a.forEach(function(e){c[e]=(c[e]||0)+1});var d=h.sortBy(c,function(e){return e});h.each(d,function(i){h.each(c,function(e,t){i!==e||h.contains(l,t)||l.unshift(t)})}),h.each(l,function(e){s.push({name:e})}),i.unshift({title:sektionsLocalizedData.i18n["Already used fonts"],type:null,list:s})}h.each(i,function(e){var t,r,s,i=g("<optgroup>",{label:e.title,html:(t=e.list,r=e.type,s="",h.each(t,function(e){var t,i,n=h.isString(e.name)?e.name:"Undefined Font Family",o=n.replace(/[+|:]/g," ");t=n,i=r,n=h.isEmpty(i)?t:h.isString(t)?["[",i,"]",t].join(""):"",o=o.replace("[cfont]","").replace("[gfont]",""),n==p()?s+='<option selected="selected" value="'+n+'">'+o+"</option>":s+='<option value="'+n+'">'+o+"</option>"}),s)});n.append(i)});var u={escapeMarkup:function(e){return e}};e&&g.extend(u,{resultsAdapter:e,closeOnSelect:!1}),n.czrSelect2(u),g(".czrSelect2-selection__rendered",p.container).css(m(p()))},m=function(e){if(!h.isString(e)||h.isEmpty(e))return{};var t,i,n,o=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return t=r(e),i=o[1]?o[1].replace(/[^0-9.]+/g,""):400,i=h.isNumber(i)?i:400,n=o[1]&&-1!=o[1].indexOf("italic")?"italic":"",{"font-family":"none"==t?"inherit":t.replace(/[+|:]/g," "),"font-weight":i||400,"font-style":n||"normal"}},r=function(e){if(!h.isString(e)||h.isEmpty(e))return e;var t=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return h.isString(t[0])?t[0].replace(/[+|:]/g," "):""};g.when(function(){var e,t=g.Deferred();h.isEmpty(f.sek_fontCollections)?(h.isUndefined(f.sek_fetchingFontCollection)||"pending"!=f.sek_fetchingFontCollection.state()?(e=f.CZR_Helpers.getModuleTmpl({tmpl:"font_list",module_type:"font_picker_input",module_id:p.module.id}),f.sek_fetchingFontCollection=e):e=f.sek_fetchingFontCollection,e.done(function(e){if("string"!=typeof e||"{"!==e[0])throw new Error("font_picker => server list is not JSON.parse-able");f.sek_fontCollections=JSON.parse(e),t.resolve(f.sek_fontCollections)}).fail(function(e){t.reject(e)})):t.resolve(f.sek_fontCollections);return t.promise()}()).done(function(t){var i;(i=g.Deferred(),void 0!==g.fn.czrSelect2&&void 0!==g.fn.czrSelect2.amd&&"function"==typeof g.fn.czrSelect2.amd.require?g.fn.czrSelect2.amd.require(["czrSelect2/results","czrSelect2/utils"],function(e,t){var n=function(e,t,i){n.__super__.constructor.call(this,e,t,i)};t.Extend(n,e),n.prototype.bind=function(e,t){var i=this;e.on("results:focus",function(e){"true"!=e.element.attr("aria-selected")&&i.trigger("select",{data:e.data})}),n.__super__.bind.call(this,e,t)},i.resolve(n)}):i.resolve(!1),i.promise()).done(function(e){n(e,t)})}).fail(function(e){f.errare("font_picker => fail response =>",e)})}})}(wp.customize,jQuery,_),function(r,s,a){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{fa_icon_picker:function(){var n=this,o=!1,e=function(t){!0!==n.iconCollectionSet&&(s.when(s.Deferred(function(t){a.isEmpty(n.sek_faIconCollection)?r.CZR_Helpers.getModuleTmpl({tmpl:"icon_list",module_type:"fa_icon_picker_input",module_id:n.module.id}).done(function(e){if("string"!=typeof e||"["!==e[0])throw new Error("fa_icon_picker => server list is not JSON.parse-able");n.sek_faIconCollection=JSON.parse(e),t.resolve(n.sek_faIconCollection)}).fail(function(e){t.reject(e)}):t.resolve(n.sek_faIconCollection)})).done(function(e){!function(e){a.each(e,function(e){var t={value:e,html:r.CZR_Helpers.capitalize(e.substring(7))};t.value==n()&&(s.extend(t,{selected:"selected"}),o=!0),s("select[data-czrtype]",n.container).append(s("<option>",t))});var t,i=function(e){return e.id?s('<span class="'+e.element.value+'"></span><span class="social-name">&nbsp;&nbsp;'+e.text+"</span>"):e.text};t=o?s("<option>"):s("<option>",{selected:"selected"}),s("select[data-czrtype]",n.container).prepend(t).czrSelect2({templateResult:i,templateSelection:i,placeholder:sektionsLocalizedData.i18n["Select an icon"],allowClear:!0})}(e),t&&!0===t.open_on_init&&a.delay(function(){try{s("select[data-czrtype]",n.container).czrSelect2("open")}catch(e){}},100)}).fail(function(e){r.errare("fa_icon_picker => fail response =>",e)}),n.iconCollectionSet=!0)};n.container.on("click",function(){e()}),a.delay(function(){e({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(u,p,_){u.czrInputMap=u.czrInputMap||{},p.extend(u.czrInputMap,{code_editor:function(e){var n=this,i=this.module.control,o=(n.input_parent(),!1),r=n.container.find("textarea"),s=n.container.find(".customize-control-title"),a=function(){return p.Deferred(function(t){var i=_.isEmpty(r.data("editor-code-type"))?"text/html":r.data("editor-code-type");u.czr_sektions.code_editor_params&&u.czr_sektions.code_editor_params[i]?t.resolve(u.czr_sektions.code_editor_params[i]):wp.ajax.post("sek_get_code_editor_params",{nonce:u.settings.nonce.save,code_type:i}).done(function(e){_.isObject(e)||u.errare(n.id+" => error => invalid code editor params sent by server",e),u.czr_sektions.code_editor_params={},u.czr_sektions.code_editor_params[i]=e,t.resolve(u.czr_sektions.code_editor_params[i])}).fail(function(e){t.reject(e)})})};n.isReady.done(function(){var t=function(e){_.isEmpty(this.editor)&&(_.isEmpty(this.module.control.container.attr("data-sek-expanded"))||"false"==this.module.control.container.attr("data-sek-expanded")||setTimeout(function(){if(o)try{c(o)}catch(e){u.errare("error in sek_control => code_editor() input",e),l()}else l();s.click()},10))};r.html(n()),p.when(a()).done(function(e){wp.codeEditor&&(_.isUndefined(e)||!1!==e)&&(o=e),t.call(n),n.module.control.container.on("sek-accordion-expanded",function(){t.call(n)})}).fail(function(e){u.errare(n.id+" => error when getting the editor params from server")})});var c=function(e){var t,i=!1;t=_.extend({},e,{onTabNext:CZRSeksPrototype.selectNextTabbableOrFocusable(":tabbable"),onTabPrevious:CZRSeksPrototype.selectPrevTabbableOrFocusable(":tabbable"),onUpdateErrorNotice:d}),n.editor=wp.codeEditor.initialize(r,t),p(n.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":s.html(),"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),s.on("click",function(e){e.stopPropagation(),n.editor.codemirror.focus()}),n.editor.codemirror.on("change",function(e){i=!0,r.val(e.getValue()).trigger("change"),i=!1}),n.editor.codemirror.setValue(n()),n.bind(n.id+":changed",function(e){i||n.editor.codemirror.setValue(e)}),n.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()})},l=function(){var o=r[0];n.editor=o,r.on("blur",function(){r.data("next-tab-blurs",!1)}),r.on("keydown",function(e){var t,i,n;27!==e.keyCode?9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||r.data("next-tab-blurs")||(t=o.selectionStart,i=o.selectionEnd,n=o.value,0<=t&&(o.value=n.substring(0,t).concat("\t",n.substring(i)),r.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault()):r.data("next-tab-blurs")||(r.data("next-tab-blurs",!0),e.stopPropagation())})},d=function(e){var t;i.setting.notifications.remove(n.id),0!==e.length&&(t=1===e.length?sektionsLocalizedData.i18n.codeEditorSingular.replace("%d","1").replace("%s",s.html()):sektionsLocalizedData.i18n.codeEditorPlural.replace("%d",String(e.length)).replace("%s",s.html()),i.setting.notifications.add(n.id,new u.Notification(n.id,{message:t,type:"warning"})))}}})}(wp.customize,jQuery,_),function(e,r,t){e.czrInputMap=e.czrInputMap||{},r.extend(e.czrInputMap,{range_simple:function(e){var t=this,i=r(".sek-range-with-unit-picker-wrapper",t.container),n=i.find('input[type="number"]'),o=i.find('input[type="range"]');o.on("input",function(e){n.val(r(this).val()).trigger("input")}),n.on("input",function(e){t(r(this).val()),o.val(r(this).val())}),o.val(n.val()||0)},number_simple:function(e){var t=this;t.container.find('input[type="number"]').on("input",function(e){t(r(this).val())})}})}(wp.customize,jQuery,_),function(d,u,p){d.czrInputMap=d.czrInputMap||{},u.extend(d.czrInputMap,{range_simple_device_switcher:function(e){var s=this,t=u(".sek-range-with-unit-picker-wrapper",s.container),a=t.find('input[type="number"]'),r=t.find('input[type="range"]'),i=d.czr_sektions.getInputRegistrationParams(s.id,s.module.module_type),c=p.isEmpty(i)||p.isEmpty(i.default)?{}:i.default,l=function(e,t){var i=["mobile","tablet","desktop"];if(p.has(e,t))return e[t];var n=p.findIndex(i,function(e){return t===e});return!p.isEmpty(t)&&n<i.length?l(e,i[n+1]):u.extend(!0,{desktop:""},c).desktop},n=function(e){var t=s(),i={};i=u.extend(!0,{},c),p.isObject(t)?i=u.extend(!0,{},t):p.isString(t)&&!p.isEmpty(t)&&(i={desktop:t});var n,o=l(i,e),r=(n=o,p.isEmpty(n)||!p.isString(n)?"16":n.replace(/px|em|%/g,""));a.val(r).trigger("input",{previewed_device_switched:!0})};d.czr_sektions.maybeSetupDeviceSwitcherForInput.call(s),r.on("input",function(e){a.val(u(this).val()).trigger("input")}),a.on("input",function(e,t){var i,n=d.previewedDevice()||"desktop",o=u(this).val();(i=u.extend(!0,{},p.isObject(s())?s():{}))[n]=u.extend(!0,{},i[n]||{}),p.isString(o)&&!p.isEmpty(o)&&(i[n]=o),(p.isEmpty(t)||p.isObject(t)&&!0!==t.previewed_device_switched)&&s(i),r.val(u(this).val())}),s.previewedDevice.bind(function(e){try{n(e)}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+s.type+" for input id "+s.id,e)}}),r.val(a.val()||0);try{n(d.previewedDevice())}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+s.type+" for input id "+s.id,e)}}})}(wp.customize,jQuery,_),function(a,c,l){a.czrInputMap=a.czrInputMap||{},c.extend(a.czrInputMap,{range_with_unit_picker:function(e){var t=this,i=c(".sek-range-with-unit-picker-wrapper",t.container),n=i.find('input[type="number"]'),o=i.find('input[type="range"]'),r=i.find("input[data-czrtype]").data("sek-unit"),s=function(e){return l.contains(["px","em","%"],e)||(a.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new a.Value(l.isEmpty(r)?"px":s(r)),t.css_unit.bind(function(e){e=l.isEmpty(e)?"px":e,i.find('input[type="number"]').trigger("input")}),o.on("input",function(e){n.val(c(this).val()).trigger("input")}),n.on("input",function(e){t(c(this).val()+s(t.css_unit())),o.val(c(this).val())}),o.val(n.val()||0),i.on("click",".sek-ui-button",function(e){e.preventDefault(),i.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),c(this).addClass("is-selected").attr("aria-pressed",!0),i.find("input[data-czrtype]").data("sek-unit",c(this).data("sek-unit")),t.css_unit(c(this).data("sek-unit"))}),i.find('.sek-ui-button[data-sek-unit="'+r+'"]').addClass("is-selected").attr("aria-pressed",!0)}})}(wp.customize,jQuery,_),function(a,_,m){a.czrInputMap=a.czrInputMap||{},_.extend(a.czrInputMap,{range_with_unit_picker_device_switcher:function(e){var c=this,l=_(".sek-range-with-unit-picker-wrapper",c.container),d=l.find('input[type="number"]'),r=l.find('input[type="range"]'),s=function(e){return m.contains(["px","em","%"],e)||(a.errare("range_with_unit_picker_device_switcher => error : invalid unit for input "+c.id,e),e="px"),e},t=a.czr_sektions.getInputRegistrationParams(c.id,c.module.module_type),u=m.isEmpty(t)||m.isEmpty(t.default)?{}:t.default,i=function(){return l.find("input[data-czrtype]").data("sek-unit")||"px"},p=function(e,t){var i=["mobile","tablet","desktop"];if(m.has(e,t))return e[t];var n=m.findIndex(i,function(e){return t===e});return!m.isEmpty(t)&&n<i.length?p(e,i[n+1]):_.extend(!0,{desktop:""},u).desktop},n=function(e){var t=c(),i={};i=_.extend(!0,{},u),m.isObject(t)?i=_.extend(!0,{},t):m.isString(t)&&!m.isEmpty(t)&&(i={desktop:t});var n,o,r=p(i,e),s=(o=r,m.isEmpty(o)||!m.isString(o)?"px":o.replace(/[0-9]|\.|,/g,"")),a=(n=r,m.isEmpty(n)||!m.isString(n)?"16":n.replace(/px|em|%/g,""));_(".sek-unit-wrapper",l).find('[data-sek-unit="'+s+'"]').trigger("click",{previewed_device_switched:!0}),l.find('.sek-ui-button[data-sek-unit="'+s+'"]').addClass("is-selected").attr("aria-pressed",!0),d.val(a).trigger("input",{previewed_device_switched:!0})};a.czr_sektions.maybeSetupDeviceSwitcherForInput.call(c),c.css_unit=new a.Value(m.isEmpty(i())?"px":s(i()));var o='<button type="button" class="button sek-reset-button sek-float-right">'+sektionsLocalizedData.i18n.Reset+"</button>";c.container.find(".customize-control-title").append(o),c.css_unit.bind(function(e,t,i){m.isObject(i)&&!0===i.previewed_device_switched||d.trigger("input")}),r.on("input",function(e){d.val(_(this).val()).trigger("input")}),d.on("input",function(e,t){var i,n=a.previewedDevice()||"desktop",o=_(this).val()+s(c.css_unit());(i=_.extend(!0,{},m.isObject(c())?c():{}))[n]=_.extend(!0,{},i[n]||{}),m.isString(o)&&!m.isEmpty(o)&&(i[n]=o),(m.isEmpty(t)||m.isObject(t)&&!0!==t.previewed_device_switched)&&c(i),r.val(_(this).val())}),l.on("click",".sek-ui-button",function(e,t){e.stopPropagation(),l.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),_(this).addClass("is-selected").attr("aria-pressed",!0),l.find("input[data-czrtype]").data("sek-unit",_(this).data("sek-unit")),c.css_unit(_(this).data("sek-unit"),t)}),c.previewedDevice.bind(function(e){try{n(e)}catch(e){a.errare("Error when firing syncWithPreviewedDevice for input type range_with_unit_picker_device_switcher for input id "+c.id,e)}}),c.container.on("click",".sek-reset-button",function(e){var t=a.previewedDevice(),i=_.extend(!0,{},m.isObject(c())?c():{});m.isEmpty(i[t])||(i=m.omit(i,t),c(i),n(a.previewedDevice()))}),r.val(d.val()||0);try{n(a.previewedDevice())}catch(e){a.errare("Error when firing syncWithPreviewedDevice for input type range_with_unit_picker_device_switcher for input id "+c.id,e)}}})}(wp.customize,jQuery,_),function(g,h,k){g.czrInputMap=g.czrInputMap||{},h.extend(g.czrInputMap,{borders:function(e){var a=this,c=h(".sek-borders",a.container),l=c.find('input[type="number"]'),d=c.find('input[type="range"]'),u=c.find(".sek-alpha-color-input"),p=function(e){return k.contains(["px","em","%"],e)||(g.errare("borders => error : invalid unit for input "+a.id,e),e="px"),e},_=function(e){return k.isEmpty(e)||!k.isString(e)?"16":e.replace(/px|em|%/g,"")},m=function(e){return k.isEmpty(e)||!k.isString(e)?"px":e.replace(/[0-9]|\.|,/g,"")},t=g.czr_sektions.getInputRegistrationParams(a.id,a.module.module_type),f=k.isEmpty(t)||k.isEmpty(t.default)?{}:t.default;a.cssBorderTypes=["top","left","right","bottom"];var i,n,o=function(){var e=a(),t="px";return k.isObject(e)&&k.has(e,"_all_")&&k.isObject(e._all_)&&!k.isEmpty(e._all_.wght)&&(t=p(m(e._all_.wght))),t},r=function(){var e=a(),t="#000000";return k.isObject(e)&&k.has(e,"_all_")&&k.isObject(e._all_)&&!k.isEmpty(e._all_.col)&&(t=e._all_.col),t},s=function(e){if(!k.contains(k.union(a.cssBorderTypes,["_all_"]),e))throw new Error("Error in syncWithBorderType : the border type must be one of those values '_all_', 'top', 'left', 'right', 'bottom'");var t=a(),i={},n=h.extend(!0,{},f);k.isObject(t)?i=h.extend(!0,{},t):k.isString(t)&&(i={_all_:{wght:t}});var o,r,s=function(e,t){var i,n=h.extend(!0,{},f);if(!k.has(n,"_all_"))throw new Error("Error when firing getCurrentBorderTypeOrAllValue : the default value of the borders input must be php registered as an array formed : array( 'wght' => '1px', 'col' => '#000000' )");return i=k.isObject(e)&&k.has(e,"_all_")?k.extend(n._all_,e._all_):n._all_,k.has(e,t)&&k.isObject(e[t])?k.extend(i,e[t]):n._all_}(i=h.extend(n,i),e);if(k.isEmpty(s)||!k.isObject(s)||k.isEmpty(s.wght)||k.isEmpty(s.col))throw new Error("Error in syncWithBorderType : getCurrentBorderTypeOrAllValue must return an object formed : array( 'wght' => '1px', 'col' => '#000000' )");o=m(s.wght),r=_(s.wght),h(".sek-unit-wrapper",c).find('[data-sek-unit="'+o+'"]').trigger("click",{border_type_switched:!0}),c.find('.sek-ui-button[data-sek-unit="'+o+'"]').addClass("is-selected").attr("aria-pressed",!0),l.val(r).trigger("input",{border_type_switched:!0}),u.data("border_type_switched",!0),u.val(s.col).trigger("change"),u.data("border_type_switched",!1)};a.borderColor=new g.Value(k.isEmpty(r())?"#000000":r()),a.css_unit=new g.Value(k.isEmpty(o())?"px":p(o())),a.borderType=new g.Value("_all_"),l.val((i=a(),n=1,k.isObject(i)&&k.has(i,"_all_")&&k.isObject(i._all_)&&!k.isEmpty(i._all_.wght)&&(n=_(i._all_.wght)),n=parseInt(n,10),(!k.isNumber(n)||n<0)&&(g.errare("Error in borders input type for module : "+a.module.module_type+" the initial border width is invalid : "+n),n=1),n)),u.val(a.borderColor()),u.wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){h(this).val(t.color.toString()).trigger("colorpickerchange"),a.borderColor(t.color.toString(),{border_type_switched:!0===h(this).data("border_type_switched")})},clear:function(e,t){h(this).val("").trigger("colorpickerchange"),a.borderColor("")}}),a.css_unit.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),a.borderColor.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_color)&&l.trigger("input",i)}),a.borderType.bind(function(e){try{s(e)}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+a.module.module_type,e)}}),d.on("input",function(e){l.val(h(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=a.borderType()||"_all_",o=a.borderColor(),r=h(this).val()+p(a.css_unit()),s=h.extend(!0,{},f);(i=h.extend(!0,{},k.isObject(a())?a():s))[n]=h.extend(!0,{},i[n]||s[n]),k.isString(r)&&!k.isEmpty(r)&&(i[n].wght=r),i[n].col=o,(k.isEmpty(t)||k.isObject(t)&&!0!==t.border_type_switched)&&("_all_"===n&&k.each(a.cssBorderTypes,function(e){i=k.omit(i,e)}),a(i)),d.val(h(this).val())}),c.on("click","[data-sek-unit]",function(e,t){e.preventDefault(),c.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),h(this).addClass("is-selected").attr("aria-pressed",!0),c.find("input[data-czrtype]").data("sek-unit",h(this).data("sek-unit")),a.css_unit(h(this).data("sek-unit"),t)}),c.on("click","[data-sek-border-type]",function(e,t){e.preventDefault(),c.find("[data-sek-border-type]").removeClass("is-selected").attr("aria-pressed",!1),h(this).addClass("is-selected").attr("aria-pressed",!0);var i="_all_";try{i=h(this).data("sek-border-type")}catch(e){g.errare("borders input type => error when attaching click event",e)}a.borderType(i,t)}),a.container.on("click",".sek-reset-button",function(e){var t=a.borderType()||"_all_",i=h.extend(!0,{},k.isObject(a())?a():{});k.isEmpty(i[t])||(i=k.omit(i,t),a(i),s(t))}),d.val(l.val()||0);try{s(a.borderType())}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+a.module.module_type,e)}h('[data-sek-unit="'+a.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(m,f,g){m.czrInputMap=m.czrInputMap||{},f.extend(m.czrInputMap,{border_radius:function(e){var a=this,c=f(".sek-borders",a.container),l=c.find('input[type="number"]'),s=c.find('input[type="range"]'),d=function(e){return g.contains(["px","em","%"],e)||(m.errare("border_radius => error : invalid unit for input "+a.id,e),e="px"),e},u=function(e){return g.isEmpty(e)||!g.isString(e)?"16":e.replace(/px|em|%/g,"")},p=function(e){return g.isEmpty(e)||!g.isString(e)?"px":e.replace(/[0-9]|\.|,/g,"")},t=m.czr_sektions.getInputRegistrationParams(a.id,a.module.module_type),_=g.isEmpty(t)||g.isEmpty(t.default)?{}:t.default;a.cssRadiusTypes=["top_left","top_right","bottom_right","bottom_left"];var i,n,o=function(){var e=a(),t="px";return g.isObject(e)&&g.has(e,"_all_")&&(t=d(p(e._all_))),t},r=function(e){if(!g.contains(["_all_","top_left","top_right","bottom_right","bottom_left"],e))throw new Error("Error in syncWithRadiusType : the radius type must be one of those values '_all_', 'top_left', 'top_right', 'bottom_right', 'bottom_left', => radius type => "+e);var t=a(),i={},n=f.extend(!0,{},_);g.isObject(t)?i=f.extend(!0,{},t):g.isString(t)&&(i={_all_:"0px"});var o,r,s=function(e,t){var i,n=f.extend(!0,{},_);if(!g.has(n,"_all_"))throw new Error("Error when firing getCurrentRadiusTypeOrAllValue : the default value of the border_radius input must be php registered as an array");return i=g.isObject(e)&&g.has(e,"_all_")?e._all_:n._all_,g.has(e,t)?e[t]:i}(i=f.extend(n,i),e);if(g.isEmpty(s)||!g.isString(s))throw new Error("Error in syncWithRadiusType : getCurrentRadiusTypeOrAllValue must return a string like 3em");o=p(s),r=u(s),f(".sek-unit-wrapper",c).find('[data-sek-unit="'+o+'"]').trigger("click",{radius_type_switched:!0}),c.find('.sek-ui-button[data-sek-unit="'+o+'"]').addClass("is-selected").attr("aria-pressed",!0),l.val(r).trigger("input",{radius_type_switched:!0})};a.css_unit=new m.Value(g.isEmpty(o())?"px":d(o())),a.radiusType=new m.Value("_all_"),l.val((i=a(),n=0,g.isObject(i)&&g.has(i,"_all_")&&(n=u(i._all_)),n=parseInt(n,10),(!g.isNumber(n)||n<0)&&(m.errare("Error in border_radius input type for module : "+a.module.module_type+" the initial radius is invalid : "+n),n=0),n)),a.css_unit.bind(function(e,t,i){(!g.isObject(i)||!0!==i.radius_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),a.radiusType.bind(function(e){try{r(e)}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+a.module.module_type,e)}}),s.on("input",function(e){l.val(f(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=a.radiusType()||"_all_",o=f(this).val()+d(a.css_unit()),r=f.extend(!0,{},_);(i=f.extend(!0,{},g.isObject(a())?a():r))[n]=f.extend(!0,{},i[n]||r[n]),g.isString(o)&&!g.isEmpty(o)&&(i[n]=o),(g.isEmpty(t)||g.isObject(t)&&!0!==t.radius_type_switched)&&("_all_"===n&&g.each(a.cssRadiusTypes,function(e){i=g.omit(i,e)}),a(i)),s.val(f(this).val())}),c.on("click","[data-sek-unit]",function(e,t){e.preventDefault(),c.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),f(this).addClass("is-selected").attr("aria-pressed",!0),c.find("input[data-czrtype]").data("sek-unit",f(this).data("sek-unit")),a.css_unit(f(this).data("sek-unit"),t)}),c.on("click","[data-sek-radius-type]",function(e,t){e.preventDefault(),c.find("[data-sek-radius-type]").removeClass("is-selected").attr("aria-pressed",!1),f(this).addClass("is-selected").attr("aria-pressed",!0);var i="_all_";try{i=f(this).data("sek-radius-type")}catch(e){m.errare("border_radius input type => error when attaching click event",e)}a.radiusType(i,t)}),a.container.on("click",".sek-reset-button",function(e){var t=a.radiusType()||"_all_",i=f.extend(!0,{},g.isObject(a())?a():{});g.isEmpty(i[t])||(i=g.omit(i,t),a(i),r(t))}),s.val(l.val()||0);try{r(a.radiusType())}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+a.module.module_type,e)}f('[data-sek-unit="'+a.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(r,s,a){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{buttons_choice:function(e){var n=this,o=s(".sek-button-choice-wrapper",n.container),t=o.find('input[type="number"]'),i=r.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type);a.isEmpty(i)||a.isEmpty(i.default)||i.default;t.val(n()),o.on("click","[data-sek-choice]",function(e,t){var i;e.stopPropagation(),o.find("[data-sek-choice]").removeClass("is-selected").attr("aria-pressed",!1),s(this).addClass("is-selected").attr("aria-pressed",!0);try{i=s(this).data("sek-choice")}catch(e){r.errare("buttons_choice input type => error when attaching click event",e)}n(i)}),s('[data-sek-choice="'+n()+'"]',o).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(n,o,r){n.czrInputMap=n.czrInputMap||{},o.extend(n.czrInputMap,{reset_button:function(e){this.container.on("click","[data-sek-reset-scope]",function(e,t){e.stopPropagation();var i=o(this).data("sek-reset-scope");!r.isEmpty(i)&&r.contains(["local","global"],i)?n.czr_sektions.updateAPISetting({action:"sek-reset-collection",scope:i}).done(function(e){n.previewer.refresh(),n.previewer.trigger("sek-notify",{notif_id:"reset-success",type:"success",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset complete"],"</strong>","</span>"].join("")})}).fail(function(e){n.errare("reset_button input => error when firing ::updateAPISetting",e),n.previewer.trigger("sek-notify",{notif_id:"reset-failed",type:"error",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset failed"],"<br/>","<i>"+e+"</i>","</strong>","</span>"].join("")})}):n.errare("reset_button input => invalid scope provided.",i)})}})}(wp.customize,jQuery,_),function(i,r,s){i.czrInputMap=i.czrInputMap||{},r.extend(i.czrInputMap,{revision_history:function(e){var o=this;_selected_found=!1;var t=function(t){!0!==o.revisionHistorySet&&(r.when(r.Deferred(function(t){s.isEmpty(o.sek_revisionHistory)?i.czr_sektions.getRevisionHistory({is_local:"local_revisions"===o.id}).done(function(e){if(!s.isObject(e))throw new Error("_getRevisionHistory => server list is not a object");o.sek_revisionHistory=e,t.resolve(o.sek_revisionHistory)}).fail(function(e){t.reject(e)}):t.resolve(o.sek_revisionHistory)})).done(function(e){!function(e){if(!(0<o.container.find(".sek-revision-history").length))if(s.isEmpty(e))o.container.append(["<i>",sektionsLocalizedData.i18n["No revision history available for the moment."],"</i>"].join(""));else{o.container.append(r("<select/>",{class:"sek-revision-history",html:['<option value="_select_">'," -",sektionsLocalizedData.i18n.Select,"- ","</option>"].join("")}));var n=[];s.each(e,function(e,t){var i={value:t,html:e};i.value==o()&&(r.extend(i,{selected:"selected"}),_selected_found=!0),n.unshift(r("<option>",i))}),n[0].html([n[0].html(),sektionsLocalizedData.i18n["(currently published version)"]].join(" ")),s.each(n,function(e){r("select.sek-revision-history",o.container).append(e)}),r("select.sek-revision-history",o.container).selecter()}}(e),t&&!0===t.open_on_init&&s.delay(function(){try{r("select[data-czrtype]",o.container).czrSelect2("open")}catch(e){}},100)}).fail(function(e){i.errare("_getRevisionHistory => fail response =>",e)}),o.revisionHistorySet=!0)};o.container.on("change",".sek-revision-history",function(){var e=r(this).val();"_select_"!==e&&i.czr_sektions.setSingleRevision({revision_post_id:e,is_local:"local_revisions"===o.id})}),s.delay(function(){t({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(p,_,m){p.czrInputMap=p.czrInputMap||{},_.extend(p.czrInputMap,{nimble_tinymce_editor:function(){var t=this,e=t.container.find("textarea").first(),i=0<e.length?e.attr("id"):null,n=p.czr_sektions.getInputRegistrationParams(t.id,t.module.module_type),o=sektionsLocalizedData.defaultToolbarBtns;if(m.isNull(i))throw new Error("api.czrInputMap.nimble_tinymce_editor => missing textarea for module :"+t.module.id);if(tinyMCE.get(i))throw new Error("api.czrInputMap.nimble_tinymce_editor => duplicate editor id.");var r,s,a=function(){return n&&n.editor_params&&!0===n.editor_params.autop},c={tinymce:{toolbar1:function(){var e=o.split(",");if(n.editor_params&&m.isArray(n.editor_params.excludedBtns)){var t=n.editor_params.excludedBtns;e=m.filter(e,function(e){return!m.contains(t,e)})}if(n.editor_params&&m.isString(n.editor_params.includedBtns)){var i=n.editor_params.includedBtns;m.isEmpty(i)||!m.isArray(sektionsLocalizedData[i])?p.errare("nimble_tinymce_editor input => invalid set of buttons provided",i):(i=sektionsLocalizedData[i],e=m.filter(e,function(e){return m.contains(i,e)}))}return e.join(",")}(),content_css:(r=wp.editor.getDefaultSettings(),s=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],r&&r.tinymce&&r.tinymce.content_css&&(s=m.union(r.tinymce.content_css.split(","),s)),s.join(",")),min_height:40,height:n.editor_params&&m.isNumber(n.editor_params.height)?n.editor_params.height:p.czr_sektions.TINYMCE_EDITOR_HEIGHT},quicktags:{buttons:"strong,em,link,code"},mediaButtons:!n.editor_params||!1!==n.editor_params.media_button};c.tinymce.wpautop=a(),a()||(c.tinymce.forced_root_block=""),wp.editor.initialize(i,c);var l=tinyMCE.get(i);if(!l)throw new Error("setupTinyMceEditor => missing editor instance for module :"+t.module.id);p.czrActiveWPEditors=p.czrActiveWPEditors||[];var d=_.extend(!0,[],p.czrActiveWPEditors);d.push(i),p.czrActiveWPEditors=d;var u=function(){e.html(t()),l.setContent(t())};l.initialized?u():l.on("init",u),l.on("input change keyup",function(e){t(l.getContent())})},detached_tinymce_editor:function(){var e,t=this,i=_("textarea#"+sektionsLocalizedData.idOfDetachedTinyMceTextArea),n=p.czr_sektions.getInputRegistrationParams(t.id,t.module.module_type);if(!(0<i.length))throw new Error("api.czrInputMap::detached_tinymce_editor => missing textarea element");if(e=i.attr("id"),window.tinymce&&(mceInstance=window.tinymce.get(e),mceInstance&&mceInstance.remove()),!window.nimbleTinyMCEPreInit||!window.nimbleTinyMCEPreInit.mceInit||!window.nimbleTinyMCEPreInit.mceInit[e])throw new Error("setupDetachedTinyMceEditor => invalid nimbleTinyMCEPreInit global var");var o,r,s=nimbleTinyMCEPreInit.mceInit[e];s.content_css=(o=wp.editor.getDefaultSettings(),r=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],o&&o.tinymce&&o.tinymce.content_css&&(r=m.union(o.tinymce.content_css.split(","),r)),r.join(","));var a=t.input_parent,c=function(){var e=a();return m.isUndefined(e.autop)?n&&n.editor_params&&!0===n.editor_params.autop:e.autop};s.wpautop=c(),c()||(s.forced_root_block=""),s.toolbar1=sektionsLocalizedData.defaultToolbarBtns,s.toolbar2="",window.tinymce.init(s),window.QTags.getInstance(e);var l=tinyMCE.get(e);if(!l)throw new Error("setupDetachedTinyMceEditor => missing editor instance for module :"+t.module.id);var d=function(){var e=c()&&m.isFunction(wp.editor.autop)?wp.editor.autop(t()):t();l.setContent(e),p.sekEditorExpanded(!0),_(window).trigger("resize")};l.initialized?d():l.on("init",d),l.on("input change keyup keydown click SetContent BeforeSetContent",function(e){t(c()?l.getContent():wp.editor.removep(l.getContent()))}),p.sekCurrentDetachedTinyMceInput=t,i.data("czr-bound-for-detached-editor")||(i.on("input",function(e,t){p.sekCurrentDetachedTinyMceInput(_(this).val())}),i.data("czr-bound-for-detached-editor",!0))}})}(wp.customize,jQuery,_),function(l,d,u){l.czrInputMap=l.czrInputMap||{},d.extend(l.czrInputMap,{import_export:function(){var r=this,t=r.container.find('button[data-czr-action="sek-pre-import"]'),s=r.container.find("input[name=sek-import-file]"),e=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),a=e.scope,c="local"===e.scope?l.czr_sektions.localSectionsSettingId():l.czr_sektions.getGlobalSectionsSettingId();u.contains(["local","global"],a)||l.errare("api.czrInputMap.import_export => invalid currentScope",a),s.on("change",function(e){t.toggleClass("disabled",u.isEmpty(d(this).val()))});r.container.on("click","[data-czr-action]",function(e){var i,t;switch(e.stopPropagation(),d(this).data("czr-action")){case"sek-export":if(i=!1,t=wp.customize.dirtyValues(),u.isEmpty(t)||u.each(t,function(e,t){i||(i=-1!==t.indexOf("nimble"))}),i){alert(sektionsLocalizedData.i18n["You need to publish before exporting."]);break}var n=l(c)(),o=!0;if(u.each(n.collection,function(e){o&&(u.isEmpty(e.collection)||(o=!1))}),o){alert(sektionsLocalizedData.i18n["Nothing to export."]);break}l.czr_sektions.export_template({scope:a});break;case"sek-pre-import":if(u.isEmpty(l.czr_sektions.activeLocations())){alert(sektionsLocalizedData.i18n["The current page has no available locations to import Nimble Builder sections."]);break}l.czr_sektions.import_template_from_file({pre_import_check:!0,input:r,file_input:s}).done(function(e){l.czr_sektions.pre_checks_from_file_import(e,{pre_import_check:!1,input:r,file_input:s})}).fail(function(e){l.errare("import_export_ input => pre_checks_from_file_import failed",e),l.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate({input:r,file_input:s}),l.czr_sektions.import_template_from_file({input:r,file_input:s})});break;case"sek-import-as-is":l.czr_sektions.import_template_from_file({input:r,file_input:s});break;case"sek-import-assign":l.czr_sektions.import_template_from_file({assign_missing_locations:!0,input:r,file_input:s});break;case"sek-cancel-import":l.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate({input:r,file_input:s})}})}})}(wp.customize,jQuery,_),function(c,l,d){c.czrInputMap=c.czrInputMap||{},l.extend(c.czrInputMap,{simpleselect:function(e){c.czr_sektions.setupSelectInput.call(this,e)},multiselect:function(e){c.czr_sektions.setupSelectInput.call(this,e)},simpleselectWithDeviceSwitcher:function(e){var r=this,t=(r.input_parent,r.module,c.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type)),o=l("select",r.container),s=d.isEmpty(t)||d.isEmpty(t.default)?{}:t.default,i={params:e=d.isEmpty(e)?t.choices:e};if(r.module.trigger("nimble-set-select-input-options",i),e=i.params,!d.isEmpty(e)&&d.isObject(e)){d.each(e,function(e,t){var i={value:t,html:e};t==r()?l.extend(i,{selected:"selected"}):"px"===t&&l.extend(i,{selected:"selected"}),o.append(l("<option>",i))});var a=function(e,t){var i=["mobile","tablet","desktop"];if(d.has(e,t))return e[t];var n=d.findIndex(i,function(e){return t===e});return!d.isEmpty(t)&&n<i.length?a(e,i[n+1]):l.extend(!0,{desktop:""},s).desktop};c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(r),o.on("change",function(e,t){var i,n=c.previewedDevice()||"desktop",o=l(this).val();(i=l.extend(!0,{},d.isObject(r())?r():{}))[n]=l.extend(!0,{},i[n]||{}),d.isString(o)&&!d.isEmpty(o)&&(i[n]=o),(d.isEmpty(t)||d.isObject(t)&&!0!==t.previewed_device_switched)&&r(i)}),r.previewedDevice.bind(function(e){try{!function(e){var t=r(),i={};i=l.extend(!0,{},s),d.isObject(t)?i=l.extend(!0,{},t):d.isString(t)&&!d.isEmpty(t)&&(i={desktop:t});var n=a(i,e);o.val(n).trigger("change",{previewed_device_switched:!0})}(e)}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type "+r.type+" for input id "+r.id,e)}})}else c.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+r.id+" in module "+r.module.module_type)}})}(wp.customize,jQuery,_),function(a,c,l){a.czrInputMap=a.czrInputMap||{},c.extend(a.czrInputMap,{category_picker:function(e){var n=this,o=c("select[data-czrtype]",n.container),r=function(){var e=n();return e=l.isString(e)?[e]:e,l.isArray(e)?e:[]},t=function(t){!0!==n.catCollectionSet&&(c.when(c.Deferred(function(i){l.isEmpty(a.czr_sektions.post_categories)?wp.ajax.post("sek_get_post_categories",{nonce:a.settings.nonce.save}).done(function(e){l.isArray(e)||a.errare(n.id+" => error => invalid category collection sent by server");var t={};l.each(e,function(e){l.isEmpty(e.slug)||l.isEmpty(e.name)?i.reject("missing slug or name for at least one category"):t[e.slug]=e.name}),a.czr_sektions.post_categories=t,i.resolve(a.czr_sektions.post_categories)}).fail(function(e){i.reject(e)}):i.resolve(a.czr_sektions.post_categories)})).done(function(e){i(e),t&&!0===t.open_on_init&&l.delay(function(){try{o.czrSelect2("open")}catch(e){}},100)}).fail(function(e){a.errare(n.id+" => fail response when _getCategoryCollection()",e)}),n.catCollectionSet=!0)},i=function(e){l.each(e,function(e,t){var i={value:t,html:e};l.contains(r(),t)&&c.extend(i,{selected:"selected"}),o.append(c("<option>",i))}),o.czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),o.on("change",function(){0===c(this).find("option:selected").length&&n([])})},s={};l.each(r(),function(e){s[e]=(e+"").replace(/-/g," ")}),i(s),n.container.on("click",function(){!0!==n.catCollectionSet&&(o.czrSelect2("destroy"),c.when(o.find("option").remove()).done(function(){t({open_on_init:!0})}))})}})}(wp.customize,jQuery,_),function(r,s,e){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{grid_layout:function(e){var n=this,o=s(".sek-grid-layout-wrapper",n.container);o.find('input[type="hidden"]').val(n()),o.on("click","[data-sek-grid-layout]",function(e,t){var i;e.stopPropagation(),o.find("[data-sek-grid-layout]").removeClass("selected").attr("aria-pressed",!1),s(this).addClass("selected").attr("aria-pressed",!0);try{i=s(this).data("sek-grid-layout")}catch(e){r.errare(n.type+" => error when attaching click event",e)}n(i)}),s('[data-sek-grid-layout="'+n()+'"]',o).trigger("click")}})}(wp.customize,jQuery,_),function(i,e,t){i.czrInputMap=i.czrInputMap||{},e.extend(i.czrInputMap,{refresh_preview_button:function(e){this.container.on("click",".sek-refresh-button",function(e,t){e.stopPropagation(),i.previewer.refresh()})}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_content_type_switcher_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_content_type_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_content_type_switcher_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_module_picker_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_module_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_module_picker_module"))}})}(wp.customize,jQuery,_),function(t,e,i){t.czrModuleMap=t.czrModuleMap||{};var n=sektionsLocalizedData.presetSectionsModules;i.isArray(n)&&!i.isEmpty(n)?i.each(n,function(e){t.czrModuleMap[e]={crud:!1,name:t.czr_sektions.getRegisteredModuleProperty(e,"name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},t.czr_sektions.getDefaultItemModelFromRegisteredModuleData(e))}}):t.errare("api.czrModuleMap => error when adding section modules")}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.inputConstructor=r.CZRInput.extend({initialize:function(e,t){var i=this;r.CZRInput.prototype.initialize.call(i,e,t),i.isReady.then(function(){i.renderUserSavedSections(),r.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:i.container})})},renderUserSavedSections:function(){var i="",n=this.container.find(".sek-content-type-wrapper"),o="";s.each(sektionsLocalizedData.userSavedSektions,function(e,t){try{o=function(e){var t=e.getDate(),i=e.getMonth(),n=e.getFullYear();e.getHours(),e.getMinutes(),e.getSeconds();return[t,["January","February","March","April","May","June","July","August","September","October","November","December"][i],n].join(" ")}(new Date(e.creation_date.replace(/-/g,"/")))}catch(e){r.errare("::renderUserSavedSections => formatDate => error",e)}i=['<div class="sek-user-section-wrapper">','<div class="sek-saved-section-title"><i class="sek-remove-user-section far fa-trash-alt"></i>'+e.title+"</div>",'<div draggable="true" data-sek-is-user-section="true" data-sek-section-type="'+e.type+'" data-sek-content-type="preset_section" data-sek-content-id="'+t+'" style="" title="'+e.title+'">','<div class="sek-overlay"></div>','<div class="sek-saved-section-description">'+e.description+"</div>",s.isEmpty(o)?"":'<div class="sek-saved-section-date"><i class="far fa-calendar-alt"></i> @missi18n Created : '+o+"</div>","</div>","</div>"].join(""),n.append(i)})}}),r.CZRDynModule.prototype.initialize.call(this,e,t)}};r.czrModuleMap=r.czrModuleMap||{},sektionsLocalizedData.isSavedSectionEnabled&&e.extend(r.czrModuleMap,{sek_my_sections_sec_picker_module:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("sek_my_sections_sec_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_my_sections_sec_picker_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_mod_option_switcher_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_mod_option_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_mod_option_switcher_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_anchor_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_anchor_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_anchor_module"))}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"bg-image":s.each(["bg-attachment","bg-scale","bg-repeat","bg-parallax","bg-parallax-force"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-parallax-force":e=!s.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;case"bg-scale":case"bg-repeat":e=!s.isEmpty(i()+"")&&!r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;default:e=!s.isEmpty(i()+"")}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-apply-overlay":s.each(["bg-color-overlay","bg-opacity-overlay"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-parallax":s.each(["bg-parallax-force","bg-scale","bg-repeat"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-parallax-force":e=!s.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i());break;case"bg-repeat":case"bg-scale":e=!s.isEmpty(n.czr_Input("bg-image")()+"")&&!r.CZR_Helpers.isChecked(i())}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}}),i.bind(function(e){r.CZR_Helpers.isChecked(i())&&r.CZR_Helpers.isChecked(n.czr_Input("bg-attachment")())&&n.czr_Input("bg-attachment").container.find("input[type=checkbox]").trigger("click")});break;case"bg-attachment":i.bind(function(e){r.CZR_Helpers.isChecked(i())&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")())&&n.czr_Input("bg-parallax").container.find("input[type=checkbox]").trigger("click")});break;case"bg-use-video":s.each(["bg-video","bg-video-loop","bg-video-delay-start","bg-video-on-mobile","bg-video-start-time","bg-video-end-time"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}})}}),o.control&&o.control.params&&o.control.params.sek_registration_params&&(s.contains(["section","column"],o.control.params.sek_registration_params.level)||s.each(["bg-use-video","bg-video","bg-video-loop","bg-video-on-mobile","bg-video-start-time","bg-video-end-time"],function(e){n.czr_Input(e).visible(!1)}))}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{sek_level_bg_module:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("sek_level_bg_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:s.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_bg_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_text_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_text_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_text_module")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_border_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_border_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_border_module"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use-custom-breakpoint":o.each(["custom-breakpoint","apply-to-all"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_breakpoint_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_breakpoint_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_breakpoint_module"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"height-type":o.each(["custom-height","overflow_hidden"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"custom"===t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_height_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_height_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_height_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_visibility_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_visibility_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_visibility_module"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"width-type":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"custom-width",function(){return"custom"===e()}),i.czr_sektions.scheduleVisibilityOfInputId.call(e,"h_alignment",function(){return"custom"===e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_width_module:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_level_width_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_module"))}})}(wp.customize,jQuery,_),function(d,u,p){var e={initialize:function(e,t){var i=this;i.inputConstructor=d.CZRInput.extend(i.CZRInputConstructor||{}),i.itemConstructor=d.CZRItem.extend(i.CZRItemConstructor||{}),d.CZRDynModule.prototype.initialize.call(i,e,t)},CZRInputConstructor:{range_simple:function(e){var t,i=this,n=u(".sek-range-with-unit-picker-wrapper",i.container),o=n.find('input[type="number"]'),r=n.find('input[type="range"]');try{t=i.module.control.params.sek_registration_params}catch(e){return void d.errare("Error when getting the module registration params",e)}if(p.isUndefined(t.level_id))d.errare("Error : missing column id",er);else if(i.columnId=t.level_id,i.columnModel=u.extend(!0,{},d.czr_sektions.getLevelModel(i.columnId)),i.parentSectionModel=d.czr_sektions.getParentSectionFromColumnId(i.columnId),"no_match"!=i.columnModel)if("no_match"!=i.parentSectionModel){i.colNb=p.size(i.parentSectionModel.collection),o.attr("data-sek-width-range-column-id",i.columnId),1===i.colNb?i.container.html(["<p>",sektionsLocalizedData.i18n["This is a single-column section with a width of 100%. You can act on the internal width of the parent section, or adjust padding and margin."]].join("")):i.container.show();var s,a=d.czr_sektions.getLevelModel(i.columnId),c="_not_set_";if("no_match"!=a){var l=a.options&&a.options.width&&a.options.width["custom-width"]&&p.isNumber(+a.options.width["custom-width"]);l?c=a.options.width["custom-width"]:!l&&a.width&&p.isNumber(+a.width)&&(c=a.width),s="_not_set_"!==c?c:"_not_set_"===i()?Math.floor(100/i.colNb):i(),s=1*+parseFloat(s).toFixed(3),(!p.isNumber(s)||100<s||s<0)&&(d.errare("Error => invalid column width",s),s=50),r.on("input",function(e,t){o.val(u(this).val()).trigger("input",t)}),o.on("input",p.debounce(function(e,t){r.val(u(this).val()),t&&t.is_init||i(+parseFloat(u(this).val()).toFixed(3))},300)),o.on("input",p.debounce(function(e,t){t&&(t.is_init||t.is_resize_column_trigger)||i.sayItToApi(u(this).val())},300)),r.val(s).trigger("input",{is_init:!0})}else d.errare("sek_level_width_column module => invalid column model")}else d.errare("sek_level_width_column module => invalid parent section model");else d.errare("sek_level_width_column module => invalid column model")},sayItToApi:function(e,t){var i=this,n=p.findIndex(i.parentSectionModel.collection,{id:i.columnId}),o=n+1==i.colNb?n-1:n+1,r=p.find(i.parentSectionModel.collection,function(e,t){return o===t});"no_match"===r&&d.errare("sek_level_width_column module => invalid sister column model"),d.previewer.trigger("sek-resize-columns",{action:"sek-resize-columns",level:"column",in_sektion:i.parentSectionModel.id,id:i.columnId,resized_column:i.columnId,sister_column:r.id,resizedColumnWidthInPercent:e,col_number:i.colNb})}}};d.czrModuleMap=d.czrModuleMap||{},u.extend(d.czrModuleMap,{sek_level_width_column:{mthds:e,crud:!1,name:d.czr_sektions.getRegisteredModuleProperty("sek_level_width_column","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:p.extend({id:"",title:""},d.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_column"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_width_section:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_level_width_section","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_section"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_spacing_module:{mthds:"",crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_spacing_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_spacing_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_template:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_template","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_template"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_local_widths:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_local_widths","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_widths"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_custom_css:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_custom_css","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_custom_css"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_reset:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_reset","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_reset"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_performances:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_performances","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_performances"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_header_footer:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_header_footer","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_header_footer"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_revisions:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_revisions","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_revisions"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_imp_exp:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_imp_exp","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_imp_exp"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"links_underline":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"links_underline_hover",function(){return!e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_text:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_text","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_text"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use-custom-breakpoint":o.each(["global-custom-breakpoint","apply-to-all"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_global_breakpoint:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_global_breakpoint","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_breakpoint"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_widths:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_widths","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_widths"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_performances:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_performances","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_performances"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_header_footer:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_header_footer","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_header_footer"))}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"enable":s.each(["public_key","private_key","badge","show_failure_message","failure_message","score"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"failure_message":e=i()&&n.czr_Input("show_failure_message")();break;default:e=i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_failure_message":s.each(["failure_message"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()&&n.czr_Input("enable")()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{sek_global_recaptcha:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("sek_global_recaptcha","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:s.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_recaptcha"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_revisions:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_revisions","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_revisions"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_reset:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_reset","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_reset"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_imp_exp:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_imp_exp","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_imp_exp"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_beta_features:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_beta_features","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_beta_features"))}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e})},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,t=n.module;n.czr_Input.each(function(i){switch(i.id){case"img":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"img-size",function(){return!r.isEmpty(i()+"")&&r.isNumber(i())});break;case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"===i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":e="url"===i();break;case"link-target":e=!r.contains(["no-link","img-lightbox"],i())}return e})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"border-type":r.each(["borders"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"none"!==i()})}catch(e){o.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"use_custom_width":r.each(["custom_width"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"use_custom_title_attr":r.each(["heading_title"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_image_main_settings_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_image_main_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_image_main_settings_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_image_borders_corners_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_image_borders_corners_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_image_borders_corners_child")}})}(wp.customize,jQuery,_),function(n,e,t){var i={initialize:function(e,t){this.inputConstructor=n.CZRInput.extend(this.CZRTextEditorInputMths||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRTextEditorInputMths:{initialize:function(e,t){var i=this;"detached_tinymce_editor"==i.type&&i.isReady.then(function(){i.container.find('[data-czr-action="open-tinymce-editor"]').trigger("click")}),n.CZRInput.prototype.initialize.call(i,e,t)}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_tinymce_child:{mthds:i,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_tinymce_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_tinymce_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_html_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_html_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_html_module")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(i){switch(i.id){case"img-type":o.each(["img-id","img-size"],function(t){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"img-id":e="custom"===i();break;default:e="none"!==i()}return e})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}});break;case"content-type":o.each(["content-custom-text"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"custom"===i()})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}});break;case"btn-display":o.each(["btn-custom-text"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_featured_pages_module:{mthds:t,crud:n.czr_sektions.getRegisteredModuleProperty("czr_featured_pages_module","is_crud"),hasPreItem:!1,refresh_on_add_item:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_featured_pages_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_featured_pages_module")}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":s.each(["link-pick-url","link-custom-url","link-target"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"==i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;default:e="url"==i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":r.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"use_custom_color_on_hover":s.each(["color_hover"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{czr_icon_settings_child:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("czr_icon_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_icon_settings_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_icon_spacing_border_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_icon_spacing_border_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_icon_spacing_border_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e})},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this;n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e=i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":case"link-target":e=i()}return e})}catch(e){o.errare("Heading module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&!0===n.czr_Input("link-to")()})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_heading_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_heading_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_heading_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_heading_spacing_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_heading_spacing_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_heading_spacing_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_divider_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_divider_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_divider_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_spacer_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_spacer_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_spacer_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_map_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_map_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_map_module")}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRButtonItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRButtonItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"quote_design":n.each(["border_width_css","border_color_css"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"border-before"==t()})}catch(e){i.errare("Quote module => error in setInputVisibilityDeps",e)}}),n.each(["icon_color_css","icon_size_css"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"quote-icon-before"==t()})}catch(e){i.errare("Quote module => error in setInputVisibilityDeps",e)}})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_quote_design_child:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_quote_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_design_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_quote_quote_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_quote_quote_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_quote_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_quote_cite_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_quote_cite_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_cite_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e}),o.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this;n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"==i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;default:e="url"==i()}return e})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"icon":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"icon-side",function(){return!r.isEmpty(i())})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_btn_content_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_btn_content_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_btn_content_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"use_custom_bg_color_on_hover":o.each(["bg_color_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":o.each(["push_effect"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare("Button module => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_btn_design_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_btn_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_btn_design_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this.module;this.czr_Input.each(function(i){switch(i.id){case"layout":r.each(["columns","img_column_width","has_tablet_breakpoint","has_mobile_breakpoint"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"columns":e="grid"===i();break;case"has_tablet_breakpoint":case"has_mobile_breakpoint":case"img_column_width":e="list"===i()}return e})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"categories":r.each(["must_have_all_cats"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){var e=i();return r.isArray(e)&&1<e.length})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"display_pagination":r.each(["posts_per_page","post_number"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"posts_per_page"===e?i():!i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"custom_grid_spaces":r.each(["column_gap","row_gap"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_excerpt":r.each(["excerpt_length"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_post_grid_main_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_post_grid_main_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_main_child")}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"show_thumb":s.each(["img_size","img_has_custom_height","img_height","border_radius_css","use_post_thumb_placeholder"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"img_height":e=i()&&n.czr_Input("img_has_custom_height")();break;default:e=i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"img_has_custom_height":s.each(["img_height"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()&&n.czr_Input("show_thumb")()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{czr_post_grid_thumb_child:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("czr_post_grid_thumb_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_thumb_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_post_grid_metas_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_post_grid_metas_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_metas_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_post_grid_fonts_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_post_grid_fonts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_fonts_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_menu_content_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_menu_content_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_menu_content_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_menu_mobile_options:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_menu_mobile_options","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_menu_mobile_options")}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"show_name_field":n.each(["name_field_label","name_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_subject_field":n.each(["subject_field_label","subject_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_message_field":n.each(["message_field_label","message_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,"link-custom-url",function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_simple_form_fields_child:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_simple_form_fields_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_fields_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_simple_form_design_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_simple_form_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_design_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use_custom_bg_color_on_hover":o.each(["bg_color_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":o.each(["push_effect"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_simple_form_button_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_simple_form_button_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_button_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_form_fonts_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_form_fonts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_fonts_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_form_submission_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_form_submission_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_submission_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_font_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_font_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_font_child")}})}(wp.customize,jQuery,_),function(i,e,t){var n={initialize:function(e,t){this.bind("nimble-set-select-input-options",function(e){e.params=sektionsLocalizedData.registeredWidgetZones}),i.CZRDynModule.prototype.initialize.call(this,e,t)}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_widget_area_module:{mthds:n,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_widget_area_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_widget_area_module")}})}(wp.customize,jQuery,_),function(s,a,c){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=s.CZRItem.extend(i.CZRItemConstructor||{}),s.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return s.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&a.fn.sortable){var i=this;a("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){c.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!c.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){s.errorLog("item.setInputVisibilityDeps() : "+e)}}),s.CZRItem.prototype.ready.call(t)},_buildTitle:function(e,t,i){var n=this.module;return e=e||("string"==typeof t?s.CZR_Helpers.capitalize(t.replace("fa-","")):""),e=s.CZR_Helpers.truncate(e,20),'<div><span class="'+t+'" style="color:'+(i=i||n.defaultSocialColor)+'"></span> '+e+"</div>"},writeItemViewTitle:function(e){var t=this.module,i=e||this(),n=(i.icon?i.icon:"").replace("fa-","").replace("envelope","email").replace("far","").replace("fab","").replace("fas","");a("."+t.control.css_attr.item_title,this.container).html(this._buildTitle(n,i.icon,i.color_css))},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"use_custom_color_on_hover":c.each(["social_color_hover"],function(e){try{s.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){s.errare("Featured pages module => error in setInputVisibilityDeps",e)}})}})},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=c.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=c.without(n,c.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=a.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=s(i.control.id).transport||!c.has(e,"dom_event")||c.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){s.previewer.unbind("ready",r),i.trigger("item-removed",o)};s.previewer.bind("ready",r)}}}};s.czrModuleMap=s.czrModuleMap||{},a.extend(s.czrModuleMap,{czr_social_icons_settings_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:s.czr_sektions.getRegisteredModuleProperty("czr_social_icons_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:s.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_social_icons_settings_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_social_icons_style_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_social_icons_style_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_social_icons_style_child")}})}(wp.customize,jQuery,_),function(g,h,k){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=g.CZRItem.extend(i.CZRItemConstructor||{}),g.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return g.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&h.fn.sortable){var i=this;h("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){k.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},getPreItem:function(){var e=g.czr_sektions.getRegisteredModuleProperty("czr_img_slider_collection_child","starting_value"),t=h.extend(!0,{},this.preItem());if(k.isObject(e)){var i=h.extend(!0,{},e);return h.extend(t,i)}return this.preItem()},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!k.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){g.errorLog("item.setInputVisibilityDeps() : "+e)}}),g.CZRItem.prototype.ready.call(t);var i=function(){g.previewer.send("sek-item-focus",{control_id:t.module.control.id,item_id:t.id,item_value:t()})};t.viewState.callbacks.add(function(e,t){"expanded"===e&&i()}),t.callbacks.add(i),t.bind("sek-request-item-focus-in-preview",i)},writeItemViewTitle:function(e,t){var i=this,n=i.module,o=e||i(),r="",s="",a="not_set",c=!k.isUndefined(t)&&k.isObject(t);if(!c||!t.input_changed||k.contains(["img","text_content"],t.input_changed)){if(k.isEmpty(o.title)){var l=k.findIndex(n.itemCollection(),function(e){return e.id===i.id});l=k.isUndefined(l)?1:l+1}else r=o.title;r=g.CZR_Helpers.truncate(r,15),o.img&&(s=o.img,k.isString(o.img)&&(s=-1!==o.img.indexOf("http")?o.img:parseInt(o.img,10)));var d=function(){return h.Deferred(function(){var e=this;k.isUndefined(s)||k.isEmpty(""+s)?e.resolve(""):k.isString(s)&&-1!==s.indexOf("http")?e.resolve(s):wp.media.attachment(s).fetch().always(function(){if(k.isObject(this)&&k.has(this,"attributes")&&k.has(this.attributes,"sizes")){var i=this.get("sizes");i&&k.isObject(i)&&k.each(["thumbnail","medium","large","full"],function(e,t){"not_set"===a&&i[e]&&k.isObject(i[e])&&i[e].url&&(a=i[e].url)}),e.resolve(a)}})}).promise()},u=h("."+n.control.css_attr.item_title,i.container).find(".sek-slide-title"),p=h("."+n.control.css_attr.item_title,i.container).find(".sek-slide-thumb"),_=o.text_content?o.text_content:"";_=(_=h("<div>").html(_).text()).substring(0,60),u.length<1?(h("."+n.control.css_attr.item_title,i.container).html(""),h("."+n.control.css_attr.item_title,i.container).append(h("<div/>",{class:"sek-slide-title",html:_}))):u.html(_);var m=c&&t.input_changed&&"img"===t.input_changed,f=function(e){return k.isEmpty(""+e)||"not_set"===e?"":'<img src="'+e+'" width="32" alt="'+r+'" />'};h("."+n.control.css_attr.item_title,i.container).css("padding","0 4px"),p.length<1?d().done(function(e){h("."+n.control.css_attr.item_title,i.container).prepend(h("<div/>",{class:"sek-slide-thumb",html:f(e)}))}):!m&&c||d().done(function(e){p.html(f(e))})}},setInputVisibilityDeps:function(){var n=this,t=n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":k.each(["link-pick-url","link-custom-url","link-target"],function(t){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"===i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":e="url"===i();break;case"link-target":e=!k.contains(["no-link"],i())}return e})}catch(e){g.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":g.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"apply-overlay":k.each(["color-overlay","opacity-overlay"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"enable_text":k.each(["text_content","font_family_css","font_size_css","line_height_css","color_css","h_alignment_css","v_alignment","spacing_css"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"apply_overlay":k.each(["color-overlay","opacity-overlay"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}})}})},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=k.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=k.without(n,k.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=h.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=g(i.control.id).transport||!k.has(e,"dom_event")||k.has(e.dom_event,"isTrigger")||g.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){g.previewer.unbind("ready",r),i.trigger("item-removed",o)};g.previewer.bind("ready",r)}}}};g.czrModuleMap=g.czrModuleMap||{},h.extend(g.czrModuleMap,{czr_img_slider_collection_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:g.czr_sektions.getRegisteredModuleProperty("czr_img_slider_collection_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:g.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_img_slider_collection_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=n.CZRItem.extend(i.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(i,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"height-type":o.each(["custom-height"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"custom"===t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"autoplay":o.each(["autoplay_delay","pause_on_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return n.CZR_Helpers.isChecked(t())})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_img_slider_opts_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_img_slider_opts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_img_slider_opts_child")}})}(wp.customize,jQuery,_),function(d,u,p){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=d.CZRItem.extend(i.CZRItemConstructor||{}),d.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return d.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&u.fn.sortable){var i=this;u("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){p.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},getPreItem:function(){var e=d.czr_sektions.getRegisteredModuleProperty("czr_accordion_collection_child","starting_value"),t=u.extend(!0,{},this.preItem());if(p.isObject(e)){var i=u.extend(!0,{},e);return u.extend(t,i)}return this.preItem()},CZRItemConstructor:{ready:function(){var e=this;d.CZRItem.prototype.ready.call(e);var i=function(){d.previewer.send("sek-item-focus",{control_id:e.module.control.id,item_id:e.id,item_value:e()})};e.viewState.callbacks.add(function(e,t){"expanded"===e&&i()}),e.callbacks.add(i),e.bind("sek-request-item-focus-in-preview",i),e.module.bind("item-collection-sorted",function(){e.writeItemViewTitle(e(),{input_changed:"title_text"})})},writeItemViewTitle:function(e,t){var i=this,n=i.module,o=e||i(),r="";if(!(!p.isUndefined(t)&&p.isObject(t))||!t.input_changed||p.contains(["title_text"],t.input_changed)){if(p.isEmpty(o.title)){var s=p.findIndex(n.itemCollection(),function(e){return e.id===i.id});s=p.isUndefined(s)?1:s+1}else r=o.title;r=d.CZR_Helpers.truncate(r,25);var a=u("."+n.control.css_attr.item_title,i.container).find(".sek-accord-title"),c=o.title_text?o.title_text:"";c=u("<div>").html(c).text();var l=i.module.container.find(".czr-items-wrapper > li").index(i.container);c=(c=p.isEmpty(c)?sektionsLocalizedData.i18n["Accordion title"]+" #"+(+l+1):c).substring(0,60),a.length<1?(u("."+n.control.css_attr.item_title,i.container).html(""),u("."+n.control.css_attr.item_title,i.container).append(u("<div/>",{class:"sek-accord-title",html:c}))):a.html(c)}},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=p.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=p.without(n,p.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=u.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=d(i.control.id).transport||!p.has(e,"dom_event")||p.has(e.dom_event,"isTrigger")||d.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){d.previewer.unbind("ready",r),i.trigger("item-removed",o)};d.previewer.bind("ready",r)}}}};d.czrModuleMap=d.czrModuleMap||{},u.extend(d.czrModuleMap,{czr_accordion_collection_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:d.czr_sektions.getRegisteredModuleProperty("czr_accordion_collection_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:d.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_accordion_collection_child")}})}(wp.customize,jQuery,_),function(n,e,t){var i={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=n.CZRItem.extend(i.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(i,e,t)},CZRItemConstructor:{ready:function(){n.CZRItem.prototype.ready.call(this)}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_accordion_opts_child:{mthds:i,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_accordion_opts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_accordion_opts_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRButtonItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRButtonItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use_flex":o.each(["h_alignment_css"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_shortcode_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_shortcode_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_shortcode_module")}})}(wp.customize,jQuery,_);
1
+ !function(u,m){u.CZR_Helpers.getInputSubTemplate=function(e){return 0<m("#tmpl-nimble-subtemplate___"+e).length?wp.template("nimble-subtemplate___"+e):(u.errare("problem in api.czr_sektions.getInputSubTemplate(), missing js template in the DOM for template_name : "+e),null)};var f=u.CZR_Helpers.getModuleTmpl;u.CZR_Helpers.getModuleTmpl=function(n){if(-1===(n=_.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:u.settings.nonce.save},n)).module_id.indexOf("__nimble__"))return f(n);var o=m.Deferred();if((_.isEmpty(n.tmpl)||_.isEmpty(n.module_type))&&o.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),!u.czr_sektions.isModuleRegistered(n.module_type))return o.reject("api.CZR_Helpers.getModuleTmpl => module type not registered"),o.resolve(),f(n);if(_.contains([],n.module_type))return o.resolve(),f(n);var e=u.czr_sektions.getRegisteredModuleProperty(n.module_type,"tmpl"),t=_.isObject(e)&&e[n.tmpl]?e[n.tmpl]:{};!_.isEmpty(t)&&_.isObject(t)||(u.errare("getModuleTmpl => Error empty or invalid input map for module : ",n.module_type),o.reject("getModuleTmpl => Error empty or invalid input map for module : ",n.module_type));var r=n.item_model,i=m.extend(!0,{},u.czr_sektions.getDefaultItemModelFromRegisteredModuleData(n.module_type)),s=m.extend(!0,{},i);r=m.extend(s,r),_.isEmpty(r)&&(u.errare("getModuleTmpl => Error invalid item model for module : ",n.module_type),o.reject("getModuleTmpl => Error invalid item model for module : ",n.module_type));var a,c="",l=function(e){var i="";return _.each(e,function(e,t){a=e.input_type;try{i+=wp.template("nimble-input-wrapper")({input_type:a,input_data:e,input_id:t,item_model:r,input_tmpl:function(e){var t=e;switch(e){case"czr_layouts":case"select":case"simpleselect":case"fa_icon_picker":case"font_picker":t="simpleselect";break;case"simpleselectWithDeviceSwitcher":t="simpleselect_deviceswitcher";break;case"multiselect":case"category_picker":t="multiselect";break;case"h_alignment":case"horizAlignmentWithDeviceSwitcher":t="h_alignment";break;case"h_text_alignment":case"horizTextAlignmentWithDeviceSwitcher":t="h_text_alignment";break;case"range_simple":case"range_simple_device_switcher":t="range_simple";break;case"number_simple":t="number_simple";break;case"font_size":case"line_height":case"range_with_unit_picker":case"range_with_unit_picker_device_switcher":t="range_with_unit_picker";break;case"spacing":case"spacingWithDeviceSwitcher":t="spacing";break;case"upload":case"upload_url":t="upload";break;case"bg_position":case"bgPositionWithDeviceSwitcher":t="bg_position";break;case"verticalAlignWithDeviceSwitcher":t="v_alignment"}return 0<m("#tmpl-nimble-input___"+t).length?wp.template("nimble-input___"+t):(u.errare("problem in getInputTemplate(), missing js template in the DOM for input_type : "+e),null)}(a),control_id:n.control_id})}catch(e){return u.errare("getModuleTmpl => Error when parsing the nimble-input-wrapper template",e),o.reject("getModuleTmpl => Error when parsing the nimble-input-wrapper template"),!1}}),i};if(t.tabs){var d="",p="";_.each(t.tabs,function(e,t){var i=m.extend(!0,{},e);i=m.extend({inputs:{},title:""},i);var n=_.isEmpty(i.attributes)?"":i.attributes;d+='<li data-tab-id="section-topline-'+(+t+1)+'" '+n+'><a href="#" title="'+i.title+'"><span>'+i.title+"</span></a></li>";var o=l(i.inputs);p+='<section id="section-topline-'+(+t+1)+'">'+o+"</section>"}),c+=['<div class="tabs tabs-style-topline">',"<nav>","<ul>",d,"</ul>","</nav>",'<div class="content-wrap">',p,"</div>","</div>"].join("")}else c=l(t);return o.resolve(c).promise()}}(wp.customize,jQuery);var CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{cachedElements:{$body:s("body"),$window:s(window)},initialize:function(){var e=this;if(_.isUndefined(window.sektionsLocalizedData))throw new Error("CZRSeksPrototype => missing localized server params sektionsLocalizedData");if(!_.isFunction(r.czr_activeSkopes))throw new Error("CZRSeksPrototype => api.czr_activeSkopes");e.SECTION_ID_FOR_GLOBAL_OPTIONS="__globalOptionsSectionId",e.SECTION_ID_FOR_LOCAL_OPTIONS="__localOptionsSection",e.SECTION_ID_FOR_CONTENT_PICKER="__content_picker__",e.MAX_NUMBER_OF_COLUMNS=12,e.SETTING_UPDATE_BUFFER=100,e.TINYMCE_EDITOR_HEIGHT=100,e.defaultLocalSektionSettingValue=e.getDefaultSektionSettingValue("local"),e.localSectionsSettingId=new r.Value({}),e.registered=new r.Value([]),wp.customize.apiIsReady?e.doSektionThinksOnApiReady():r.bind("ready",function(){e.doSektionThinksOnApiReady()}),r.bind("save-request-params",function(e){s.extend(e,{local_skope_id:r.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:r.czr_sektions.activeLocations()})});var t=function(){_.isArray(r.czrActiveWPEditors)&&(_.each(r.czrActiveWPEditors,function(e){wp.editor.remove(e)}),r.czrActiveWPEditors=[])};r.bind("sek-before-clean-registered",t),r.bind("czr-all-items-closed",t)},doSektionThinksOnApiReady:function(){var o=this;o.registerAndSetupDefaultPanelSectionOptions(),o.localSectionsSettingId.callbacks.add(function(e,t){try{o.setupSettingsToBeSaved()}catch(e){r.errare("Error in self.localSectionsSettingId.callbacks => self.setupSettingsToBeSaved()",e)}o.initializeHistoryLogWhenSettingsRegistered(),r.previewer.send("sek-request-active-locations")});var i=function(e,t){o.setContextualCollectionSettingIdWhenSkopeSet(e,t),r.section(o.SECTION_ID_FOR_LOCAL_OPTIONS,function(e){e.deferred.embedded.done(function(){!0!==e.boundForLocalOptionGeneration&&(e.boundForLocalOptionGeneration=!0,e.expanded.bind(function(e){!0===e&&o.generateUI({action:"sek-generate-local-skope-options-ui"})}))})}),r.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){!0!==e.nimbleGlobalOptionGenerated&&(o.generateUI({action:"sek-generate-global-options-ui"}),e.nimbleGlobalOptionGenerated=!0)}),o.nb_is_ready=!0,r.trigger("nimble-ready-for-current-skope")};_.isEmpty(r.czr_activeSkopes().local)||i(),r.czr_activeSkopes.callbacks.add(function(e,t){i(e,t)}),o.reactToPreviewMsg(),o.setupDnd(),o.setupTinyMceEditor(),o.schedulePrintSectionJson(),r.previewedDevice.bind(function(t){var e=_.filter(o.registered(),function(e){return"control"==e.what});_.each(e||[],function(e){r.control(e.id,function(e){e.container.find('[data-sek-device="'+t+'"]').each(function(){s(this).trigger("click")})})})}),s("#customize-notifications-area").on("click",'[data-sek-reset="true"]',function(){r.previewer.trigger("sek-reset-collection",{scope:"local"})}),o.bind("sek-ui-pre-removal",function(e){"control"==e.what&&-1<e.id.indexOf("draggable")&&r.control(e.id,function(e){e.container.find("[draggable]").each(function(){s(this).off("dragstart dragend")})}),"control"==e.what&&r.control(e.id,function(e){e.container.find("select").each(function(){_.isUndefined(s(this).data("czrSelect2"))||s(this).czrSelect2("destroy")})})}),r.bind("czr-new-registered",function(e){if(_.isUndefined(e.origin))throw new Error("czr-new-registered event => missing params.origin");if("nimble"===e.origin&&!1!==e.track){var t=o.registered(),i=s.extend(!0,[],t),n=_.findWhere(i,{id:e.id});if(!_.isEmpty(n)&&_.isEqual(n,e))throw new Error("register => duplicated element in self.registered() collection "+e.id);i.push(e),o.registered(i)}}),o.activeLocations=new r.Value([]),o.activeLocationsInfo=new r.Value([]),r.previewer.bind("sek-active-locations-in-preview",function(e){o.activeLocations(_.isObject(e)&&_.isArray(e.active_locations)?e.active_locations:[]),o.activeLocationsInfo(_.isObject(e)&&_.isArray(e.active_locs_info)?e.active_locs_info:[])}),o.setupTopBar(),o.setupSaveSectionUI(),o.setupSaveTmplUI(),o.lastClickedTargetInPreview=new r.Value,o.lastClickedTargetInPreview.bind(function(e,t){_.isObject(e)&&e.id?r.previewer.send("sek-set-double-click-target",e):r.previewer.send("sek-reset-double-click-target"),clearTimeout(o.cachedElements.$window.data("_preview_target_timer_")),o.cachedElements.$window.data("_preview_target_timer_",setTimeout(function(){o.lastClickedTargetInPreview({}),r.previewer.send("sek-reset-double-click-target")},2e4))}),r.previewer.bind("sek-clean-target-drop-zone",function(){o.lastClickedTargetInPreview({})}),s(document).keydown(function(e){e&&27===e.keyCode&&o.lastClickedTargetInPreview({})}),sektionsLocalizedData.hasActiveCachePlugin&&_.delay(function(){r.previewer.trigger("sek-notify",{notif_id:"has-active-cache-plugin",type:"info",duration:2e4,message:['<span style="color:#0075a2">',sektionsLocalizedData.i18n["You seem to be using a cache plugin."],!_.isString(sektionsLocalizedData.hasActiveCachePlugin)||sektionsLocalizedData.hasActiveCachePlugin.length<2?"":"<strong> ("+sektionsLocalizedData.hasActiveCachePlugin+")</strong><br/>"," <strong>",sektionsLocalizedData.i18n["It is recommended to disable your cache plugin when customizing your website."],"</strong>","</span>"].join("")})},2e3),r.previewer.bind("multi-items-module-refreshed",function(t){_.isUndefined(t.apiParams.control_id)||r.control(t.apiParams.control_id,function(e){_.isUndefined(e.params.sek_registration_params)||r.control(e.id).params.sek_registration_params.module_id===t.apiParams.id&&e.czr_Module.each(function(e){e.czr_Item.each(function(e){"expanded"===e.viewState()&&e.trigger("sek-request-item-focus-in-preview")})})})}),o.setupTemplateGallery()},registerAndSetupDefaultPanelSectionOptions:function(){var o=this,e=r.Panel.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}});r.panel(sektionsLocalizedData.sektionsPanelId,function(n){n.deferred.embedded.done(function(){var e=n.container.find("h3.accordion-section-title"),t=(n.container.find(".panel-meta .accordion-section-title"),['<img class="sek-nimble-logo" alt="'+n.params.title+'" src="',sektionsLocalizedData.baseUrl,"/assets/img/nimble/nimble_horizontal.svg?ver="+sektionsLocalizedData.nimbleVersion,'"/>'].join(""));if(0<e.length){var i=e.find("span");e.addClass("sek-side-nimble-logo-wrapper").html(t).append(i)}sektionsLocalizedData.eligibleForFeedbackNotification&&n.expanded.bind(function(e){e&&_.isUndefined(o.feedbackUIVisible)&&(o.setupFeedBackUI(),setTimeout(function(){r.previewer.send("sek-print-confettis",{duration:Date.now()+2e3})},1e3))})})}),r.CZR_Helpers.register({origin:"nimble",what:"panel",id:sektionsLocalizedData.sektionsPanelId,title:sektionsLocalizedData.i18n["Nimble Builder"],priority:-1e3,constructWith:e,track:!1}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_GLOBAL_OPTIONS,title:sektionsLocalizedData.i18n["Site wide options"],panel:sektionsLocalizedData.sektionsPanelId,priority:20,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.prepend('<i class="fas fa-globe sek-level-option-icon"></i>'),0<i.length&&i.find(".customize-action").after('<i class="fas fa-globe sek-level-option-icon"></i>'),o.scheduleModuleAccordion.call(e)})}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_LOCAL_OPTIONS,title:sektionsLocalizedData.i18n["Current page options"],panel:sektionsLocalizedData.sektionsPanelId,priority:10,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_LOCAL_OPTIONS,function(e){var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.prepend('<i class="fas fa-map-marker-alt sek-level-option-icon"></i>'),0<i.length&&i.find(".customize-action").after('<i class="fas fa-map-marker-alt sek-level-option-icon"></i>'),o.scheduleModuleAccordion.call(e)})}),r.CZR_Helpers.register({origin:"nimble",what:"setting",id:sektionsLocalizedData.optNameForGlobalOptions,dirty:!1,value:sektionsLocalizedData.globalOptionDBValues,transport:"postMessage",type:"option"}),r.CZR_Helpers.register({origin:"nimble",what:"section",id:o.SECTION_ID_FOR_CONTENT_PICKER,title:sektionsLocalizedData.i18n["Content Picker"],panel:sektionsLocalizedData.sektionsPanelId,priority:30,track:!1,constructWith:r.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){r.section(o.SECTION_ID_FOR_CONTENT_PICKER,function(e){"resolved"!=r.czr_initialSkopeCollectionPopulated.state()?r.czr_initialSkopeCollectionPopulated.done(function(){r.previewer.trigger("sek-pick-content",{focus:!1})}):r.previewer.trigger("sek-pick-content",{focus:!1})})})},setContextualCollectionSettingIdWhenSkopeSet:function(e,t){t=t||{},!_.isEmpty(t.local)&&r.panel(sektionsLocalizedData.sektionsPanelId).expanded()&&r.previewer.trigger("sek-pick-content"),sektionsData=r.czr_skopeBase.getSkopeProperty("sektions","local"),sektionsLocalizedData.isDevMode&&r.infoLog("::setContextualCollectionSettingIdWhenSkopeSet => SEKTIONS DATA ? ",sektionsData),_.isEmpty(sektionsData)&&r.errare("::setContextualCollectionSettingIdWhenSkopeSet() => no sektionsData"),_.isEmpty(sektionsData.setting_id)&&r.errare("::setContextualCollectionSettingIdWhenSkopeSet() => missing setting_id"),this.localSectionsSettingId(sektionsData.setting_id)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{setupTopBar:function(){var t=this;t.topBarId="#nimble-top-bar",t.topBarVisible=new r.Value(!1),t.topBarVisible.bind(function(e){t.levelTreeExpanded()||t.toggleTopBar(e)}),t.mouseMovedRecently=new r.Value({}),t.mouseMovedRecently.bind(function(e){t.topBarVisible(!_.isEmpty(e))});var e=function(e){t.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(t.cachedElements.$window.data("_scroll_move_timer_")),t.cachedElements.$window.data("_scroll_move_timer_",setTimeout(function(){t.mouseMovedRecently.set({})},4e3))};t.cachedElements.$window.on("mousemove scroll,",_.throttle(e,50)),r.previewer.bind("ready",function(){s(r.previewer.targetWindow().document).on("mousemove scroll,",_.throttle(e,50))}),t.setupLevelTree()},toggleTopBar:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?s.when(i.renderAndSetupTopBarTmpl({})).done(function(e){i.topBarContainer=e,_.delay(function(){i.cachedElements.$body.addClass("nimble-top-bar-visible")},200)}):(t=s.Deferred(),i.cachedElements.$body.removeClass("nimble-top-bar-visible"),i.topBarContainer&&i.topBarContainer.length?_.delay(function(){t.resolve()},300):t.resolve(),t.promise()).done(function(){i.topBarVisible(!1)})},renderAndSetupTopBarTmpl:function(e){var t,i=this;if(0<s(i.topBarId).length)return s(i.topBarId);try{t=wp.template("nimble-top-bar")({})}catch(e){return r.errare("Error when parsing the the top note template",e),!1}s("#customize-preview").after(s(t)),s(document).keydown(function(e){if(e.ctrlKey&&_.contains([89,90],e.keyCode))try{i.navigateHistory(90===e.keyCode?"undo":"redo")}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),s(".sek-add-content",i.topBarId).on("click",function(e){e.preventDefault(),r.previewer.trigger("sek-pick-content",{content_type:"module"})}),s(".sek-level-tree",i.topBarId).on("click",function(e){e.preventDefault(),i.levelTreeExpanded(!i.levelTreeExpanded())}),s("[data-nimble-history]",i.topBarId).on("click",function(e){try{i.navigateHistory(s(this).data("nimble-history"))}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),s(".sek-settings",i.topBarId).on("click",function(e){r.panel(sektionsLocalizedData.sektionsPanelId,function(e){i.rootPanelFocus(),e.focus()})}),s(".sek-nimble-doc",i.topBarId).on("click",function(e){e.preventDefault(),window.open(s(this).data("doc-href"),"_blank")}),s(".sek-tmpl-saving",i.topBarId).on("click",function(e){e.preventDefault(),i.tmplDialogVisible(!i.tmplDialogVisible())});var n=function(e){s(i.topBarId).length<1||sektionsLocalizedData.isDebugMode||(_.isObject(e)&&e.local_template&&"default"!==e.local_template?s(i.topBarId).find(".sek-notifications").html(['<span class="fas fa-info-circle"></span>',sektionsLocalizedData.i18n["This page uses a custom template."]].join(" ")):s(i.topBarId).find(".sek-notifications").html(""))},o=function(){r(i.localSectionsSettingId(),function(e){var t=e(),i=_.isObject(t)&&t.local_options&&t.local_options.template?t.local_options.template:null;n(i)}),r(i.getLocalSkopeOptionId()+"__template",function(e){e.bind(function(e,t){n(e)})})};return o(),r.bind("nimble-ready-for-current-skope",function(){o()}),s(i.topBarId)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{initializeHistoryLogWhenSettingsRegistered:function(){this.historyLog=new l.Value([{status:"current",value:{local:l(this.localSectionsSettingId())(),global:l(this.getGlobalSectionsSettingId())()},action:"initial"}]),this.historyLog.bind(function(e){if(!_.isEmpty(e)){var t=_.findKey(e,{status:"current"});t=Number(t),d("#nimble-top-bar").find("[data-nimble-history]").each(function(){"undo"===d(this).data("nimble-history")?d(this).attr("data-nimble-state",t<=0?"disabled":"enabled"):d(this).attr("data-nimble-state",e.length<=t+1?"disabled":"enabled")})}})},trackHistoryLog:function(e,t){var i=this,n=e.id===i.getGlobalSectionsSettingId();if(!_.isObject(t)||!_.isFunction(i.historyLog)||!_.isArray(i.historyLog()))throw l.errare("params, self.historyLog() ",t,i.historyLog()),new Error("trackHistoryLog => invalid params or historyLog value");var o,r=[],s=d.extend(!0,[],i.historyLog());_.isEmpty(t.in_sektion)?_.isEmpty(t.to_sektion)||(o=t.to_sektion):o=t.in_sektion,_.each(s,function(e){"future"!=e.status&&(d.extend(e,{status:"previous"}),r.push(e))}),r.push({status:"current",value:n?{global:e()}:{local:e()},action:_.isObject(t)&&t.action||"",sektionToRefresh:o}),i.historyLog(r)},navigateHistory:function(i){var t,n,o,r,e=this,s=d.extend(!0,[],e.historyLog()),a=[];if(_.each(s,function(e){if(_.isEmpty(r)){switch(e.status){case"previous":t=e;break;case"current":n=e;break;case"future":o=e}switch(i){case"undo":_.isEmpty(n)||_.isEmpty(t)||(r=t.value,n.sektionToRefresh,t.sektionToRefresh);break;case"redo":_.isEmpty(o)||(r=o.value,n.sektionToRefresh,o.sektionToRefresh)}}}),!_.isUndefined(r)){_.isEmpty(r.local)||(l(e.localSectionsSettingId())(e.validateSettingValue(r.local,"local"),{navigatingHistoryLogs:!0}),l.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0})),_.isEmpty(r.global)||l(e.getGlobalSectionsSettingId())(e.validateSettingValue(r.global,"global"),{navigatingHistoryLogs:!0});l.previewer.refresh(),l.previewer.trigger("sek-pick-content",{}),e.cleanRegistered(),e.cleanRegisteredLevelSettingsAfterHistoryNavigation()}var c=_.findKey(s,{status:"current"});c=Number(c),_.isNumber(c)?(_.each(s,function(e,t){switch(newLog=d.extend(!0,{},e),t=Number(t),i){case"undo":0<c&&(t===c-1?newLog.status="current":t===c&&(newLog.status="future"));break;case"redo":s.length>c+1&&(t===c?newLog.status="previous":t===c+1&&(newLog.status="current"))}a.push(newLog)}),e.historyLog(a)):l.errare("Error when navigating the history log, the current key should be a number")}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(b,z){z.extend(CZRSeksPrototype,{setupLevelTree:function(){var i=this;i.levelTree=new b.Value([]),i.levelTree.bind(function(){i.levelTreeExpanded()&&i.renderOrRefreshTree()}),i.levelTreeExpanded=new b.Value(!1),i.levelTreeExpanded.bind(function(e){if(i.cachedElements.$body.toggleClass("sek-level-tree-expanded",e),e){if(i.templateGalleryExpanded(!1),i.tmplDialogVisible(!1),i.saveSectionDialogVisible&&i.saveSectionDialogVisible(!1),i.setLevelTreeValue(),_.isEmpty(i.levelTree()))return b.previewer.trigger("sek-notify",{type:"info",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["No sections to navigate"]+"</strong>","</span>"].join("")}),void i.levelTreeExpanded(!1);z("#customize-preview iframe").css("z-index",1),i.renderOrRefreshTree()}else 0<z("#nimble-level-tree").length&&_.delay(function(){z("#nimble-level-tree").remove(),z("#customize-preview iframe").css("z-index","")},300)}),i.activeLocations.bind(function(){_.isEmpty(i.levelTree())||i.renderOrRefreshTree()}),b.previewer.bind("ready",function(){i.localSectionsSettingId.callbacks.add(function(){i.levelTreeExpanded(!1),_.each([i.getGlobalSectionsSettingId(),i.localSectionsSettingId(),sektionsLocalizedData.optNameForGlobalOptions],function(e){b(e)._isBoundForNimbleLevelTree||(b(e).bind(function(e){i.setLevelTreeValue()}),b(e)._isBoundForNimbleLevelTree=!0)})})}),i.cachedElements.$body.on("click","#nimble-level-tree [data-nimb-level]",function(e){e.preventDefault(),e.stopPropagation();var i=z(e.target).closest("[data-nimb-level]");b.previewer.send("sek-animate-to-level",{id:i.data("nimb-id")}),b.previewer.send("sek-clean-level-uis"),_.delay(function(){b.previewer.send("sek-display-level-ui",{id:i.data("nimb-id")});var e=i.data("nimb-id"),t=i.data("nimb-level");"column"===t||"section"===t?b.previewer.trigger("sek-edit-options",{id:e,level:t}):"module"===t&&b.previewer.trigger("sek-edit-module",{id:e,level:t})},100)}),i.cachedElements.$body.on("click","#nimble-level-tree .sek-remove-level",function(e){e.preventDefault(),e.stopPropagation();var t=z(e.target).closest("[data-nimb-level]");b.previewer.trigger("sek-remove",{level:t.data("nimb-level"),id:t.data("nimb-id"),location:t.closest('[data-nimb-level="location"]').data("nimb-id"),in_sektion:t.closest('[data-nimb-level="section"]').data("nimb-id"),in_column:t.closest('[data-nimb-level="column"]').data("nimb-id")}),t.fadeOut("slow"),i.renderOrRefreshTree()}),i.cachedElements.$body.on("click",".sek-close-level-tree",function(e){e.preventDefault(),i.levelTreeExpanded(!1)})},setLevelTreeValue:function(){var e,t,i,n,o,r=this.getGlobalSectionsSettingId(),s=this.localSectionsSettingId(),a=sektionsLocalizedData.optNameForGlobalOptions,c=!1;if(_.each([r,s,a],function(e){b.has(e)||(c=e)}),!1===c){e=b(r)(),i=_.isObject(e)?z.extend(!0,{},e):{},i=_.isEmpty(i.collection)?[]:i.collection,i=_.isArray(i)?i:[],t=b(s)(),t=_.isObject(t)?t:{},n=z.extend(!0,{},t),n=_.isEmpty(n.collection)?[]:n.collection,n=_.isArray(n)?n:[];var l,d=_.union(i,n),p=!1,u=!1;o=b(a)(),o=_.isObject(o)?o:{},t.local_options&&t.local_options.local_header_footer&&(p="nimble_local"===(l=t.local_options.local_header_footer["header-footer"])),o.global_header_footer&&!p&&"theme"!==l&&(u="nimble_global"===o.global_header_footer["header-footer"]||"nimble_global"===l);var m,f,g=z.extend(!0,[],d);g=_.filter(g,function(e,t){return!_.contains(["nimble_global_header","nimble_global_footer","nimble_local_header","nimble_local_footer"],e.id)});var h=function(e){m=_.findWhere(d,{id:"nimble_"+e+"_header"}),f=_.findWhere(d,{id:"nimble_"+e+"_footer"}),g.unshift(m),g.push(f)};p?h("local"):u&&h("global");var v,k=this.activeLocations(),y=[];_.isEmpty(k)?y=g:_.each(k,function(e){v=_.findWhere(g,{id:e}),_.isUndefined(v)||y.push(v)}),this.levelTree(y)}else b.errare("::setLevelTreeValue => a setting id is not registered ")},renderOrRefreshTree:function(){var e;if(z("#nimble-level-tree").length<1){try{e=wp.template("nimble-level-tree")({})}catch(e){return b.errare("Error when parsing the nimble-level-tree template",e),!1}z("#customize-preview").after(z(e))}z("#nimble-level-tree").find(".sek-tree-wrap").html(this.getLevelTreeHtml())},getLevelTreeHtml:function(e,t){var i=this;e=e||i.levelTree();var n,o,r,s=!1;if(!_.isArray(e)||_.isEmpty(e))return b.errare("::buildLevelTree => invalid collection param",e),r;var a='<i class="material-icons sek-remove-level" title="'+sektionsLocalizedData.i18n["Remove this element"]+'">delete_forever</i>';return r="<ul>",_.each(e,function(e){_.isUndefined(e.level)?b.errare("::buildLevelTree => missing level property",e):_.isUndefined(e.id)?b.errare("::buildLevelTree => missing id property",e):(n=e.level,"location"===(o=n)&&(s=!_.contains(i.activeLocations(),e.id)),s||(sektionsLocalizedData.i18n[n]&&(o=sektionsLocalizedData.i18n[n]),!0===e.is_nested&&(o=sektionsLocalizedData.i18n["nested section"]),a="location"!==n?a:"",r+='<li data-nimb-level="'+n+'" data-nimb-id="'+e.id+'">',r+='<div class="sek-level-infos"><div class="sek-inner-level-infos">',"module"===n&&(r+=[i.getTreeModuleIcon(e.module_type),i.getTreeModuleTitle(e.module_type)].join(" ")),r+=[" ",o,"( id :",e.id,")",a].join(" "),r+="</div></div>",_.isArray(e.collection)&&!_.isEmpty(e.collection)&&(r+=i.getLevelTreeHtml(e.collection,t)),r+="</li>"))}),r+="</ul>"},getTreeModuleIcon:function(t){var i,n={};return _.each(sektionsLocalizedData.moduleCollection,function(e){_.isEmpty(n)&&t===e["content-id"]&&(_.isEmpty(e.icon)||(i="http"===e.icon.substring(0,4)?e.icon:sektionsLocalizedData.moduleIconPath+e.icon,n={svg:e.icon?i:"",font:e.font_icon?e.font_icon:""}))}),_.isEmpty(n.svg)?_.isEmpty(n.font)?void 0:n.font:'<img class="sek-svg-mod-icon" src="'+n.svg+'"/>'},getTreeModuleTitle:function(t){var i={};return _.each(sektionsLocalizedData.moduleCollection,function(e){_.isEmpty(i)&&t===e["content-id"]&&(i=e.title)}),i}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,l){l.extend(CZRSeksPrototype,{setupSaveSectionUI:function(){var o=this;o.saveSectionDialogVisible=new c.Value(!1),o.saveSectionDialogVisible.bind(function(e){e&&(o.templateGalleryExpanded(!1),o.levelTreeExpanded(!1),o.tmplDialogVisible&&o.tmplDialogVisible(!1)),o.toggleSaveSectionUI(e)}),o.allSavedSections=new c.Value("_not_populated_"),o.allSavedSections.bind(function(e){_.isObject(e)?(e=_.isEmpty(e)?{}:e,o.refreshSectionPickerHtml(e)):c.errare("error setupSaveSectionUI => section collection should be an object")}),o.saveSectionDialogMode=new c.Value("hidden"),o.saveSectionDialogMode.bind(function(e){_.contains(["hidden","save","update","remove"],e)||(c.errare("error setupSaveSectionUI => unknown section dialog mode",e),e="save");var t=l("#nimble-top-section-save-ui"),i=t.find("#sek-saved-section-title"),n=t.find("#sek-saved-section-description");switch(t.find("[data-section-mode-switcher]").attr("aria-pressed",!1),t.find('[data-section-mode-switcher="'+e+'"]').attr("aria-pressed",!0),l("#nimble-top-section-save-ui").attr("data-sek-section-dialog-mode",e),t.removeClass("sek-removal-confirmation-opened"),e){case"save":i.val(""),n.val("");break;case"update":case"remove":t.find(".sek-saved-section-picker").val("none").trigger("change"),o.setSavedSectionCollection().done(function(e){o.refreshSectionPickerHtml()})}"remove"===e&&_.isEmpty(o.idOfSectionToSave)?t.addClass("sek-is-removal-only"):t.removeClass("sek-is-removal-only")})},refreshSectionPickerHtml:function(e){e=e||this.allSavedSections();var t=l("#nimble-top-section-save-ui"),i=t.find(".sek-saved-section-picker");i.val("none").trigger("change"),i.find("option").each(function(){"none"!==l(this).attr("value")&&l(this).remove()});var n,o,r="";_.each(e,function(e,t){_.isObject(e)&&(o=e.last_modified_date?e.last_modified_date:"",n=e.title?e.title:"section title not set",r+='<option value="'+t+'">'+[n,sektionsLocalizedData.i18n["Last modified"]+" : "+o].join(" | ")+"</option>")}),i.append(r),t.addClass("section-collection-populated")},renderSectionSaveUI:function(e){if(0<l("#nimble-top-section-save-ui").length)return l("#nimble-top-section-save-ui");try{_tmpl=wp.template("nimble-top-section-save-ui")({})}catch(e){return c.errare("Error when parsing nimble-top-section-save-ui template",e),!1}return l("#customize-preview").after(l(_tmpl)),l("#nimble-top-section-save-ui")},maybeScheduleSectionSaveDOMEvents:function(){var i=this,n=l("#nimble-top-section-save-ui");n.data("nimble-sec-save-dom-events-scheduled")||(n.on("click","[data-section-mode-switcher]",function(e){e.preventDefault(),i.saveSectionDialogMode(l(this).data("section-mode-switcher"))}),n.on("change",".sek-saved-section-picker",function(e){i.reactOnSectionSelection(e,l(this))}),n.on("click",".sek-do-save-section",function(e){n.addClass("nimble-section-processing-ajax"),i.saveOrUpdateSavedSection(e).done(function(e){n.removeClass("nimble-section-processing-ajax"),e.success&&(i.saveSectionDialogVisible(!1),i.setSavedSectionCollection({refresh:!0}))})}),n.on("click",".sek-do-update-section",function(e){var t=n.find(".sek-saved-section-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-section-processing-ajax"),i.saveOrUpdateSavedSection(e,t).done(function(e){n.removeClass("nimble-section-processing-ajax"),e.success&&(i.saveSectionDialogVisible(!1),i.setSavedSectionCollection({refresh:!0}).done(function(e){i.refreshSectionPickerHtml()}))}))}),n.on("click",".sek-open-remove-confirmation",function(e){n.addClass("sek-removal-confirmation-opened")}),n.on("click",".sek-do-remove-section",function(e){var t=n.find(".sek-saved-section-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-section-processing-ajax"),i.removeSavedSection(e,t).done(function(e){n.removeClass("nimble-section-processing-ajax"),n.removeClass("sek-removal-confirmation-opened"),e.success&&i.setSavedSectionCollection({refresh:!0})}))}),n.on("click",".sek-cancel-remove-section",function(e){n.removeClass("sek-removal-confirmation-opened")}),l(".sek-close-dialog",n).on("click",function(e){e.preventDefault(),i.saveSectionDialogVisible(!1)}),n.data("nimble-sec-save-dom-events-scheduled",!0))},reactOnSectionSelection:function(e,t){var i=l("#nimble-top-section-save-ui"),n=t.val(),o=i.find("#sek-saved-section-title"),r=i.find("#sek-saved-section-description"),s="update"===this.saveSectionDialogMode()?"sek-section-update-selected":"sek-section-remove-selected";if("none"===n)o.val(""),r.val(""),i.removeClass(s);else{var a=this.allSavedSections();(a=_.isObject(a)&&!_.isArray(a)?a:{})[n]=l.extend({title:"",description:"",last_modified_date:""},a[n]||{}),o.val(a[n].title),r.val(a[n].description),i.addClass(s)}},saveOrUpdateSavedSection:function(e,t){var i=this,n=l.Deferred();if(!i.idOfSectionToSave||_.isEmpty(i.idOfSectionToSave))return c.errare("saveOrUpdateSavedSection => error => missing section id"),n.resolve({success:!1});e.preventDefault();var o=l("#sek-saved-section-title"),r=o.val(),s=l("#sek-saved-section-description").val(),a=l.extend(!0,{},i.getLevelModel(i.idOfSectionToSave));return"no_match"==a?(c.errare("saveOrUpdateSavedSection => error => no section model with id "+i.idOfSectionToSave),n.resolve({success:!1})):_.isEmpty(r)?(o.addClass("error"),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["A title is required"]+"</strong>","</span>"].join("")}),n.resolve({success:!1})):(l("#sek-saved-section-title").removeClass("error"),a=i.preProcessSection(a),_.isObject(a)||(c.errare("::saveOrUpdateSavedSection => error => invalid sectionModel"),n.resolve({success:!1})),wp.ajax.post("sek_save_user_section",{nonce:c.settings.nonce.save,section_data:JSON.stringify(a),section_title:r,section_description:s,section_post_name:t||"",skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")}).done(function(e){n.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template saved"]+"</strong>","</span>"].join("")})}).fail(function(e){n.resolve({success:!1}),c.errorLog("ajax sek_save_section => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing template"]+"</strong>","</span>"].join("")})}).always(function(){i.idOfSectionToSave=null}),n)},removeSavedSection:function(e,t){var i=this,n=l.Deferred();return e.preventDefault(),wp.ajax.post("sek_remove_user_section",{nonce:c.settings.nonce.save,section_post_name:t}).done(function(e){n.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template removed"]+"</strong>","</span>"].join("")})}).fail(function(e){n.resolve({success:!1}),c.errorLog("ajax sek_remove_section => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")})}).always(function(){i.idOfSectionToSave=null}),n},toggleSaveSectionUI:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?l.when(i.renderSectionSaveUI({})).done(function(e){i.maybeScheduleSectionSaveDOMEvents(),i.saveUIContainer=e,_.delay(function(){i.saveSectionDialogMode("save"),i.cachedElements.$body.addClass("sek-save-section-ui-visible")},200)}):(t=l.Deferred(),i.cachedElements.$body.removeClass("sek-save-section-ui-visible"),0<l("#nimble-top-section-save-ui").length?_.delay(function(){i.saveSectionDialogMode=i.saveSectionDialogMode?i.saveSectionDialogMode:new c.Value,i.saveSectionDialogMode("hidden"),i.saveUIContainer.remove(),i.idOfSectionToSave=null,t.resolve()},250):t.resolve(),t.promise()).done(function(){i.saveSectionDialogVisible(!1)})},setSavedSectionCollection:function(e){var t=this,i=l.Deferred();return(e=e||{refresh:!1}).refresh||"_not_populated_"===t.allSavedSections()?((t.sectionCollectionPromise&&"pending"===t.sectionCollectionPromise.state()?t.sectionCollectionPromise:t.getSavedSectionCollection(e)).done(function(e){t.allSavedSections(e),i.resolve(e)}),i.promise()):i.resolve(t.allSavedSections())},getSavedSectionCollection:function(e){var t=this;return e=e||{refresh:!1},t.sectionCollectionPromise=l.Deferred(),e.refresh||"_not_populated_"===t.allSavedSections()?wp.ajax.post("sek_get_all_saved_sections",{nonce:c.settings.nonce.save}).done(function(e){_.isObject(e)&&!_.isArray(e)?t.sectionCollectionPromise.resolve(e):(t.sectionCollectionPromise.resolve({}),c.errorLog("control::getSavedSectionCollection => collection is empty or invalid"))}).fail(function(e){c.errorLog("ajax sek_get_all_saved_section => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")}),t.sectionCollectionPromise.resolve({})}):t.sectionCollectionPromise.resolve(t.allSavedSections()),t.sectionCollectionPromise},preProcessSection:function(e){if(!_.isObject(e))return null;var t=l.extend({},!0,e);return _.has(t,"is_nested")&&(t=_.omit(t,"is_nested")),t}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,l){l.extend(CZRSeksPrototype,{setupSaveTmplUI:function(){var o=this;o.tmplDialogVisible=new c.Value(!1),sektionsLocalizedData.isTemplateSaveEnabled&&(o.tmplDialogVisible.bind(function(e){e&&(o.templateGalleryExpanded(!1),o.levelTreeExpanded(!1),o.saveSectionDialogVisible&&o.saveSectionDialogVisible(!1)),o.toggleSaveTmplUI(e)}),o.allSavedTemplates=new c.Value("_not_populated_"),o.allSavedTemplates.bind(function(e){_.isObject(e)?(e=_.isEmpty(e)?{}:e,o.refreshTmplPickerHtml(e)):c.errare("error setupSaveTmplUI => tmpl collection should be an object")}),o.tmplDialogMode=new c.Value("hidden"),o.tmplDialogMode.bind(function(e){_.contains(["hidden","save","update","remove"],e)||(c.errare("::setupSaveTmplUI => unknown tmpl dialog mode",e),e="save");var t=l("#nimble-top-tmpl-save-ui"),i=t.find("#sek-saved-tmpl-title"),n=t.find("#sek-saved-tmpl-description");switch(t.find("[data-tmpl-mode-switcher]").attr("aria-pressed",!1),t.find('[data-tmpl-mode-switcher="'+e+'"]').attr("aria-pressed",!0),l("#nimble-top-tmpl-save-ui").attr("data-sek-tmpl-dialog-mode",e),t.removeClass("sek-removal-confirmation-opened"),e){case"save":i.val(""),n.val("");break;case"update":case"remove":t.find(".sek-saved-tmpl-picker").val("none").trigger("change"),o.setSavedTmplCollection().done(function(e){o.refreshTmplPickerHtml()})}}))},refreshTmplPickerHtml:function(e){e=e||this.allSavedTemplates();var t=l("#nimble-top-tmpl-save-ui"),i=t.find(".sek-saved-tmpl-picker");i.val("none").trigger("change"),i.find("option").each(function(){"none"!==l(this).attr("value")&&l(this).remove()});var n,o,r="";_.each(e,function(e,t){_.isObject(e)&&(o=e.last_modified_date?e.last_modified_date:"",n=e.title?e.title:"template title not set",r+='<option value="'+t+'">'+[n,sektionsLocalizedData.i18n["Last modified"]+" : "+o].join(" | ")+"</option>")}),i.append(r),t.addClass("tmpl-collection-populated")},renderTmplUI:function(e){if(0<l("#nimble-top-tmpl-save-ui").length)return l("#nimble-top-tmpl-save-ui");try{_tmpl=wp.template("nimble-top-tmpl-save-ui")({})}catch(e){return c.errare("Error when parsing nimble-top-tmpl-save-ui template",e),!1}return l("#customize-preview").after(l(_tmpl)),l("#nimble-top-tmpl-save-ui")},scheduleTmplSaveDOMEvents:function(){var i=this,n=l("#nimble-top-tmpl-save-ui");n.data("nimble-tmpl-dom-events-scheduled")||(n.on("click","[data-tmpl-mode-switcher]",function(e){e.preventDefault(),i.tmplDialogMode(l(this).data("tmpl-mode-switcher"))}),n.on("change",".sek-saved-tmpl-picker",function(e){i.reactOnTemplateSelection(e,l(this))}),n.on("click",".sek-do-save-tmpl",function(e){n.addClass("nimble-tmpl-processing-ajax"),i.saveOrUpdateTemplate(e).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),e.success&&(i.tmplDialogVisible(!1),i.setSavedTmplCollection({refresh:!0}))})}),n.on("click",".sek-do-update-tmpl",function(e){var t=n.find(".sek-saved-tmpl-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-tmpl-processing-ajax"),i.saveOrUpdateTemplate(e,t).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),e.success&&(i.tmplDialogVisible(!1),i.setSavedTmplCollection({refresh:!0}).done(function(e){i.refreshTmplPickerHtml()}))}))}),n.on("click",".sek-open-remove-confirmation",function(e){n.addClass("sek-removal-confirmation-opened")}),n.on("click",".sek-do-remove-tmpl",function(e){var t=n.find(".sek-saved-tmpl-picker").val();"none"===t||_.isEmpty(t)||(n.addClass("nimble-tmpl-processing-ajax"),i.removeTemplate(e,t).done(function(e){n.removeClass("nimble-tmpl-processing-ajax"),n.removeClass("sek-removal-confirmation-opened"),e.success&&i.setSavedTmplCollection({refresh:!0})}))}),n.on("click",".sek-cancel-remove-tmpl",function(e){n.removeClass("sek-removal-confirmation-opened")}),l(".sek-close-dialog",n).on("click",function(e){e.preventDefault(),i.tmplDialogVisible(!1)}),n.data("nimble-tmpl-dom-events-scheduled",!0))},reactOnTemplateSelection:function(e,t){var i=l("#nimble-top-tmpl-save-ui"),n=t.val(),o=i.find("#sek-saved-tmpl-title"),r=i.find("#sek-saved-tmpl-description"),s="update"===this.tmplDialogMode()?"sek-tmpl-update-selected":"sek-tmpl-remove-selected";if("none"===n)o.val(""),r.val(""),i.removeClass(s);else{var a=this.allSavedTemplates();(a=_.isObject(a)&&!_.isArray(a)?a:{})[n]=l.extend({title:"",description:"",last_modified_date:""},a[n]||{}),o.val(a[n].title),r.val(a[n].description),i.addClass(s)}},saveOrUpdateTemplate:function(e,t){var i=l.Deferred();e.preventDefault();var n=l("#sek-saved-tmpl-title"),o=n.val(),r=l("#sek-saved-tmpl-description").val(),s=this.localSectionsSettingId(),a=this.preProcessTmpl(c(s)());return _.isEmpty(o)?(n.addClass("error"),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["A title is required"]+"</strong>","</span>"].join("")}),i.resolve({success:!1})):(l("#sek-saved-tmpl-title").removeClass("error"),wp.ajax.post("sek_save_user_template",{nonce:c.settings.nonce.save,tmpl_data:JSON.stringify(a),tmpl_title:o,tmpl_description:r,tmpl_post_name:t||"",skope_id:c.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:c.czr_sektions.activeLocations()}).done(function(e){i.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template saved"]+"</strong>","</span>"].join("")})}).fail(function(e){i.resolve({success:!1}),c.errorLog("ajax sek_save_template => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing template"]+"</strong>","</span>"].join("")})}),i)},removeTemplate:function(e,t){var i=l.Deferred();return e.preventDefault(),wp.ajax.post("sek_remove_user_template",{nonce:c.settings.nonce.save,tmpl_post_name:t}).done(function(e){i.resolve({success:!0}),c.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Template removed"]+"</strong>","</span>"].join("")})}).fail(function(e){i.resolve({success:!1}),c.errorLog("ajax sek_remove_template => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")})}),i},toggleSaveTmplUI:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?l.when(i.renderTmplUI({})).done(function(e){i.scheduleTmplSaveDOMEvents(),i.saveUIContainer=e,_.delay(function(){i.tmplDialogMode("save"),i.cachedElements.$body.addClass("sek-save-tmpl-ui-visible")},200)}):(t=l.Deferred(),i.cachedElements.$body.removeClass("sek-save-tmpl-ui-visible"),0<l("#nimble-top-tmpl-save-ui").length?_.delay(function(){i.tmplDialogMode=i.tmplDialogMode?i.tmplDialogMode:new c.Value,i.tmplDialogMode("hidden"),i.saveUIContainer.remove(),t.resolve()},250):t.resolve(),t.promise()).done(function(){i.tmplDialogVisible(!1)})},setSavedTmplCollection:function(e){var t=this,i=l.Deferred();return(e=e||{refresh:!1}).refresh||"_not_populated_"===t.allSavedTemplates()?((t.templateCollectionPromise&&"pending"===t.templateCollectionPromise.state()?t.templateCollectionPromise:t.getSavedTmplCollection()).done(function(e){t.allSavedTemplates(e),i.resolve(e)}),i.promise()):i.resolve(t.allSavedTemplates())},getSavedTmplCollection:function(){var t=this;return t.templateCollectionPromise=l.Deferred(),wp.ajax.post("sek_get_all_saved_tmpl",{nonce:c.settings.nonce.save}).done(function(e){_.isObject(e)&&!_.isArray(e)?t.templateCollectionPromise.resolve(e):(t.templateCollectionPromise.resolve({}),c.errare("control::getSavedTmplCollection => error => tmpl collection is invalid"))}).fail(function(e){c.errorLog("ajax sek_get_all_saved_tmpl => error",e),c.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["Error when processing templates"]+"</strong>","</span>"].join("")}),t.templateCollectionPromise.resolve({})}),t.templateCollectionPromise},preProcessTmpl:function(e){return console.log("TO DO => make sure template is ok to be saved"),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,s){s.extend(CZRSeksPrototype,{setupFeedBackUI:function(){var t=this;t.feedbackLastUserAction="none",t.feedbackUIId="#nimble-feedback",t.feedbackUIVisible=new r.Value(!1),t.feedbackUIVisible.bind(function(e){t.levelTreeExpanded()||t.toggleFeddBackUI(e),e&&t.refreshSelfClosingTimer()}),t.feedbackUIVisible(!0)},refreshSelfClosingTimer:function(){var e=this;clearTimeout(s(e.feedbackUIId).data("_feedback_user_action_timer_")),s(e.feedbackUIId).data("_feedback_user_action_timer_",setTimeout(function(){_.contains(["go_review","reporting_problem"],e.feedbackLastUserAction)||e.feedbackUIVisible(!1)},6e4))},toggleFeddBackUI:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?s.when(i.renderAndSetupFeedbackTmpl({})).done(function(e){_.delay(function(){i.cachedElements.$body.addClass("nimble-feedback-ui-visible")},200)}):(t=s.Deferred(),i.cachedElements.$body.removeClass("nimble-feedback-ui-visible"),0<s(i.feedbackUIId).length?_.delay(function(){s(i.feedbackUIId).remove(),t.resolve()},300):t.resolve(),t.promise()).done(function(){i.feedbackUIVisible(!1)})},renderAndSetupFeedbackTmpl:function(e){var t,i=this;if(0<s(i.feedbackUIId).length)return s(i.feedbackUIId);try{t=wp.template("nimble-feedback-ui")({})}catch(e){return r.errare("Error when parsing the the feedback template",e),!1}if(s("#customize-preview").after(s(t)),!i.feedbackEventsScheduled){var n=s(i.feedbackUIId).data("sek-dismiss-pointer"),o=function(){wp.ajax.post("dismiss-wp-pointer",{pointer:n}).fail(function(e){r.errare("ajax dismiss failure",e)})};return i.cachedElements.$body.on("click","[data-sek-feedback-action]",function(e){e.preventDefault(),i.refreshSelfClosingTimer();var t=s(this).data("sek-feedback-action");switch(i.feedbackLastUserAction=t){case"not_enjoying":s(i.feedbackUIId).find(".sek-feedback-step-one").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").show();break;case"enjoying":s(i.feedbackUIId).find(".sek-feedback-step-one").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").show();break;case"reporting_problem":window.open(s(this).data("problem-href"),"_blank");break;case"go_review":window.open("https://wordpress.org/support/plugin/nimble-builder/reviews/?filter=5/#new-post","_blank");break;case"maybe_later":i.feedbackUIVisible(!1),wp.ajax.post("sek_postpone_feedback",{nonce:r.settings.nonce.save,transient_duration_in_days:30}).fail(function(e){r.errare("ajax dismiss failure",e)});break;case"already_did":s(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").hide(),s(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").hide(),s(i.feedbackUIId).find(".sek-feedback-step-three-thanks").show(),_.delay(function(){i.feedbackUIVisible(!1)},3e3),o();break;case"dismiss":i.feedbackUIVisible(!1),o();break;default:r.errare("::renderAndSetupFeedbackTmpl => invalid action")}}),i.feedbackEventsScheduled=!0,s(i.feedbackUIId)}}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,e){jQuery.extend(CZRSeksPrototype,{getRevisionHistory:function(e){return wp.ajax.post("sek_get_revision_history",{nonce:r.settings.nonce.save,skope_id:e.is_local?r.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId})},setSingleRevision:function(i){var n=this,o=function(e,t){r.previewer.trigger("sek-notify",{notif_id:"restore-revision-error",type:t||"info",duration:1e4,message:['<span style="">',"<strong>",e||"","</strong>","</span>"].join("")})};wp.ajax.post("sek_get_single_revision",{nonce:r.settings.nonce.save,revision_post_id:i.revision_post_id}).done(function(e){var t=i.is_local?n.localSectionsSettingId():n.getGlobalSectionsSettingId();_.isEqual(r(t)(),e)?o(sektionsLocalizedData.i18n["This is the current version."],"info"):n.updateAPISetting({action:"sek-restore-revision",is_global_location:!i.is_local,revision_value:e}).done(function(){r.previewer.refresh()}).fail(function(e){r.errare("::setSingleRevision error when firing ::updateAPISetting",e),o(sektionsLocalizedData.i18n["The revision could not be restored."],"error")})}).fail(function(e){r.errare("::setSingleRevision ajax error",e),o(sektionsLocalizedData.i18n["The revision could not be restored."],"error")})}})}(wp.customize);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,l){l.extend(CZRSeksPrototype,{setupSettingsToBeSaved:function(){var i,o=this,e={local:{collectionSettingId:o.localSectionsSettingId()},global:{collectionSettingId:o.getGlobalSectionsSettingId()}};_.each(e,function(e,t){if(i=c.czr_skopeBase.getSkopeProperty("sektions",t).db_values,_.isEmpty(e.collectionSettingId))throw new Error("setupSettingsToBeSaved => the collectionSettingId is invalid");if(!c.has(e.collectionSettingId)){c.CZR_Helpers.register({what:"setting",id:e.collectionSettingId,value:o.validateSettingValue(_.isObject(i)?i:o.getDefaultSektionSettingValue(t),t),transport:"postMessage",type:"option",track:!1,origin:"nimble"});c(e.collectionSettingId,function(n){n.bind(_.debounce(function(e,t,i){if(!_.isObject(i)||!0!==i.navigatingHistoryLogs)try{o.trackHistoryLog(n,i)}catch(e){c.errare("setupSettingsToBeSaved => trackHistoryLog",e)}},1e3))})}})},validateSettingValue:function(i,n){if(!_.isObject(i))return c.errare("::validateSettingValue => validation error => the setting should be an object",i),null;if(!_.isEmpty(n)&&_.contains(["local","global"],n)){var o={},r=!1,e=[],s=function(e){c.errare(e,i),sektionsLocalizedData.isDevMode&&c.previewer.trigger("sek-notify",{type:"error",duration:6e4,message:['<span style="font-size:0.95em">',"<strong>"+e+"</strong>","<br>",sektionsLocalizedData.i18n["If this problem locks Nimble Builder, you can try resetting the sections of this page."],"<br>",'<span style="text-align:center;display:block">','<button type="button" class="button" aria-label="'+sektionsLocalizedData.i18n.Reset+'" data-sek-reset="true">'+sektionsLocalizedData.i18n.Reset+"</button>","</span>","</span>"].join("")}),r=!0},a=function(t){if(!r)if(_.isUndefined(t)&&_.isEmpty(o)){if(t=l.extend(!0,{},i),_.isUndefined(t.id)||_.isUndefined(t.level)){if(_.isUndefined(t.collection))return void s("validation error => the root level is missing the collection of locations");if(!_.isEmpty(t.level)||!_.isEmpty(t.id))return void s('validation error => the root level should not have a "level" or an "id" property');_.each(t,function(e,t){switch(n){case"local":if(!_.contains(["collection","local_options","fonts"],t))return void s("validation error => unauthorized option group for local setting value => "+t);break;case"global":if(!_.contains(["collection","fonts"],t))return void s("validation error => unauthorized option group for global setting value => "+t)}}),_.each(i.collection,function(e){o=t,a(e)})}}else{if(_.isEmpty(t.id)||!_.isString(t.id))return void s("validation error => a "+t.level+" level must have a valid id");if(_.contains(e,t.id))return void s("validation error => duplicated level id : "+t.id);if(e.push(t.id),_.isEmpty(t.level)||!_.isString(t.level))return void s("validation error => a "+t.level+" level must have a level property");if(!_.contains(["location","section","column","module"],t.level))return void s('validation error => the level "'+t.level+'" is not authorized');if("module"==t.level){if(!_.isUndefined(t.collection))return void s("validation error => a module can not have a collection property")}else if(_.isUndefined(t.collection))return void s("validation error => missing collection property for level => "+t.level+" "+t.id);switch(_.isUndefined(t.ver_ini)&&c.errare("validateSettingValue() => validation error => a "+t.level+' should have a version property : "ver_ini"'),t.level){case"location":if(!_.isEmpty(o.level))return void s("validation error => the parent of location "+t.id+" should have no level set");break;case"section":if(t.is_nested&&"column"!=o.level)return void s("validation error => the nested section "+t.id+" must be child of a column");if(!t.is_nested&&"location"!=o.level)return void s("validation error => the section "+t.id+" must be child of a location");break;case"column":if("section"!=o.level)return void s("validation error => the column "+t.id+" must be child of a section");break;case"module":if("column"!=o.level)return void s("validation error => the module "+t.id+" must be child of a column")}"module"!=t.level&&_.each(t.collection,function(e){o=l.extend(!0,{},t),_.isUndefined(e)?s("validation error => undefined level "):a(e)})}};return a(),r?null:i}c.errare("::validateSettingValue => invalid scope provided.",n)},resetCollectionSetting:function(e){if(_.isEmpty(e)||!_.contains(["local","global"],e))throw new Error("resetCollectionSetting => invalid scope provided.",e);return l.extend(!0,{},this.getDefaultSektionSettingValue(e))}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,n){n.extend(CZRSeksPrototype,{reactToPreviewMsg:function(){var o=this,r={},s={},a=!0,e={"sek-add-section":{callback:function(e){return c.previewedDevice("desktop"),a=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,s={},r={action:"sek-add-section",id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),before_section:e.before_section,after_section:e.after_section,is_first_section:e.is_first_section},o.updateAPISetting(r)},complete:function(e){e.apiParams.is_first_section&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location}),c.previewer.trigger("sek-pick-content",{id:e.apiParams?e.apiParams.id:"",content_type:"section"}),c.previewer.send("sek-animate-to-level",{id:e.apiParams.id})}},"sek-add-column":{callback:function(e){return a=!0,s={},r={id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),action:"sek-add-column",in_sektion:e.in_sektion,autofocus:e.autofocus},o.updateAPISetting(r)},complete:function(e){!1!==e.apiParams.autofocus&&c.previewer.trigger("sek-pick-content",{})}},"sek-add-module":{callback:function(e){return a=!0,s={},r={id:sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),action:"sek-add-module",in_sektion:e.in_sektion,in_column:e.in_column,module_type:e.content_id,before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_column,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")})}},"sek-remove":{callback:function(e){switch(a=!0,s={},e.level){case"section":var t=o.getLevelModel(e.id);if("no_match"===t){c.errare("reactToPreviewMsg => sek-remove-section => no sektionToRemove matched");break}r={action:"sek-remove-section",id:e.id,location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:t.is_nested};break;case"column":r={action:"sek-remove-column",id:e.id,in_sektion:e.in_sektion};break;case"module":r={action:"sek-remove-module",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column};break;default:c.errare("::reactToPreviewMsg => sek-remove => missing level ",e)}return o.updateAPISetting(r)},complete:function(e){if(c.previewer.trigger("sek-pick-content",{}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),"sek-remove-section"===e.apiParams.action){var t=o.getLevelModel(e.apiParams.location);_.isEmpty(t.collection)&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location})}}},"sek-move":{callback:function(e){switch(a=!0,s={},e.level){case"section":r={action:"sek-move-section",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),newOrder:e.newOrder,from_location:e.from_location,to_location:e.to_location};break;case"column":r={action:"sek-move-column",id:e.id,newOrder:e.newOrder,from_sektion:e.from_sektion,to_sektion:e.to_sektion};break;case"module":r={action:"sek-move-module",id:e.id,newOrder:e.newOrder,from_column:e.from_column,to_column:e.to_column,from_sektion:e.from_sektion,to_sektion:e.to_sektion}}return o.updateAPISetting(r)},complete:function(e){switch(e.apiParams.action){case"sek-move-section":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"section",in_sektion:e.apiParams.id}),e.apiParams.from_location!=e.apiParams.to_location&&(c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.to_location}),c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.from_location}));break;case"sek-move-column":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"column",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column});break;case"sek-refresh-modules-in-column":c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column})}}},"sek-move-section-up":{callback:function(e){return a=!1,s={},r={action:"sek-move-section-up-down",direction:"up",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),location:e.location,in_column:e.in_column},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location,original_action:"sek-move-section-up",moved_level_id:e.apiParams.id}),e.apiParams.new_location&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.new_location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id})}},"sek-move-section-down":{callback:function(e){return a=!1,s={},r={action:"sek-move-section-up-down",direction:"down",id:e.id,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column),location:e.location,in_column:e.in_column},o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id}),e.apiParams.new_location&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.new_location,original_action:"sek-move-section-down",moved_level_id:e.apiParams.id})}},"sek-duplicate":{callback:function(e){switch(a=!0,s={},e.level){case"section":r={action:"sek-duplicate-section",id:e.id,location:e.location,in_sektion:e.in_sektion,in_column:e.in_column,is_nested:!_.isEmpty(e.in_sektion)&&!_.isEmpty(e.in_column)};break;case"column":r={action:"sek-duplicate-column",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column};break;case"module":r={action:"sek-duplicate-module",id:e.id,in_sektion:e.in_sektion,in_column:e.in_column}}return o.updateAPISetting(r)},complete:function(e){var t;switch(e.apiParams.action){case"sek-duplicate-section":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"section",in_sektion:e.apiParams.id}),t=e.apiParams.location,e.apiParams.is_nested&&c.previewer.refresh(),c.previewer.send("sek-animate-to-level",{id:e.apiParams.id});break;case"sek-duplicate-column":c.previewer.trigger("sek-edit-options",{id:e.apiParams.id,level:"column",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),t=e.apiParams.in_sektion;break;case"sek-duplicate-module":c.previewer.trigger("sek-edit-module",{id:e.apiParams.id,level:"module",in_sektion:e.apiParams.in_sektion,in_column:e.apiParams.in_column}),t=e.apiParams.in_column}c.previewer.trigger("sek-refresh-stylesheet",{id:t,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")})}},"sek-resize-columns":function(e){return a=!0,s={},r=e,o.updateAPISetting(r)},"sek-add-content-in-new-sektion":{callback:function(e){switch(a=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,s={},(r=e).action="sek-add-content-in-new-sektion",r.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),e.content_type){case"module":r.droppedModuleId=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid();break;case"preset_section":c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),c.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0})}return o.updateAPISetting(r)},complete:function(e){switch(e.apiParams.content_type){case"module":c.previewer.trigger("sek-edit-module",{level:"module",id:e.apiParams.droppedModuleId});break;case"preset_section":c.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0})}o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)});var t=e.location_skope_id;_.isUndefined(t)&&(t=!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:c.czr_skopeBase.getSkopeProperty("skope_id")),c.previewer.trigger("sek-refresh-stylesheet",{location_skope_id:t,is_global_location:o.isGlobalLocation(e.apiParams)}),e.apiParams.is_first_section&&c.previewer.trigger("sek-refresh-level",{level:"location",id:e.apiParams.location}),e.apiParams.sektion_to_replace&&c.previewer.trigger("sek-remove",{id:e.apiParams.sektion_to_replace,location:e.apiParams.location,in_column:e.apiParams.in_column,level:"section"})}},"sek-add-preset-section-in-new-nested-sektion":{callback:function(e){return a=!1,s={},(r=e).action="sek-add-preset-section-in-new-nested-sektion",c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),o.updateAPISetting(r)},complete:function(e){o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_sektion,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")}),c.previewer.trigger("sek-refresh-level",{level:"section",id:e.apiParams.in_sektion})}},"sek-pick-content":function(e){return e=_.isObject(e)?e:{},c.czr_sektions.currentContentPickerType=c.czr_sektions.currentContentPickerType||new c.Value,_.isObject(e)&&e.id&&o.lastClickedTargetInPreview({id:e.id}),a=!0,r={},s={action:"sek-generate-draggable-candidates-picker-ui",content_type:(e=e||{}).content_type||"module",was_triggered:!_.has(e,"was_triggered")||e.was_triggered,focus:!_.has(e,"focus")||e.focus},o.generateUI(s)},"sek-edit-options":function(e){return a=!0,r={},_.isEmpty(e.id)?n.Deferred(function(){this.reject("missing id")}):(s={action:"sek-generate-level-options-ui",location:e.location,level:e.level,id:e.id,in_sektion:e.in_sektion,in_column:e.in_column,options:e.options||[]},o.generateUI(s))},"sek-edit-module":function(e){return a=!0,r={},s={action:"sek-generate-module-ui",level:e.level,id:e.id,in_sektion:e.in_sektion,in_column:e.in_column,options:e.options||[]},o.generateUI(s)},"sek-notify":function(t){a=!1;var i=t.notif_id||"sek-notify";return o.lastNimbleNotificationId&&c.notifications.remove(o.lastNimbleNotificationId),n.Deferred(function(){c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification(i,{type:t.type||"info",message:t.message,dismissible:!0})),o.lastNimbleNotificationId=i,_.delay(function(){c.notifications.remove(i)},t.duration||5e3)}),this.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-level":function(t){return a=!0,n.Deferred(function(e){r={action:"sek-refresh-level",level:t.level,id:t.id,original_action:t.original_action,moved_level_id:t.moved_level_id},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-stylesheet":function(t){return a=!0,t=t||{},n.Deferred(function(e){r={id:t.id},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-toggle-save-section-ui":function(t){return a=!1,o.idOfSectionToSave=t.id,o.saveSectionDialogVisible(!0),n.Deferred(function(e){r={},s={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-reset-collection":{callback:function(e){return a=!1,s={},(r=e).action="sek-reset-collection",r.scope=e.scope,o.updateAPISetting(r)},complete:function(e){c.previewer.refresh(),c.previewer.trigger("sek-notify",{notif_id:"reset-success",type:"success",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset complete"],"</strong>","</span>"].join("")})}}};_.each(e,function(i,n){c.previewer.bind(n,function(t){var e;if(_.isFunction(i))e=i;else{if(!_.isFunction(i.callback))return void c.errare("::reactToPreviewMsg => invalid callback for action "+n);e=i.callback}"sek-notify"!==n&&(o.templateGalleryExpanded(!1),o.tmplDialogVisible(!1));try{e(t).done(function(e){e=e||{},a?c.previewer.send(n,{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:c.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:r,uiParams:s,cloneId:!_.isEmpty(e.cloneId)&&e.cloneId,all_params:t}):c.previewer.trigger([n,"done"].join("_"),{apiParams:r,uiParams:s}),o.trigger([n,"done"].join("_"),t)}).fail(function(e){c.errare("reactToPreviewMsg => problem or error when running action "+n,e),!_.isEmpty(e)&&sektionsLocalizedData.isDevMode&&c.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+e+"</strong>","<br>",sektionsLocalizedData.i18n["If this problem locks Nimble Builder, you can try resetting the sections of this page."],"<br>",'<span style="text-align:center;display:block">','<button type="button" class="button" aria-label="'+sektionsLocalizedData.i18n.Reset+'" data-sek-reset="true">'+sektionsLocalizedData.i18n.Reset+"</button>","</span>","</span>"].join("")})})}catch(e){c.errare("reactToPreviewMsg => error when receiving "+n,e)}})}),_.each(e,function(t,i){c.previewer.bind([i,"done"].join("_"),function(e){if(_.isFunction(t.complete))try{t.complete(e)}catch(e){c.errare("reactToPreviewMsg done => error when receiving "+[i,"done"].join("_"),e)}})})},schedulePrintSectionJson:function(){var i=this;c.previewer.bind("sek-to-json",function(e){var t=n.extend(!0,{},i.getLevelModel(e.id));console.log(JSON.stringify(i.cleanIds(t)))})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(k,y){y.extend(CZRSeksPrototype,{generateUI:function(e){var t=this,i=y.Deferred();switch(_.isEmpty(e.action)&&i.reject("generateUI => missing action"),e.action){case"sek-generate-module-ui":try{i=t.generateUIforFrontModules(e,i)}catch(e){k.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-level-options-ui":try{i=t.generateUIforLevelOptions(e,i)}catch(e){k.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-draggable-candidates-picker-ui":t.cleanRegistered();try{i=t.generateUIforDraggableContent(e,i)}catch(e){k.errare("::generateUI() => error",e),i=y.Deferred()}k.czr_sektions.currentContentPickerType(e.content_type||"module");break;case"sek-generate-local-skope-options-ui":t.cleanRegistered();try{i=t.generateUIforLocalSkopeOptions(e,i)}catch(e){k.errare("::generateUI() => error",e),i=y.Deferred()}break;case"sek-generate-global-options-ui":t.cleanRegistered();try{i=t.generateUIforGlobalOptions(e,i)}catch(e){k.errare("::generateUI() => error",e),i=y.Deferred()}}return"pending"==i.state()?i.resolve().promise():i.promise()},updateAPISettingAndExecutePreviewActions:function(o){if(!_.isEmpty(o.settingParams)&&_.has(o.settingParams,"to")){var r,s=this,e=o.settingParams.to,t=null,a=!1;if(!_.isEmpty(o.settingParams.args)&&_.has(o.settingParams.args,"moduleRegistrationParams")){var c=o.settingParams.args.moduleRegistrationParams.control,i=o.settingParams.args.moduleRegistrationParams.id,n=c.czr_Module(i);if(_.isEmpty(n)?k.errare("updateAPISettingAndExecutePreviewActions => missing parentModuleInstance",o):(t=n.module_type,a=n.isMultiItem()),!a&&_.isObject(e)?r=s.normalizeAndSanitizeSingleItemInputValues({item_value:e,parent_module_type:t,is_multi_items:!1}):(r=[],_.each(e,function(e){r.push(s.normalizeAndSanitizeSingleItemInputValues({item_value:e,parent_module_type:t,is_multi_items:!0}))})),_.isEmpty(o.defaultPreviewAction))k.errare("updateAPISettingAndExecutePreviewActions => missing defaultPreviewAction in passed params. No action can be triggered to the api.previewer.",o);else{var l,d="refresh_stylesheet"===o.defaultPreviewAction,p="refresh_markup"===o.defaultPreviewAction,u="refresh_fonts"===o.defaultPreviewAction,m="refresh_preview"===o.defaultPreviewAction,f=o.settingParams.args.input_changed,g=function(){return l&&_.isString(l.refresh_markup)&&"true"!==l.refresh_markup&&"false"!==l.refresh_markup};_.isUndefined(f)||(l=s.getInputRegistrationParams(f,t),_.isUndefined(l.refresh_stylesheet)||(d=Boolean(l.refresh_stylesheet)),_.isUndefined(l.refresh_markup)||(p=g()?l.refresh_markup:Boolean(l.refresh_markup)),_.isUndefined(l.refresh_fonts)||(u=Boolean(l.refresh_fonts)),_.isUndefined(l.refresh_preview)||(m=Boolean(l.refresh_preview)));var h=function(){if(!0!==o.isGlobalOptions)return s.updateAPISetting({action:o.uiParams.action,id:o.uiParams.id,value:r,in_column:o.uiParams.in_column,in_sektion:o.uiParams.in_sektion,options_type:o.options_type,settingParams:o.settingParams}).done(function(e){var t;!0===d&&k.previewer.send("sek-refresh-stylesheet",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:k.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:k.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-stylesheet",id:o.uiParams.id,level:o.uiParams.level}}),a&&o.settingParams.args.inputRegistrationParams&&_.isFunction(o.settingParams.args.inputRegistrationParams.input_parent)&&(t=o.settingParams.args.inputRegistrationParams.input_parent.id);var i=function(){k.previewer.send("sek-refresh-level",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:k.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:k.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-level",id:o.uiParams.id,level:o.uiParams.level,changed_item_id:t,control_id:c.id,is_multi_items:a},skope_id:k.czr_skopeBase.getSkopeProperty("skope_id")})};if(!0===p&&i(),g()){var n=o.settingParams.args.input_value;if(!_.isString(n))throw new Error("::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.");s.htmlIncludesElementsThatNeedAnAjaxRefresh(n)?i():k.previewer.send("sek-update-html-in-selector",{selector:l.refresh_markup,changed_item_id:t,is_multi_items:a,html:n,id:o.uiParams.id,location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:k.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:k.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-update-html-in-selector",id:o.uiParams.id,level:o.uiParams.level},skope_id:k.czr_skopeBase.getSkopeProperty("skope_id")})}!0===m&&k.previewer.refresh()}).fail(function(e){k.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated",e),k.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated => params ",o)});if(_.isEmpty(o.options_type))k.errare("updateAPISettingAndExecutePreviewActions => error when updating the global options => missing options_type");else{var e=k(sektionsLocalizedData.optNameForGlobalOptions)(),t=y.extend(!0,{},_.isObject(e)?e:{}),i={};if(_.each(r||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(i[t]=e)}),t[o.options_type]=i,k(sektionsLocalizedData.optNameForGlobalOptions)(t),!1!==m&&k.previewer.refresh(),!0===u){var n=o.settingParams.args.input_value;if(!_.isString(n))return void k.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",n);s.updateGlobalGFonts(n)}!0===d&&k.previewer.send("sek-refresh-stylesheet",{local_skope_id:k.czr_skopeBase.getSkopeProperty("skope_id"),location_skope_id:sektionsLocalizedData.globalSkopeId})}};if(!0===u){var v=o.settingParams.args.input_value;if(!_.isString(v))return void k.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",v);!0===o.isGlobalOptions?h():s.updateAPISetting({action:"sek-update-fonts",font_family:v,is_global_location:s.isGlobalLocation(o.uiParams)}).always(function(){h().then(function(){s.updateAPISetting({action:"sek-update-fonts",is_global_location:s.isGlobalLocation(o.uiParams)})})})}else h()}}else k.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated",o)}else k.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated",o)},updateGlobalGFonts:function(e){var t=k(sektionsLocalizedData.optNameForGlobalOptions)(),i=y.extend(!0,{},_.isObject(t)?t:{}),n=this.sniffGlobalGFonts(i);!_.isEmpty(e)&&_.isString(e)&&-1<e.indexOf("gfont")&&!_.contains(n,e)&&n.push(e),i.fonts=n,k(sektionsLocalizedData.optNameForGlobalOptions)(i)},sniffGlobalGFonts:function(e){var i=[],n=function(e){_.each(e,function(e,t){"fonts"!==t&&(_.isString(t)&&-1<t.indexOf("font_family")&&-1<e.indexOf("gfont")&&!_.contains(i,e)&&i.push(e),(_.isArray(e)||_.isObject(e))&&n(e))})};return(_.isArray(e)||_.isObject(e))&&n(e),i},normalizeAndSanitizeSingleItemInputValues:function(o){var i,r={},n={},s=null,a=this;return _.each(o.item_value,function(e,t){var i,n;"title"!==t&&((o.is_multi_items||"id"!==t)&&(null!==o.parent_module_type&&"id"!==t&&"no_default_value_specified"===(s=a.getInputDefaultValue(t,o.parent_module_type))&&k.infoLog("::normalizeAndSanitizeSingleItemInputValues => missing default value for input "+t+" in module "+o.parent_module_type),i=e,n=s,(_.isBoolean(i)||_.isBoolean(n)?Boolean(i)===Boolean(n):_.isNumber(i)||_.isNumber(n)?Number(i)===Number(n):_.isString(i)||_.isString(n)?i+""==n+"":_.isObject(i)&&_.isObject(n)?_.isEqual(i,n):_.isArray(i)&&_.isArray(n)?JSON.stringify(i.sort())===JSON.stringify(n.sort()):i===n)||(_.isString(e)||_.isObject(e))&&_.isEmpty(e)||(r[t]=e)))}),_.each(r,function(e,t){switch(a.getInputType(t,o.parent_module_type)){case"text":case"textarea":case"check":case"gutencheck":case"select":case"radio":case"number":case"upload":case"upload_url":case"color":case"wp_color_alpha":case"wp_color":case"content_picker":case"detached_tinymce_editor":case"nimble_tinymce_editor":case"password":case"range":case"range_slider":case"hidden":case"h_alignment":case"h_text_alignment":case"spacing":case"bg_position":case"v_alignment":case"font_size":case"line_height":case"font_picker":default:i=e}n[t]=i}),n},isUIControlAlreadyRegistered:function(t){var e=_.filter(this.registered(),function(e){return e.id==t&&"control"===e.what}),i=!1;return _.isEmpty(e)?i=k.control.has(t):(i=!0,1<e.length&&k.errare("isUIControlAlreadyRegistered => why is this control registered more than once ? => "+t)),i},htmlIncludesElementsThatNeedAnAjaxRefresh:function(e){var t=e.match(/\[+([\w_-])+/g),i=e.match(/\{\{+([\w_-])+/g),n=e.match(/<script[\s\S]*?>[\s\S]*?<\/script>/gi),o=[],r=[];if(t)for(var s=0;s<t.length;s++){var a=t[s].replace(/^\[+/g,"");-1===o.indexOf(a)&&o.push(a)}if(i)for(var c=0;c<i.length;c++){var l=i[c].replace(/^\[+/g,"");-1===r.indexOf(l)&&r.push(l)}return!_.isEmpty(o)||!_.isEmpty(r)||!_.isEmpty(n)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(s,a){a.extend(CZRSeksPrototype,{generateUIforDraggableContent:function(r,e){var n=this,t={};a.extend(t,{content_type_switcher:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+"_sek_content_type_switcher_ui",module_type:"sek_content_type_switcher_module",controlLabel:sektionsLocalizedData.i18n["Select a content type"],priority:10,settingValue:{content_type:r.content_type}},module_picker:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+"_sek_draggable_modules_ui",module_type:"sek_module_picker_module",controlLabel:sektionsLocalizedData.i18n["Pick a module"],content_type:"module",priority:20,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_my_sections_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_my_sections_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["My sections"],content_type:"section",expandAndFocusOnInit:!1,priority:10,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>',is_new:!0},sek_intro_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_intro_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Sections for an introduction"],content_type:"section",expandAndFocusOnInit:!0,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_features_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_features_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Sections for services and features"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_about_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_about_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["About us sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_contact_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_contact_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Contact-us sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_column_layouts_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_column_layouts_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Empty sections with columns layout"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_header_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_header_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Header sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'},sek_footer_sec_picker_module:{settingControlId:sektionsLocalizedData.optPrefixForSektionsNotSaved+n.guid()+"_sek_draggable_sections_ui",module_type:"sek_footer_sec_picker_module",controlLabel:sektionsLocalizedData.i18n["Footer sections"],content_type:"section",expandAndFocusOnInit:!1,priority:30,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'}});var i=_.keys(t)[0],o=t[i].settingControlId;return n.isUIControlAlreadyRegistered(o)?s.control(o,function(t){t.focus({completeCallback:function(){var e=t.container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}})}):(_do_register_=function(){_.each(t,function(o,e){s.has(o.settingControlId)||(s(o.settingControlId,function(e){e.bind(function(e,t){s.errare("generateUIforDraggableContent => the setting() should not changed")})}),s.CZR_Helpers.register({origin:"nimble",level:r.level,what:"setting",id:o.settingControlId,dirty:!1,value:o.settingValue||{},transport:"postMessage",type:"_nimble_ui_"})),s.CZR_Helpers.register({origin:"nimble",level:r.level,what:"control",id:o.settingControlId,label:o.controlLabel,type:"czr_module",module_type:o.module_type,section:n.SECTION_ID_FOR_CONTENT_PICKER,priority:o.priority||10,settings:{default:o.settingControlId},track:!1}).done(function(){s.control(o.settingControlId,function(e){e.content_type=o.content_type,!0===r.focus&&e.focus({completeCallback:function(){}});var t=e.container.find("label > .customize-control-title"),i=t.html();if(t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),o.is_new){var n=t.html();t.html(n+' <span class="sek-new-label">New!</span>')}_.isUndefined(o.icon)||t.addClass("sek-flex-vertical-center").prepend(o.icon),"section"===e.content_type?(e.container.attr("data-sek-expanded","false"),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===o.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&e.container.addClass("sek-expand-on-init")):e.container.attr("data-sek-accordion","no")})})}),s.trigger("nimble-modules-and-sections-controls-registered")},s.section(n.SECTION_ID_FOR_CONTENT_PICKER,function(e){_do_register_();var t=e.container.find(".accordion-section-title"),i=e.container.find(".customize-section-title h3");0<t.length&&t.find(".sek-level-option-icon").length<1&&t.prepend('<i class="fas fa-grip-vertical sek-level-option-icon"></i>'),0<i.length&&i.find(".sek-level-option-icon").length<1&&i.find(".customize-action").after('<i class="fas fa-grip-vertical sek-level-option-icon"></i>'),n.scheduleModuleAccordion.call(e,{expand_first_control:!1}),e.container.find(".customize-control.sek-expand-on-init").find("label > .customize-control-title").trigger("click")})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,p){p.extend(CZRSeksPrototype,{generateUIforFrontModules:function(r,e){var s=this;_.isEmpty(r.id)&&e.reject("generateUI => missing id");var i=s.getLevelProperty({property:"value",id:r.id}),t=s.getLevelProperty({property:"module_type",id:r.id}),n=s.getRegisteredModuleProperty(t,"name");_.isEmpty(t)&&e.reject("generateUI => module => invalid module_type");var o={};if(!0===s.getRegisteredModuleProperty(t,"is_father")){var a=s.getRegisteredModuleProperty(t,"children");if(_.isEmpty(a))throw new Error("::generateUIforFrontModules => a father module "+t+" is missing children modules ");_.each(a,function(e,t){o[t]={settingControlId:r.id+"__"+t,module_type:e,controlLabel:s.getRegisteredModuleProperty(e,"name")}})}else o.__no_option_group_to_be_updated_by_children_modules__={settingControlId:r.id,module_type:t,controlLabel:n};var c=_.keys(o)[0],l=o[c].settingControlId;return s.isUIControlAlreadyRegistered(l)?d.control(l).focus({completeCallback:function(){var e=d.control(l).container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}}):(s.cleanRegistered(),_do_register_=function(){_.each(o,function(n,o){if(!d.has(n.settingControlId)){var t=function(e,t,i){try{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_markup",uiParams:_.extend(r,{action:"sek-set-module-value"}),options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){d.errare("::generateUIforFrontModules => Error in updateAPISettingAndExecutePreviewActions",e)}};d(n.settingControlId,function(e){e.bind(_.debounce(t,s.SETTING_UPDATE_BUFFER))});var e=p.extend(!0,{},i);"__no_option_group_to_be_updated_by_children_modules__"!==o&&(e=!_.isEmpty(e)&&_.isObject(e)&&_.isObject(e[o])?e[o]:{}),d.CZR_Helpers.register({origin:"nimble",level:r.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}d.CZR_Helpers.register({origin:"nimble",level:r.level,what:"control",module_id:r.id,id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:r.id,priority:20,settings:{default:n.settingControlId}}).done(function(){}),d.control(n.settingControlId,function(e){d.control(n.settingControlId).focus({completeCallback:function(){}}),e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=p("<div/>").html(t.html()).text();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false")})})},d.section(r.id,function(e){d.section(r.id).focus(),s.generateModuleOptionSwitcherUI(r.id,r.action),_do_register_(),e.container.find(".accordion-section-title").first().hide();var t=e.container.find(".customize-section-title h3");0<t.length&&t.find(".customize-action").after('<i class="fas fa-pencil-alt sek-level-option-icon"></i>'),s.scheduleModuleAccordion.call(e,{expand_first_control:!0})}),d.CZR_Helpers.register({origin:"nimble",what:"section",id:r.id,title:sektionsLocalizedData.i18n["Content for"]+" "+n,panel:sektionsLocalizedData.sektionsPanelId,priority:1e3}).done(function(){})),e},generateModuleOptionSwitcherUI:function(e,t){var i=e+"__option_switcher";d.has(i)||(d(i,function(e){e.bind(function(e,t){d.errare("generateUIforDraggableContent => the setting() should not changed")})}),d.CZR_Helpers.register({origin:"nimble",level:"module",what:"setting",id:i,dirty:!1,value:"",transport:"postMessage",type:"_nimble_ui_"})),d.CZR_Helpers.register({origin:"nimble",level:"module",what:"control",module_id:e,id:i,label:"",type:"czr_module",module_type:"sek_mod_option_switcher_module",section:e,priority:10,settings:{default:i},has_accordion:!1,ui_action:t}).done(function(){d.control(i,function(e){e.deferred.embedded.done(function(){e.container.find(".customize-control-title").hide(),e.container.attr("data-sek-accordion","no")})})})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforLevelOptions:function(s,e){var a=this,c=a.getLevelProperty({property:"options",id:s.id});c=_.isObject(c)?c:{};var t={};l.trigger("nb_setup_level_ui_registration_params",{params:s,modulesRegistrationParams:t}),d.extend(t,{bg:{settingControlId:s.id+"__bg_options",module_type:"sek_level_bg_module",controlLabel:sektionsLocalizedData.i18n["Background settings for the"]+" "+sektionsLocalizedData.i18n[s.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">gradient</i>'}}),"section"===s.level&&d.extend(t,{level_text:{settingControlId:s.id+"__text_options",module_type:"sek_level_text_module",controlLabel:sektionsLocalizedData.i18n["Text settings for the"]+" "+sektionsLocalizedData.i18n[s.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">text_format</i>'}}),d.extend(t,{border:{settingControlId:s.id+"__border_options",module_type:"sek_level_border_module",controlLabel:sektionsLocalizedData.i18n["Borders settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="material-icons sek-level-option-icon">rounded_corner</i>'},spacing:{settingControlId:s.id+"__spacing_options",module_type:"sek_level_spacing_module",controlLabel:sektionsLocalizedData.i18n["Padding and margin settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="material-icons sek-level-option-icon">center_focus_weak</i>'},anchor:{settingControlId:s.id+"__anchor_options",module_type:"sek_level_anchor_module",controlLabel:sektionsLocalizedData.i18n["Custom anchor ( CSS ID ) and CSS classes for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-anchor sek-level-option-icon"></i>'},visibility:{settingControlId:s.id+"__visibility_options",module_type:"sek_level_visibility_module",controlLabel:sektionsLocalizedData.i18n["Device visibility settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="far fa-eye sek-level-option-icon"></i>'},height:{settingControlId:s.id+"__height_options",module_type:"sek_level_height_module",controlLabel:sektionsLocalizedData.i18n["Height and vertical alignment for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-vertical sek-level-option-icon"></i>'}}),"section"===s.level&&(d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_section",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),d.extend(t,{breakpoint:{settingControlId:s.id+"__breakpoint_options",module_type:"sek_level_breakpoint_module",controlLabel:sektionsLocalizedData.i18n["Responsive settings : breakpoint, column direction"],icon:'<i class="material-icons sek-level-option-icon">devices</i>'}})),"column"===s.level&&d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_column",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),"module"===s.level&&d.extend(t,{width:{settingControlId:s.id+"__width_options",module_type:"sek_level_width_module",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[s.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}});var i=_.keys(t)[0],n=t[i].settingControlId;return a.isUIControlAlreadyRegistered(n)?l.control(n).focus({completeCallback:function(){var e=l.control(n).container;e.hasClass("button-see-me")||(e.addClass("button-see-me"),_.delay(function(){e.removeClass("button-see-me")},800))}}):(a.cleanRegistered(),_do_register_=function(){_.each(t,function(n,o){if(a.isUIControlAlreadyRegistered(n.settingControlId))l.section(l.control(n.settingControlId).section()).expanded(!0);else{if(!l.has(n.settingControlId)){var t=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_stylesheet",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforLevelOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};l(n.settingControlId,function(e){e.bind(_.debounce(t,a.SETTING_UPDATE_BUFFER))});var e=c[o]||{},i=a.getModuleStartingValue(n.module_type);if("no_starting_value"!==i&&_.isObject(i)){var r=d.extend(!0,{},i);e=d.extend(r,e)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,level_id:s.id,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.id,priority:20,settings:{default:n.settingControlId}}).done(function(){}),l.control(n.settingControlId,function(e){!0===n.expandAndFocusOnInit&&e.focus({completeCallback:function(){}}),e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})}})},l.section(s.id,function(e){_do_register_(),"module"===s.level&&a.generateModuleOptionSwitcherUI(s.id,s.action),e.container.find(".accordion-section-title").first().hide();var t=e.container.find(".customize-section-title h3");0<t.length&&t.find(".sek-level-option-icon").length<1&&t.find(".customize-action").after('<i class="fas fa-sliders-h sek-level-option-icon"></i>'),a.scheduleModuleAccordion.call(e,{expand_first_control:!1})}),l.CZR_Helpers.register({origin:"nimble",what:"section",id:s.id,title:sektionsLocalizedData.i18n["Settings for the"]+" "+s.level,panel:sektionsLocalizedData.sektionsPanelId,priority:10}).done(function(){})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{getLocalSkopeOptionId:function(){var e=l.czr_skopeBase.getSkopeProperty("skope_id");return _.isEmpty(e)?(l.errare("czr_sektions::getLocalSkopeOptionId => empty skope_id "),""):sektionsLocalizedData.optPrefixForSektionsNotSaved+e+"__localSkopeOptions"},generateUIforLocalSkopeOptions:function(s,e){var a=this,i=a.getLocalSkopeOptionId();if(a.isUIControlAlreadyRegistered(i))return e;if(a.localOptionsRegistrationParams={},_.isUndefined(sektionsLocalizedData.localOptionsMap)||!_.isObject(sektionsLocalizedData.localOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid localOptionsMap"),e;!0===s.clean_settings&&a.cleanRegisteredLocalOptionSettings(),_.each(sektionsLocalizedData.localOptionsMap,function(e,t){switch(t){case"template":a.localOptionsRegistrationParams[t]={settingControlId:i+"__template",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page template"],expandAndFocusOnInit:!1,icon:'<i class="material-icons sek-level-option-icon">check_box_outline_blank</i>'};break;case"local_header_footer":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_header_footer",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page header and footer"],icon:'<i class="material-icons sek-level-option-icon">web</i>'};break;case"widths":a.localOptionsRegistrationParams[t]={settingControlId:i+"__widths",module_type:e,controlLabel:sektionsLocalizedData.i18n["Inner and outer widths"],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'};break;case"custom_css":a.localOptionsRegistrationParams[t]={settingControlId:i+"__custom_css",module_type:e,controlLabel:sektionsLocalizedData.i18n["Custom CSS"],icon:'<i class="material-icons sek-level-option-icon">code</i>'};break;case"local_performances":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_performances",module_type:e,controlLabel:sektionsLocalizedData.i18n["Page speed optimizations"],icon:'<i class="fas fa-fighter-jet sek-level-option-icon"></i>'};break;case"local_reset":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_reset",module_type:e,controlLabel:sektionsLocalizedData.i18n["Reset the sections in this page"],icon:'<i class="material-icons sek-level-option-icon">cached</i>'};break;case"local_revisions":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_revisions",module_type:e,controlLabel:sektionsLocalizedData.i18n["Revision history of local sections"],icon:'<i class="material-icons sek-level-option-icon">history</i>'};break;case"import_export":a.localOptionsRegistrationParams[t]={settingControlId:i+"__local_imp_exp",module_type:e,controlLabel:sektionsLocalizedData.i18n["Export / Import"],icon:'<i class="material-icons sek-level-option-icon">import_export</i>'};break;default:l.errare("::generateUIforLocalOptions => an option group could not be registered => "+e,t)}});var t=l(a.localSectionsSettingId())(),c=d.extend(!0,{},_.isObject(t.local_options)?t.local_options:{});return _do_register_=function(){_.each(a.localOptionsRegistrationParams,function(n,o){var e=a.getModuleStartingValue(n.module_type),t=_.isObject(c[o])?c[o]:{};if(!l.has(n.settingControlId)){var i=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_preview",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforLocalSkopeOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};if(l(n.settingControlId,function(e){e.bind(_.debounce(i,a.SETTING_UPDATE_BUFFER))}),"no_starting_value"!==e&&_.isObject(e)){var r=d.extend(!0,{},e);t=d.extend(r,t)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:t,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.SECTION_ID_FOR_LOCAL_OPTIONS,priority:10,settings:{default:n.settingControlId}}).done(function(){l.control(n.settingControlId,function(e){e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})})})},_do_register_(),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforGlobalOptions:function(s,e){var a=this,i=sektionsLocalizedData.optPrefixForSektionsNotSaved+sektionsLocalizedData.optNameForGlobalOptions;if(a.isUIControlAlreadyRegistered(i))return e;var n={};if(_.isUndefined(sektionsLocalizedData.globalOptionsMap)||!_.isObject(sektionsLocalizedData.globalOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid globalOptionsMap"),e;_.each(sektionsLocalizedData.globalOptionsMap,function(e,t){switch(t){case"global_text":n[t]={settingControlId:i+"__global_text",module_type:e,controlLabel:sektionsLocalizedData.i18n["Global text options for Nimble sections"],icon:'<i class="material-icons sek-level-option-icon">text_format</i>'};break;case"widths":n[t]={settingControlId:i+"__widths",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide inner and outer sections widths"],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'};break;case"breakpoint":n[t]={settingControlId:i+"__breakpoint",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide breakpoint for Nimble sections"],expandAndFocusOnInit:!1,icon:'<i class="material-icons sek-level-option-icon">devices</i>'};break;case"global_header_footer":n[t]={settingControlId:i+"__header_footer",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide header and footer"],icon:'<i class="material-icons sek-level-option-icon">web</i>'};break;case"performances":n[t]={settingControlId:i+"__performances",module_type:e,controlLabel:sektionsLocalizedData.i18n["Site wide page speed optimizations"],icon:'<i class="fas fa-fighter-jet sek-level-option-icon"></i>'};break;case"recaptcha":n[t]={settingControlId:i+"__recaptcha",module_type:e,controlLabel:sektionsLocalizedData.i18n["Protect your contact forms with Google reCAPTCHA"],icon:'<i class="material-icons sek-level-option-icon">security</i>'};break;case"global_revisions":n[t]={settingControlId:i+"__global_revisions",module_type:e,controlLabel:sektionsLocalizedData.i18n["Revision history of global sections"],icon:'<i class="material-icons sek-level-option-icon">history</i>'};break;case"global_imp_exp":n[t]={settingControlId:i+"__global_imp_exp",module_type:e,controlLabel:sektionsLocalizedData.i18n["Export / Import global sections"],icon:'<i class="material-icons sek-level-option-icon">import_export</i>'};break;case"global_reset":n[t]={settingControlId:i+"__global_reset",module_type:e,controlLabel:sektionsLocalizedData.i18n["Reset the sections displayed in global locations"],icon:'<i class="material-icons sek-level-option-icon">cached</i>'};break;case"beta_features":n[t]={settingControlId:i+"__beta_features",module_type:e,controlLabel:sektionsLocalizedData.i18n["Beta features"],icon:'<i class="material-icons sek-level-option-icon">widgets</i>'};break;default:l.errare("::generateUIforGlobalOptions => an option group could not be registered => "+e,t)}});var c=sektionsLocalizedData.globalOptionDBValues;return _do_register_=function(){_.each(n,function(n,o){if(!l.has(n.settingControlId)){var t=function(e,t,i){try{a.updateAPISettingAndExecutePreviewActions({isGlobalOptions:!0,defaultPreviewAction:"refresh_preview",uiParams:s,options_type:o,settingParams:{to:e,from:t,args:i}})}catch(e){l.errare("::generateUIforGlobalOptions => Error in updateAPISettingAndExecutePreviewActions",e)}};l(n.settingControlId,function(e){e.bind(_.debounce(t,a.SETTING_UPDATE_BUFFER))});var e=a.getModuleStartingValue(n.module_type),i=_.isObject(c)&&!_.isEmpty(c[o])?c[o]:{};if("no_starting_value"!==e&&_.isObject(e)){var r=d.extend(!0,{},e);i=d.extend(r,i)}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"setting",id:n.settingControlId,dirty:!1,value:i,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:s.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.SECTION_ID_FOR_GLOBAL_OPTIONS,priority:20,settings:{default:n.settingControlId},track:!1}).done(function(){l.control(n.settingControlId,function(e){e.container.attr("data-sek-expanded","false");var t=e.container.find("label > .customize-control-title"),i=t.html();t.html(['<span class="sek-ctrl-accordion-title">',i,"</span>"].join("")),_.isUndefined(n.icon)||t.addClass("sek-flex-vertical-center").prepend(n.icon),t.prepend('<span class="sek-animated-arrow" data-name="icon-chevron-down"><span class="fa fa-chevron-down"></span></span>'),e.container.attr("data-sek-expanded","false"),!0===n.expandAndFocusOnInit&&"false"==e.container.attr("data-sek-expanded")&&t.trigger("click")})})})},_do_register_(),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(Se,Ce){Ce.extend(CZRSeksPrototype,{updateAPISetting:function(Ie){var we=this,Me=Ce.Deferred();(Ie=Ie||{}).is_global_location="global"===Ie.scope||we.isGlobalLocation(Ie);var De=Ie.is_global_location?we.getGlobalSectionsSettingId():we.localSectionsSettingId(),t=function(){var r,t,s,i,n,o,a,e,c,l,d=Se(De)(),p=_.isObject(d)?Ce.extend(!0,{},d):we.getDefaultSektionSettingValue(Ie.is_global_location?"global":"local"),u="_not_injection_scenario_";switch(p.collection=_.isArray(p.collection)?p.collection:we.getDefaultSektionSettingValue(Ie.is_global_location?"global":"local").collection,Ie.action){case"sek-add-section":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.location))throw new Error("updateAPISetting => "+Ie.action+" => missing location");if(!0===Ie.is_nested){if(s=we.getLevelModel(Ie.in_column,p.collection),"no_match"==(c=we.getLevelModel(Ie.in_sektion,p.collection))){Me.reject("updateAPISetting => "+Ie.action+" => no grand parent sektion found");break}if(!0===c.is_nested){Me.reject(""),Se.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]+"</strong>","</span>"].join("")});break}if("no_match"==s){Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}s.collection=_.isArray(s.collection)?s.collection:[],s.collection.push({id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})}else{if("no_match"==(r=we.getLevelModel(Ie.location,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.isArray(r.collection)?r.collection:[],_.each(r.collection,function(e,t){Ie.before_section===e.id&&(l=t),Ie.after_section===e.id&&(l=t+1)}),r.collection=_.isArray(r.collection)?r.collection:[],r.collection.splice(l,0,{id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion})}break;case"sek-duplicate-section":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.location))throw new Error("updateAPISetting => "+Ie.action+" => missing location");var m;try{m=we.cloneLevel(Ie.id)}catch(e){Se.errare("updateAPISetting => "+Ie.action,e);break}we.maybeGenerateNewItemIdsForCrudModules(m);var f=we.getLevelPositionInCollection(Ie.id,p.collection);if(!0===Ie.is_nested){if("no_match"==(s=we.getLevelModel(Ie.in_column,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}s.collection=_.isArray(s.collection)?s.collection:[],s.collection.splice(parseInt(f+1,10),0,m)}else{if("no_match"==(r=we.getLevelModel(Ie.location,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.isArray(r.collection)?r.collection:[],r.collection.splice(parseInt(f+1,10),0,m)}a=m.id;break;case"sek-remove-section":if(!0===Ie.is_nested)"no_match"!=(s=we.getLevelModel(Ie.in_column,p.collection))?(s.collection=_.isArray(s.collection)?s.collection:[],s.collection=_.filter(s.collection,function(e){return e.id!=Ie.id})):Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched");else{if("no_match"==(r=we.getLevelModel(Ie.location,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}r.collection=_.filter(r.collection,function(e){return e.id!=Ie.id})}break;case"sek-move-section":var g,h,v=we.getLevelModel(Ie.to_location,p.collection);if(_.isEmpty(v)||"no_match"==v)throw new Error("updateAPISetting => "+Ie.action+" => missing target location");if(Ie.from_location!=Ie.to_location){var k=we.getLevelModel(Ie.from_location,p.collection);if(_.isEmpty(k)||"no_match"==k)throw new Error("updateAPISetting => "+Ie.action+" => missing source location");k.collection=_.isArray(k.collection)?k.collection:[],g=we.getLevelModel(Ie.id,k.collection),h=Ce.extend(!0,{},g),k.collection=_.filter(k.collection,function(e){return e.id!=Ie.id})}v.collection=_.isArray(v.collection)?v.collection:[],n=Ce.extend(!0,[],v.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_location!=Ie.to_location&&e==h.id)o.push(h);else{if(t=we.getLevelModel(e,n),_.isEmpty(t)||"no_match"==t)throw new Error("updateAPISetting => "+Ie.action+" => missing section candidate");o.push(t)}}),v.collection=o;break;case"sek-move-section-up-down":if(parentCandidate=we.getLevelModel(Ie.is_nested?Ie.in_column:Ie.location,p.collection),_.isEmpty(parentCandidate)||"no_match"==parentCandidate)throw new Error("updateAPISetting => "+Ie.action+" => missing target location");parentCandidate.collection=_.isArray(parentCandidate.collection)?parentCandidate.collection:[],n=Ce.extend(!0,[],parentCandidate.collection),o=Ce.extend(!0,[],parentCandidate.collection);var y=_.findIndex(n,function(e){return e.id===Ie.id});if(-1===y)throw new Error("updateAPISetting => "+Ie.action+" => invalid index");var b,z,I=Ie.direction||"up",w=n.length===y+1,M=0===y,D=we.activeLocationsInfo(),S=_.isArray(D)?_.findWhere(D,{id:Ie.location}):{};b=_.isObject(S)&&S.is_global,z=_.isObject(S)&&S.is_header_footer;var C=[];_.isArray(D)&&_.each(we.activeLocationsInfo(),function(e){e.is_global||e.is_header_footer||C.push(e.id)});var x,P=_.findIndex(C,function(e){return e===Ie.location}),E=!Ie.is_nested&&!b&&!z,R=0===P,L=C.length===P+1;E&&w&&"up"!==I&&!L?(x=C[P+1],we.getLevelModel(x,p.collection).collection.unshift(n[y]),parentCandidate.collection.pop(),Ie.new_location=x):E&&M&&"up"===I&&!R?(x=C[P-1],we.getLevelModel(x,p.collection).collection.push(n[y]),parentCandidate.collection.shift(),Ie.new_location=x):"up"!==I&&n.length===y+1?Se.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["The section cannot be moved lower."]+"</strong>","</span>"].join("")}):"up"===I&&0===y?Se.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["The section cannot be moved higher."]+"</strong>","</span>"].join("")}):(o[y]=n["up"===I?y-1:y+1],o["up"===I?y-1:y+1]=n[y],parentCandidate.collection=o);break;case"sek-add-column":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(t=we.getLevelModel(Ie.in_sektion,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],we.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}we.resetColumnsWidthInSection(t),t.collection.push({id:Ie.id,level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"sek-remove-column":if("no_match"!=(t=we.getLevelModel(Ie.in_sektion,p.collection))){if(1===_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["A section must have at least one column."]);break}t.collection=_.isArray(t.collection)?t.collection:[],t.collection=_.filter(t.collection,function(e){return e.id!=Ie.id}),we.resetColumnsWidthInSection(t)}else Se.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched");break;case"sek-duplicate-column":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(t=we.getLevelModel(Ie.in_sektion,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],we.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){Me.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}var O;try{O=we.cloneLevel(Ie.id)}catch(e){Se.errare("updateAPISetting => "+Ie.action,e);break}we.maybeGenerateNewItemIdsForCrudModules(O);var j=we.getLevelPositionInCollection(Ie.id,p.collection);a=O.id,t.collection.splice(parseInt(j+1,10),0,O),we.resetColumnsWidthInSection(t);break;case"sek-resize-columns":if(Ie.col_number<2)break;var A=we.getLevelModel(Ie.resized_column,p.collection),T=we.getLevelModel(Ie.sister_column,p.collection);if("no_match"==A){Se.errare("updateAPISetting => "+Ie.action+" => no resized column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no resized column matched");break}var V=function(e,t){var i=Ce.extend(!0,{},e.options||{});return i.width=_.isObject(i.width)&&i.width["custom-width"]?i.width:{},i.width["custom-width"]=t,e.options=i,we.cachedElements.$body.find('[data-sek-width-range-column-id="'+e.id+'"]').val(t).trigger("input",{is_resize_column_trigger:!0}),t},Z=V(A,parseFloat(Ie.resizedColumnWidthInPercent));Z=parseFloat(Z);var F=we.getLevelModel(Ie.in_sektion,p.collection),U=_.filter(F.collection,function(e){return e.id!=A.id&&e.id!=T.id}),N=parseFloat(Z.toFixed(3));_.isEmpty(U)||_.each(U,function(e){var t,i,n;currentColWidth=(t=e,i="_not_set_",n=_.isObject(t.options)?t.options:{},!_.isEmpty(n)&&n.width&&n.width["custom-width"]&&(i=parseFloat(1*n.width["custom-width"])),i),("_not_set_"===currentColWidth||!_.isNumber(1*currentColWidth)||_.isEmpty(currentColWidth+"")||currentColWidth<1)&&(currentColWidth=V(e,parseFloat((100/Ie.col_number).toFixed(3)))),N=parseFloat((N+currentColWidth).toFixed(3))}),V(T,parseFloat((100-N).toFixed(3)));break;case"sek-move-column":var B,Q,G=we.getLevelModel(Ie.to_sektion,p.collection);if(_.isEmpty(G)||"no_match"==G)throw new Error("updateAPISetting => "+Ie.action+" => missing target sektion");if(Ie.from_sektion!=Ie.to_sektion){var H=we.getLevelModel(Ie.from_sektion,p.collection);if(_.isEmpty(H)||"no_match"==H)throw new Error("updateAPISetting => "+Ie.action+" => missing source column");H.collection=_.isArray(H.collection)?H.collection:[],B=we.getLevelModel(Ie.id,H.collection),Q=Ce.extend(!0,{},B),H.collection=_.filter(H.collection,function(e){return e.id!=Ie.id}),we.resetColumnsWidthInSection(H)}G.collection=_.isArray(G.collection)?G.collection:[],n=Ce.extend(!0,[],G.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_sektion!=Ie.to_sektion&&e==Q.id)o.push(Q);else{if(s=we.getLevelModel(e,n),_.isEmpty(s)||"no_match"==s)throw new Error("updateAPISetting => moveColumn => missing columnCandidate");o.push(s)}}),G.collection=o,we.resetColumnsWidthInSection(G);break;case"sek-add-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if(_.isEmpty(Ie.module_type))throw new Error("updateAPISetting => "+Ie.action+" => missing module_type");if("no_match"===(s=we.getLevelModel(Ie.in_column,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}l=0,s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_module_or_nested_section===e.id&&(l=t),Ie.after_module_or_nested_section===e.id&&(l=t+1)});var W={id:Ie.id,level:"module",module_type:Ie.module_type,ver_ini:sektionsLocalizedData.nimbleVersion};"no_starting_value"!==(e=we.getModuleStartingValue(Ie.module_type))&&(W.value=e),s.collection.splice(l,0,W);break;case"sek-duplicate-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");if("no_match"==(s=we.getLevelModel(Ie.in_column,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}var $;s.collection=_.isArray(s.collection)?s.collection:[];try{$=we.cloneLevel(Ie.id)}catch(e){Se.errare("updateAPISetting => "+Ie.action,e),Me.reject("updateAPISetting => "+Ie.action+" => error when cloning the level");break}we.maybeGenerateNewItemIdsForCrudModules($);var q=we.getLevelPositionInCollection(Ie.id,p.collection);a=$.id,s.collection.splice(parseInt(q+1,10),0,$);break;case"sek-remove-module":if(_.isEmpty(Ie.id))throw new Error("updateAPISetting => "+Ie.action+" => missing id");"no_match"!=(s=we.getLevelModel(Ie.in_column,p.collection))?(s.collection=_.isArray(s.collection)?s.collection:[],s.collection=_.filter(s.collection,function(e){return e.id!=Ie.id})):Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched");break;case"sek-move-module":var Y,J,K;if(Y=we.getLevelModel(Ie.to_column,p.collection),_.isEmpty(Y)||"no_match"==Y)throw new Error("updateAPISetting => "+Ie.action+" => missing target column");if(Ie.from_column!=Ie.to_column){var X;if(X=we.getLevelModel(Ie.from_column,p.collection),_.isEmpty(X)||"no_match"==X)throw new Error("updateAPISetting => "+Ie.action+" => missing source column");X.collection=_.isArray(X.collection)?X.collection:[],J=we.getLevelModel(Ie.id,p.collection),K=Ce.extend(!0,{},J),X.collection=_.filter(X.collection,function(e){return e.id!=Ie.id})}if(Y.collection=_.isArray(Y.collection)?Y.collection:[],n=Ce.extend(!0,[],Y.collection),o=[],_.each(Ie.newOrder,function(e){if(Ie.from_column!=Ie.to_column&&e==K.id)o.push(K);else{if(i=we.getLevelModel(e,p.collection),_.isEmpty(i)||"no_match"==i)throw new Error("updateAPISetting => "+Ie.action+" => missing moduleCandidate");o.push(i)}}),o.length!=_.uniq(o).length)throw new Error("updateAPISetting => "+Ie.action+" => there are duplicated modules in column : "+Y.id);Y.collection=o;break;case"sek-set-module-value":i=we.getLevelModel(Ie.id,p.collection);var ee=Ie.settingParams.args.moduleRegistrationParams.control,te=Ie.settingParams.args.moduleRegistrationParams.id,ie=ee.czr_Module(te);_.isEmpty(ie)?Se.errare("updateAPISetting => missing parentModuleInstance",Ie):isMultiItemModule=ie.isMultiItem();var ne=isMultiItemModule?[]:{};if(_.each(Ie.value||(isMultiItemModule?[]:{}),function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(ne[t]=e)}),"no_match"==i){Se.errare("updateAPISetting => "+Ie.action+" => no module matched",Ie),Me.reject("updateAPISetting => "+Ie.action+" => error no module matched");break}if(_.isEmpty(Ie.options_type)){Se.errare("updateAPISetting => "+Ie.action+" => missing options_type"),Me.reject("updateAPISetting => "+Ie.action+" => missing options_type");break}if("__no_option_group_to_be_updated_by_children_modules__"===Ie.options_type)i.value=ne;else{var oe=Ce.extend(!0,{},_.isEmpty(i.value)?{}:i.value);oe[Ie.options_type]=ne,i.value=oe}break;case"sek-generate-level-options-ui":var re=we.getLevelModel(Ie.id,p.collection),se={};if("no_match"===re){Se.errare("updateAPISetting => "+Ie.action+" => no parent sektion matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent sektion matched");break}var ae=Ce.extend(!0,{},re.options||{});_.each(Ie.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(se[t]=e)}),_.isEmpty(Ie.options_type)&&Se.errare("updateAPISetting => "+Ie.action+" => missing options_type"),ae[Ie.options_type]=se,re.options=ae;break;case"sek-generate-local-skope-options-ui":se={};var ce=Ce.extend(!0,{},_.isObject(p.local_options)?p.local_options:{});if(_.each(Ie.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(se[t]=e)}),_.isEmpty(Ie.options_type)||!_.isString(Ie.options_type))Se.errare("updateAPISetting => "+Ie.action+" => missing options_type");else{var le={};le[Ie.options_type]=se,p.local_options=Ce.extend(ce,le)}break;case"sek-add-content-in-new-sektion":var de=0;if("no_match"==(r=we.getLevelModel(Ie.location,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no location matched"),Me.reject("updateAPISetting => "+Ie.action+" => no location matched");break}switch(r.collection=_.isArray(r.collection)?r.collection:[],_.each(r.collection,function(e,t){Ie.before_section===e.id&&(de=t),Ie.after_section===e.id&&(de=t+1)}),Ie.content_type){case"module":e=we.getModuleStartingValue(Ie.content_id),r.collection.splice(de,0,{id:Ie.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid(),level:"column",collection:[{id:Ie.droppedModuleId,level:"module",module_type:Ie.content_id,value:"no_starting_value"!==e?e:null,ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"preset_section":u=Ce.Deferred();var pe=function(e,i){var t=!1;if(!_.isEmpty(Ie.sektion_to_replace)){var n=we.getLevelModel(Ie.sektion_to_replace,p.collection);"no_match"===n&&(Se.errare("updateAPISetting => "+Ie.action+" => no sektionToReplace matched"),Me.reject("updateAPISetting => "+Ie.action+" => no sektionToReplace matched")),t=!0===n.is_nested}var o=sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid();Ie.collection_of_preset_section_id=Ie.collection_of_preset_section_id||[],Ie.collection_of_preset_section_id.push(o),t?("no_match"===(s=we.getLevelModel(Ie.in_column,p.collection))&&(Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched")),s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_section===e.id&&(i=t),Ie.after_section===e.id&&(i=t+1)}),s.collection.splice(i,0,{id:o,is_nested:!0,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})):r.collection.splice(i,0,{id:o,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})};we.getPresetSectionCollection({is_user_section:Ie.is_user_section,presetSectionId:Ie.content_id}).fail(function(e){Se.errare("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()",e),Me.reject("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){var t;_.isObject(e)&&!_.isEmpty(e)||(Se.errare("updateAPISetting => "+Ie.action+" => preset section type not found or empty : "+Ie.content_id,e),Me.reject("updateAPISetting => "+Ie.action+" => preset section type not found or empty")),t=e,we.preparePresetSectionForInjection(t).fail(function(e){Me.reject("updateAPISetting => error when preparePresetSectionForInjection => "+Ie.action+" => "+e),u.reject(e)}).done(function(e){"section"===e.collection[0].level?_.each(e.collection,function(e){pe(e,de),de++}):pe(e,de),u.resolve()})})}break;case"sek-add-preset-section-in-new-nested-sektion":if("no_match"===(s=we.getLevelModel(Ie.in_column,p.collection))){Se.errare("updateAPISetting => "+Ie.action+" => no parent column matched"),Me.reject("updateAPISetting => "+Ie.action+" => no parent column matched");break}var ue=0;if(s.collection=_.isArray(s.collection)?s.collection:[],_.each(s.collection,function(e,t){Ie.before_module_or_nested_section===e.id&&(ue=t),Ie.after_module_or_nested_section===e.id&&(ue=t+1)}),"no_match"==(c=we.getLevelModel(Ie.in_sektion,p.collection))){Me.reject("updateAPISetting => "+Ie.action+" => no grand parent sektion found");break}if(!0===c.is_nested){Me.reject(""),Se.previewer.trigger("sek-notify",{type:"info",duration:3e4,message:['<span style="font-size:0.95em">',"<strong>"+sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]+"</strong>","</span>"].join("")});break}u=Ce.Deferred();we.getPresetSectionCollection({is_user_section:Ie.is_user_section,presetSectionId:Ie.content_id}).fail(function(){Se.errare("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()",_er_),Me.reject("updateAPISetting => "+Ie.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){var t;_.isObject(e)&&!_.isEmpty(e)||(Se.errare("updateAPISetting => "+Ie.action+" => preset section type not found or empty : "+Ie.content_id,e),Me.reject("updateAPISetting => "+Ie.action+" => preset section type not found or empty")),t=e,we.preparePresetSectionForInjection(t).fail(function(e){Me.reject("updateAPISetting => error when preparePresetSectionForInjection => "+Ie.action+" => "+e),u.reject(e)}).done(function(e){var t=function(e,t){t=t||0;var i=sektionsLocalizedData.optPrefixForSektionsNotSaved+we.guid();Ie.collection_of_preset_section_id=Ie.collection_of_preset_section_id||[],Ie.collection_of_preset_section_id.push(i),s.collection.splice(t,0,{id:i,level:"section",collection:e.collection,options:e.options||{},is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})};"section"===e.collection[0].level?_.each(e.collection,function(e){t(e,ue),ue++}):t(e,ue),u.resolve()})});break;case"sek-update-fonts":var _e=we.sniffGFonts({is_global_location:Ie&&!0===Ie.is_global_location});!_.isEmpty(Ie.font_family)&&_.isString(Ie.font_family)&&-1<Ie.font_family.indexOf("gfont")&&!_.contains(_e,Ie.font_family)&&_e.push(Ie.font_family),p.fonts=_e;break;case"sek-restore-revision":p=Ie.revision_value;break;case"sek-import-from-file":if(Se.infoLog("sek-import-from-file",Ie),_.isUndefined(Ie.imported_content.data)||_.isUndefined(Ie.imported_content.metas)){Se.errare("updateAPISetting::sek-import-from-file => invalid imported content",imported_content);break}var me=_.isArray(Ie.imported_content.data.collection)?Ce.extend(!0,[],Ie.imported_content.data.collection):[];if(!0===Ie.assign_missing_locations){var fe=Ie.imported_content.metas.active_locations,ge=Se.czr_sektions.activeLocations(),he=_.first(ge);if(!_.isEmpty(he)&&!_.isEmpty(fe)&&_.isArray(fe)){var ve=Ce(fe).not(ge).get(),ke=we.getLevelModel(he,p.collection),ye=we.getLevelModel(he,Ie.imported_content.data.collection),be=[];ke.collection=_.isArray(ke.collection)?ke.collection:[],ye.collection=_.isArray(ye.collection)?ye.collection:[],_.each(fe,function(e){var t=we.getLevelModel(e,me);_.isEmpty(t.collection)||(be=_.union(be,t.collection))}),ye.collection=be,Ie.imported_content.data.collection=_.filter(Ie.imported_content.data.collection,function(e){return!_.contains(ve,e.id)})}}!0===Ie.keep_existing_sections&&(_.each(me,function(e){var t=we.getLevelModel(e.id,p.collection);if(!_.isEmpty(t.collection)){var i=we.getLevelModel(e.id,Ie.imported_content.data.collection);i.collection=_.union(t.collection,i.collection)}}),p.fonts&&!_.isEmpty(p.fonts)&&_.isArray(p.fonts)&&(Ie.imported_content.data.fonts=_.isArray(Ie.imported_content.data.fonts)?Ie.imported_content.data.fonts:[],Ie.imported_content.data.fonts=_.uniq(_.union(p.fonts,Ie.imported_content.data.fonts)))),p=Ie.imported_content.data;break;case"sek-reset-collection":try{p=Se.czr_sektions.resetCollectionSetting(Ie.scope)}catch(e){Se.errare("sek-reset-collection => error when firing resetCollectionSetting()",e)}}if("pending"==Me.state()){var ze=function(){var e=Ie.settingParams&&Ie.settingParams.from&&Ie.settingParams.to;e&&_.isEqual(Ie.settingParams.from,Ie.settingParams.to)?Me.reject("updateAPISetting => main sektion setting change => the new setting value is unchanged when firing action : "+Ie.action):!e&&_.isEqual(d,p)?Me.reject("updateAPISetting => the new setting value is unchanged when firing action : "+Ie.action):null!==we.validateSettingValue(p,Ie.is_global_location?"global":"local")?(Se(De)(p,Ie),Ie.cloneId=a,Me.resolve(Ie)):Me.reject("Validation problem for action "+Ie.action)};"_not_injection_scenario_"===u?(ze(),"pending"===Me.state()&&Se.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")):u.done(function(){ze(),"pending"===Me.state()&&Se.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")}).fail(function(e){Se.errare("updateAPISetting => __presetSectionInjected__ failed",e)})}};return Se(De,function(e){t()}),Me.promise()},resetColumnsWidthInSection:function(e){_.each(e.collection,function(e){e.options&&e.options.width&&e.options.width["custom-width"]&&(e.options.width=_.omit(e.options.width,"custom-width")),e.width=""})},_maybeFetchSectionsFromServer:function(){var e,t=Ce.Deferred();return _.isEmpty(Se.sek_presetSections)?(_.isUndefined(Se.sek_fetchingPresetSections)||"pending"!=Se.sek_fetchingPresetSections.state()?(e=wp.ajax.post("sek_get_preset_sections",{nonce:Se.settings.nonce.save}),Se.sek_fetchingPresetSections=e):e=Se.sek_fetchingPresetSections,e.done(function(e){Se.sek_presetSections=e,t.resolve(Se.sek_presetSections)}).fail(function(e){t.reject(e)})):t.resolve(Se.sek_presetSections),t.promise()},getPresetSectionCollection:function(n){var o=this,r=Ce.Deferred();return n.is_user_section?wp.ajax.post("sek_get_user_section_json",{nonce:Se.settings.nonce.save,section_post_name:n.presetSectionId}).done(function(e){if(!_.isObject(e)||_.isEmpty(e)||_.isUndefined(e.data))throw Se.errare("getPresetSectionCollection => preset section type not found or empty : "+n.presetSectionId,e),new Error("getPresetSectionCollection => preset section type not found or empty");var t=Ce.extend({},!0,e.data);t.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),t.collection=o.setPresetOrUserSectionIds(t.collection),t.ver_ini=sektionsLocalizedData.nimbleVersion,t.collection=o.setPresetSectionVersion(t.collection),r.resolve(t)}).fail(function(e){r.reject(e)}):o._maybeFetchSectionsFromServer().fail(function(e){r.reject(e)}).done(function(e){var t=Ce.extend(!0,{},_.isObject(e)?e:{});if(_.isEmpty(t))throw new Error("getPresetSectionCollection => Invalid collection");if(_.isEmpty(t[n.presetSectionId]))throw new Error('getPresetSectionCollection => the preset section : "'+n.presetSectionId+'" has not been found in the collection');var i=t[n.presetSectionId];i.collection=o.setPresetOrUserSectionIds(i.collection),i.ver_ini=sektionsLocalizedData.nimbleVersion,i.collection=o.setPresetSectionVersion(i.collection),r.resolve(i)}),r.promise()},setPresetOrUserSectionIds:function(e){var t=this;return _.isArray(e)&&_.each(e,function(e){e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+t.guid(),_.isArray(e.collection)&&t.setPresetOrUserSectionIds(e.collection)}),e},setPresetSectionVersion:function(e){var t=this;return _.each(e,function(e){e.ver_ini=sektionsLocalizedData.nimbleVersion,_.isArray(e.collection)&&t.setPresetSectionVersion(e.collection)}),e},preparePresetSectionForInjection:function(o){var i=this,n={},r=Ce.Deferred();i.maybeGenerateNewItemIdsForCrudModules(o);var s=function(e){return _.each(e,function(e,t){_.isObject(e)||_.isArray(e)?s(e):_.isString(e)&&-1!=e.indexOf("__img_url__")&&(_.has(n,e)||(n[e]=i.importAttachment(e.replace("__img_url__",""))))}),n},a=function(i,n){return _.each(i,function(e,t){_.isObject(e)||_.isArray(e)?a(e,n):_.isString(e)&&-1!=e.indexOf("__img_url__")&&_.has(n,e)&&_.isObject(n[e])&&(i[t]=n[e].id)}),o};return i.whenAllPromisesInParallel(s(o)).done(function(e){var t=a(o,e);r.resolve(t)}).fail(function(e){r.reject(e)}),r.promise()}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(n,o){o.extend(CZRSeksPrototype,{cleanRegistered:function(t){var i=this,e=o.extend(!0,[],i.registered()||[]);n.trigger("sek-before-clean-registered"),e=_.filter(e,function(e){if("setting"!==e.what&&n[e.what].has(e.id)){if(!_.isEmpty(t)&&e.id!==t)return;_.isFunction(n[e.what](e.id).trigger)&&i.trigger("sek-ui-pre-removal",{what:e.what,id:e.id}),o.when(n[e.what](e.id).container.remove()).done(function(){n[e.what].remove(e.id),i.trigger("sek-ui-removed",{what:e.what,id:e.id})})}return"setting"===e.what}),i.registered(e)},cleanRegisteredLocalOptionSettings:function(){var t=this.getLocalSkopeOptionId(),e=o.extend(!0,[],this.registered()||[]);e=_.filter(e,function(e){return e.id&&-1!==e.id.indexOf(t)&&n.has(e.id)&&n.remove(e.id),e.id&&-1===e.id.indexOf(t)}),this.registered(e)},cleanRegisteredLevelSettingsAfterHistoryNavigation:function(){var e=o.extend(!0,[],this.registered()||[]);e=_.filter(e,function(e){return!_.isEmpty(e.level)&&"setting"===e.what&&n.has(e.id)&&n.remove(e.id),_.isEmpty(e.level)&&"setting"===e.what}),this.registered(e)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(p,u){u.extend(CZRSeksPrototype,{rootPanelFocus:function(){p.section.has(p.czr_activeSectionId())?p.section(p.czr_activeSectionId()).expanded(!1):p.section.each(function(e){e.expanded(!1)}),p.panel.each(function(e){e.expanded(!1)})},guid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()},getGlobalSectionsSettingId:function(){return sektionsLocalizedData.settingIdForGlobalSections},getParentSectionFromColumnId:function(i,n){var s=this,a="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=p(n)(),r=_.isObject(t)?u.extend(!0,{},t):u.extend(!0,{},s.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){var t;"no_match"==a&&("section"==e.level&&(t=_.findWhere(e.collection,{id:i})),_.isEmpty(t)?_.isArray(e.collection)&&c(i,e.collection,n,o):a=e)}),a};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,n,e,t)}):c(i,n),a},isGlobalLocation:function(e){var t=!1;return e=e||{},_.has(e,"is_global_location")?t=e.is_global_location:_.has(e,"scope")?t="global"===e.scope:_.isEmpty(e.location)?_.isEmpty(e.in_sektion)?_.isEmpty(e.id)||(t=this.isChildOfAGlobalLocation(e.id)):t=this.isChildOfAGlobalLocation(e.in_sektion):t=this.isChildOfAGlobalLocation(e.location),t},isChildOfAGlobalLocation:function(e){var r=this,s=function(t,e){var i="no_match";if(_.isUndefined(e)){var n=p(r.getGlobalSectionsSettingId())(),o=_.isObject(n)?u.extend(!0,{},n):r.getDefaultSektionSettingValue("global");e=_.isArray(o.collection)?o.collection:[]}return _.each(e,function(e){"no_match"==i&&(t===e.id?i=e:_.isArray(e.collection)&&(i=s(t,e.collection)))}),i};return"no_match"!==s(e)},isHeaderLocation:function(e){var t=this.activeLocationsInfo(),i=_.isArray(t)?_.findWhere(t,{id:e}):{};return _.isObject(i)&&i.is_header},isFooterLocation:function(e){var t=self.activeLocationsInfo(),i=_.isArray(t)?_.findWhere(t,{id:e}):{};return _.isObject(i)&&i.is_footer},getLevelModel:function(i,n){var s=this,a="no_match",c=function(t,e,i,n){if(_.isUndefined(e)){var o=p(i)(),r=_.isObject(o)?u.extend(!0,{},o):u.extend(!0,{},s.getDefaultSektionSettingValue(n));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){"no_match"==a&&(t===e.id?a=e:_.isArray(e.collection)&&c(t,e.collection,i,n))}),a};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,n,e,t)}):c(i,n),a},getLevelPositionInCollection:function(i,n){var s=this,a="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=p(n)(),r=_.isObject(t)?u.extend(!0,{},t):u.extend(!0,{},s.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}_.each(e,function(e,t){"no_match"==a&&(i===e.id?a=t:_.isArray(e.collection)&&c(i,e.collection,n,o))})};return _.isEmpty(n)?_.each({local:s.localSectionsSettingId(),global:s.getGlobalSectionsSettingId()},function(e,t){"no_match"===a&&c(i,e,t,n)}):c(i,n),a},getLevelProperty:function(e){if(e=_.extend({id:"",property:""},e),_.isEmpty(e.id))p.errare("getLevelProperty => invalid id provided");else{var t=this.getLevelModel(e.id);if("no_match"!=t){if(_.isObject(t))return t[e.property];p.errare("getLevelProperty => invalid model for id : "+e.id,t)}else p.errare("getLevelProperty => no level model found for id : "+e.id)}},cloneLevel:function(e){var t=this,i=t.getLevelModel(e);if("no_match"==i)throw new Error("cloneLevel => no match for level id : "+e);var n=u.extend(!0,{},i),o=function(e){if(_.isEmpty(e.id))throw new Error("cloneLevel => missing level id");if(e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+t.guid(),!_.isEmpty(e.collection)){if(!_.isArray(e.collection))throw new Error("cloneLevel => the collection must be an array for level id : "+e.id);_.each(e.collection,function(e){e.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+t.guid(),o(e)})}return e};return o(n)},getDefaultItemModelFromRegisteredModuleData:function(e){if(!this.isModuleRegistered(e))return{};if(sektionsLocalizedData.registeredModules[e].is_father)return p.errare("getDefaultItemModelFromRegisteredModuleData => Father modules should be treated specifically"),{};var t=sektionsLocalizedData.registeredModules[e].tmpl["item-inputs"],i={id:"",title:""};return _.each(t,function(e,t){switch(t){case"tabs":_.each(e,function(e){_.each(e.inputs,function(e,t){i[t]=e.default||""})});break;default:i[t]=e.default||""}}),i},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sektionsLocalizedData.registeredModules[e][t]:"not_set"},isModuleRegistered:function(e){return sektionsLocalizedData.registeredModules&&!_.isUndefined(sektionsLocalizedData.registeredModules[e])},isMultiItemsModule:function(e){return sektionsLocalizedData.registeredModules[e]&&!0===sektionsLocalizedData.registeredModules[e].is_crud},maybeGenerateNewItemIdsForCrudModules:function(t){var i=this;return(_.isArray(t)||_.isObject(t))&&_.each(t,function(e){_.isArray(t)&&_.isObject(e)&&e.id&&!_.has(e,"level")?-1===e.id.indexOf(sektionsLocalizedData.optPrefixForSektionsNotSaved)&&(e.id=i.guid()):(_.isArray(e)||_.isObject(e))&&i.maybeGenerateNewItemIdsForCrudModules(e)}),t},sniffGFonts:function(e){var o=this,r=[],s=function(i,n,e){if(_.isUndefined(e)){var t=p(i)();e=_.isObject(t)?u.extend(!0,{},t):u.extend(!0,{},o.getDefaultSektionSettingValue(n))}_.each(e,function(e,t){_.isString(t)&&"_css"===t.substr(t.length-4)&&!0===o.inputIsAFontFamilyModifier(t)&&-1<e.indexOf("gfont")&&!_.contains(r,e)&&r.push(e),(_.isArray(e)||_.isObject(e))&&s(i,n,e)})};return(e=e||{is_global_location:!1}).is_global_location?s(o.getGlobalSectionsSettingId(),"global"):s(o.localSectionsSettingId(),"local"),r},sniffAllFonts:function(){var n=this,o=[],r=function(i,e){if(_.isUndefined(e)){var t=p(i)();e=_.isObject(t)?u.extend(!0,{},t):u.extend(!0,{},n.getDefaultSektionSettingValue(localOrGlobal))}_.each(e,function(e,t){_.isString(t)&&_.isString(e)&&(-1<e.indexOf("[gfont]")||-1<e.indexOf("[cfont]"))&&o.push(e),(_.isArray(e)||_.isObject(e))&&r(i,e)})};return _.each([n.localSectionsSettingId(),n.getGlobalSectionsSettingId(),sektionsLocalizedData.optNameForGlobalOptions],function(e){r(e)}),o},getInputDefaultValue:function(i,n,e){var o=this;if(o.cachedDefaultInputValues=o.cachedDefaultInputValues||{},o.cachedDefaultInputValues[n]=o.cachedDefaultInputValues[n]||{},_.has(o.cachedDefaultInputValues[n],i))return o.cachedDefaultInputValues[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))p.errare("getInputDefaultValue => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))p.errare("getInputDefaultValue => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r="no_default_value_specified";return _.each(e,function(e,t){"no_default_value_specified"===r&&(i!==t||_.isUndefined(e.default)||(r=e.default),"no_default_value_specified"===r&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputDefaultValue(i,n,e)),"no_default_value_specified"!==r&&(o.cachedDefaultInputValues[n][i]=r))}),r}p.errare("getInputDefaultValue => Father modules should be treated specifically")}},getInputType:function(i,n,e){var o=this;if(o.cachedInputTypes=o.cachedInputTypes||{},o.cachedInputTypes[n]=o.cachedInputTypes[n]||{},_.has(o.cachedInputTypes[n],i))return o.cachedInputTypes[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))p.errare("getInputType => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))p.errare("getInputType => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r="no_input_type_specified";return _.each(e,function(e,t){"no_input_type_specified"===r&&(i!==t||_.isUndefined(e.input_type)||(r=e.input_type),"no_input_type_specified"===r&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputType(i,n,e)),"no_input_type_specified"!==r&&(o.cachedInputTypes[n][i]=r))}),r}p.errare("getInputType => Father modules should be treated specifically")}},getInputRegistrationParams:function(i,n,e){var o=this;if(o.cachedInputRegistrationParams=o.cachedInputRegistrationParams||{},o.cachedInputRegistrationParams[n]=o.cachedInputRegistrationParams[n]||{},_.has(o.cachedInputRegistrationParams[n],i))return o.cachedInputRegistrationParams[n][i];if(_.isUndefined(sektionsLocalizedData.registeredModules))p.errare("getInputRegistrationParams => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))p.errare("getInputRegistrationParams => missing "+n+" in sektionsLocalizedData.registeredModules");else{if(!sektionsLocalizedData.registeredModules[n].is_father){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules[n].tmpl);var r={};return _.each(e,function(e,t){_.isEmpty(r)&&(i!==t||_.isUndefined(e.input_type)||(r=e),_.isEmpty(r)&&(_.isArray(e)||_.isObject(e))&&(r=o.getInputRegistrationParams(i,n,e)),_.isEmpty(r)||(o.cachedInputRegistrationParams[n][i]=r))}),r}p.errare("getInputRegistrationParams => Father modules should be treated specifically")}},inputIsAFontFamilyModifier:function(i,e){var n=this;if(n.cachedFontFamilyModifier=n.cachedFontFamilyModifier||{},_.has(n.cachedFontFamilyModifier,i))return n.cachedFontFamilyModifier[i];if(!_.isUndefined(sektionsLocalizedData.registeredModules)){_.isUndefined(e)&&(e=sektionsLocalizedData.registeredModules);var o="not_set";return _.each(e,function(e,t){"not_set"===o&&(i!==t||_.isUndefined(e.input_type)||(o=!_.isUndefined(e.refresh_fonts)&&e.refresh_fonts),"not_set"===o&&(_.isArray(e)||_.isObject(e))&&(o=n.inputIsAFontFamilyModifier(i,e)),"not_set"!==o&&(n.cachedFontFamilyModifier[i]=o))}),o}p.errare("inputIsAFontFamilyModifier => missing sektionsLocalizedData.registeredModules")},getModuleStartingValue:function(e){var a=this;if(!sektionsLocalizedData.registeredModules)return p.errare("getModuleStartingValue => missing sektionsLocalizedData.registeredModules"),"no_starting_value";if(_.isUndefined(sektionsLocalizedData.registeredModules[e]))return p.errare("getModuleStartingValue => the module type "+e+" is not registered"),"no_starting_value";var t,i,n,c=function(e){return readyStartValues=[],_.each(e,function(e){if(_.isObject(e)){var t=u.extend(!0,{},e);t.id=p.czr_sektions.guid(),readyStartValues.push(t)}else p.errare("getModuleStartingValue => multi-item module => items should be objects for module "+mod_type)}),readyStartValues},l={},d=(t=e,sektionsLocalizedData.registeredModules[t]&&sektionsLocalizedData.registeredModules[t].starting_value?sektionsLocalizedData.registeredModules[t].starting_value:{});return n=e,sektionsLocalizedData.registeredModules[n]&&!0===sektionsLocalizedData.registeredModules[n].is_father?_.each((i=e,sektionsLocalizedData.registeredModules[i]&&sektionsLocalizedData.registeredModules[i].children?sektionsLocalizedData.registeredModules[i].children:{}),function(e,t){var i,n,o,r,s=(i=e,r=(o=d)[n=t]?o[n]:{},a.isMultiItemsModule(i)&&_.isArray(r)?c(r):r);_.isEmpty(s)||(l[t]=s)}):l=a.isMultiItemsModule(e)&&_.isArray(d)?c(d):d,_.isEmpty(l)?"no_starting_value":l},selectNextTabbableOrFocusable:function(e){var t=u(e),i=u(":focus"),n=0;if(1===i.length){var o=t.index(i);o+1<t.length&&(n=o+1)}t.eq(n).focus()},selectPrevTabbableOrFocusable:function(e){var t=u(e),i=u(":focus"),n=t.length-1;if(1===i.length){var o=t.index(i);0<o&&(n=o-1)}t.eq(n).focus()},setupSelectInput:function(e){var n=this,t=(n.input_parent,n.module,p.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type)),i={params:e=_.isEmpty(e)?t.choices:e};if(n.module.trigger("nimble-set-select-input-options",i),e=i.params,!_.isEmpty(e)&&_.isObject(e))switch(n.type){case"simpleselect":_.each(e,function(e,t){var i={value:t,html:e};t==n()?u.extend(i,{selected:"selected"}):"px"===t&&u.extend(i,{selected:"selected"}),u("select[data-czrtype]",n.container).append(u("<option>",i))}),u("select[data-czrtype]",n.container).selecter();break;case"multiselect":var o=n();o=_.isString(o)?[o]:o,o=_.isArray(o)?o:[],_.each(e,function(e,t){var i={value:t,html:e};_.contains(o,t)&&u.extend(i,{selected:"selected"}),u("select[data-czrtype]",n.container).append(u("<option>",i))}),u("select[data-czrtype]",n.container).czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),u("select[data-czrtype]",n.container).on("change",function(){0===u(this).find("option:selected").length&&n([])});break;default:p.errare("::setupSelectInput => invalid input type => "+n.type)}else p.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+n.id+" in module "+n.module.module_type)},maybeSetupDeviceSwitcherForInput:function(){var n=this;if(!n.previewedDevice){var e=['<span class="sek-input-device-switcher">','<i data-sek-device="desktop" class="sek-switcher preview-desktop active" title="'+sektionsLocalizedData.i18n["Settings on desktops"]+'"></i>','<i data-sek-device="tablet" class="sek-switcher preview-tablet" title="'+sektionsLocalizedData.i18n["Settings on tablets"]+'"></i>','<i data-sek-device="mobile" class="sek-switcher preview-mobile" title="'+sektionsLocalizedData.i18n["Settings on mobiles"]+'"></i>',"</span>"].join(" ");n.container.find(".customize-control-title").first().prepend(e),n.previewedDevice=new p.Value(p.previewedDevice()),syncWithPreviewedDevice=function(e){e.stopPropagation(),n.container.find("[data-sek-device]").removeClass("active"),u(this).addClass("active");var t,i="desktop";try{i=u(this).data("sek-device")}catch(e){p.errare("maybeSetupDeviceSwitcherForInput => error when binding sek-switcher",e)}try{p.previewedDevice(i)}catch(e){p.errare("maybeSetupDeviceSwitcherForInput => error when setting the previewed device",e)}n.previewedDevice(i),_.isUndefined(e.isTrigger)&&n.module&&n.module.control&&n.module.control.params.section&&(t=n.module.control.params.section,_.delay(function(){p.previewer.send("sek-animate-to-level",{id:t})},600))},n.container.on("click","[data-sek-device]",syncWithPreviewedDevice);var t=n.container.find('[data-sek-device="'+p.previewedDevice()+'"]');0<t.length&&t.trigger("click")}},scheduleModuleAccordion:function(e){e=e||{expand_first_control:!0};var i=this;if(!0!==i.container.data("sek-module-accordion-has-been-setup")&&(u(i.container).on("click",".customize-control label > .customize-control-title",function(e){e.stopPropagation();var t=u(this).closest(".customize-control");"no"!==t.attr("data-sek-accordion")&&(i.container.find(".customize-control").not(t).each(function(){u(this).attr("data-sek-accordion")||u(this).attr("data-sek-expanded","false")}),t.attr("data-sek-expanded","false"==t.attr("data-sek-expanded")?"true":"false"),t.trigger("true"==t.attr("data-sek-expanded")?"sek-accordion-expanded":"sek-accordion-collapsed"))}),i.container.data("sek-module-accordion-has-been-setup",!0),e.expand_first_control)){var t=_.filter(i.controls(),function(e){return!e.params||!e.params.sek_registration_params||!1!==e.params.sek_registration_params.has_accordion}),n=_.first(t);_.isObject(n)&&!_.isEmpty(n.id)&&p.control(n.id,function(e){e.container.one("items-collection-populated",function(){u(this).find("label > .customize-control-title").trigger("click")}),e.container.trigger("sek-accordion-expanded")})}},isPromise:function(e){return e&&"function"==typeof e.then&&String(u.Deferred().then)===String(e.then)},whenAllPromisesInParallel:function(e){var i=this,t=u.Deferred(),n=[],o=_.keys(e);return _.each(e,function(e,t){n.push(u.Deferred(function(t){(i.isPromise(e)?e:u.Deferred()).done(t.resolve).fail(function(e){t.reject(e)})}))}),u.when.apply(this,n).done(function(){var i={},e=Array.prototype.slice.call(arguments);_.each(e,function(e,t){i[o[t]]=e}),t.resolve(i)}).fail(t.reject),t},whenAllPromisesInSerie:function(t,i,n,o){i=i||0,n=n||{},o=o||u.Deferred();var r=this;if(_.isArray(t)){var e=t[i];(r.isPromise(e)?e:u.Deferred(function(e){e.resolve()})).always(function(e){n[i]=e,i+1==t.length?o.resolve(n):i+1<t.length&&r.whenAllPromisesInSerie(t,i+1,n,o)})}return o},importAttachment:function(t){return wp.ajax.post("sek_import_attachment",{img_url:t,nonce:p.settings.nonce.save}).fail(function(e){p.errare("sek_import_attachment ajax action failed for image "+t,e)})},cleanIds:function(e){e.id="";var t=this;return _.each(e.collection,function(e){e.id="",_.isArray(e.collection)&&t.cleanIds(e)}),e},getDefaultSektionSettingValue:function(e){return!_.isUndefined(e)&&_.contains(["local","global"],e)||p.errare("getDefaultSektionSettingValue => the skope should be set to local or global"),"global"===e?sektionsLocalizedData.defaultGlobalSektionSettingValue:sektionsLocalizedData.defaultLocalSektionSettingValue},scheduleVisibilityOfInputId:function(t,i){var n=this.input_parent;if(!_.isFunction(i)||_.isEmpty(t))throw new Error("::scheduleVisibilityOfInputId => error when firing for input id : "+this.id);if(!n.czr_Input.has(t))throw new Error("::scheduleVisibilityOfInputId => missing input id : "+t);n.czr_Input(t).visible(i()),this.bind(function(e){n.czr_Input(t).visible(i())})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(c,m){m.extend(CZRSeksPrototype,{setupDnd:function(){var t=this;t.bind("sek-refresh-dragzones",function(e){!0!="draggable"in document.createElement("span")&&c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification("drag-drop-support",{type:"error",message:sektionsLocalizedData.i18n["This browser does not support drag and drop. You might need to update your browser or use another one."],dismissible:!0})),_.delay(function(){c.notifications.remove("drag-drop-support")},1e4)}),t.setupNimbleDragZones(e.input_container)}),c.previewer.bind("ready",function(){try{t.setupNimbleDropZones()}catch(e){c.errare("::setupDnd => error on self.setupNimbleDropZones()",e)}_.isUndefined(_.findWhere(t.registered(),{module_type:"sek_intro_sec_picker_module"}))&&_.isUndefined(_.findWhere(t.registered(),{module_type:"sek_module_picker_module"}))||t.rootPanelFocus()}),t.reactToDrop()},setupNimbleDragZones:function(e){var n=this,o=function(){c.notifications.add(new c.Notification("missing-injection-target",{type:"info",message:sektionsLocalizedData.i18n["You first need to click on a target ( with a + icon ) in the preview."],dismissible:!0})),_.delay(function(){c.notifications.remove("missing-injection-target")},3e4)};e.find('[draggable="true"]').each(function(){m(this).on("dragstart",function(e){(function(e){n.lastClickedTargetInPreview({}),e.originalEvent.dataTransfer.setData("sek-content-type",m(this).data("sek-content-type")),e.originalEvent.dataTransfer.setData("sek-eligible-for-module-dropzones",m(this).data("sek-eligible-for-module-dropzones")),e.originalEvent.dataTransfer.setData("sek-content-id",m(this).data("sek-content-id")),e.originalEvent.dataTransfer.setData("sek-section-type",m(this).data("sek-section-type")),e.originalEvent.dataTransfer.setData("sek-is-user-section",m(this).data("sek-is-user-section")),n.dndData={content_type:e.originalEvent.dataTransfer.getData("sek-content-type"),eligible_for_module_dropzones:"true"===e.originalEvent.dataTransfer.getData("sek-eligible-for-module-dropzones"),content_id:e.originalEvent.dataTransfer.getData("sek-content-id"),section_type:e.originalEvent.dataTransfer.getData("sek-section-type"),is_user_section:"true"===e.originalEvent.dataTransfer.getData("sek-is-user-section")};try{e.originalEvent.dataTransfer.setData("browserSupport","browserSupport"),e.originalEvent.dataTransfer.clearData("browserSupport")}catch(e){c.panel(sektionsLocalizedData.sektionsPanelId,function(e){c.notifications.add(new c.Notification("drag-drop-support",{type:"error",message:sektionsLocalizedData.i18n["This browser does not support drag and drop. You might need to update your browser or use another one."],dismissible:!0})),_.delay(function(){c.notifications.remove("drag-drop-support")},1e4)})}m(this).addClass("sek-dragged"),n.cachedElements.$body.addClass("sek-dragging"),c.previewer.send("sek-drag-start",{content_type:n.dndData.content_type,eligible_for_module_dropzones:n.dndData.eligible_for_module_dropzones})}).call(m(this),e)}).on("dragend",function(e){(function(e){n.cachedElements.$body.removeClass("sek-dragging"),m(this).removeClass("sek-dragged"),c.previewer.send("sek-drag-stop")}).call(m(this),e)}).dblclick(function(e){(function(e){var t,i=n.lastClickedTargetInPreview();!_.isEmpty(i)&&i.id?t=n.dnd_getDropZonesElements().find('[data-sek-id="'+i.id+'"]').find(".sek-module-drop-zone-for-first-module").first():o(),t&&0<t.length?(c.czr_sektions.trigger("sek-content-dropped",{drop_target_element:t,location:t.closest('[data-sek-level="location"]').data("sek-id"),before_module_or_nested_section:t.data("drop-zone-before-module-or-nested-section"),after_module_or_nested_section:t.data("drop-zone-after-module-or-nested-section"),before_section:t.data("drop-zone-before-section"),after_section:t.data("drop-zone-after-section"),content_type:m(this).attr("data-sek-content-type"),content_id:m(this).attr("data-sek-content-id"),section_type:m(this).attr("data-sek-section-type"),is_user_section:"true"===m(this).attr("data-sek-is-user-section")}),n.lastClickedTargetInPreview({})):(o(),c.errare("Double click insertion => the target zone was not found"))}).call(m(this),e)})})},setupNimbleDropZones:function(){var t=this;if(this.$dropZones=this.dnd_getDropZonesElements(),this.preDropElement=m("<div>",{class:sektionsLocalizedData.preDropElementClass,html:""}),this.$dropZones.length<1)throw new Error("::setupNimbleDropZones => invalid Dom element");this.$dropZones.each(function(){var e=m(this);!0!==e.data("zone-droppable-setup")&&(t.enterOverTimer=null,e.on("dragenter dragover",sektionsLocalizedData.dropSelectors,function(e){_.isNull(t.enterOverTimer)&&(t.enterOverTimer=!0,_.delay(function(){t.currentMousePosition&&t.currentMousePosition+""==e.clientY+""+e.clientX?t.enterOverTimer=null:(t.currentMousePosition=e.clientY+""+e.clientX,t.dnd_toggleDragApproachClassesToDropZones(e))},100)),t.dnd_canDrop({targetEl:m(this),evt:e})&&(e.stopPropagation(),t.dnd_OnEnterOver(m(this),e))}).on("dragleave drop",sektionsLocalizedData.dropSelectors,function(e){switch(e.type){case"dragleave":t.dnd_isOveringDropTarget(m(this),e)||t.dnd_cleanOnLeaveDrop(m(this),e);break;case"drop":this.$cachedDropZoneCandidates=null,t.dnd_canDrop({targetEl:m(this),evt:e})&&(e.preventDefault(),t.dnd_onDrop(m(this),e),t.dnd_cleanOnLeaveDrop(m(this),e),c.previewer.send("sek-drag-stop"))}}).data("zone-droppable-setup",!0))})},dnd_isInTarget:function(e,t){var i=t.clientY,n=t.clientX,o=e[0].getBoundingClientRect(),r=n<=o.right&&o.left<=n;return i>=o.top&&o.bottom>=i&&r},dnd_toggleDragApproachClassesToDropZones:function(p){var u=this;this.$dropZones=this.$dropZones||this.dnd_getDropZonesElements(),this.$cachedDropZoneCandidates=_.isEmpty(this.$cachedDropZoneCandidates)?this.$dropZones.find(".sek-drop-zone"):this.$cachedDropZoneCandidates,this.distanceTable=[],this.$dropZones.find(".sek-drop-zone").each(function(){var e,t,i=p.clientY,n=p.clientX,o=m(this)[0].getBoundingClientRect(),r=Math.abs(i-(o.bottom-(o.bottom-o.top)/2)),s=(Math.abs(o.top-i),Math.abs(n-(o.right-(o.right-o.left)/2))),a=(o.right,o.left,r<50),c=s<50,l=n<=o.right&&o.left<=n,d=i>=o.top&&o.bottom>=i;u.distanceTable.push({el:m(this),dist:d&&l?0:(e=s,t=r,Math.sqrt(e*e+t*t))}),m(this).removeClass("sek-drag-is-in"),(a||d)&&(c||l)?(m(this).removeClass("sek-drag-is-approaching"),m(this).removeClass("sek-drag-is-close"),m(this).addClass("sek-drag-is-very-close")):(m(this).removeClass("sek-drag-is-approaching"),m(this).removeClass("sek-drag-is-close"),m(this).removeClass("sek-drag-is-very-close")),m(this).removeClass("sek-drag-is-in")});var t=_.min(_.pluck(u.distanceTable,"dist"));u.$dropTargetCandidate=null,_.each(u.distanceTable,function(e){_.isNull(u.$dropTargetCandidate)&&t===e.dist&&(u.$dropTargetCandidate=e.el)}),u.$dropTargetCandidate&&0<u.$dropTargetCandidate.length&&u.dnd_isInTarget(u.$dropTargetCandidate,p)&&u.$dropTargetCandidate.addClass("sek-drag-is-in"),u.enterOverTimer=null},dnd_getPreDropElementContent:function(e){var t,i,n=m(e.currentTarget);switch(this.dndData.content_type){case"module":t=sektionsLocalizedData.i18n["Insert here"],0<n.length&&("between-sections"!==n.data("sek-location")&&"in-empty-location"!==n.data("sek-location")||(t=sektionsLocalizedData.i18n["Insert in a new section"])),i='<div class="sek-module-placeholder-content"><p>'+t+"</p></div>";break;case"preset_section":i='<div class="sek-module-placeholder-content"><p>'+(t=sektionsLocalizedData.i18n["Insert a new section here"])+"</p></div>";break;default:c.errare("::dnd_getPreDropElementContent => invalid content type provided")}return i},dnd_getDropZonesElements:function(){return m(c.previewer.targetWindow().document)},dnd_canDrop:function(e){var t=this,i=(e=_.extend({targetEl:{},evt:{}},e||{})).targetEl;if(!_.isObject(i)||i.length<1)return!1;if(i.closest('[data-sek-level="location"]').length<1)return!1;var n=i.hasClass("sek-content-preset_section-drop-zone"),o=i.hasClass("sek-module-drop-zone-for-first-module"),r=!0===i.closest('[data-sek-level="location"]').data("sek-is-header-location"),s=!0===i.closest('[data-sek-level="location"]').data("sek-is-footer-location"),a="preset_section"===t.dndData.content_type&&"content"===t.dndData.section_type,c=function(e){m(".sek-no-drop-possible-message",i).length<1&&i.append(['<div class="sek-no-drop-possible-message">','<i class="material-icons">not_interested</i>',e,"</div>"].join(""))};return!!i.hasClass("sek-drop-zone")&&(!t.dndData.is_user_section&&(r||s)&&a?(c(r?sektionsLocalizedData.i18n["Header location only accepts modules and pre-built header sections"]:sektionsLocalizedData.i18n["Footer location only accepts modules and pre-built footer sections"]),!1):s&&"preset_section"===t.dndData.content_type&&"header"===t.dndData.section_type?(c(sektionsLocalizedData.i18n["You can't drop a header section in the footer location"]),!1):r&&"preset_section"===t.dndData.content_type&&"footer"===t.dndData.section_type?(c(sektionsLocalizedData.i18n["You can't drop a footer section in the header location"]),!1):"preset_section"===t.dndData.content_type&&!0===t.dndData.eligible_for_module_dropzones&&!n||("preset_section"===t.dndData.content_type&&n||"module"===t.dndData.content_type&&!n||"preset_section"===t.dndData.content_type&&o))},dnd_OnEnterOver:function(e,t){t.preventDefault(),!0!==e.data("is-drag-entered")&&(e.data("is-drag-entered",!0),e.addClass("sek-active-drop-zone"),this.$dropZones.addClass("sek-is-dragging"));try{this.dnd_mayBePrintPreDropElement(e,t)}catch(e){c.errare("Error when trying to insert the preDrop content",e)}},dnd_cleanOnLeaveDrop:function(e,t){var i=this;this.$dropZones=this.$dropZones||this.dnd_getDropZonesElements(),this.preDropElement.remove(),this.$dropZones.removeClass("sek-is-dragging"),m(sektionsLocalizedData.dropSelectors,this.$dropZones).each(function(){i.dnd_cleanSingleDropTarget(m(this))})},dnd_cleanSingleDropTarget:function(e){_.isEmpty(e)||e.length<1||(e.data("is-drag-entered",!1),e.data("preDrop-position",!1),e.removeClass("sek-active-drop-zone"),e.find(".sek-drop-zone").removeClass("sek-drag-is-close"),e.find(".sek-drop-zone").removeClass("sek-drag-is-approaching"),e.removeClass("sek-feed-me-seymore"),e.find(".sek-no-drop-possible-message").remove())},dnd_getPosition:function(e,t){var i=e[0].getBoundingClientRect(),n=i.height;return"before"===e.data("preDrop-position")?n+=this.preDropElement.outerHeight():"after"===e.data("preDrop-position")&&(n-=this.preDropElement.outerHeight()),0<t.originalEvent.clientY-i.top-n/2?"after":"before"},dnd_mayBePrintPreDropElement:function(e,t){var i=this,n=e.data("preDrop-position"),o=this.dnd_getPosition(e,t);if(n!==o&&!0!==i.isPrintingPreDrop){i.isPrintingPreDrop=!0,this.dnd_cleanSingleDropTarget(this.$currentPreDropTarget);var r="between-sections"===e.data("sek-location")||"in-empty-location"===e.data("sek-location");m.when(i.preDropElement.remove()).done(function(){e["before"===o?"prepend":"append"](i.preDropElement).find("."+sektionsLocalizedData.preDropElementClass).html(i.dnd_getPreDropElementContent(t)),e.find("."+sektionsLocalizedData.preDropElementClass).toggleClass("in-new-sektion",r),e.data("preDrop-position",o),e.addClass("sek-feed-me-seymore"),i.isPrintingPreDrop=!1,i.$currentPreDropTarget=e})}},dnd_isOveringDropTarget:function(e,t){var i=e[0].getBoundingClientRect(),n=t.clientX,o=t.clientY,r=i.left,s=i.right,a=i.top,c=i.bottom;return r<=n&&n-r<=s-r&&(a<=o&&o-a<=c-a)},dnd_onDrop:function(e,t){t.stopPropagation();this.dnd_getPosition(e,t),e.index();c.czr_sektions.trigger("sek-content-dropped",{drop_target_element:e,location:e.closest('[data-sek-level="location"]').data("sek-id"),before_module_or_nested_section:e.data("drop-zone-before-module-or-nested-section"),after_module_or_nested_section:e.data("drop-zone-after-module-or-nested-section"),before_section:e.data("drop-zone-before-section"),after_section:e.data("drop-zone-after-section"),content_type:t.originalEvent.dataTransfer.getData("sek-content-type"),eligible_for_module_dropzones:"true"===t.originalEvent.dataTransfer.getData("sek-eligible-for-module-dropzones"),content_id:t.originalEvent.dataTransfer.getData("sek-content-id"),section_type:t.originalEvent.dataTransfer.getData("sek-section-type"),is_user_section:"true"===t.originalEvent.dataTransfer.getData("sek-is-user-section")})},reactToDrop:function(){this.bind("sek-content-dropped",function(e){try{!function(e){if(!_.isObject(e))throw new Error("Invalid params provided");if(e.drop_target_element.length<1)throw new Error("Invalid drop_target_element");var t,i=e.drop_target_element,n="content-in-column";switch(i.data("sek-location")){case"between-sections":n="content-in-a-section-to-create";break;case"in-empty-location":e.is_first_section=!0,e.send_to_preview=!1,n="content-in-empty-location";break;case"between-columns":n="content-in-new-column"}"preset_section"===e.content_type&&(i.hasClass("sek-module-drop-zone-for-first-module")?1<(t=i.closest('div[data-sek-level="section"]')).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length?(n="preset-section-in-a-nested-section-to-create",e.is_nested=!0,e.in_column=i.closest('[data-sek-level="column"]').data("sek-id"),e.in_sektion=t.data("sek-id")):(e.sektion_to_replace=t.data("sek-id"),e.after_section=e.sektion_to_replace,e.in_column=t.closest('[data-sek-level="column"]').data("sek-id"),n="content-in-a-section-to-replace"):("between-sections"===i.data("sek-location")&&(n="content-in-a-section-to-create"),"between-modules-and-nested-sections"===i.data("sek-location")&&e.eligible_for_module_dropzones&&(n="preset-section-eligible-for-module-dropzones-in-new-nested-sektion",e.is_nested=!0,e.in_column=i.closest('[data-sek-level="column"]').data("sek-id"),t=i.closest('div[data-sek-level="section"]'),e.in_sektion=t.data("sek-id"))));switch(n){case"content-in-column":var o=i.closest("div[data-sek-level]");if(o.length<1)throw new Error("No valid level dom element found");var r=o.data("sek-level"),s=o.data("sek-id");if(_.isEmpty(r)||_.isEmpty(s))throw new Error("No valid level id found");c.previewer.trigger("sek-add-module",{level:r,id:s,in_column:i.closest('div[data-sek-level="column"]').data("sek-id"),in_sektion:i.closest('div[data-sek-level="section"]').data("sek-id"),before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section,content_type:e.content_type,content_id:e.content_id});break;case"content-in-a-section-to-create":case"content-in-a-section-to-replace":case"content-in-empty-location":c.previewer.trigger("sek-add-content-in-new-sektion",e);break;case"preset-section-in-a-nested-section-to-create":c.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",e);break;case"preset-section-eligible-for-module-dropzones-in-new-nested-sektion":var a=m.extend(!0,{},e);a=m.extend(a,{before_module_or_nested_section:e.before_module_or_nested_section,after_module_or_nested_section:e.after_module_or_nested_section}),c.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",a);break;default:c.errare("sek control panel => ::reactToDrop => invalid drop case : "+n)}}(e)}catch(e){c.errare("error when reactToDrop",e)}})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{setupTinyMceEditor:function(){var n=this;l.sekEditorExpanded=new l.Value(!1),n.editorEventsListenerSetup=!1,n.$editorPane=d("#czr-customize-content_editor-pane"),n.$editorDragbar=d("#czr-customize-content_editor-dragbar"),n.$preview=d("#customize-preview"),n.$collapseSidebar=d(".collapse-sidebar"),n.attachResizeEventsToEditor();d("#customize-theme-controls").on("click",'[data-czr-action="open-tinymce-editor"]',function(){var e=d(this).data("czr-control-id"),t=d(this).data("czr-input-id");_.isEmpty(e)||_.isEmpty(t)?l.errare("toggle-tinymce-editor => missing input or control id"):l.sekEditorExpanded(!0)}),l.sekEditorExpanded.bind(function(e,t,i){!function(){l.sekTinyMceEditor=tinyMCE.get(sektionsLocalizedData.idOfDetachedTinyMceTextArea);var e=function(){!1===n.editorEventsListenerSetup&&(n.editorEventsListenerSetup=!0,n.trigger("sek-tiny-mce-editor-bound-and-instantiated"))};l.sekTinyMceEditor&&(l.sekTinyMceEditor.initialized?e():l.sekTinyMceEditor.on("init",function(){e()}))}(),e&&l.sekTinyMceEditor&&l.sekTinyMceEditor.focus(),d(document.body).toggleClass("czr-customize-content_editor-pane-open",e),n.cachedElements.$window[e?"on":"off"]("resize",function(){l.sekEditorExpanded()&&_.delay(function(){n.czrResizeEditor(window.innerHeight-n.$editorPane.height())},50)}),e?(n.czrResizeEditor(window.innerHeight-n.$editorPane.height()),_.delay(function(){n.cachedElements.$window.trigger("resize")},100)):(n.$preview.css("bottom",""),n.$collapseSidebar.css("bottom",""))}),d("#czr-customize-content_editor-pane").on("click",'[data-czr-action="close-tinymce-editor"]',function(){l.sekEditorExpanded(!1)}),d("#customize-controls").on("click",function(e){"open-tinymce-editor"!=d(e.target).data("czr-action")&&l.sekEditorExpanded(!1,{context:"clicked anywhere"})}),d(document).on("keydown",_.throttle(function(e){27===e.keyCode&&l.sekEditorExpanded(!1)},50)),n.bind("sek-tiny-mce-editor-bound-and-instantiated",function(){var e=d(l.sekTinyMceEditor.iframeElement).contents().get(0);d(e).on("keydown",_.throttle(function(e){27===e.keyCode&&l.sekEditorExpanded(!1)},50))}),_.each(["sek-click-on-inactive-zone","sek-add-section","sek-add-column","sek-add-module","sek-remove","sek-move","sek-duplicate","sek-resize-columns","sek-add-content-in-new-sektion","sek-pick-content","sek-edit-options","sek-edit-module","sek-notify"],function(e){"sek-edit-module"!=e?l.previewer.bind(e,function(){l.sekEditorExpanded(!1)}):l.previewer.bind(e,function(e){l.sekEditorExpanded("czr_tiny_mce_editor_module"===e.module_type)})})},attachResizeEventsToEditor:function(){var t=this;d("#czr-customize-content_editor-pane").on("mousedown mouseup",function(e){if(("mousedown"!==e.type||"czr-customize-content_editor-dragbar"===d(e.target).attr("id")||d(e.target).hasClass("czr-resize-handle"))&&l.sekEditorExpanded())switch(e.type){case"mousedown":d(document).on("mousemove."+sektionsLocalizedData.idOfDetachedTinyMceTextArea,function(e){e.preventDefault(),d(document.body).addClass("czr-customize-content_editor-pane-resize"),d("#czr-customize-content_editor_ifr").css("pointer-events","none"),t.czrResizeEditor(e.pageY)});break;case"mouseup":d(document).off("mousemove."+sektionsLocalizedData.idOfDetachedTinyMceTextArea),d(document.body).removeClass("czr-customize-content_editor-pane-resize"),d("#czr-customize-content_editor_ifr").css("pointer-events","")}})},czrResizeEditor:function(e){var t,i=this,n=window.innerHeight,o=(window.innerWidth,{}),r=d("#czr-customize-content_editor_ifr"),s=d("#wp-czr-customize-content_editor-tools"),a=i.$editorPane.find(".mce-toolbar-grp"),c=i.$editorPane.find(".mce-statusbar");l.sekEditorExpanded()&&(_.isNaN(e)||(t=n-e),o.height=t,o.components=s.outerHeight()+a.outerHeight()+c.outerHeight(),t<40&&(o.height=40),n-1<t&&(o.height=n-1),n<i.$editorPane.outerHeight()&&(o.height=n),i.$preview.css("bottom",o.height),i.$editorPane.css("height",o.height),r.css("height",o.height-o.components))}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,a){a.extend(CZRSeksPrototype,{export_template:function(e){e=e||{},e=a.extend({scope:"local"},e);var i=[],t={sek_export_nonce:d.settings.nonce.save,skope_id:"local"===e.scope?d.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId,active_locations:d.czr_sektions.activeLocations()};_.each(t,function(e,t){i.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),wp.ajax.post("sek_pre_export_checks",{nonce:d.settings.nonce.save,sek_export_nonce:d.settings.nonce.save,skope_id:"local"===e.scope?d.czr_skopeBase.getSkopeProperty("skope_id"):sektionsLocalizedData.globalSkopeId,active_locations:d.czr_sektions.activeLocations()}).done(function(){a(window).off("beforeunload"),window.location.href=[sektionsLocalizedData.customizerURL,"?",i.join("&")].join(""),a(window).on("beforeunload")}).fail(function(e){d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Export failed"],encodeURIComponent(e)].join(" "),"</strong>","</span>"].join("")})})},getTmplJsonFromUserTmpl:function(e){var t=a.Deferred();return wp.ajax.post("sek_get_user_tmpl_json",{nonce:d.settings.nonce.save,tmpl_post_name:e}).done(function(e){t.resolve({success:!0,tmpl_json:e})}).fail(function(e){t.resolve({success:!1}),d.errorLog("ajax getTmplJsonFromUserTmpl => error",e),d.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n error when fetching the template</strong>","</span>"].join("")})}),t},getTmplJsonFromApi:function(i){var n=a.Deferred();return a.getJSON("https://api.nimblebuilder.com/wp-json/nimble/v2/cravan").done(function(e){_.isObject(e)&&e.lib&&e.lib.templates||(d.errare("::import_nimble_template success but invalid response => ",e),n.resolve({success:!1}));var t=e.lib.templates[i];t||(d.errare("::import_nimble_template => the requested template is not available",e.lib.templates),d.previewer.trigger("sek-notify",{notif_id:"missing-tmpl",type:"info",duration:1e4,message:['<span style="color:#0075a2">',"<strong>","@missi18n the requested template is not available","</strong>","</span>"].join("")}),n.resolve({success:!1})),n.resolve({success:!0,tmpl_json:t})}).fail(function(e){d.errare("::import_nimble_template failed => ",e),n.resolve({success:!1})}),n.promise()},import_nimble_template:function(e){var t=this,i=(e=a.extend({template_name:"",from:"user"},e||{})).template_name;!_.isEmpty(i)&&_.isString(i)||d.errare("::import => error => invalid template name"),console.log("import_nimble_template params ?",e),("nimble_api"===e.from?t.getTmplJsonFromApi(i):t.getTmplJsonFromUserTmpl(i)).done(function(e){console.log("SO IMPORT ??",e),e.success&&t.import_template_from_user_collection_or_remote_api({pre_import_check:!1,template_name:i,template_data:e.tmpl_json})})},import_template_from_user_collection_or_remote_api:function(t){console.log("import_template_from_user_collection_or_remote_api",t);var i=this;t=t||{};var e;if(!(t=a.extend({is_file_import:!1,pre_import_check:!1,assign_missing_locations:!1},t)).template_data)throw new Error("::import_template => missing remote template data");e=wp.ajax.post("sek_process_template_json",{nonce:d.settings.nonce.save,template_data:JSON.stringify(t.template_data),pre_import_check:!1}).done(function(e){d.infoLog("TEMPLATE PRE PROCESS DONE",e)}).fail(function(e){d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Export failed"],encodeURIComponent(e)].join(" "),"</strong>","</span>"].join("")})}),d.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0,duration:3e4}),_.delay(function(){"pending"===e.state()&&d.previewer.trigger("sek-notify",{notif_id:"import-too-long",type:"error",duration:2e4,message:["<span>","<strong>",sektionsLocalizedData.i18n['Import exceeds server response time, try to uncheck "import images" option.'],"</strong>","</span>"].join("")})},3e4),e.done(function(e){_.isObject(e)&&(e={success:!0,data:e}),d.czr_sektions.isImportedContentEligibleForAPI(e,t)?(e.data.data.collection=i.setIdsForImportedTmpl(e.data.data.collection),d.czr_sektions.doUpdateApiSettingAfterTmplImport(e,t)):d.infoLog("::import_template problem => !api.czr_sektions.isImportedContentEligibleForAPI",e,t)}).fail(function(e){d.errare("::import_template => ajax error",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["Import failed, file problem"],"</strong>","</span>"].join("")})})},import_template_from_file:function(i){console.log("import_template_from_file",i),i=i||{};var e,t,n=(i=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},i)).input;if(_.isEmpty(n))throw new Error("::import_template => missing file_input param");if(_.isEmpty(i.file_input))throw new Error("::import_template => missing file_input param");if(i.file_input.length<1||_.isUndefined(i.file_input[0])||!i.file_input[0].files||_.isEmpty(i.file_input.val()))d.previewer.trigger("sek-notify",{notif_id:"missing-import-file",type:"info",duration:3e4,message:['<span style="color:#0075a2">',"<strong>",sektionsLocalizedData.i18n["Missing file"],"</strong>","</span>"].join("")});else{t=d.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type).scope,n.container.find(".sek-uploading").show(),d.notifications.remove("missing-import-file"),d.notifications.remove("import-success"),d.notifications.remove("import-failed"),d.notifications.remove("img-import-errors");var o=new FormData;if(o.append("file_candidate",i.file_input[0].files[0]),o.append("action","sek_get_manually_imported_file_content"),o.append("nonce",d.settings.nonce.save),_.contains(["local","global"],t)){if(o.append("skope",t),i.pre_import_check&&o.append("pre_import_check",i.pre_import_check),o.append("import_img",n.input_parent.czr_Input("import_img")()),n.container.find(".sek-uploading").show(),e=a.ajax({url:wp.ajax.settings.url,data:o,processData:!1,contentType:!1,type:"POST"}),i.pre_import_check)return a.Deferred(function(){var t=this;e.done(function(e){e.success||t.reject(e),d.czr_sektions.isImportedContentEligibleForAPI(e,i)||t.reject(e),t.resolve(e)}).fail(function(e){t.reject(e)})});d.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0,duration:3e4}),_.delay(function(){"pending"===e.state()&&d.previewer.trigger("sek-notify",{notif_id:"import-too-long",type:"error",duration:2e4,message:["<span>","<strong>",sektionsLocalizedData.i18n['Import exceeds server response time, try to uncheck "import images" option.'],"</strong>","</span>"].join("")})},3e4),e.done(function(e){d.czr_sektions.isImportedContentEligibleForAPI(e,i)?(e.data.data.collection=d.czr_sektions.setIdsForImportedTmpl(e.data.data.collection),d.czr_sektions.doUpdateApiSettingAfterTmplImport(e,i)):d.infoLog("::import_template problem => !api.czr_sektions.isImportedContentEligibleForAPI",e,i)}).fail(function(e){d.errare("::import_template => ajax error",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["Import failed, file problem"],"</strong>","</span>"].join("")})}).always(function(){d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(i)})}else d.errare("::import_template => invalid scope provided",t)}},pre_checks_from_file_import:function(e,t){if(t=t||{},(t=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},t)).is_file_import&&_.isEmpty(t.input))throw new Error("::pre_checks_from_file_import => missing file_input param");var i=d.czr_sektions.activeLocations(),n=a.extend(!0,[],_.isArray(e.data.metas.active_locations)?e.data.metas.active_locations:[]),o=t.input,r=d.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type);if(n=_.filter(n,function(e){return!_.contains(["nimble_local_header","nimble_local_footer"],e)}),_.isArray(n)&&_.isArray(i)){var s=a(n).not(i).get();_.isEmpty(s)?d.czr_sektions.import_template_from_file(t):(t.is_file_import&&(o.container.find('button[data-czr-action="sek-pre-import"]').hide(),"local"===r.scope?o.container.find(".czr-import-dialog.czr-local-import").slideToggle():o.container.find(".czr-import-dialog.czr-global-import").slideToggle()),d.infoLog("sek-pre-import => imported locations missing in current page.",s))}else d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"info",duration:3e4,message:['<span style="color:#0075a2">',"<strong>",sektionsLocalizedData.i18n["Import failed"],"</strong>","</span>"].join("")}),t.is_file_import&&d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(t)},setIdsForImportedTmpl:function(i){var n=this;return(_.isObject(i)||_.isArray(i))&&_.each(i,function(e,t){(_.isObject(e)||_.isArray(e))&&(i[t]=n.setIdsForImportedTmpl(e)),"id"!==t||!_.isString(e)||0!==e.indexOf("__rep__me__")&&0!==e.indexOf("__nimble__")||(i[t]=sektionsLocalizedData.optPrefixForSektionsNotSaved+d.czr_sektions.guid())}),i},isImportedContentEligibleForAPI:function(e,t){var i=!0,n=e.data,o=null;e.success||(o=[sektionsLocalizedData.i18n["Import failed"],n].join(" : ")),_.isNull(o)&&!_.isObject(n)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var r=n.data,s=n.metas,a=n.img_errors;_.isNull(o)&&!_.isObject(r)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]),_.isNull(o)&&!_.isObject(s)&&(o=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var c=d.czr_sektions.localSectionsSettingId();if(t.is_file_import){var l=t.input;c="local"===d.czr_sektions.getInputRegistrationParams(l.id,l.module.module_type).scope?c:d.czr_sektions.getGlobalSectionsSettingId()}return _.isNull(o)&&_.isEqual(d(c)(),r)&&(d.infoLog("::isImportedContentEligibleForAPI => Setting unchanged"),i=!1),_.isNull(o)||(d.errare("::isImportedContentEligibleForAPI => invalid data sent from server",n),d.errare("::isImportedContentEligibleForAPI => importErrorMsg",o),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",o,"</strong>","</span>"].join("")}),i=!1),_.isEmpty(a)||d.previewer.trigger("sek-notify",{notif_id:"img-import-errors",type:"info",duration:6e4,message:['<span style="color:#0075a2">',["<strong>"+sektionsLocalizedData.i18n["Some image(s) could not be imported"]+"</strong><br/>",'<span style="font-size:11px">'+a+"</span>"].join(" : "),"</span>"].join("")}),i},doUpdateApiSettingAfterTmplImport:function(e,t){if(t=t||{},d.czr_sektions.isImportedContentEligibleForAPI(e,t)||!t.is_file_import){var i="local",n=!1;if(t.is_file_import){var o=t.input,r=d.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type);i=r.scope,n="local"===r.scope&&o.input_parent.czr_Input("keep_existing_sections")()}d.czr_sektions.updateAPISetting({action:"sek-import-from-file",scope:i,imported_content:e.data,assign_missing_locations:t.assign_missing_locations,keep_existing_sections:n}).done(function(){"local"===i&&d.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0}),d.previewer.refresh(),d.previewer.trigger("sek-notify",{notif_id:"import-success",type:"success",duration:3e4,message:["<span>","<strong>",sektionsLocalizedData.i18n["File successfully imported"],"</strong>","</span>"].join("")})}).fail(function(e){d.errare("::doUpdateApiSettingAfterTmplImport => error when firing ::updateAPISetting",e),d.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Import failed"],e].join(" : "),"</strong>","</span>"].join("")})}),d.previewer.refresh()}else d.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate(t)},doAlwaysAfterManualImportAndApiSettingUpdate:function(e){if(d.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0}),e=e||{},(e=a.extend({is_file_import:!0,pre_import_check:!1,assign_missing_locations:!1,input:"",file_input:""},e)).is_file_import){var t=e.input;t.container.find(".sek-uploading").hide(),e.file_input.val("").trigger("change"),t.container.find(".czr-import-dialog").hide(),t.container.find('button[data-czr-action="sek-pre-import"]').show()}}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(n,d){d.extend(CZRSeksPrototype,{setupTemplateGallery:function(){var t=this;t.templateGalleryExpanded=new n.Value(!1),sektionsLocalizedData.isTemplateGalleryEnabled&&(t.templateGalleryExpanded.bind(function(e){t.cachedElements.$body.toggleClass("sek-template-gallery-expanded",e),e?(t.tmplDialogVisible(!1),t.levelTreeExpanded(!1),d("#customize-preview iframe").css("z-index",1),t.renderOrRefreshTempGallery()):d("#customize-preview iframe").css("z-index","")}),n.previewer.bind("ready",function(){t.templateGalleryExpanded(!1)}))},renderTmplGalleryUI:function(){if(0<d("#nimble-tmpl-gallery").length)return d("#nimble-tmpl-gallery");try{_tmpl=wp.template("nimble-top-tmpl-gallery")({})}catch(e){return n.errare("Error when parsing nimble-top-tmpl-gallery template",e),!1}return d("#customize-preview").after(d(_tmpl)),d("#nimble-tmpl-gallery")},renderOrRefreshTempGallery:function(){var e=this;d("#nimble-tmpl-gallery").length<1&&d.when(e.renderTmplGalleryUI({})).done(function(){e.setupTmplGalleryDOMEvents()});var t=d("#nimble-tmpl-gallery").find(".sek-tmpl-gallery-inner");t.html(""),e.getTemplateGalleryHtml().done(function(e){t.html(e)})},setupTmplGalleryDOMEvents:function(){var l=d("#nimble-tmpl-gallery"),i=this;l.on("click",".sek-tmpl-item .use-tmpl",function(e){e.preventDefault(),e.stopPropagation();var t=d(this).closest(".sek-tmpl-item").data("sek-tmpl-item-id");_.isEmpty(t)&&n.errare("::setupTmplGalleryDOMEvents => error => invalid template id"),n.czr_sektions.import_nimble_template({template_name:t,from:"user"}),i.templateGalleryExpanded(!1)}).on("propertychange change click keyup input paste",".sek-filter-tmpl",_.debounce(function(e){e.preventDefault();var t=d(this).val();console.log("searched string ??",t);var i,n,o,r,s,a,c=function(){l.removeClass("search-active"),l.find(".sek-tmpl-item").each(function(){d(this).removeClass("search-match")})};_.isString(t)?(t=t.trim().toLowerCase(),_.isEmpty(t.replace(/\s/g,""))?c():(l.addClass("search-active"),l.find(".sek-tmpl-item").each(function(){i=(d(this).find(".tmpl-title").html()+"").toLowerCase(),n=(d(this).find(".tmpl-desc").html()+"").toLowerCase(),o=(d(this).find(".tmpl-date").html()+"").toLowerCase(),r=-1!=i.indexOf(t),s=-1!=n.indexOf(t),a=-1!=o.indexOf(t),d(this).toggleClass("search-match",r||s||a)}))):c()},100)).on("click",".sek-tmpl-info .remove-tmpl",function(e){e.preventDefault();var t=function(e){i.tmplDialogMode("remove"),i.tmplDialogMode.unbind(t)};i.tmplDialogMode.bind(t),i.tmplDialogVisible(!0)}).on("click",".sek-close-dialog",function(e){e.preventDefault(),i.templateGalleryExpanded(!1)})},getTemplateGalleryHtml:function(){var i,n="",o=[sektionsLocalizedData.baseUrl,"/assets/admin/img/wire_frame.png","?ver=",sektionsLocalizedData.nimbleVersion].join(""),r=d.Deferred();return this.getSavedTmplCollection().done(function(e){_.each(e,function(e,t){i=_.isEmpty(e.description)?[e.title,e.last_modified_date].join(" | "):[e.title,e.last_modified_date,e.description].join(" | "),n+='<div class="sek-tmpl-item" data-sek-tmpl-item-id="'+t+'">',n+='<div class="sek-tmpl-thumb"><img src="'+o+'"/></div>',n+='<div class="sek-tmpl-info" title="'+i+'">',n+='<h3 class="tmpl-title">'+e.title+"</h3>",n+='<p class="tmpl-date"><i>'+[sektionsLocalizedData.i18n["Last modified"]," : ",e.last_modified_date].join(" ")+"</i></p>",n+='<p class="tmpl-desc">'+e.description+"</p>",n+='<i class="material-icons use-tmpl" title="'+sektionsLocalizedData.i18n["Use this template"]+'">add_circle_outline</i>',n+='<i class="material-icons remove-tmpl" title="'+sektionsLocalizedData.i18n["Remove this template"]+'">delete_forever</i>',n+="</div>",n+="</div>"});var t=d("#nimble-tmpl-gallery").find(".czr-css-loader");0<t.length?t.hide({duration:300,complete:function(){d(this).remove(),r.resolve(n)}}):r.resolve(n)}),r.promise()}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(t,e){jQuery.extend(CZRSeksPrototype,t.Events);var i=t.Class.extend(CZRSeksPrototype);try{t.czr_sektions=new i}catch(e){t.errare("api.czr_sektions => problem on instantiation",e)}}(wp.customize),function(r,s,a){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{content_type_switcher:function(e){var i,n=this,o=r.czr_sektions;if(!r.section.has(n.module.control.section()))throw new Error("api.czrInputMap.content_type_switcher => section not registered");i=r.section(n.module.control.section());var t=function(t){n.container.find('[data-sek-content-type="'+(t||"module")+'"]').trigger("click"),a.each(i.controls(),function(e){a.isUndefined(e.content_type)||e.active(t===e.content_type)})};r.czr_sektions.currentContentPickerType=r.czr_sektions.currentContentPickerType||new r.Value,r.bind("nimble-modules-and-sections-controls-registered",function(){t(r.czr_sektions.currentContentPickerType())}),r.czr_sektions.currentContentPickerType.bind(function(e){t(e)}),r.czr_sektions.currentContentPickerType(n()),n.container.on("click","[data-sek-content-type]",function(e){e.preventDefault();var t=s(this).data("sek-content-type");if(n.container.find("[data-sek-content-type]").attr("aria-pressed",!1),o.templateGalleryExpanded(!1),o.levelTreeExpanded(!1),o.tmplDialogVisible&&o.tmplDialogVisible(!1),o.saveSectionDialogVisible&&o.saveSectionDialogVisible(!1),"template"===t){var i=r.czr_sektions.templateGalleryExpanded();s(this).attr("aria-pressed",!i),r.czr_sektions.templateGalleryExpanded(!i)}else r.czr_sektions.templateGalleryExpanded(!1),s(this).attr("aria-pressed",!0),r.czr_sektions.currentContentPickerType(t)}),t(r.czr_sektions.currentContentPickerType())}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{module_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"module",input_container:this.container})},section_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:this.container})}})}(wp.customize,jQuery,_),function(s,a,c){s.czrInputMap=s.czrInputMap||{},a.extend(s.czrInputMap,{module_option_switcher:function(e){var t=this;if(!s.section.has(t.module.control.section()))throw new Error(t.input_type+" => section not registered");s.section(t.module.control.section());var i,n="",o=t.module.control.params.sek_registration_params;if(c.isUndefined(o))throw new Error(t.input_type+" => missing registration params");if(o&&o.module_id&&(n=o.module_id,i=o.ui_action),c.isEmpty(n))throw new Error(t.input_type+" => missing module id");t.container.on("click","[data-sek-option-type]",function(e){e.preventDefault(),t.container.find("[data-sek-option-type]").removeClass("is-selected").attr("aria-pressed",!1),a(this).addClass("is-selected").attr("aria-pressed",!0),s.previewer.trigger("settings"===a(this).data("sek-option-type")?"sek-edit-options":"sek-edit-module",{id:n,level:"module"})});var r="sek-generate-level-options-ui"===i?"settings":"content";t.container.find("[data-sek-option-type]").removeClass("is-selected").attr("aria-pressed",!1),t.container.find('[data-sek-option-type="'+r+'"]').addClass("is-selected").attr("aria-pressed",!0)}})}(wp.customize,jQuery,_),function(l,d,p){l.czrInputMap=l.czrInputMap||{};var u=function(e){return p.contains(["px","em","%"],e)||(l.errare("error : invalid unit for input "+this.id,e),e="px"),e},_=function(i){var n=this;i.on("click",".sek-ui-button",function(e,t){e.preventDefault(),i.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),d(this).addClass("is-selected").attr("aria-pressed",!0),n.css_unit(d(this).data("sek-unit"),t)}),i.find('.sek-ui-button[data-sek-unit="'+(n.initial_unit||"px")+'"]').addClass("is-selected").attr("aria-pressed",!0)},m=function(t,i){var n=this;t.on("click",".reset-spacing-wrap",function(e){e.preventDefault(),t.find('input[type="number"]').each(function(){d(this).val("")}),n(i),d(".sek-unit-wrapper",t).find('[data-sek-unit="px"]').trigger("click")})};d.extend(l.czrInputMap,{spacing:function(e){var o=this,i=d(".sek-spacing-wrapper",o.container),t=l.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),n=p.isEmpty(t)||p.isEmpty(t.default)?[]:t.default;if(i.on("input",'input[type="number"]',function(e){var t=d(this).closest("[data-sek-spacing]").data("sek-spacing"),i=d.extend(!0,{},p.isObject(o())?o():{}),n=d(this).val();p.isString(n)&&!p.isEmpty(n)||p.isNumber(n)?i[t]=n:i=p.omit(i,t),o(i)}),m.call(o,i,n),p.isObject(o())){p.each(o(),function(e,t){d('[data-sek-spacing="'+t+'"]',i).find('input[type="number"]').val(e)});var r="px";d(".sek-unit-wrapper .sek-ui-button",o.container).each(function(){var e=d(this).data("sek-unit");p.isEmpty(o())||p.isEmpty(o().unit)||e===o().unit&&(r=e)}),d(".sek-unit-wrapper",o.container).find('[data-sek-unit="'+u.call(o,r)+'"]').trigger("click")}var s=o();o.initial_unit="px",p.isEmpty(s)||(o.initial_unit=p.isEmpty(s.unit)?"px":s.unit),o.css_unit=new l.Value(u.call(o,o.initial_unit)),o.css_unit.bind(function(e){var t;e=p.isEmpty(e)?"px":e,(t=d.extend(!0,{},p.isObject(o())?o():{})).unit=e,o(t)}),_.call(o,i)}}),d.extend(l.czrInputMap,{spacingWithDeviceSwitcher:function(e){var r=this,s=d(".sek-spacing-wrapper",r.container),t=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),a=p.isEmpty(t)||p.isEmpty(t.default)?{}:t.default,c=function(e,t){var i=["mobile","tablet","desktop"];if(p.has(e,t))return e[t];var n=p.findIndex(i,function(e){return t===e});return!p.isEmpty(t)&&n<i.length?c(e,i[n+1]):{}},i=function(e){var t=d.extend(!0,{},p.isObject(r())?r():{}),i=d.extend(!0,{},a);t=p.isObject(t)?d.extend(i,t):i;var n=c(t,e);d("[data-sek-spacing]",s).each(function(){var e=d(this).data("sek-spacing"),t="";p.isEmpty(n)||p.isEmpty(n[e])||(t=n[e]),d(this).find('input[type="number"]').val(t)});var o="px";d(".sek-unit-wrapper .sek-ui-button",r.container).each(function(){var e=d(this).data("sek-unit");p.isEmpty(n)||p.isEmpty(n.unit)||e===n.unit&&(o=e)}),d(".sek-unit-wrapper",r.container).find('[data-sek-unit="'+u.call(r,o)+'"]').trigger("click",{previewed_device_switched:!0})};l.czr_sektions.maybeSetupDeviceSwitcherForInput.call(r);var n=r();r.initial_unit="px",p.isEmpty(n)||p.isEmpty(n[r.previewedDevice()])||(r.initial_unit=p.isEmpty(n[r.previewedDevice()].unit)?"px":n[r.previewedDevice()].unit),r.css_unit=new l.Value(u.call(r,r.initial_unit)),s.on("input",'input[type="number"]',function(e){var t,i=d(this).closest("[data-sek-spacing]").data("sek-spacing"),n=d(this).val(),o=l.previewedDevice()||"desktop";(t=d.extend(!0,{},p.isObject(r())?r():{}))[o]=d.extend(!0,{},t[o]||{}),p.isString(n)&&!p.isEmpty(n)||p.isNumber(n)?t[o][i]=n:t[o]=p.omit(t[o],i),t[o].unit&&r.css_unit()==t[o].unit||(t[o].unit=r.css_unit()),r(t)}),m.call(r,s,a),r.previewedDevice.bind(function(e){try{i(e)}catch(e){l.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+r.id,e)}}),r.css_unit.bind(function(e,t,i){if(!p.isObject(i)||!0!==i.previewed_device_switched){e=p.isEmpty(e)?"px":e;var n,o=r.previewedDevice()||"desktop";(n=d.extend(!0,{},p.isObject(r())?r():{}))[o]=d.extend(!0,{},n[o]||{}),n[o].unit=e,r(n)}}),_.call(r,s);try{i(l.previewedDevice())}catch(e){l.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+r.id,e)}}})}(wp.customize,jQuery,_),function(n,a,c){n.czrInputMap=n.czrInputMap||{},a.extend(n.czrInputMap,{bg_position:function(e){var t=this;a(".sek-bg-pos-wrapper",t.container).on("change",'input[type="radio"]',function(e){t(a(this).val())}),c.isEmpty(t())||t.container.find('input[value="'+t()+'"]').attr("checked",!0).trigger("click")},bgPositionWithDeviceSwitcher:function(e){var o=this,t=n.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),r=c.isEmpty(t)||c.isEmpty(t.default)?{}:t.default;n.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var s=function(e,t){var i=["mobile","tablet","desktop"];if(c.has(e,t))return e[t];var n=c.findIndex(i,function(e){return t===e});return!c.isEmpty(t)&&n<i.length?s(e,i[n+1]):{}},i=function(e){var t=a.extend(!0,{},c.isObject(o())?o():{}),i=a.extend(!0,{},r);t=c.isObject(t)?a.extend(i,t):i;var n=s(t,e);o.container.find('input[value="'+n+'"]').attr("checked",!0).trigger("click",{previewed_device_switched:!0})};a(".sek-bg-pos-wrapper",o.container).on("change",'input[type="radio"]',function(e){var t,i=a(this).val();(t=a.extend(!0,{},c.isObject(o())?o():{}))[n.previewedDevice()||"desktop"]=i,o(t)}),o.previewedDevice.bind(function(e){try{i(e)}catch(e){n.errare("Error when firing syncWithPreviewedDevice for input type spacingWithDeviceSwitcher for input id "+o.id,e)}});try{i(n.previewedDevice())}catch(e){n.errare("Error when firing syncWithPreviewedDevice for input type bgPositionWithDeviceSwitcher for input id "+o.id,e)}}})}(wp.customize,jQuery,_),function(c,l,d){c.czrInputMap=c.czrInputMap||{};var e=function(e){var o=this,t=c.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),r=d.isEmpty(t)||d.isEmpty(t.default)?{}:t.default,i="verticalAlignWithDeviceSwitcher"===o.type?".sek-v-align-wrapper":".sek-h-align-wrapper",s=l(i,o.container);c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var a=function(e,t){var i=["mobile","tablet","desktop"];if(d.has(e,t))return e[t];var n=d.findIndex(i,function(e){return t===e});return!d.isEmpty(t)&&n<i.length?a(e,i[n+1]):{}},n=function(e){var t=l.extend(!0,{},d.isObject(o())?o():{}),i=l.extend(!0,{},r);t=d.isObject(t)?l.extend(i,t):i;var n=a(t,e);s.find(".selected").removeClass("selected"),s.find('div[data-sek-align="'+n+'"]').addClass("selected")};s.on("click","[data-sek-align]",function(e){var t;e.preventDefault(),(t=l.extend(!0,{},d.isObject(o())?o():{}))[c.previewedDevice()||"desktop"]=l(this).data("sek-align"),s.find(".selected").removeClass("selected"),l.when(l(this).addClass("selected")).done(function(){o(t)})}),o.previewedDevice.bind(function(e){try{n(e)}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type : "+o.type+" for input id "+o.id,e)}});try{n(c.previewedDevice())}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type : "+o.type+" for input id "+o.id,e)}};l.extend(c.czrInputMap,{horizTextAlignmentWithDeviceSwitcher:e,horizAlignmentWithDeviceSwitcher:e,verticalAlignWithDeviceSwitcher:e})}(wp.customize,jQuery,_),function(f,g,h){f.czrInputMap=f.czrInputMap||{},g.extend(f.czrInputMap,{font_picker:function(e){var u=this,_=u.input_parent,n=function(e,t){_();var n=g('select[data-czrtype="'+u.id+'"]',u.container);h.isNull(u())||h.isEmpty(u())?n.append('<option value="none" selected="selected">'+sektionsLocalizedData.i18n["Select a font family"]+"</option>"):n.append('<option value="none">'+sektionsLocalizedData.i18n["Select a font family"]+"</option>");var i=[{title:sektionsLocalizedData.i18n["Web safe fonts"],type:"cfont",list:t.cfonts},{title:sektionsLocalizedData.i18n["Google fonts"],type:"gfont",list:t.gfonts}],o=f.czr_sektions.sniffAllFonts(),r=sektionsLocalizedData.alreadyUsedFonts,s=[],a=[];if(!h.isEmpty(r)&&h.isObject(r)&&h.each(r,function(e){a.push(e)}),h.isArray(o)&&h.each(o,function(e){a.push(e)}),!h.isEmpty(a)){var c={},l=[];a.forEach(function(e){c[e]=(c[e]||0)+1});var d=h.sortBy(c,function(e){return e});h.each(d,function(i){h.each(c,function(e,t){i!==e||h.contains(l,t)||l.unshift(t)})}),h.each(l,function(e){s.push({name:e})}),i.unshift({title:sektionsLocalizedData.i18n["Already used fonts"],type:null,list:s})}h.each(i,function(e){var t,r,s,i=g("<optgroup>",{label:e.title,html:(t=e.list,r=e.type,s="",h.each(t,function(e){var t,i,n=h.isString(e.name)?e.name:"Undefined Font Family",o=n.replace(/[+|:]/g," ");t=n,i=r,n=h.isEmpty(i)?t:h.isString(t)?["[",i,"]",t].join(""):"",o=o.replace("[cfont]","").replace("[gfont]",""),n==u()?s+='<option selected="selected" value="'+n+'">'+o+"</option>":s+='<option value="'+n+'">'+o+"</option>"}),s)});n.append(i)});var p={escapeMarkup:function(e){return e}};e&&g.extend(p,{resultsAdapter:e,closeOnSelect:!1}),n.czrSelect2(p),g(".czrSelect2-selection__rendered",u.container).css(m(u()))},m=function(e){if(!h.isString(e)||h.isEmpty(e))return{};var t,i,n,o=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return t=r(e),i=o[1]?o[1].replace(/[^0-9.]+/g,""):400,i=h.isNumber(i)?i:400,n=o[1]&&-1!=o[1].indexOf("italic")?"italic":"",{"font-family":"none"==t?"inherit":t.replace(/[+|:]/g," "),"font-weight":i||400,"font-style":n||"normal"}},r=function(e){if(!h.isString(e)||h.isEmpty(e))return e;var t=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return h.isString(t[0])?t[0].replace(/[+|:]/g," "):""};g.when(function(){var e,t=g.Deferred();h.isEmpty(f.sek_fontCollections)?(h.isUndefined(f.sek_fetchingFontCollection)||"pending"!=f.sek_fetchingFontCollection.state()?(e=f.CZR_Helpers.getModuleTmpl({tmpl:"font_list",module_type:"font_picker_input",module_id:u.module.id}),f.sek_fetchingFontCollection=e):e=f.sek_fetchingFontCollection,e.done(function(e){if("string"!=typeof e||"{"!==e[0])throw new Error("font_picker => server list is not JSON.parse-able");f.sek_fontCollections=JSON.parse(e),t.resolve(f.sek_fontCollections)}).fail(function(e){t.reject(e)})):t.resolve(f.sek_fontCollections);return t.promise()}()).done(function(t){var i;(i=g.Deferred(),void 0!==g.fn.czrSelect2&&void 0!==g.fn.czrSelect2.amd&&"function"==typeof g.fn.czrSelect2.amd.require?g.fn.czrSelect2.amd.require(["czrSelect2/results","czrSelect2/utils"],function(e,t){var n=function(e,t,i){n.__super__.constructor.call(this,e,t,i)};t.Extend(n,e),n.prototype.bind=function(e,t){var i=this;e.on("results:focus",function(e){"true"!=e.element.attr("aria-selected")&&i.trigger("select",{data:e.data})}),n.__super__.bind.call(this,e,t)},i.resolve(n)}):i.resolve(!1),i.promise()).done(function(e){n(e,t)})}).fail(function(e){f.errare("font_picker => fail response =>",e)})}})}(wp.customize,jQuery,_),function(r,s,a){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{fa_icon_picker:function(){var n=this,o=!1,e=function(t){!0!==n.iconCollectionSet&&(s.when(s.Deferred(function(t){a.isEmpty(n.sek_faIconCollection)?r.CZR_Helpers.getModuleTmpl({tmpl:"icon_list",module_type:"fa_icon_picker_input",module_id:n.module.id}).done(function(e){if("string"!=typeof e||"["!==e[0])throw new Error("fa_icon_picker => server list is not JSON.parse-able");n.sek_faIconCollection=JSON.parse(e),t.resolve(n.sek_faIconCollection)}).fail(function(e){t.reject(e)}):t.resolve(n.sek_faIconCollection)})).done(function(e){!function(e){a.each(e,function(e){var t={value:e,html:r.CZR_Helpers.capitalize(e.substring(7))};t.value==n()&&(s.extend(t,{selected:"selected"}),o=!0),s("select[data-czrtype]",n.container).append(s("<option>",t))});var t,i=function(e){return e.id?s('<span class="'+e.element.value+'"></span><span class="social-name">&nbsp;&nbsp;'+e.text+"</span>"):e.text};t=o?s("<option>"):s("<option>",{selected:"selected"}),s("select[data-czrtype]",n.container).prepend(t).czrSelect2({templateResult:i,templateSelection:i,placeholder:sektionsLocalizedData.i18n["Select an icon"],allowClear:!0})}(e),t&&!0===t.open_on_init&&a.delay(function(){try{s("select[data-czrtype]",n.container).czrSelect2("open")}catch(e){}},100)}).fail(function(e){r.errare("fa_icon_picker => fail response =>",e)}),n.iconCollectionSet=!0)};n.container.on("click",function(){e()}),a.delay(function(){e({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(p,u,_){p.czrInputMap=p.czrInputMap||{},u.extend(p.czrInputMap,{code_editor:function(e){var n=this,i=this.module.control,o=(n.input_parent(),!1),r=n.container.find("textarea"),s=n.container.find(".customize-control-title"),a=function(){return u.Deferred(function(t){var i=_.isEmpty(r.data("editor-code-type"))?"text/html":r.data("editor-code-type");p.czr_sektions.code_editor_params&&p.czr_sektions.code_editor_params[i]?t.resolve(p.czr_sektions.code_editor_params[i]):wp.ajax.post("sek_get_code_editor_params",{nonce:p.settings.nonce.save,code_type:i}).done(function(e){_.isObject(e)||p.errare(n.id+" => error => invalid code editor params sent by server",e),p.czr_sektions.code_editor_params={},p.czr_sektions.code_editor_params[i]=e,t.resolve(p.czr_sektions.code_editor_params[i])}).fail(function(e){t.reject(e)})})};n.isReady.done(function(){var t=function(e){_.isEmpty(this.editor)&&(_.isEmpty(this.module.control.container.attr("data-sek-expanded"))||"false"==this.module.control.container.attr("data-sek-expanded")||setTimeout(function(){if(o)try{c(o)}catch(e){p.errare("error in sek_control => code_editor() input",e),l()}else l();s.click()},10))};r.html(n()),u.when(a()).done(function(e){wp.codeEditor&&(_.isUndefined(e)||!1!==e)&&(o=e),t.call(n),n.module.control.container.on("sek-accordion-expanded",function(){t.call(n)})}).fail(function(e){p.errare(n.id+" => error when getting the editor params from server")})});var c=function(e){var t,i=!1;t=_.extend({},e,{onTabNext:CZRSeksPrototype.selectNextTabbableOrFocusable(":tabbable"),onTabPrevious:CZRSeksPrototype.selectPrevTabbableOrFocusable(":tabbable"),onUpdateErrorNotice:d}),n.editor=wp.codeEditor.initialize(r,t),u(n.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":s.html(),"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),s.on("click",function(e){e.stopPropagation(),n.editor.codemirror.focus()}),n.editor.codemirror.on("change",function(e){i=!0,r.val(e.getValue()).trigger("change"),i=!1}),n.editor.codemirror.setValue(n()),n.bind(n.id+":changed",function(e){i||n.editor.codemirror.setValue(e)}),n.editor.codemirror.on("keydown",function(e,t){27===t.keyCode&&t.stopPropagation()})},l=function(){var o=r[0];n.editor=o,r.on("blur",function(){r.data("next-tab-blurs",!1)}),r.on("keydown",function(e){var t,i,n;27!==e.keyCode?9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||r.data("next-tab-blurs")||(t=o.selectionStart,i=o.selectionEnd,n=o.value,0<=t&&(o.value=n.substring(0,t).concat("\t",n.substring(i)),r.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault()):r.data("next-tab-blurs")||(r.data("next-tab-blurs",!0),e.stopPropagation())})},d=function(e){var t;i.setting.notifications.remove(n.id),0!==e.length&&(t=1===e.length?sektionsLocalizedData.i18n.codeEditorSingular.replace("%d","1").replace("%s",s.html()):sektionsLocalizedData.i18n.codeEditorPlural.replace("%d",String(e.length)).replace("%s",s.html()),i.setting.notifications.add(n.id,new p.Notification(n.id,{message:t,type:"warning"})))}}})}(wp.customize,jQuery,_),function(e,r,t){e.czrInputMap=e.czrInputMap||{},r.extend(e.czrInputMap,{range_simple:function(e){var t=this,i=r(".sek-range-with-unit-picker-wrapper",t.container),n=i.find('input[type="number"]'),o=i.find('input[type="range"]');o.on("input",function(e){n.val(r(this).val()).trigger("input")}),n.on("input",function(e){t(r(this).val()),o.val(r(this).val())}),o.val(n.val()||0)},number_simple:function(e){var t=this;t.container.find('input[type="number"]').on("input",function(e){t(r(this).val())})}})}(wp.customize,jQuery,_),function(d,p,u){d.czrInputMap=d.czrInputMap||{},p.extend(d.czrInputMap,{range_simple_device_switcher:function(e){var s=this,t=p(".sek-range-with-unit-picker-wrapper",s.container),a=t.find('input[type="number"]'),r=t.find('input[type="range"]'),i=d.czr_sektions.getInputRegistrationParams(s.id,s.module.module_type),c=u.isEmpty(i)||u.isEmpty(i.default)?{}:i.default,l=function(e,t){var i=["mobile","tablet","desktop"];if(u.has(e,t))return e[t];var n=u.findIndex(i,function(e){return t===e});return!u.isEmpty(t)&&n<i.length?l(e,i[n+1]):p.extend(!0,{desktop:""},c).desktop},n=function(e){var t=s(),i={};i=p.extend(!0,{},c),u.isObject(t)?i=p.extend(!0,{},t):u.isString(t)&&!u.isEmpty(t)&&(i={desktop:t});var n,o=l(i,e),r=(n=o,u.isEmpty(n)||!u.isString(n)?"16":n.replace(/px|em|%/g,""));a.val(r).trigger("input",{previewed_device_switched:!0})};d.czr_sektions.maybeSetupDeviceSwitcherForInput.call(s),r.on("input",function(e){a.val(p(this).val()).trigger("input")}),a.on("input",function(e,t){var i,n=d.previewedDevice()||"desktop",o=p(this).val();(i=p.extend(!0,{},u.isObject(s())?s():{}))[n]=p.extend(!0,{},i[n]||{}),u.isString(o)&&!u.isEmpty(o)&&(i[n]=o),(u.isEmpty(t)||u.isObject(t)&&!0!==t.previewed_device_switched)&&s(i),r.val(p(this).val())}),s.previewedDevice.bind(function(e){try{n(e)}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+s.type+" for input id "+s.id,e)}}),r.val(a.val()||0);try{n(d.previewedDevice())}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+s.type+" for input id "+s.id,e)}}})}(wp.customize,jQuery,_),function(a,c,l){a.czrInputMap=a.czrInputMap||{},c.extend(a.czrInputMap,{range_with_unit_picker:function(e){var t=this,i=c(".sek-range-with-unit-picker-wrapper",t.container),n=i.find('input[type="number"]'),o=i.find('input[type="range"]'),r=i.find("input[data-czrtype]").data("sek-unit"),s=function(e){return l.contains(["px","em","%"],e)||(a.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new a.Value(l.isEmpty(r)?"px":s(r)),t.css_unit.bind(function(e){e=l.isEmpty(e)?"px":e,i.find('input[type="number"]').trigger("input")}),o.on("input",function(e){n.val(c(this).val()).trigger("input")}),n.on("input",function(e){t(c(this).val()+s(t.css_unit())),o.val(c(this).val())}),o.val(n.val()||0),i.on("click",".sek-ui-button",function(e){e.preventDefault(),i.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),c(this).addClass("is-selected").attr("aria-pressed",!0),i.find("input[data-czrtype]").data("sek-unit",c(this).data("sek-unit")),t.css_unit(c(this).data("sek-unit"))}),i.find('.sek-ui-button[data-sek-unit="'+r+'"]').addClass("is-selected").attr("aria-pressed",!0)}})}(wp.customize,jQuery,_),function(a,_,m){a.czrInputMap=a.czrInputMap||{},_.extend(a.czrInputMap,{range_with_unit_picker_device_switcher:function(e){var c=this,l=_(".sek-range-with-unit-picker-wrapper",c.container),d=l.find('input[type="number"]'),r=l.find('input[type="range"]'),s=function(e){return m.contains(["px","em","%"],e)||(a.errare("range_with_unit_picker_device_switcher => error : invalid unit for input "+c.id,e),e="px"),e},t=a.czr_sektions.getInputRegistrationParams(c.id,c.module.module_type),p=m.isEmpty(t)||m.isEmpty(t.default)?{}:t.default,i=function(){return l.find("input[data-czrtype]").data("sek-unit")||"px"},u=function(e,t){var i=["mobile","tablet","desktop"];if(m.has(e,t))return e[t];var n=m.findIndex(i,function(e){return t===e});return!m.isEmpty(t)&&n<i.length?u(e,i[n+1]):_.extend(!0,{desktop:""},p).desktop},n=function(e){var t=c(),i={};i=_.extend(!0,{},p),m.isObject(t)?i=_.extend(!0,{},t):m.isString(t)&&!m.isEmpty(t)&&(i={desktop:t});var n,o,r=u(i,e),s=(o=r,m.isEmpty(o)||!m.isString(o)?"px":o.replace(/[0-9]|\.|,/g,"")),a=(n=r,m.isEmpty(n)||!m.isString(n)?"16":n.replace(/px|em|%/g,""));_(".sek-unit-wrapper",l).find('[data-sek-unit="'+s+'"]').trigger("click",{previewed_device_switched:!0}),l.find('.sek-ui-button[data-sek-unit="'+s+'"]').addClass("is-selected").attr("aria-pressed",!0),d.val(a).trigger("input",{previewed_device_switched:!0})};a.czr_sektions.maybeSetupDeviceSwitcherForInput.call(c),c.css_unit=new a.Value(m.isEmpty(i())?"px":s(i()));var o='<button type="button" class="button sek-reset-button sek-float-right">'+sektionsLocalizedData.i18n.Reset+"</button>";c.container.find(".customize-control-title").append(o),c.css_unit.bind(function(e,t,i){m.isObject(i)&&!0===i.previewed_device_switched||d.trigger("input")}),r.on("input",function(e){d.val(_(this).val()).trigger("input")}),d.on("input",function(e,t){var i,n=a.previewedDevice()||"desktop",o=_(this).val()+s(c.css_unit());(i=_.extend(!0,{},m.isObject(c())?c():{}))[n]=_.extend(!0,{},i[n]||{}),m.isString(o)&&!m.isEmpty(o)&&(i[n]=o),(m.isEmpty(t)||m.isObject(t)&&!0!==t.previewed_device_switched)&&c(i),r.val(_(this).val())}),l.on("click",".sek-ui-button",function(e,t){e.stopPropagation(),l.find(".sek-ui-button").removeClass("is-selected").attr("aria-pressed",!1),_(this).addClass("is-selected").attr("aria-pressed",!0),l.find("input[data-czrtype]").data("sek-unit",_(this).data("sek-unit")),c.css_unit(_(this).data("sek-unit"),t)}),c.previewedDevice.bind(function(e){try{n(e)}catch(e){a.errare("Error when firing syncWithPreviewedDevice for input type range_with_unit_picker_device_switcher for input id "+c.id,e)}}),c.container.on("click",".sek-reset-button",function(e){var t=a.previewedDevice(),i=_.extend(!0,{},m.isObject(c())?c():{});m.isEmpty(i[t])||(i=m.omit(i,t),c(i),n(a.previewedDevice()))}),r.val(d.val()||0);try{n(a.previewedDevice())}catch(e){a.errare("Error when firing syncWithPreviewedDevice for input type range_with_unit_picker_device_switcher for input id "+c.id,e)}}})}(wp.customize,jQuery,_),function(g,h,v){g.czrInputMap=g.czrInputMap||{},h.extend(g.czrInputMap,{borders:function(e){var a=this,c=h(".sek-borders",a.container),l=c.find('input[type="number"]'),d=c.find('input[type="range"]'),p=c.find(".sek-alpha-color-input"),u=function(e){return v.contains(["px","em","%"],e)||(g.errare("borders => error : invalid unit for input "+a.id,e),e="px"),e},_=function(e){return v.isEmpty(e)||!v.isString(e)?"16":e.replace(/px|em|%/g,"")},m=function(e){return v.isEmpty(e)||!v.isString(e)?"px":e.replace(/[0-9]|\.|,/g,"")},t=g.czr_sektions.getInputRegistrationParams(a.id,a.module.module_type),f=v.isEmpty(t)||v.isEmpty(t.default)?{}:t.default;a.cssBorderTypes=["top","left","right","bottom"];var i,n,o=function(){var e=a(),t="px";return v.isObject(e)&&v.has(e,"_all_")&&v.isObject(e._all_)&&!v.isEmpty(e._all_.wght)&&(t=u(m(e._all_.wght))),t},r=function(){var e=a(),t="#000000";return v.isObject(e)&&v.has(e,"_all_")&&v.isObject(e._all_)&&!v.isEmpty(e._all_.col)&&(t=e._all_.col),t},s=function(e){if(!v.contains(v.union(a.cssBorderTypes,["_all_"]),e))throw new Error("Error in syncWithBorderType : the border type must be one of those values '_all_', 'top', 'left', 'right', 'bottom'");var t=a(),i={},n=h.extend(!0,{},f);v.isObject(t)?i=h.extend(!0,{},t):v.isString(t)&&(i={_all_:{wght:t}});var o,r,s=function(e,t){var i,n=h.extend(!0,{},f);if(!v.has(n,"_all_"))throw new Error("Error when firing getCurrentBorderTypeOrAllValue : the default value of the borders input must be php registered as an array formed : array( 'wght' => '1px', 'col' => '#000000' )");return i=v.isObject(e)&&v.has(e,"_all_")?v.extend(n._all_,e._all_):n._all_,v.has(e,t)&&v.isObject(e[t])?v.extend(i,e[t]):n._all_}(i=h.extend(n,i),e);if(v.isEmpty(s)||!v.isObject(s)||v.isEmpty(s.wght)||v.isEmpty(s.col))throw new Error("Error in syncWithBorderType : getCurrentBorderTypeOrAllValue must return an object formed : array( 'wght' => '1px', 'col' => '#000000' )");o=m(s.wght),r=_(s.wght),h(".sek-unit-wrapper",c).find('[data-sek-unit="'+o+'"]').trigger("click",{border_type_switched:!0}),c.find('.sek-ui-button[data-sek-unit="'+o+'"]').addClass("is-selected").attr("aria-pressed",!0),l.val(r).trigger("input",{border_type_switched:!0}),p.data("border_type_switched",!0),p.val(s.col).trigger("change"),p.data("border_type_switched",!1)};a.borderColor=new g.Value(v.isEmpty(r())?"#000000":r()),a.css_unit=new g.Value(v.isEmpty(o())?"px":u(o())),a.borderType=new g.Value("_all_"),l.val((i=a(),n=1,v.isObject(i)&&v.has(i,"_all_")&&v.isObject(i._all_)&&!v.isEmpty(i._all_.wght)&&(n=_(i._all_.wght)),n=parseInt(n,10),(!v.isNumber(n)||n<0)&&(g.errare("Error in borders input type for module : "+a.module.module_type+" the initial border width is invalid : "+n),n=1),n)),p.val(a.borderColor()),p.wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){h(this).val(t.color.toString()).trigger("colorpickerchange"),a.borderColor(t.color.toString(),{border_type_switched:!0===h(this).data("border_type_switched")})},clear:function(e,t){h(this).val("").trigger("colorpickerchange"),a.borderColor("")}}),a.css_unit.bind(function(e,t,i){(!v.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),a.borderColor.bind(function(e,t,i){(!v.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_color)&&l.trigger("input",i)}),a.borderType.bind(function(e){try{s(e)}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+a.module.module_type,e)}}),d.on("input",function(e){l.val(h(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=a.borderType()||"_all_",o=a.borderColor(),r=h(this).val()+u(a.css_unit()),s=h.extend(!0,{},f);(i=h.extend(!0,{},v.isObject(a())?a():s))[n]=h.extend(!0,{},i[n]||s[n]),v.isString(r)&&!v.isEmpty(r)&&(i[n].wght=r),i[n].col=o,(v.isEmpty(t)||v.isObject(t)&&!0!==t.border_type_switched)&&("_all_"===n&&v.each(a.cssBorderTypes,function(e){i=v.omit(i,e)}),a(i)),d.val(h(this).val())}),c.on("click","[data-sek-unit]",function(e,t){e.preventDefault(),c.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),h(this).addClass("is-selected").attr("aria-pressed",!0),c.find("input[data-czrtype]").data("sek-unit",h(this).data("sek-unit")),a.css_unit(h(this).data("sek-unit"),t)}),c.on("click","[data-sek-border-type]",function(e,t){e.preventDefault(),c.find("[data-sek-border-type]").removeClass("is-selected").attr("aria-pressed",!1),h(this).addClass("is-selected").attr("aria-pressed",!0);var i="_all_";try{i=h(this).data("sek-border-type")}catch(e){g.errare("borders input type => error when attaching click event",e)}a.borderType(i,t)}),a.container.on("click",".sek-reset-button",function(e){var t=a.borderType()||"_all_",i=h.extend(!0,{},v.isObject(a())?a():{});v.isEmpty(i[t])||(i=v.omit(i,t),a(i),s(t))}),d.val(l.val()||0);try{s(a.borderType())}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+a.module.module_type,e)}h('[data-sek-unit="'+a.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(m,f,g){m.czrInputMap=m.czrInputMap||{},f.extend(m.czrInputMap,{border_radius:function(e){var a=this,c=f(".sek-borders",a.container),l=c.find('input[type="number"]'),s=c.find('input[type="range"]'),d=function(e){return g.contains(["px","em","%"],e)||(m.errare("border_radius => error : invalid unit for input "+a.id,e),e="px"),e},p=function(e){return g.isEmpty(e)||!g.isString(e)?"16":e.replace(/px|em|%/g,"")},u=function(e){return g.isEmpty(e)||!g.isString(e)?"px":e.replace(/[0-9]|\.|,/g,"")},t=m.czr_sektions.getInputRegistrationParams(a.id,a.module.module_type),_=g.isEmpty(t)||g.isEmpty(t.default)?{}:t.default;a.cssRadiusTypes=["top_left","top_right","bottom_right","bottom_left"];var i,n,o=function(){var e=a(),t="px";return g.isObject(e)&&g.has(e,"_all_")&&(t=d(u(e._all_))),t},r=function(e){if(!g.contains(["_all_","top_left","top_right","bottom_right","bottom_left"],e))throw new Error("Error in syncWithRadiusType : the radius type must be one of those values '_all_', 'top_left', 'top_right', 'bottom_right', 'bottom_left', => radius type => "+e);var t=a(),i={},n=f.extend(!0,{},_);g.isObject(t)?i=f.extend(!0,{},t):g.isString(t)&&(i={_all_:"0px"});var o,r,s=function(e,t){var i,n=f.extend(!0,{},_);if(!g.has(n,"_all_"))throw new Error("Error when firing getCurrentRadiusTypeOrAllValue : the default value of the border_radius input must be php registered as an array");return i=g.isObject(e)&&g.has(e,"_all_")?e._all_:n._all_,g.has(e,t)?e[t]:i}(i=f.extend(n,i),e);if(g.isEmpty(s)||!g.isString(s))throw new Error("Error in syncWithRadiusType : getCurrentRadiusTypeOrAllValue must return a string like 3em");o=u(s),r=p(s),f(".sek-unit-wrapper",c).find('[data-sek-unit="'+o+'"]').trigger("click",{radius_type_switched:!0}),c.find('.sek-ui-button[data-sek-unit="'+o+'"]').addClass("is-selected").attr("aria-pressed",!0),l.val(r).trigger("input",{radius_type_switched:!0})};a.css_unit=new m.Value(g.isEmpty(o())?"px":d(o())),a.radiusType=new m.Value("_all_"),l.val((i=a(),n=0,g.isObject(i)&&g.has(i,"_all_")&&(n=p(i._all_)),n=parseInt(n,10),(!g.isNumber(n)||n<0)&&(m.errare("Error in border_radius input type for module : "+a.module.module_type+" the initial radius is invalid : "+n),n=0),n)),a.css_unit.bind(function(e,t,i){(!g.isObject(i)||!0!==i.radius_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),a.radiusType.bind(function(e){try{r(e)}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+a.module.module_type,e)}}),s.on("input",function(e){l.val(f(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=a.radiusType()||"_all_",o=f(this).val()+d(a.css_unit()),r=f.extend(!0,{},_);(i=f.extend(!0,{},g.isObject(a())?a():r))[n]=f.extend(!0,{},i[n]||r[n]),g.isString(o)&&!g.isEmpty(o)&&(i[n]=o),(g.isEmpty(t)||g.isObject(t)&&!0!==t.radius_type_switched)&&("_all_"===n&&g.each(a.cssRadiusTypes,function(e){i=g.omit(i,e)}),a(i)),s.val(f(this).val())}),c.on("click","[data-sek-unit]",function(e,t){e.preventDefault(),c.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),f(this).addClass("is-selected").attr("aria-pressed",!0),c.find("input[data-czrtype]").data("sek-unit",f(this).data("sek-unit")),a.css_unit(f(this).data("sek-unit"),t)}),c.on("click","[data-sek-radius-type]",function(e,t){e.preventDefault(),c.find("[data-sek-radius-type]").removeClass("is-selected").attr("aria-pressed",!1),f(this).addClass("is-selected").attr("aria-pressed",!0);var i="_all_";try{i=f(this).data("sek-radius-type")}catch(e){m.errare("border_radius input type => error when attaching click event",e)}a.radiusType(i,t)}),a.container.on("click",".sek-reset-button",function(e){var t=a.radiusType()||"_all_",i=f.extend(!0,{},g.isObject(a())?a():{});g.isEmpty(i[t])||(i=g.omit(i,t),a(i),r(t))}),s.val(l.val()||0);try{r(a.radiusType())}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+a.module.module_type,e)}f('[data-sek-unit="'+a.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(r,s,a){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{buttons_choice:function(e){var n=this,o=s(".sek-button-choice-wrapper",n.container),t=o.find('input[type="number"]'),i=r.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type);a.isEmpty(i)||a.isEmpty(i.default)||i.default;t.val(n()),o.on("click","[data-sek-choice]",function(e,t){var i;e.stopPropagation(),o.find("[data-sek-choice]").removeClass("is-selected").attr("aria-pressed",!1),s(this).addClass("is-selected").attr("aria-pressed",!0);try{i=s(this).data("sek-choice")}catch(e){r.errare("buttons_choice input type => error when attaching click event",e)}n(i)}),s('[data-sek-choice="'+n()+'"]',o).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(n,o,r){n.czrInputMap=n.czrInputMap||{},o.extend(n.czrInputMap,{reset_button:function(e){this.container.on("click","[data-sek-reset-scope]",function(e,t){e.stopPropagation();var i=o(this).data("sek-reset-scope");!r.isEmpty(i)&&r.contains(["local","global"],i)?n.czr_sektions.updateAPISetting({action:"sek-reset-collection",scope:i}).done(function(e){n.previewer.refresh(),n.previewer.trigger("sek-notify",{notif_id:"reset-success",type:"success",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset complete"],"</strong>","</span>"].join("")})}).fail(function(e){n.errare("reset_button input => error when firing ::updateAPISetting",e),n.previewer.trigger("sek-notify",{notif_id:"reset-failed",type:"error",duration:8e3,message:["<span>","<strong>",sektionsLocalizedData.i18n["Reset failed"],"<br/>","<i>"+e+"</i>","</strong>","</span>"].join("")})}):n.errare("reset_button input => invalid scope provided.",i)})}})}(wp.customize,jQuery,_),function(i,r,s){i.czrInputMap=i.czrInputMap||{},r.extend(i.czrInputMap,{revision_history:function(e){var o=this;_selected_found=!1;var t=function(t){!0!==o.revisionHistorySet&&(r.when(r.Deferred(function(t){s.isEmpty(o.sek_revisionHistory)?i.czr_sektions.getRevisionHistory({is_local:"local_revisions"===o.id}).done(function(e){if(!s.isObject(e))throw new Error("_getRevisionHistory => server list is not a object");o.sek_revisionHistory=e,t.resolve(o.sek_revisionHistory)}).fail(function(e){t.reject(e)}):t.resolve(o.sek_revisionHistory)})).done(function(e){!function(e){if(!(0<o.container.find(".sek-revision-history").length))if(s.isEmpty(e))o.container.append(["<i>",sektionsLocalizedData.i18n["No revision history available for the moment."],"</i>"].join(""));else{o.container.append(r("<select/>",{class:"sek-revision-history",html:['<option value="_select_">'," -",sektionsLocalizedData.i18n.Select,"- ","</option>"].join("")}));var n=[];s.each(e,function(e,t){var i={value:t,html:e};i.value==o()&&(r.extend(i,{selected:"selected"}),_selected_found=!0),n.unshift(r("<option>",i))}),n[0].html([n[0].html(),sektionsLocalizedData.i18n["(currently published version)"]].join(" ")),s.each(n,function(e){r("select.sek-revision-history",o.container).append(e)}),r("select.sek-revision-history",o.container).selecter()}}(e),t&&!0===t.open_on_init&&s.delay(function(){try{r("select[data-czrtype]",o.container).czrSelect2("open")}catch(e){}},100)}).fail(function(e){i.errare("_getRevisionHistory => fail response =>",e)}),o.revisionHistorySet=!0)};o.container.on("change",".sek-revision-history",function(){var e=r(this).val();"_select_"!==e&&i.czr_sektions.setSingleRevision({revision_post_id:e,is_local:"local_revisions"===o.id})}),s.delay(function(){t({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(u,_,m){u.czrInputMap=u.czrInputMap||{},_.extend(u.czrInputMap,{nimble_tinymce_editor:function(){var t=this,e=t.container.find("textarea").first(),i=0<e.length?e.attr("id"):null,n=u.czr_sektions.getInputRegistrationParams(t.id,t.module.module_type),o=sektionsLocalizedData.defaultToolbarBtns;if(m.isNull(i))throw new Error("api.czrInputMap.nimble_tinymce_editor => missing textarea for module :"+t.module.id);if(tinyMCE.get(i))throw new Error("api.czrInputMap.nimble_tinymce_editor => duplicate editor id.");var r,s,a=function(){return n&&n.editor_params&&!0===n.editor_params.autop},c={tinymce:{toolbar1:function(){var e=o.split(",");if(n.editor_params&&m.isArray(n.editor_params.excludedBtns)){var t=n.editor_params.excludedBtns;e=m.filter(e,function(e){return!m.contains(t,e)})}if(n.editor_params&&m.isString(n.editor_params.includedBtns)){var i=n.editor_params.includedBtns;m.isEmpty(i)||!m.isArray(sektionsLocalizedData[i])?u.errare("nimble_tinymce_editor input => invalid set of buttons provided",i):(i=sektionsLocalizedData[i],e=m.filter(e,function(e){return m.contains(i,e)}))}return e.join(",")}(),content_css:(r=wp.editor.getDefaultSettings(),s=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],r&&r.tinymce&&r.tinymce.content_css&&(s=m.union(r.tinymce.content_css.split(","),s)),s.join(",")),min_height:40,height:n.editor_params&&m.isNumber(n.editor_params.height)?n.editor_params.height:u.czr_sektions.TINYMCE_EDITOR_HEIGHT},quicktags:{buttons:"strong,em,link,code"},mediaButtons:!n.editor_params||!1!==n.editor_params.media_button};c.tinymce.wpautop=a(),a()||(c.tinymce.forced_root_block=""),wp.editor.initialize(i,c);var l=tinyMCE.get(i);if(!l)throw new Error("setupTinyMceEditor => missing editor instance for module :"+t.module.id);u.czrActiveWPEditors=u.czrActiveWPEditors||[];var d=_.extend(!0,[],u.czrActiveWPEditors);d.push(i),u.czrActiveWPEditors=d;var p=function(){e.html(t()),l.setContent(t())};l.initialized?p():l.on("init",p),l.on("input change keyup",function(e){t(l.getContent())})},detached_tinymce_editor:function(){var e,t=this,i=_("textarea#"+sektionsLocalizedData.idOfDetachedTinyMceTextArea),n=u.czr_sektions.getInputRegistrationParams(t.id,t.module.module_type);if(!(0<i.length))throw new Error("api.czrInputMap::detached_tinymce_editor => missing textarea element");if(e=i.attr("id"),window.tinymce&&(mceInstance=window.tinymce.get(e),mceInstance&&mceInstance.remove()),!window.nimbleTinyMCEPreInit||!window.nimbleTinyMCEPreInit.mceInit||!window.nimbleTinyMCEPreInit.mceInit[e])throw new Error("setupDetachedTinyMceEditor => invalid nimbleTinyMCEPreInit global var");var o,r,s=nimbleTinyMCEPreInit.mceInit[e];s.content_css=(o=wp.editor.getDefaultSettings(),r=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],o&&o.tinymce&&o.tinymce.content_css&&(r=m.union(o.tinymce.content_css.split(","),r)),r.join(","));var a=t.input_parent,c=function(){var e=a();return m.isUndefined(e.autop)?n&&n.editor_params&&!0===n.editor_params.autop:e.autop};s.wpautop=c(),c()||(s.forced_root_block=""),s.toolbar1=sektionsLocalizedData.defaultToolbarBtns,s.toolbar2="",window.tinymce.init(s),window.QTags.getInstance(e);var l=tinyMCE.get(e);if(!l)throw new Error("setupDetachedTinyMceEditor => missing editor instance for module :"+t.module.id);var d=function(){var e=c()&&m.isFunction(wp.editor.autop)?wp.editor.autop(t()):t();l.setContent(e),u.sekEditorExpanded(!0),_(window).trigger("resize")};l.initialized?d():l.on("init",d),l.on("input change keyup keydown click SetContent BeforeSetContent",function(e){t(c()?l.getContent():wp.editor.removep(l.getContent()))}),u.sekCurrentDetachedTinyMceInput=t,i.data("czr-bound-for-detached-editor")||(i.on("input",function(e,t){u.sekCurrentDetachedTinyMceInput(_(this).val())}),i.data("czr-bound-for-detached-editor",!0))}})}(wp.customize,jQuery,_),function(l,d,p){l.czrInputMap=l.czrInputMap||{},d.extend(l.czrInputMap,{import_export:function(){var r=this,t=r.container.find('button[data-czr-action="sek-pre-import"]'),s=r.container.find("input[name=sek-import-file]"),e=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),a=e.scope,c="local"===e.scope?l.czr_sektions.localSectionsSettingId():l.czr_sektions.getGlobalSectionsSettingId();p.contains(["local","global"],a)||l.errare("api.czrInputMap.import_export => invalid currentScope",a),s.on("change",function(e){t.toggleClass("disabled",p.isEmpty(d(this).val()))});r.container.on("click","[data-czr-action]",function(e){var i,t;switch(e.stopPropagation(),d(this).data("czr-action")){case"sek-export":if(i=!1,t=wp.customize.dirtyValues(),p.isEmpty(t)||p.each(t,function(e,t){i||(i=-1!==t.indexOf("nimble"))}),i){alert(sektionsLocalizedData.i18n["You need to publish before exporting."]);break}var n=l(c)(),o=!0;if(p.each(n.collection,function(e){o&&(p.isEmpty(e.collection)||(o=!1))}),o){alert(sektionsLocalizedData.i18n["Nothing to export."]);break}l.czr_sektions.export_template({scope:a});break;case"sek-pre-import":if(p.isEmpty(l.czr_sektions.activeLocations())){alert(sektionsLocalizedData.i18n["The current page has no available locations to import Nimble Builder sections."]);break}l.czr_sektions.import_template_from_file({pre_import_check:!0,input:r,file_input:s}).done(function(e){l.czr_sektions.pre_checks_from_file_import(e,{pre_import_check:!1,input:r,file_input:s})}).fail(function(e){l.errare("import_export_ input => pre_checks_from_file_import failed",e),l.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate({input:r,file_input:s}),l.czr_sektions.import_template_from_file({input:r,file_input:s})});break;case"sek-import-as-is":l.czr_sektions.import_template_from_file({input:r,file_input:s});break;case"sek-import-assign":l.czr_sektions.import_template_from_file({assign_missing_locations:!0,input:r,file_input:s});break;case"sek-cancel-import":l.czr_sektions.doAlwaysAfterManualImportAndApiSettingUpdate({input:r,file_input:s})}})}})}(wp.customize,jQuery,_),function(c,l,d){c.czrInputMap=c.czrInputMap||{},l.extend(c.czrInputMap,{simpleselect:function(e){c.czr_sektions.setupSelectInput.call(this,e)},multiselect:function(e){c.czr_sektions.setupSelectInput.call(this,e)},simpleselectWithDeviceSwitcher:function(e){var r=this,t=(r.input_parent,r.module,c.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type)),o=l("select",r.container),s=d.isEmpty(t)||d.isEmpty(t.default)?{}:t.default,i={params:e=d.isEmpty(e)?t.choices:e};if(r.module.trigger("nimble-set-select-input-options",i),e=i.params,!d.isEmpty(e)&&d.isObject(e)){d.each(e,function(e,t){var i={value:t,html:e};t==r()?l.extend(i,{selected:"selected"}):"px"===t&&l.extend(i,{selected:"selected"}),o.append(l("<option>",i))});var a=function(e,t){var i=["mobile","tablet","desktop"];if(d.has(e,t))return e[t];var n=d.findIndex(i,function(e){return t===e});return!d.isEmpty(t)&&n<i.length?a(e,i[n+1]):l.extend(!0,{desktop:""},s).desktop};c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(r),o.on("change",function(e,t){var i,n=c.previewedDevice()||"desktop",o=l(this).val();(i=l.extend(!0,{},d.isObject(r())?r():{}))[n]=l.extend(!0,{},i[n]||{}),d.isString(o)&&!d.isEmpty(o)&&(i[n]=o),(d.isEmpty(t)||d.isObject(t)&&!0!==t.previewed_device_switched)&&r(i)}),r.previewedDevice.bind(function(e){try{!function(e){var t=r(),i={};i=l.extend(!0,{},s),d.isObject(t)?i=l.extend(!0,{},t):d.isString(t)&&!d.isEmpty(t)&&(i={desktop:t});var n=a(i,e);o.val(n).trigger("change",{previewed_device_switched:!0})}(e)}catch(e){c.errare("Error when firing syncWithPreviewedDevice for input type "+r.type+" for input id "+r.id,e)}})}else c.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+r.id+" in module "+r.module.module_type)}})}(wp.customize,jQuery,_),function(a,c,l){a.czrInputMap=a.czrInputMap||{},c.extend(a.czrInputMap,{category_picker:function(e){var n=this,o=c("select[data-czrtype]",n.container),r=function(){var e=n();return e=l.isString(e)?[e]:e,l.isArray(e)?e:[]},t=function(t){!0!==n.catCollectionSet&&(c.when(c.Deferred(function(i){l.isEmpty(a.czr_sektions.post_categories)?wp.ajax.post("sek_get_post_categories",{nonce:a.settings.nonce.save}).done(function(e){l.isArray(e)||a.errare(n.id+" => error => invalid category collection sent by server");var t={};l.each(e,function(e){l.isEmpty(e.slug)||l.isEmpty(e.name)?i.reject("missing slug or name for at least one category"):t[e.slug]=e.name}),a.czr_sektions.post_categories=t,i.resolve(a.czr_sektions.post_categories)}).fail(function(e){i.reject(e)}):i.resolve(a.czr_sektions.post_categories)})).done(function(e){i(e),t&&!0===t.open_on_init&&l.delay(function(){try{o.czrSelect2("open")}catch(e){}},100)}).fail(function(e){a.errare(n.id+" => fail response when _getCategoryCollection()",e)}),n.catCollectionSet=!0)},i=function(e){l.each(e,function(e,t){var i={value:t,html:e};l.contains(r(),t)&&c.extend(i,{selected:"selected"}),o.append(c("<option>",i))}),o.czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),o.on("change",function(){0===c(this).find("option:selected").length&&n([])})},s={};l.each(r(),function(e){s[e]=(e+"").replace(/-/g," ")}),i(s),n.container.on("click",function(){!0!==n.catCollectionSet&&(o.czrSelect2("destroy"),c.when(o.find("option").remove()).done(function(){t({open_on_init:!0})}))})}})}(wp.customize,jQuery,_),function(r,s,e){r.czrInputMap=r.czrInputMap||{},s.extend(r.czrInputMap,{grid_layout:function(e){var n=this,o=s(".sek-grid-layout-wrapper",n.container);o.find('input[type="hidden"]').val(n()),o.on("click","[data-sek-grid-layout]",function(e,t){var i;e.stopPropagation(),o.find("[data-sek-grid-layout]").removeClass("selected").attr("aria-pressed",!1),s(this).addClass("selected").attr("aria-pressed",!0);try{i=s(this).data("sek-grid-layout")}catch(e){r.errare(n.type+" => error when attaching click event",e)}n(i)}),s('[data-sek-grid-layout="'+n()+'"]',o).trigger("click")}})}(wp.customize,jQuery,_),function(i,e,t){i.czrInputMap=i.czrInputMap||{},e.extend(i.czrInputMap,{refresh_preview_button:function(e){this.container.on("click",".sek-refresh-button",function(e,t){e.stopPropagation(),i.previewer.refresh()})}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_content_type_switcher_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_content_type_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_content_type_switcher_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_module_picker_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_module_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_module_picker_module"))}})}(wp.customize,jQuery,_),function(t,e,i){t.czrModuleMap=t.czrModuleMap||{};var n=sektionsLocalizedData.presetSectionsModules;i.isArray(n)&&!i.isEmpty(n)?i.each(n,function(e){t.czrModuleMap[e]={crud:!1,name:t.czr_sektions.getRegisteredModuleProperty(e,"name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},t.czr_sektions.getDefaultItemModelFromRegisteredModuleData(e))}}):t.errare("api.czrModuleMap => error when adding section modules")}(wp.customize,jQuery,_),function(s,i,a){var e={initialize:function(e,t){this.inputConstructor=s.CZRInput.extend({initialize:function(e,t){var i=this;s.CZRInput.prototype.initialize.call(i,e,t),i.isReady.then(function(){i.renderUserSavedSections(),i.attachDomEvents()})},getUserSavedSections:function(){var t=i.Deferred();return a.isEmpty(s.czr_sektions.userSavedSections)?s.czr_sektions.getSavedSectionCollection().done(function(e){t.resolve(e)}):t.resolve(s.czr_sektions.userSavedSections),t.promise()},renderUserSavedSections:function(){var n=this,o="",r=n.container.find(".sek-content-type-wrapper"),t=function(e){if(r.find(".sek-user-section-wrapper").remove(),a.isEmpty(e)){var t=[sektionsLocalizedData.baseUrl,"/assets/admin/img/save_section_notice.png","?ver=",sektionsLocalizedData.nimbleVersion].join("");doc_url="https://docs.presscustomizr.com/article/417-how-to-save-and-reuse-sections-with-nimble-builder",o=['<div class="sek-user-section-wrapper">','<img src="'+t+'" />','<br/><a href="'+doc_url+'" target="_blank" rel="noreferrer nofollow">'+doc_url+"</a>","</div>"].join(""),r.append(o),n.module.container.find(".czr-item-content .customize-control-title").html("You did not save any section yet.")}else{var i="background: url("+[sektionsLocalizedData.baseUrl,"/assets/admin/img/nb_sec_pholder.png","?ver=",sektionsLocalizedData.nimbleVersion].join("")+") 50% 50% / cover no-repeat;";a.each(e,function(e,t){a.isEmpty(e.description)?_titleAttr=[e.title,e.last_modified_date].join(" | "):_titleAttr=[e.title,e.last_modified_date,e.description].join(" | "),o=['<div class="sek-user-section-wrapper">','<div draggable="true" data-sek-is-user-section="true" data-sek-section-type="content" data-sek-content-type="preset_section" data-sek-content-id="'+t+'" style="" title="'+e.title+'">','<div class="sek-sec-thumb" style="'+i+'"></div>','<div class="sek-overlay"></div>','<div class="sek-sec-info" title="'+_titleAttr+'">','<h3 class="sec-title">'+e.title+"</h3>",'<p class="sec-date"><i>'+[sektionsLocalizedData.i18n["Last modified"]," : ",e.last_modified_date].join(" ")+"</i></p>",'<p class="sec-desc">'+e.description+"</p>",'<i class="material-icons remove-user-sec" title="'+sektionsLocalizedData.i18n["Remove this template"]+'">delete_forever</i>',"</div>","</div>","</div>"].join(""),r.append(o)})}s.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:n.container})};n.getUserSavedSections().done(function(e){t(e)}),s.czr_sektions.allSavedSections.bind(function(e){t(e)})},attachDomEvents:function(){this.container.on("click",".sek-sec-info .remove-user-sec",function(e){e.preventDefault();var t=s.czr_sektions,i=function(e){t.saveSectionDialogMode("remove"),t.saveSectionDialogMode.unbind(i)};t.saveSectionDialogMode.bind(i),t.saveSectionDialogVisible(!0)})}}),s.CZRDynModule.prototype.initialize.call(this,e,t)}};s.czrModuleMap=s.czrModuleMap||{},i.extend(s.czrModuleMap,{sek_my_sections_sec_picker_module:{mthds:e,crud:!1,name:s.czr_sektions.getRegisteredModuleProperty("sek_my_sections_sec_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:s.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_my_sections_sec_picker_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_mod_option_switcher_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_mod_option_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_mod_option_switcher_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_anchor_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_anchor_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_anchor_module"))}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"bg-image":s.each(["bg-attachment","bg-scale","bg-repeat","bg-parallax","bg-parallax-force"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-parallax-force":e=!s.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;case"bg-scale":case"bg-repeat":e=!s.isEmpty(i()+"")&&!r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;default:e=!s.isEmpty(i()+"")}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-apply-overlay":s.each(["bg-color-overlay","bg-opacity-overlay"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-parallax":s.each(["bg-parallax-force","bg-scale","bg-repeat"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-parallax-force":e=!s.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i());break;case"bg-repeat":case"bg-scale":e=!s.isEmpty(n.czr_Input("bg-image")()+"")&&!r.CZR_Helpers.isChecked(i())}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}}),i.bind(function(e){r.CZR_Helpers.isChecked(i())&&r.CZR_Helpers.isChecked(n.czr_Input("bg-attachment")())&&n.czr_Input("bg-attachment").container.find("input[type=checkbox]").trigger("click")});break;case"bg-attachment":i.bind(function(e){r.CZR_Helpers.isChecked(i())&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")())&&n.czr_Input("bg-parallax").container.find("input[type=checkbox]").trigger("click")});break;case"bg-use-video":s.each(["bg-video","bg-video-loop","bg-video-delay-start","bg-video-on-mobile","bg-video-start-time","bg-video-end-time"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}})}}),o.control&&o.control.params&&o.control.params.sek_registration_params&&(s.contains(["section","column"],o.control.params.sek_registration_params.level)||s.each(["bg-use-video","bg-video","bg-video-loop","bg-video-on-mobile","bg-video-start-time","bg-video-end-time"],function(e){n.czr_Input(e).visible(!1)}))}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{sek_level_bg_module:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("sek_level_bg_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:s.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_bg_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_text_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_text_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_text_module")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_border_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_border_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_border_module"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use-custom-breakpoint":o.each(["custom-breakpoint","apply-to-all"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_breakpoint_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_breakpoint_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_breakpoint_module"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"height-type":o.each(["custom-height","overflow_hidden"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"custom"===t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_level_height_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_level_height_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_height_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_visibility_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_visibility_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_visibility_module"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"width-type":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"custom-width",function(){return"custom"===e()}),i.czr_sektions.scheduleVisibilityOfInputId.call(e,"h_alignment",function(){return"custom"===e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_width_module:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_level_width_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_module"))}})}(wp.customize,jQuery,_),function(d,p,u){var e={initialize:function(e,t){var i=this;i.inputConstructor=d.CZRInput.extend(i.CZRInputConstructor||{}),i.itemConstructor=d.CZRItem.extend(i.CZRItemConstructor||{}),d.CZRDynModule.prototype.initialize.call(i,e,t)},CZRInputConstructor:{range_simple:function(e){var t,i=this,n=p(".sek-range-with-unit-picker-wrapper",i.container),o=n.find('input[type="number"]'),r=n.find('input[type="range"]');try{t=i.module.control.params.sek_registration_params}catch(e){return void d.errare("Error when getting the module registration params",e)}if(u.isUndefined(t.level_id))d.errare("Error : missing column id",er);else if(i.columnId=t.level_id,i.columnModel=p.extend(!0,{},d.czr_sektions.getLevelModel(i.columnId)),i.parentSectionModel=d.czr_sektions.getParentSectionFromColumnId(i.columnId),"no_match"!=i.columnModel)if("no_match"!=i.parentSectionModel){i.colNb=u.size(i.parentSectionModel.collection),o.attr("data-sek-width-range-column-id",i.columnId),1===i.colNb?i.container.html(["<p>",sektionsLocalizedData.i18n["This is a single-column section with a width of 100%. You can act on the internal width of the parent section, or adjust padding and margin."]].join("")):i.container.show();var s,a=d.czr_sektions.getLevelModel(i.columnId),c="_not_set_";if("no_match"!=a){var l=a.options&&a.options.width&&a.options.width["custom-width"]&&u.isNumber(+a.options.width["custom-width"]);l?c=a.options.width["custom-width"]:!l&&a.width&&u.isNumber(+a.width)&&(c=a.width),s="_not_set_"!==c?c:"_not_set_"===i()?Math.floor(100/i.colNb):i(),s=1*+parseFloat(s).toFixed(3),(!u.isNumber(s)||100<s||s<0)&&(d.errare("Error => invalid column width",s),s=50),r.on("input",function(e,t){o.val(p(this).val()).trigger("input",t)}),o.on("input",u.debounce(function(e,t){r.val(p(this).val()),t&&t.is_init||i(+parseFloat(p(this).val()).toFixed(3))},300)),o.on("input",u.debounce(function(e,t){t&&(t.is_init||t.is_resize_column_trigger)||i.sayItToApi(p(this).val())},300)),r.val(s).trigger("input",{is_init:!0})}else d.errare("sek_level_width_column module => invalid column model")}else d.errare("sek_level_width_column module => invalid parent section model");else d.errare("sek_level_width_column module => invalid column model")},sayItToApi:function(e,t){var i=this,n=u.findIndex(i.parentSectionModel.collection,{id:i.columnId}),o=n+1==i.colNb?n-1:n+1,r=u.find(i.parentSectionModel.collection,function(e,t){return o===t});"no_match"===r&&d.errare("sek_level_width_column module => invalid sister column model"),d.previewer.trigger("sek-resize-columns",{action:"sek-resize-columns",level:"column",in_sektion:i.parentSectionModel.id,id:i.columnId,resized_column:i.columnId,sister_column:r.id,resizedColumnWidthInPercent:e,col_number:i.colNb})}}};d.czrModuleMap=d.czrModuleMap||{},p.extend(d.czrModuleMap,{sek_level_width_column:{mthds:e,crud:!1,name:d.czr_sektions.getRegisteredModuleProperty("sek_level_width_column","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:u.extend({id:"",title:""},d.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_column"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_width_section:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_level_width_section","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_width_section"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_level_spacing_module:{mthds:"",crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_level_spacing_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_spacing_module"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_template:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_template","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_template"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_local_widths:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_local_widths","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_widths"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_custom_css:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_custom_css","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_custom_css"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_reset:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_reset","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_reset"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_performances:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_performances","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_performances"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_header_footer:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_header_footer","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_header_footer"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_revisions:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_revisions","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_revisions"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_local_imp_exp:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_local_imp_exp","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_local_imp_exp"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"links_underline":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"links_underline_hover",function(){return!e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_text:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_text","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_text"))}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use-custom-breakpoint":o.each(["global-custom-breakpoint","apply-to-all"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{sek_global_breakpoint:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("sek_global_breakpoint","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:o.extend({id:"",title:""},n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_breakpoint"))}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(e){switch(e.id){case"use-custom-outer-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"outer-section-width",function(){return e()});break;case"use-custom-inner-width":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"inner-section-width",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_widths:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_widths","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_widths"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_performances:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_performances","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_performances"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_header_footer:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_header_footer","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_header_footer"))}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"enable":s.each(["public_key","private_key","badge","show_failure_message","failure_message","score"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"failure_message":e=i()&&n.czr_Input("show_failure_message")();break;default:e=i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_failure_message":s.each(["failure_message"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()&&n.czr_Input("enable")()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{sek_global_recaptcha:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("sek_global_recaptcha","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:s.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_recaptcha"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_revisions:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_revisions","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_revisions"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_reset:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_reset","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_reset"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_imp_exp:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_imp_exp","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_imp_exp"))}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{sek_global_beta_features:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("sek_global_beta_features","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_global_beta_features"))}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e})},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,t=n.module;n.czr_Input.each(function(i){switch(i.id){case"img":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"img-size",function(){return!r.isEmpty(i()+"")&&r.isNumber(i())});break;case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"===i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":e="url"===i();break;case"link-target":e=!r.contains(["no-link","img-lightbox"],i())}return e})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"border-type":r.each(["borders"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"none"!==i()})}catch(e){o.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"use_custom_width":r.each(["custom_width"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"use_custom_title_attr":r.each(["heading_title"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Image module => error in setInputVisibilityDeps",e)}})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_image_main_settings_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_image_main_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_image_main_settings_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_image_borders_corners_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_image_borders_corners_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_image_borders_corners_child")}})}(wp.customize,jQuery,_),function(n,e,t){var i={initialize:function(e,t){this.inputConstructor=n.CZRInput.extend(this.CZRTextEditorInputMths||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRTextEditorInputMths:{initialize:function(e,t){var i=this;"detached_tinymce_editor"==i.type&&i.isReady.then(function(){i.container.find('[data-czr-action="open-tinymce-editor"]').trigger("click")}),n.CZRInput.prototype.initialize.call(i,e,t)}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_tinymce_child:{mthds:i,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_tinymce_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_tinymce_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_html_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_html_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_html_module")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(i){switch(i.id){case"img-type":o.each(["img-id","img-size"],function(t){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"img-id":e="custom"===i();break;default:e="none"!==i()}return e})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}});break;case"content-type":o.each(["content-custom-text"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"custom"===i()})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}});break;case"btn-display":o.each(["btn-custom-text"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){n.errare("Featured pages module => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_featured_pages_module:{mthds:t,crud:n.czr_sektions.getRegisteredModuleProperty("czr_featured_pages_module","is_crud"),hasPreItem:!1,refresh_on_add_item:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_featured_pages_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_featured_pages_module")}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":s.each(["link-pick-url","link-custom-url","link-target"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"==i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;default:e="url"==i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":r.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"use_custom_color_on_hover":s.each(["color_hover"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{czr_icon_settings_child:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("czr_icon_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_icon_settings_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_icon_spacing_border_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_icon_spacing_border_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_icon_spacing_border_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e})},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this;n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e=i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":case"link-target":e=i()}return e})}catch(e){o.errare("Heading module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&!0===n.czr_Input("link-to")()})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_heading_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_heading_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_heading_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_heading_spacing_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_heading_spacing_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_heading_spacing_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_divider_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_divider_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_divider_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_spacer_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_spacer_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_spacer_module")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_map_module:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_map_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_map_module")}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRButtonItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRButtonItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"quote_design":n.each(["border_width_css","border_color_css"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"border-before"==t()})}catch(e){i.errare("Quote module => error in setInputVisibilityDeps",e)}}),n.each(["icon_color_css","icon_size_css"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"quote-icon-before"==t()})}catch(e){i.errare("Quote module => error in setInputVisibilityDeps",e)}})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_quote_design_child:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_quote_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_design_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_quote_quote_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_quote_quote_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_quote_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_quote_cite_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_quote_cite_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_quote_cite_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),this.bind("set_default_content_picker_options",function(e){return e.defaultContentPickerOption.defaultOption={title:'<span style="font-weight:bold">'+sektionsLocalizedData.i18n["Set a custom url"]+"</span>",type:"",type_label:"",object:"",id:"_custom_",url:""},e}),o.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this;n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":r.each(["link-pick-url","link-custom-url","link-target"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"==i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;default:e="url"==i()}return e})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"icon":o.czr_sektions.scheduleVisibilityOfInputId.call(i,"icon-side",function(){return!r.isEmpty(i())})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_btn_content_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_btn_content_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_btn_content_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var e=this,i=e.module;e.czr_Input.each(function(t){switch(t.id){case"use_custom_bg_color_on_hover":o.each(["bg_color_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":o.each(["push_effect"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare("Button module => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_btn_design_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_btn_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_btn_design_child")}})}(wp.customize,jQuery,_),function(o,e,r){var t={initialize:function(e,t){this.itemConstructor=o.CZRItem.extend(this.CZRItemConstructor||{}),o.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!r.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){o.errorLog("item.setInputVisibilityDeps() : "+e)}}),o.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this.module;this.czr_Input.each(function(i){switch(i.id){case"layout":r.each(["columns","img_column_width","has_tablet_breakpoint","has_mobile_breakpoint"],function(t){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"columns":e="grid"===i();break;case"has_tablet_breakpoint":case"has_mobile_breakpoint":case"img_column_width":e="list"===i()}return e})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"categories":r.each(["must_have_all_cats"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){var e=i();return r.isArray(e)&&1<e.length})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"display_pagination":r.each(["posts_per_page","post_number"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return"posts_per_page"===e?i():!i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"custom_grid_spaces":r.each(["column_gap","row_gap"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_excerpt":r.each(["excerpt_length"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare(n.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_post_grid_main_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_post_grid_main_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_main_child")}})}(wp.customize,jQuery,_),function(r,e,s){var t={initialize:function(e,t){this.itemConstructor=r.CZRItem.extend(this.CZRItemConstructor||{}),r.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!s.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){r.errorLog("item.setInputVisibilityDeps() : "+e)}}),r.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var n=this,o=n.module;n.czr_Input.each(function(i){switch(i.id){case"show_thumb":s.each(["img_size","img_has_custom_height","img_height","border_radius_css","use_post_thumb_placeholder"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"img_height":e=i()&&n.czr_Input("img_has_custom_height")();break;default:e=i()}return e})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}});break;case"img_has_custom_height":s.each(["img_height"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()&&n.czr_Input("show_thumb")()})}catch(e){r.errare(o.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};r.czrModuleMap=r.czrModuleMap||{},e.extend(r.czrModuleMap,{czr_post_grid_thumb_child:{mthds:t,crud:!1,name:r.czr_sektions.getRegisteredModuleProperty("czr_post_grid_thumb_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_thumb_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_post_grid_metas_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_post_grid_metas_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_metas_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_post_grid_fonts_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_post_grid_fonts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_post_grid_fonts_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_menu_content_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_menu_content_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_menu_content_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_menu_mobile_options:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_menu_mobile_options","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_menu_mobile_options")}})}(wp.customize,jQuery,_),function(i,e,n){var t={initialize:function(e,t){this.itemConstructor=i.CZRItem.extend(this.CZRItemConstructor||{}),i.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!n.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){i.errorLog("item.setInputVisibilityDeps() : "+e)}}),i.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"show_name_field":n.each(["name_field_label","name_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_subject_field":n.each(["subject_field_label","subject_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"show_message_field":n.each(["message_field_label","message_field_required"],function(e){try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":try{i.czr_sektions.scheduleVisibilityOfInputId.call(t,"link-custom-url",function(){return t()})}catch(e){i.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_simple_form_fields_child:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_simple_form_fields_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_fields_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_simple_form_design_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_simple_form_design_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_design_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use_custom_bg_color_on_hover":o.each(["bg_color_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}});break;case"border-type":o.each(["borders"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"none"!==t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":o.each(["push_effect"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(t.module.module_type+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_simple_form_button_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_simple_form_button_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_button_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_form_fonts_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_form_fonts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_fonts_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_simple_form_submission_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_simple_form_submission_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_simple_form_submission_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_font_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_font_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_font_child")}})}(wp.customize,jQuery,_),function(i,e,t){var n={initialize:function(e,t){this.bind("nimble-set-select-input-options",function(e){e.params=sektionsLocalizedData.registeredWidgetZones}),i.CZRDynModule.prototype.initialize.call(this,e,t)}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{czr_widget_area_module:{mthds:n,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("czr_widget_area_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:i.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_widget_area_module")}})}(wp.customize,jQuery,_),function(s,a,c){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=s.CZRItem.extend(i.CZRItemConstructor||{}),s.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return s.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&a.fn.sortable){var i=this;a("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){c.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!c.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){s.errorLog("item.setInputVisibilityDeps() : "+e)}}),s.CZRItem.prototype.ready.call(t)},_buildTitle:function(e,t,i){var n=this.module;return e=e||("string"==typeof t?s.CZR_Helpers.capitalize(t.replace("fa-","")):""),e=s.CZR_Helpers.truncate(e,20),'<div><span class="'+t+'" style="color:'+(i=i||n.defaultSocialColor)+'"></span> '+e+"</div>"},writeItemViewTitle:function(e){var t=this.module,i=e||this(),n=(i.icon?i.icon:"").replace("fa-","").replace("envelope","email").replace("far","").replace("fab","").replace("fas","");a("."+t.control.css_attr.item_title,this.container).html(this._buildTitle(n,i.icon,i.color_css))},setInputVisibilityDeps:function(){this.module;this.czr_Input.each(function(t){switch(t.id){case"use_custom_color_on_hover":c.each(["social_color_hover"],function(e){try{s.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){s.errare("Featured pages module => error in setInputVisibilityDeps",e)}})}})},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=c.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=c.without(n,c.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=a.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=s(i.control.id).transport||!c.has(e,"dom_event")||c.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){s.previewer.unbind("ready",r),i.trigger("item-removed",o)};s.previewer.bind("ready",r)}}}};s.czrModuleMap=s.czrModuleMap||{},a.extend(s.czrModuleMap,{czr_social_icons_settings_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:s.czr_sektions.getRegisteredModuleProperty("czr_social_icons_settings_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:s.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_social_icons_settings_child")}})}(wp.customize,jQuery,_),function(e,t,i){e.czrModuleMap=e.czrModuleMap||{},t.extend(e.czrModuleMap,{czr_social_icons_style_child:{crud:!1,name:e.czr_sektions.getRegisteredModuleProperty("czr_social_icons_style_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:e.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_social_icons_style_child")}})}(wp.customize,jQuery,_),function(g,h,v){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=g.CZRItem.extend(i.CZRItemConstructor||{}),g.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return g.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&h.fn.sortable){var i=this;h("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){v.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},getPreItem:function(){var e=g.czr_sektions.getRegisteredModuleProperty("czr_img_slider_collection_child","starting_value"),t=h.extend(!0,{},this.preItem());if(v.isObject(e)){var i=h.extend(!0,{},e);return h.extend(t,i)}return this.preItem()},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!v.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){g.errorLog("item.setInputVisibilityDeps() : "+e)}}),g.CZRItem.prototype.ready.call(t);var i=function(){g.previewer.send("sek-item-focus",{control_id:t.module.control.id,item_id:t.id,item_value:t()})};t.viewState.callbacks.add(function(e,t){"expanded"===e&&i()}),t.callbacks.add(i),t.bind("sek-request-item-focus-in-preview",i)},writeItemViewTitle:function(e,t){var i=this,n=i.module,o=e||i(),r="",s="",a="not_set",c=!v.isUndefined(t)&&v.isObject(t);if(!c||!t.input_changed||v.contains(["img","text_content"],t.input_changed)){if(v.isEmpty(o.title)){var l=v.findIndex(n.itemCollection(),function(e){return e.id===i.id});l=v.isUndefined(l)?1:l+1}else r=o.title;r=g.CZR_Helpers.truncate(r,15),o.img&&(s=o.img,v.isString(o.img)&&(s=-1!==o.img.indexOf("http")?o.img:parseInt(o.img,10)));var d=function(){return h.Deferred(function(){var e=this;v.isUndefined(s)||v.isEmpty(""+s)?e.resolve(""):v.isString(s)&&-1!==s.indexOf("http")?e.resolve(s):wp.media.attachment(s).fetch().always(function(){if(v.isObject(this)&&v.has(this,"attributes")&&v.has(this.attributes,"sizes")){var i=this.get("sizes");i&&v.isObject(i)&&v.each(["thumbnail","medium","large","full"],function(e,t){"not_set"===a&&i[e]&&v.isObject(i[e])&&i[e].url&&(a=i[e].url)}),e.resolve(a)}})}).promise()},p=h("."+n.control.css_attr.item_title,i.container).find(".sek-slide-title"),u=h("."+n.control.css_attr.item_title,i.container).find(".sek-slide-thumb"),_=o.text_content?o.text_content:"";_=(_=h("<div>").html(_).text()).substring(0,60),p.length<1?(h("."+n.control.css_attr.item_title,i.container).html(""),h("."+n.control.css_attr.item_title,i.container).append(h("<div/>",{class:"sek-slide-title",html:_}))):p.html(_);var m=c&&t.input_changed&&"img"===t.input_changed,f=function(e){return v.isEmpty(""+e)||"not_set"===e?"":'<img src="'+e+'" width="32" alt="'+r+'" />'};h("."+n.control.css_attr.item_title,i.container).css("padding","0 4px"),u.length<1?d().done(function(e){h("."+n.control.css_attr.item_title,i.container).prepend(h("<div/>",{class:"sek-slide-thumb",html:f(e)}))}):!m&&c||d().done(function(e){u.html(f(e))})}},setInputVisibilityDeps:function(){var n=this,t=n.module;n.czr_Input.each(function(i){switch(i.id){case"link-to":v.each(["link-pick-url","link-custom-url","link-target"],function(t){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"link-custom-url":e="url"===i()&&"_custom_"==n.czr_Input("link-pick-url")().id;break;case"link-pick-url":e="url"===i();break;case"link-target":e=!v.contains(["no-link"],i())}return e})}catch(e){g.errare("Image module => error in setInputVisibilityDeps",e)}});break;case"link-pick-url":g.czr_sektions.scheduleVisibilityOfInputId.call(i,"link-custom-url",function(){return"_custom_"==i().id&&"url"==n.czr_Input("link-to")()});break;case"apply-overlay":v.each(["color-overlay","opacity-overlay"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"enable_text":v.each(["text_content","font_family_css","font_size_css","line_height_css","color_css","h_alignment_css","v_alignment","spacing_css"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}});break;case"apply_overlay":v.each(["color-overlay","opacity-overlay"],function(e){try{g.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return g.CZR_Helpers.isChecked(i())})}catch(e){g.errare(t.id+" => error in setInputVisibilityDeps",e)}})}})},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=v.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=v.without(n,v.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=h.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=g(i.control.id).transport||!v.has(e,"dom_event")||v.has(e.dom_event,"isTrigger")||g.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){g.previewer.unbind("ready",r),i.trigger("item-removed",o)};g.previewer.bind("ready",r)}}}};g.czrModuleMap=g.czrModuleMap||{},h.extend(g.czrModuleMap,{czr_img_slider_collection_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:g.czr_sektions.getRegisteredModuleProperty("czr_img_slider_collection_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:g.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_img_slider_collection_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=n.CZRItem.extend(i.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(i,e,t)},CZRItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"height-type":o.each(["custom-height"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return"custom"===t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}});break;case"autoplay":o.each(["autoplay_delay","pause_on_hover"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return n.CZR_Helpers.isChecked(t())})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_img_slider_opts_child:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_img_slider_opts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_img_slider_opts_child")}})}(wp.customize,jQuery,_),function(d,p,u){var e={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=d.CZRItem.extend(i.CZRItemConstructor||{}),d.CZRDynModule.prototype.initialize.call(i,e,t)},generateItemId:function(){return d.czr_sektions.guid()},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&p.fn.sortable){var i=this;p("."+i.control.css_attr.items_wrapper,i.container).sortable({handle:"."+i.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){i._getSortedDOMItemCollection().done(function(e){i.itemCollection.set(e)}).then(function(){u.has(i,"preItem")&&i.preItemExpanded.set(!1),i.closeAllItems().closeRemoveDialogs(),i.trigger("item-collection-sorted")})}})}},getPreItem:function(){var e=d.czr_sektions.getRegisteredModuleProperty("czr_accordion_collection_child","starting_value"),t=p.extend(!0,{},this.preItem());if(u.isObject(e)){var i=p.extend(!0,{},e);return p.extend(t,i)}return this.preItem()},CZRItemConstructor:{ready:function(){var e=this;d.CZRItem.prototype.ready.call(e);var i=function(){d.previewer.send("sek-item-focus",{control_id:e.module.control.id,item_id:e.id,item_value:e()})};e.viewState.callbacks.add(function(e,t){"expanded"===e&&i()}),e.callbacks.add(i),e.bind("sek-request-item-focus-in-preview",i),e.module.bind("item-collection-sorted",function(){e.writeItemViewTitle(e(),{input_changed:"title_text"})})},writeItemViewTitle:function(e,t){var i=this,n=i.module,o=e||i(),r="";if(!(!u.isUndefined(t)&&u.isObject(t))||!t.input_changed||u.contains(["title_text"],t.input_changed)){if(u.isEmpty(o.title)){var s=u.findIndex(n.itemCollection(),function(e){return e.id===i.id});s=u.isUndefined(s)?1:s+1}else r=o.title;r=d.CZR_Helpers.truncate(r,25);var a=p("."+n.control.css_attr.item_title,i.container).find(".sek-accord-title"),c=o.title_text?o.title_text:"";c=p("<div>").html(c).text();var l=i.module.container.find(".czr-items-wrapper > li").index(i.container);c=(c=u.isEmpty(c)?sektionsLocalizedData.i18n["Accordion title"]+" #"+(+l+1):c).substring(0,60),a.length<1?(p("."+n.control.css_attr.item_title,i.container).html(""),p("."+n.control.css_attr.item_title,i.container).append(p("<div/>",{class:"sek-accord-title",html:c}))):a.html(c)}},toggleRemoveAlert:function(){this.removeItem()},removeItem:function(e){e=e||{};var t=this,i=this.module,n=u.clone(i.itemCollection());i.trigger("pre_item_dom_remove",t()),t._destroyView(),n=u.without(n,u.findWhere(n,{id:t.id})),i.itemCollection.set(n),i.trigger("pre_item_api_remove",t());var o=p.extend(!0,{},t());if(i.czr_Item.remove(t.id),"postMessage"!=d(i.control.id).transport||!u.has(e,"dom_event")||u.has(e.dom_event,"isTrigger")||d.CZR_Helpers.hasPartRefresh(i.control.id))i.trigger("item-removed",o),i.control.trigger("item-removed",o);else{var r=function(){d.previewer.unbind("ready",r),i.trigger("item-removed",o)};d.previewer.bind("ready",r)}}}};d.czrModuleMap=d.czrModuleMap||{},p.extend(d.czrModuleMap,{czr_accordion_collection_child:{mthds:e,crud:!0,hasPreItem:!1,refresh_on_add_item:!1,name:d.czr_sektions.getRegisteredModuleProperty("czr_accordion_collection_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:d.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_accordion_collection_child")}})}(wp.customize,jQuery,_),function(n,e,t){var i={initialize:function(e,t){var i=this;i.crudModulePart="nimble-crud-module-part",i.rudItemPart="nimble-rud-item-part",i.itemConstructor=n.CZRItem.extend(i.CZRItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(i,e,t)},CZRItemConstructor:{ready:function(){n.CZRItem.prototype.ready.call(this)}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_accordion_opts_child:{mthds:i,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_accordion_opts_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_accordion_opts_child")}})}(wp.customize,jQuery,_),function(n,e,o){var t={initialize:function(e,t){this.itemConstructor=n.CZRItem.extend(this.CZRButtonItemConstructor||{}),n.CZRDynModule.prototype.initialize.call(this,e,t)},CZRButtonItemConstructor:{ready:function(){var t=this;t.inputCollection.bind(function(e){if(!o.isEmpty(e))try{t.setInputVisibilityDeps()}catch(e){n.errorLog("item.setInputVisibilityDeps() : "+e)}}),n.CZRItem.prototype.ready.call(t)},setInputVisibilityDeps:function(){var i=this.module;this.czr_Input.each(function(t){switch(t.id){case"use_flex":o.each(["h_alignment_css"],function(e){try{n.czr_sektions.scheduleVisibilityOfInputId.call(t,e,function(){return t()})}catch(e){n.errare(i.id+" => error in setInputVisibilityDeps",e)}})}})}}};n.czrModuleMap=n.czrModuleMap||{},e.extend(n.czrModuleMap,{czr_shortcode_module:{mthds:t,crud:!1,name:n.czr_sektions.getRegisteredModuleProperty("czr_shortcode_module","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:n.czr_sektions.getDefaultItemModelFromRegisteredModuleData("czr_shortcode_module")}})}(wp.customize,jQuery,_);
assets/czr/sek/js/ccat-sek-preview.js CHANGED
@@ -69,7 +69,10 @@ var SekPreviewPrototype = SekPreviewPrototype || {};
69
  active_locs_info.push({
70
  id : $(this).data('sek-id'),
71
  is_global : true === $(this).data('sek-is-global-location'),
72
- is_header_footer : true === $(this).data('sek-is-header-location') || true === $(this).data('sek-is-footer-location')
 
 
 
73
  });
74
  });
75
  api.preview.send('sek-active-locations-in-preview', { active_locations : active_locs, active_locs_info : active_locs_info } );
@@ -1406,6 +1409,8 @@ var SekPreviewPrototype = SekPreviewPrototype || {};
1406
  self.errare( '::scheduleUiClickReactions => error location id can not be empty' );
1407
  }
1408
 
 
 
1409
  switch( clickedOn ) {
1410
  case 'addContentButton' :
1411
  var is_first_section = true === $el.closest('[data-sek-is-first-section]').data('sek-is-first-section');
@@ -1496,7 +1501,6 @@ var SekPreviewPrototype = SekPreviewPrototype || {};
1496
  break;
1497
  }
1498
 
1499
- //console.log('CLICKED ?', clickedOn );
1500
  });//$('body').on('click', function( evt ) {}
1501
 
1502
  },//scheduleUserReactions()
69
  active_locs_info.push({
70
  id : $(this).data('sek-id'),
71
  is_global : true === $(this).data('sek-is-global-location'),
72
+ is_header_footer : true === $(this).data('sek-is-header-location') || true === $(this).data('sek-is-footer-location'),
73
+ // added for https://github.com/presscustomizr/nimble-builder-pro/issues/6
74
+ is_header : true === $(this).data('sek-is-header-location'),
75
+ is_footer : true === $(this).data('sek-is-footer-location')
76
  });
77
  });
78
  api.preview.send('sek-active-locations-in-preview', { active_locations : active_locs, active_locs_info : active_locs_info } );
1409
  self.errare( '::scheduleUiClickReactions => error location id can not be empty' );
1410
  }
1411
 
1412
+ //console.log('ALORS CLICKED ?', clickedOn );
1413
+
1414
  switch( clickedOn ) {
1415
  case 'addContentButton' :
1416
  var is_first_section = true === $el.closest('[data-sek-is-first-section]').data('sek-is-first-section');
1501
  break;
1502
  }
1503
 
 
1504
  });//$('body').on('click', function( evt ) {}
1505
 
1506
  },//scheduleUserReactions()
assets/czr/sek/js/ccat-sek-preview.min.js CHANGED
@@ -1 +1 @@
1
- var SekPreviewPrototype=SekPreviewPrototype||{};!function(a,s,i){s.extend(SekPreviewPrototype,{cachedElements:{$body:s("body"),$window:s(window)},initialize:function(){var t=this;try{this.skope_id=i.findWhere(_wpCustomizeSettings.czr_new_skopes,{skope:"local"}).skope_id}catch(e){return void this.errare("Preview => error when storing the skope_id",e)}this.scheduleHighlightActiveLevel(),t.setupLoader(),s(function(){t.setupSortable(),t.setupResizable(),t.setupUiHoverVisibility(),t.scheduleUiClickReactions(),t.schedulePanelMsgReactions()}),t.cachedElements.$body.on("sek-columns-refreshed sek-modules-refreshed",function(e,t){if(!i.isUndefined(t)&&!i.isUndefined(t.in_sektion)&&0<s('[data-sek-id="'+t.in_sektion+'"]').length){var a=s('[data-sek-id="'+t.in_sektion+'"]');a.toggleClass("sek-has-modules",0<a.find('[data-sek-level="module"]').length)}}),t.deactivateLinks(),t.cachedElements.$body.on(["sek-modules-refreshed","sek-columns-refreshed","sek-section-added","sek-level-refreshed","sek-edit-module"].join(" "),function(e){t.deactivateLinks(e)});var e=function(){var e=[],t=[];s('[data-sek-level="location"]').each(function(){e.push(s(this).data("sek-id")),t.push({id:s(this).data("sek-id"),is_global:!0===s(this).data("sek-is-global-location"),is_header_footer:!0===s(this).data("sek-is-header-location")||!0===s(this).data("sek-is-footer-location")})}),a.preview.send("sek-active-locations-in-preview",{active_locations:e,active_locs_info:t})};a.preview.bind("sek-request-active-locations",e),e()},deactivateLinks:function(e){e=e||{};this.cachedElements.$body.find('[data-sek-level="module"]').each(function(){s(this).find("a").each(function(){try{(function(){if("yes"!==s(this).data("sek-unlinked")){var e=i.isString(s(this)[0].protocol)&&-1!==s(this)[0].protocol.indexOf("javascript");!e&&a.isLinkPreviewable(s(this)[0])?(s(this).addClass("nimble-shift-clickable"),s(this).data("sek-unlinked","yes").attr("data-nimble-href",s(this).attr("href")).attr("href","javascript:void(0)"),s(this).removeAttr("target"),s(this).hover(function(){s(this).attr("title",sekPreviewLocalized.i18n["Shift-click to visit the link"])},function(){s(this).removeAttr("title")}),s(this).on("click",function(e){e.shiftKey&&(e.preventDefault(),window.location.href=s(this).attr("data-nimble-href"))})):(s(this).addClass("nimble-unclickable"),s(this).data("sek-unlinked","yes").attr("data-nimble-href",s(this).attr("href")).attr("href","javascript:void(0)"),s(this).hover(function(){s(this).attr("title",e?sekPreviewLocalized.i18n["Link deactivated while previewing"]:sekPreviewLocalized.i18n["External links are disabled when customizing"])},function(){s(this).removeAttr("title")}),s(this).on("click",function(e){e.preventDefault()}))}}).call(s(this))}catch(e){a.errare("::deactivateLinks => error ",e)}})})},scheduleHighlightActiveLevel:function(){var n=this;this.activeLevelUI=new a.Value(""),this.activeLevelEl=new a.Value(null),this.activeUIChangedRecently=new a.Value(!1),this.activeLevelUI.bind(function(e,t){var a=s('[data-sek-id="'+e+'"]'),i=s('[data-sek-id="'+t+'"]');0<a.length&&(a.addClass("sek-active-ui sek-highlight-active-ui"),n.activeLevelEl(a)),0<i.length&&i.removeClass("sek-active-ui sek-highlight-active-ui"),n.activeUIChangedRecently(Date.now())}),n.activeLevelEl.bind(function(e){if(i.isObject(e)&&0<e.length&&!nb_.isInScreen(e[0]))try{e[0].scrollIntoView()}catch(e){n.errare("activeLevelEl error",e)}}),i.each(["sek-refresh-stylesheet","sek-refresh-level"],function(e){a.preview.bind(e,function(e){n.activeUIChangedRecently(Date.now())})}),this.activeUIChangedRecently.bind(function(e){var t=s('[data-sek-id="'+n.activeLevelUI()+'"]');s(".sek-highlight-active-ui").length&&s(".sek-highlight-active-ui").removeClass("sek-highlight-active-ui"),0<t.length&&t.toggleClass("sek-highlight-active-ui",!1!==e),clearTimeout(s.data(this,"_ui_change_timer_")),s.data(this,"_ui_change_timer_",setTimeout(function(){n.activeUIChangedRecently(!1)},3e3))})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(m,h,p){h.extend(SekPreviewPrototype,{setupSortable:function(){var a=this;return this.sortableDefaultParams={placeholder:"sortable-placeholder",over:function(e,t){},cursorAt:{top:0,left:0},tolerance:"pointer"},h('[data-sek-level="location"]').each(function(){a.makeSektionsSortableInLocation(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-section-added sek-level-refreshed sek-location-refreshed",'[data-sek-level="location"]',function(e,t){a.makeSektionsSortableInLocation(h(this).data("sek-id"))}),h('[data-sek-level="location"]').each(function(){h(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-columns-refreshed sek-section-added",'[data-sek-level="section"]',function(e){a.makeColumnsSortableInSektion(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(h(this).data("sek-id"))})}),h('[data-sek-level="location"]').each(function(){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-modules-refreshed",'[data-sek-level="column"]',function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-columns-refreshed",'[data-sek-level="section"]',function(){h(this).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-section-added",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-location-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),this},printAllLevelsUi:function(){var e=this;e.cachedElements.$body.find("[data-sek-level]").each(function(){e.printLevelUI(h(this)),h(this).find(".sek-dyn-ui-wrapper").stop(!0,!0).show()})},makeSektionsSortableInLocation:function(e){var a,i,t,n=this,s=[];!0!==h('[data-sek-id="'+e+'"]').data("sek-is-global-location")&&(t=h.extend(!0,{},n.sortableDefaultParams),h('[data-sek-id="'+e+'"]').sortable(p.extend(t,{items:'[data-sek-level="section"]',handle:".sek-move-section",connectWith:'[data-sek-is-global-location="false"]',placeholder:{element:function(e){return h('<div class="sortable-placeholder"><div class="sek-module-placeholder-content"><p>'+sekPreviewLocalized.i18n["Insert here"]+"</p></div></div>")[0]},update:function(e,t){}},start:function(e,t){n.cachedElements.$body.addClass("sek-moving-section"),n.isDraggingElement=!0,$sourceLocation=t.item.closest('[data-sek-level="location"]'),a=$sourceLocation.data("sek-id"),n.printAllLevelsUi()},stop:function(e,t){n.cachedElements.$body.removeClass("sek-moving-section"),n.isDraggingElement=!1,s=[],$targetLocation=t.item.closest('[data-sek-level="location"]'),i=$targetLocation.data("sek-id"),$targetLocation.children('[data-sek-level="section"]').each(function(){s.push(h(this).data("sek-id"))}),m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"section",newOrder:s,from_location:a,to_location:i})},over:function(e,t){t.placeholder.addClass("sek-sortable-section-over")},out:function(e,t){t.placeholder.removeClass("sek-sortable-section-over")}})))},makeColumnsSortableInSektion:function(e){var a,i,n,s,o=this,t=h.extend(!0,{},o.sortableDefaultParams),d=[],l=[],r=h('[data-sek-id="'+e+'"]').find(".sek-sektion-inner").first(),c=function(e){if(e=h.extend({forTarget:!0},e||{}),!p.isEmpty(h(this).data("_sortable_columns_css_classes_")))return h(this).data("_sortable_columns_css_classes_");var t,a=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length,i=Math.floor(100/a);t=!0===e.forTarget?12<a+1?12:a+1:a-1<1?1:a-1;var n={current:"sek-col-"+i,next:"sek-col-"+Math.floor(100/t)};return h(this).data("_sortable_columns_css_classes_",n),n};r.sortable(p.extend(t,{handle:".sek-move-column",connectWith:".sek-sektion-inner",over:function(e,t){var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)}))},out:function(e,t){var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)}))},remove:function(e,t){n=t.item.closest('[data-sek-level="location"]'),to_location=n.data("sek-id"),s=!0===n.data("sek-is-global-location");var a=to_location!=from_location;return i!==s||!0===i&&!0===s&&a?(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["Moving elements between global and local sections is not allowed."]}),!1):($targetSektionCandidate=t.item.closest('[data-sek-level="section"]'),!(0<$targetSektionCandidate.length&&12<$targetSektionCandidate.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length)||(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["You've reached the maximum number of columns allowed in this section."]}),!1))},start:function(e,t){a=t.item.closest('[data-sek-level="location"]'),from_location=a.data("sek-id"),i=!0===a.data("sek-is-global-location"),d=[],l=[],from_sektion=t.item.closest('[data-sek-level="section"]').data("sek-id"),t.item.closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){d.push(h(this).data("sek-id"))}),h(this).data("sek-is-sender",!0),p.isEmpty(d)?o.errare("column sortable => startOrder should not be empty"):o.printAllLevelsUi()},stop:function(e,t){$targetSektion=t.item.closest('[data-sek-level="section"]'),to_sektion=$targetSektion.data("sek-id"),$targetSektion.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){l.push(h(this).data("sek-id"))});var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)})),h('[data-sek-level="section"]').find(".sek-sektion-inner").each(function(){h(this).data("sek-is-sender",null).data("_sortable_columns_css_classes_",null)}),p.isEmpty(l)?o.errare("column sortable => newOrder should not be empty"):p.isEqual(l,d)&&to_sektion===from_sektion?sekPreviewLocalized.isDevMode&&o.errare("preview => makeModulesSortableInColumn => start and stop positions are identical"):(m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"column",newOrder:l,from_sektion:from_sektion,to_sektion:to_sektion}),h('div[data-sek-id="'+from_sektion+'"]').trigger("sek-level-refreshed"),from_sektion!==to_sektion&&h('div[data-sek-id="'+to_sektion+'"]').trigger("sek-level-refreshed"))}}))},makeModulesSortableInColumn:function(e){var a,i,n,s,t,o,d,l,r,c=[],k=[],u=this;t=h.extend(!0,{},u.sortableDefaultParams),h('[data-sek-id="'+e+'"]').find(".sek-column-inner").first().sortable(p.extend(t,{handle:".sek-move-module",connectWith:".sek-column-inner",over:function(e,t){h('[data-sek-level="location"]').find(".sek-sortable-overing").each(function(){h(this).removeClass("sek-sortable-overing")}),h(e.target).addClass("sek-sortable-overing")},remove:function(e,t){l=t.item.closest('[data-sek-level="location"]'),to_location=l.data("sek-id"),r=!0===l.data("sek-is-global-location");var a=to_location!=from_location;return!(d!==r||!0===d&&!0===r&&a)||(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["Moving elements between global and local sections is not allowed."]}),!1)},start:function(e,t){o=t.item.closest('[data-sek-level="location"]'),from_location=o.data("sek-id"),d=!0===o.data("sek-is-global-location"),c=[],k=[],u.cachedElements.$body.addClass("sek-dragging-element"),i=t.item.closest('[data-sek-level="column"]').data("sek-id"),a=t.item.closest('[data-sek-level="section"]').data("sek-id"),t.item.closest('[data-sek-level="column"]').find(".sek-column-inner").first().children('[data-sek-level="module"]').each(function(){c.push(h(this).data("sek-id"))}),p.isEmpty(c)?u.errare("makeModulesSortableInColumn => startOrder should not be empty"):u.printAllLevelsUi()},stop:function(e,t){s=t.item.closest('[data-sek-level="column"]'),n=s.data("sek-id"),s.find(".sek-column-inner").first().children("[data-sek-id]").each(function(){k.push(h(this).data("sek-id"))}),p.isEmpty(k)?u.errare("makeModulesSortableInColumn => newOrder should not be empty"):p.isEqual(k,c)&&n===i?u.errare("preview => makeModulesSortableInColumn => start and stop positions are identical"):(m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"module",newOrder:k,from_column:i,to_column:n,from_sektion:a,to_sektion:t.item.closest('[data-sek-level="section"]').data("sek-id")}),u.cachedElements.$body.removeClass("sek-dragging-element"))}})),h('[data-sek-id="'+e+'"]').addClass("sek-module-sortable-setup")}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(r,c,k){c.extend(SekPreviewPrototype,{setupResizable:function(){var t=this;return c(".sektion-wrapper").find('div[data-sek-level="section"]').each(function(){t.maybeMakeColumnResizableInSektion.call(this)}),t.cachedElements.$body.on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added sek-location-refreshed",'[data-sek-level="location"]',function(e){c(this).find('[data-sek-level="section"]').each(function(){t.maybeMakeColumnResizableInSektion.call(this)})}),this},maybeMakeColumnResizableInSektion:function(){var a,i,n,s,o,d,l,e=c(this).find(".sek-sektion-inner").first().children('div[data-sek-level="column"]');if(!(e.length<2)){var t=c(this).find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').last();e.not(t).each(function(){c(this).resizable({resize:function(e,t){c(".sektion-wrapper").data("sek-resizing-columns",!0)},start:function(e,t){if(a=t.element.closest('div[data-sek-level="section"]'),a.data("sek-id"),i=a.find(".sek-sektion-inner")[0].getBoundingClientRect().width,!((o=a.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length)<2)){if((n=t.element.closest('div[data-sek-level="column"]')).length<1)throw new Error("ERROR => resizable => No valid level dom element found");l=n.index()+1==o,d=l?n.prev():n.next(),c(".sektion-wrapper").data("sek-resizing-columns",!0),k.delay(function(){c(".sektion-wrapper").data("sek-resizing-columns",!1)},3e3)}},stop:function(e,t){if(!(o<2)){if(n.length<1)throw new Error("ERROR => resizable => No valid level dom element found");n.css({width:"",height:""}),s=(parseFloat(t.size.width)/parseFloat(i)*100).toFixed(3),r.preview.send("sek-resize-columns",{action:"sek-resize-columns",level:n.data("sek-level"),in_sektion:a.data("sek-id"),id:n.data("sek-id"),resized_column:n.data("sek-id"),sister_column:d.data("sek-id"),resizedColumnWidthInPercent:s,col_number:o}),c(".sektion-wrapper").data("sek-resizing-columns",!1)}},helper:"ui-resizable-helper",handles:"e"});var e=c(this);k.delay(function(){e.find(".ui-resizable-handle").find(".fa-arrows-alt-h").length<1&&e.find(".ui-resizable-handle").append('<i class="fas fa-arrows-alt-h"></i>')},500)})}}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(c,h,p){h.extend(SekPreviewPrototype,{printLevelUI:function(e){var t,a,i,n;if((p.isUndefined(e)||e.length<1)&&this.errare("sekPreview::printeLevelUI => invalid level element => ",e),"location"!=(a=e.data("sek-level"))&&!(0<(n=e).children(".sek-dyn-ui-wrapper").length)){var s=n[0].getBoundingClientRect(),o=n.data("sek-level");switch(n.toggleClass("sek-shrink-my-ui",s.width&&s.width<("section"===o?350:"column"===o?300:200)),i={id:n.data("sek-id"),level:o},a){case"section":var d,l,r=n.closest('div[data-sek-level="location"]'),c=n.closest('div[data-sek-level="column"]'),k=!0===n.data("sek-is-nested");k?0<c.length&&(d=c.find(".sek-column-inner").first().children("div[data-sek-level]").length==n.index()+1,l=0===n.index()):0<r.length&&(d=r.children('div[data-sek-level="section"]').length==n.index()+1,l=0===n.index()),i=p.extend(i,{is_nested:k,can_have_more_columns:n.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<12,is_global_location:!0===r.data("sek-is-global-location"),is_last_section_in_parent:d,is_first_section_in_parent:l,is_header_location:!0===r.data("sek-is-header-location"),is_footer_location:!0===r.data("sek-is-footer-location")});break;case"column":var u=n.closest('div[data-sek-level="section"]');i=p.extend(i,{parent_can_have_more_columns:u.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<12,parent_is_single_column:u.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<2,parent_is_last_allowed_nested:!0===u.data("sek-is-nested"),has_nested_section:0<n.find('[data-sek-is-nested="true"]').length});break;case"module":var m=this.getRegisteredModuleProperty(n.data("sek-module-type"),"name");i=p.extend(i,{module_name:"not_set"!=m?m:""})}!0===h(".sektion-wrapper").data("sek-resizing-columns")&&p.contains(["column","module"],a)||(t=this.parseTemplate("#sek-dyn-ui-tmpl-"+a),h.when(n.prepend(t(i))).done(function(){n.find(".sek-dyn-ui-wrapper").stop(!0,!0).fadeIn({duration:150,complete:function(){}})}))}},setupUiHoverVisibility:function(){var i,e,d=this,l=function(){(e=h(this)).children(".sek-dyn-ui-wrapper").length<1||sekPreviewLocalized.isPreviewUIDebugMode||d.isDraggingElement||(e.data("UIisFadingOut",!0),e.children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){h(this).remove(),e.data("UIisFadingOut",!1)}}))},n=function(){d.cachedElements.$body.stop(!0,!0).find(".sek-add-content-button").each(function(){h(this).fadeOut({duration:200,complete:function(){h(this).remove()}})})};d.cachedElements.$body.on("sek-location-refreshed sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(e,t){n()});var t,a=function(){var e=h(this);clearTimeout(e.data("_toggle_ui_menu_")),e.data("_toggle_ui_menu_",setTimeout(function(){s.call(e)},1e4))},s=function(e){var t=h(this),a=h(this).closest(".sek-dyn-ui-location-type"),i=t.closest(".sek-dyn-ui-wrapper").find(".sek-dyn-ui-inner");!0===e?(t.removeClass("sek-collapsed"),i.addClass("sek-is-expanded"),a.hide()):(t.addClass("sek-collapsed"),i.removeClass("sek-is-expanded"),a.show())};d.cachedElements.$body.on("click",".sek-dyn-ui-location-inner",function(e){var t=h(this).find(".sek-dyn-ui-hamb-menu-wrapper");h(this).closest('[data-sek-level="section"]').find(".sek-dyn-ui-hamb-menu-wrapper").each(function(){s.call(h(this))}),s.call(t,!0),a.call(t)}),d.cachedElements.$body.on("mouseenter mouseover mouseleave",".sek-dyn-ui-wrapper",p.throttle(function(e){var t=h(this).find(".sek-dyn-ui-hamb-menu-wrapper");p.isUndefined(t.data("_toggle_ui_menu_"))||t.hasClass("sek-collapsed")||0<t.length&&a.call(t)},50)),d.cachedElements.$body.on("click",".sek-minimize-ui",function(e){h(this).closest(".sek-dyn-ui-location-type").slideToggle("fast")}),d.cachedElements.$body.on("mouseenter",".sek-wp-content-wrapper",function(e){0<(t=h(this)).children(".sek-dyn-ui-wrapper").length&&!0!==t.data("UIisFadingOut")||(i=d.parseTemplate("#sek-dyn-ui-tmpl-wp-content"),h.when(t.prepend(i({}))).done(function(){t.find(".sek-dyn-ui-wrapper").stop(!0,!0).fadeIn({duration:150,complete:function(){}})}))}).on("mouseleave",".sek-wp-content-wrapper",function(e){h(this).data("UIisFadingOut",!0),t=h(this),h(this).children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){h(this).remove(),t.data("UIisFadingOut",!1)}})});var r=function(s,e){var o,t=[];o=p.isUndefined(e)||e.length<1?(d.cachedElements.$body.find('[data-sek-level][data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]').each(function(){t.push(h(this))}),"printOrScheduleRemoval"):(t.push(e),"mayBeRemove"),p.each(t,function(e){var t=e[0].getBoundingClientRect(),a=s.x<=t.right&&t.left<=s.x,i=s.y>=t.top&&t.bottom>=s.y,n=e;switch(o){case"mayBeRemove":n.data("sek-ui-removal-scheduled",!1),a&&i||l.call(n);break;case"printOrScheduleRemoval":a&&i?(n.data("sek-ui-removal-scheduled",!1),d.printLevelUI(n)):!0!==n.data("sek-ui-removal-scheduled")&&(n.data("sek-ui-removal-scheduled",!0),n.children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1?r(s,n):p.delay(function(){!0===n.data("sek-ui-removal-scheduled")&&r(d.mouseMovedRecently(),n)},3500))}})};d.mouseMovedRecently=new c.Value({}),d.mouseMovedRecently.bind(function(e){var k,t,a;p.isEmpty(e)?sekPreviewLocalized.isPreviewUIDebugMode||(n(),d.cachedElements.$body.stop(!0,!0).find("[data-sek-level]").each(function(){h(this).children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1&&l.call(h(this))})):(d.cachedElements.$body.find('div[data-sek-level="location"]').each(function(){var e;$sectionCollection=h(this).children('div[data-sek-level="section"]'),i=d.parseTemplate("#sek-tmpl-add-content-button"),t=h(this).data("sek-id"),a=!0===h(this).data("sek-is-global-location"),$sectionCollection.each(function(){0<h(this).find(".sek-add-content-button").length||(h.when(h(this).prepend(i({location:t,is_global_location:a}))).done(function(){e=h(this).find(".sek-add-content-button"),h(this).data("sek-id")&&e.attr("data-sek-before-section",h(this).data("sek-id")),e.fadeIn(300)}),$sectionCollection.length==h(this).index()+1&&h.when(h(this).append(i({is_last:!0,location:t,is_global_location:a}))).done(function(){e=h(this).find(".sek-add-content-button").last(),h(this).data("sek-id")&&e.attr("data-sek-after-section",h(this).data("sek-id")),e.fadeIn(300)}))})}),h(".sek-empty-location-placeholder").each(function(){0<h(this).find(".sek-add-content-button").length||(t=h(this).closest('div[data-sek-level="location"]').data("sek-id"),a=!0===h(this).closest('div[data-sek-level="location"]').data("sek-is-global-location"),h.when(h(this).append(i({location:t,is_global_location:a}))).done(function(){$btn_el=h(this).find(".sek-add-content-button"),$btn_el.attr("data-sek-is-first-section",!0),$btn_el.fadeIn(300)}))}),k=e,d.cachedElements.$body.find(".sek-add-content-button").each(function(){var e=h(this)[0].getBoundingClientRect(),t=k.y,a=k.x,i=Math.abs(t-e.bottom),n=Math.abs(e.top-t),s=a-e.right,o=e.left-a,d=i<40||n<40,l=0<s&&s<40||0<o&&o<40,r=a<=e.right&&e.left<=a,c=t>=e.top&&e.bottom>=t;h(this).toggleClass("sek-mouse-is-close",(d||c)&&(l||r))}),r(e))});var o=function(){clearTimeout(d.cachedElements.$window.data("_scroll_move_timer_")),d.mouseMovedRecently.set({})};return d.cachedElements.$window.on("mousemove scroll",p.throttle(function(e){d.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(d.cachedElements.$window.data("_scroll_move_timer_")),d.cachedElements.$window.data("_scroll_move_timer_",setTimeout(function(){d.mouseMovedRecently.set({})},4e3))},50)),c.preview.bind("sek-drag-start",function(){o()}),d.cachedElements.$body.on("sek-section-added",'[data-sek-level="location"]',function(e,t){o()}),this}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(m,h,p){h.extend(SekPreviewPrototype,{scheduleUiClickReactions:function(){var u=this;u.cachedElements.$body.on("click",function(e){m.preview.send("sek-clean-target-drop-zone");var t,a="inactiveZone",i=h(e.target),n=i.closest('[data-sek-level="location"][data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]'),s=i.closest('[data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]'),o=i.closest("[data-sek-click-on]"),d=n.data("sek-id"),l=s.data("sek-level"),r=s.data("sek-id");switch(a="add-content"==i.data("sek-click-on")||0<i.closest("[data-sek-click-on]").length&&"add-content"==i.closest("[data-sek-click-on]").data("sek-click-on")?"addContentButton":!p.isEmpty(i.data("sek-click-on"))||0<o.length?"UIIcon":"module"==s.data("sek-level")?"moduleWrapper":"column"==s.data("sek-level")&&!0===s.data("sek-no-modules")?"noModulesColumn":i.hasClass("sek-to-json")?"sekToJson":"column"==s.data("sek-level")?"columnOutsideModules":"section"==s.data("sek-level")?"sectionOutsideColumns":p.isEmpty(i.data("sek-add"))?i.hasClass("sek-wp-content-wrapper")||i.hasClass("sek-wp-content-dyn-ui")?"wpContent":i.hasClass("sek-edit-wp-content")?"editWpContent":"inactiveZone":"addSektion",p.isEmpty(d)&&u.errare("::scheduleUiClickReactions => error location id can not be empty"),a){case"addContentButton":var c=!0===i.closest("[data-sek-is-first-section]").data("sek-is-first-section");m.preview.send("sek-add-section",{location:d,level:"section",before_section:i.closest("[data-sek-before-section]").data("sek-before-section"),after_section:i.closest("[data-sek-after-section]").data("sek-after-section"),is_first_section:c,send_to_preview:!c});break;case"UIIcon":if(s.length<1)throw new Error("ERROR => sek-front-preview => No valid level dom element found");if(t=i.closest("[data-sek-click-on]").data("sek-click-on"),p.isEmpty(t))throw new Error("Invalid action");if(p.isEmpty(l)||p.isEmpty(r))throw new Error("ERROR => sek-front-preview => No valid level id found");u._send_(i,{action:t,location:d,level:l,id:r,was_triggered:!1});break;case"moduleWrapper":if(0<i.parent(".sek-dyn-ui-icons").length)return;u._send_(i,{action:"edit-module",level:l,id:r});break;case"noModulesColumn":if(0<i.parent(".sek-dyn-ui-icons").length)return;u._send_(i,{action:"pick-content",content_type:"module",level:l,id:r});break;case"columnOutsideModules":case"sectionOutsideColumns":u._send_(i,{action:"edit-options",location:d,level:l,id:r});break;case"addSektion":m.preview.send("sek-add-section",{location:d,level:i.data("sek-add")});break;case"sekToJson":m.preview.send("sek-to-json",{id:r});break;case"wpContent":m.preview.send("sek-notify",{type:"info",duration:8e3,message:sekPreviewLocalized.i18n["This content has been created with the WordPress editor."]});break;case"editWpContent":var k=i.closest("[data-sek-wp-edit-link]").data("sek-wp-edit-link");p.isEmpty(k)||window.open(k,"_blank");break;case"inactiveZone":m.preview.send("sek-click-on-inactive-zone")}})},_send_:function(e,t){var a=h.extend(!0,{},t),i="",n=e.closest('div[data-sek-level="module"]'),s="module"===t.level?n.data("sek-module-type"):"";"module"===t.level&&"czr_tiny_mce_editor_module"===s&&(i=0<n.find("div[data-sek-input-id]").length?n.find("div[data-sek-input-id]").data("sek-input-id"):""),m.preview.send("sek-"+t.action,p.extend({location:t.location,level:t.level,id:t.id,content_type:e.data("sek-content-type"),module_type:s,in_column:0<e.closest('div[data-sek-level="column"]').length?e.closest('div[data-sek-level="column"]').data("sek-id"):"",in_sektion:0<e.closest('div[data-sek-level="section"]').length?e.closest('div[data-sek-level="section"]').data("sek-id"):"",clicked_input_type:0<e.closest("div[data-sek-input-type]").length?e.closest("div[data-sek-input-type]").data("sek-input-type"):"",clicked_input_id:0<e.closest("div[data-sek-input-id]").length?e.closest("div[data-sek-input-id]").data("sek-input-id"):"",was_triggered:t.was_triggered,syncedTinyMceInputId:i},a))}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,s,o){s.extend(SekPreviewPrototype,{setupLoader:function(){var t=this;this._css_loader_html='<div class="sek-css-loader sek-mr-loader" style="display:none"><div></div><div></div><div></div></div>',t.cachedElements.$body.on(["sek-modules-refreshed","sek-columns-refreshed","sek-section-added","sek-level-refreshed","sek-stylesheet-refreshed","sek-ajax-error"].join(" "),function(e){t.cleanLoader()})},mayBePrintLoader:function(e){e=o.isObject(e)?e:{};var t=this,a=e.loader_located_in_level_id;if(!o.isEmpty(a)){var i=s('[data-sek-id="'+a+'"]');0<i.length&&s(".sek-level-clone ").length<1&&($levelClone=s("<div>",{class:"sek-level-clone"}),i.find("[data-sek-level]").each(function(){s(this).addClass("sek-refreshing")}),i.prepend($levelClone),$levelClone.css({width:i.outerWidth()+"px",height:i.outerHeight()+"px"}).append(t._css_loader_html).find(".sek-css-loader").fadeIn("fast"),clearTimeout(s.data(this,"_nimble_loader_active_timer_")),s.data(this,"_nimble_loader_active_timer_",setTimeout(function(){t.cleanLoader()},e.duration||4e3)))}if(!0===e.fullPageLoader){var n=s("<div>",{id:"nimble-full-page-loader-wrapper",class:"white-loader"});t.cachedElements.$body.append(n),n.fadeIn("fast").append(t._css_loader_html).find(".sek-css-loader").fadeIn("fast"),s('[data-sek-level="location"]').each(function(){s(this).addClass("sek-blur")}),clearTimeout(s.data(this,"_nimble_full_page_loader_active_timer_")),s.data(this,"_nimble_full_page_loader_active_timer_",setTimeout(function(){t.cleanLoader({cleanFullPageLoader:!0})},e.duration||6e3))}},cleanLoader:function(e){s(".sek-level-clone").remove(),s("[data-sek-level]").each(function(){s(this).removeClass("sek-refreshing")}),!0===(e=e||{}).cleanFullPageLoader&&(s('[data-sek-level="location"]').each(function(){s(this).removeClass("sek-blur")}),s("#nimble-full-page-loader-wrapper").remove())}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(o,l,r){l.extend(SekPreviewPrototype,{schedulePanelMsgReactions:function(){var t,d=this,e={"sek-add-section":"ajaxAddSektion","sek-add-content-in-new-sektion":"ajaxAddSektion","sek-add-content-in-new-nested-sektion":"ajaxAddSektion","sek-add-column":"ajaxRefreshColumns","sek-add-module":"ajaxRefreshModulesAndNestedSections","sek-refresh-stylesheet":"ajaxRefreshStylesheet","sek-resize-columns":"ajaxResizeColumns","sek-maybe-print-loader":function(e){try{d.mayBePrintLoader(e)}catch(e){o.errare("sek-clean-loader => error",e)}},"sek-clean-loader":function(e){try{d.cleanLoader(e)}catch(e){o.errare("sek-clean-loader => error",e)}},"sek-remove":function(e){var t,a=e.apiParams.id,i=l('div[data-sek-id="'+a+'"]');switch(e.apiParams.action){case"sek-remove-section":d.mayBePrintLoader({loader_located_in_level_id:e.apiParams.location}),!0===e.apiParams.is_nested?t=d.ajaxRefreshModulesAndNestedSections(e):((r.isEmpty(a)||i.length<1)&&d.errare("reactToPanelMsg => sek-remove => invalid candidate id => ",a),d.cachedElements.$body.find(i).remove(),l('[data-sek-id="'+e.apiParams.location+'"]').trigger("sek-level-refreshed"));break;case"sek-remove-column":t=d.ajaxRefreshColumns(e);break;case"sek-remove-module":t=d.ajaxRefreshModulesAndNestedSections(e)}return r.isEmpty(t)?l.Deferred(function(){this.resolve()}):t},"sek-duplicate":function(e){var t;switch(e.apiParams.action){case"sek-duplicate-section":e.apiParams.id=e.cloneId,t=d.ajaxAddSektion(e);break;case"sek-duplicate-column":e.apiParams.id=e.cloneId,t=d.ajaxRefreshColumns(e);break;case"sek-duplicate-module":e.apiParams.id=e.cloneId,t=d.ajaxRefreshModulesAndNestedSections(e)}return t},"sek-refresh-level":function(s){return d.mayBePrintLoader({loader_located_in_level_id:s.apiParams.id}),d.doAjax({location_skope_id:s.location_skope_id,local_skope_id:s.local_skope_id,action:"sek_get_content",id:s.apiParams.id,level:s.apiParams.level,sek_action:s.apiParams.action}).fail(function(e){d.errare("ERROR reactToPanelMsg => sek-refresh-level => ",e),l('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-ajax-error")}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(d.errare("SekPreviewPrototype::sek-refresh-level => ajax_response.data.contents is undefined ",e),d.errare("params ?",s));var a='<span class="sek-placeholder" data-sek-placeholder-for="'+s.apiParams.id+'"></span>',i=l('div[data-sek-id="'+s.apiParams.id+'"]');if(i.length<1)d.errare("reactToPanelMsg => sek-refresh-level ajax done => the level to refresh is not rendered in the page",e);else{i.before(a);var n=l('[data-sek-placeholder-for="'+s.apiParams.id+'"]');i.remove(),r.isUndefined(t)?d.errare("reactToPanelMsg => sek-refresh-level ajax done => missing html_content",e):n.after(t),n.remove(),l('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-level-refreshed",{level:s.apiParams.level,id:s.apiParams.id}),s.apiParams.moved_level_id&&o.preview.trigger("sek-animate-to-level",{id:s.apiParams.moved_level_id})}})},"sek-move":function(e){switch(e.apiParams.action){case"sek-move-column":if(e.apiParams.from_sektion!=e.apiParams.to_sektion){var t=l.extend(!0,{},e),a=l.extend(!0,{},e);l('[data-sek-id="'+e.apiParams.from_sektion+'"]',".sektion-wrapper").find('div[data-sek-level="column"]').length<1?o.preview.send("sek-add-column",{in_sektion:e.apiParams.from_sektion,autofocus:!1}):(t.apiParams=r.extend(t.apiParams,{in_sektion:e.apiParams.from_sektion,action:"sek-refresh-columns-in-sektion"}),d.ajaxRefreshColumns(t)),a.apiParams=r.extend(a.apiParams,{in_sektion:e.apiParams.to_sektion,action:"sek-refresh-columns-in-sektion"}),d.ajaxRefreshColumns(a)}break;case"sek-move-module":var i=l.extend(!0,{},e),n=l.extend(!0,{},e);i.apiParams.from_column!=i.apiParams.to_column&&(i.apiParams=r.extend(i.apiParams,{in_column:i.apiParams.from_column,in_sektion:i.apiParams.from_sektion,action:"sek-refresh-modules-in-column"}),d.ajaxRefreshModulesAndNestedSections(i)),e.apiParams=r.extend(n.apiParams,{in_column:n.apiParams.to_column,in_sektion:n.apiParams.to_sektion,action:"sek-refresh-modules-in-column"}),d.ajaxRefreshModulesAndNestedSections(n),l('[data-sek-id="'+e.apiParams.to_column+'"]',".sektion-wrapper").find(".sek-column-inner").sortable("refresh")}},"sek-edit-options":function(e){d.activeLevelUI(e.uiParams.id)},"sek-edit-module":function(e){d.activeLevelUI(e.uiParams.id)},"sek-drag-start":function(n){var s=1,o=!1;l('[data-sek-level="location"]').children('[data-sek-level="section"]').each(function(){var e=l(this).data("sek-id"),t=l(this).find('[data-sek-level="column"]').length,a=l(this).find('[data-sek-level="module"]').length,i=t<2&&a<1;!o&&!i&&l('[data-drop-zone-before-section="'+e+'"]').length<1&&l(this).before('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-before-section="'+e+'"></div>'),i||s!=l(".sektion-wrapper").children('[data-sek-level="section"]').length||l(this).after('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-after-section="'+e+'"></div>'),s++,o=i}),l(".sek-empty-location-placeholder").each(function(){l.when(l(this).append('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="in-empty-location"></div>'))}),("module"==n.content_type||"preset_section"==n.content_type&&!0===n.eligible_for_module_dropzones)&&l('[data-sek-level="column"]').each(function(){var e=l(this).children(".sek-column-inner").children('[data-sek-level="module"]'),t=l(this).children(".sek-column-inner").children('[data-sek-is-nested="true"]');e=e.add(t);var a=1;e.each(function(){l('[data-drop-zone-before-module-or-nested-section="'+l(this).data("sek-id")+'"]').length<1&&l(this).before('<div class="sek-content-module-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-modules-and-nested-sections" data-drop-zone-before-module-or-nested-section="'+l(this).data("sek-id")+'"></div>'),a==e.length&&l('[data-drop-zone-after-module-or-nested-section="'+l(this).data("sek-id")+'"]').length<1&&l(this).after('<div class="sek-content-module-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-modules-and-nested-sections" data-drop-zone-after-module-or-nested-section="'+l(this).data("sek-id")+'"></div>'),a++})}),d.cachedElements.$body.addClass("sek-dragging"),r.delay(function(){l(".sek-dynamic-drop-zone").css({opacity:1})},100)},"sek-drag-stop":function(e){d.cachedElements.$body.removeClass("sek-dragging"),l(".sortable-placeholder").remove(),l(".sek-dynamic-drop-zone").remove()},"sek-animate-to-level":function(e){var t=l('[data-sek-id="'+e.id+'"]');0<t.length&&l("html, body").animate({scrollTop:t.offset().top-100},200)},"sek-clean-level-uis":function(e){l(".sek-dyn-ui-wrapper").each(function(){l(this).remove()})},"sek-display-level-ui":function(e){var t=l('[data-sek-id="'+e.id+'"]');0<t.length&&d.printLevelUI(t)},"sek-set-double-click-target":function(e){if(l(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion"),r.isObject(e)&&e.id){var t=l('[data-sek-id="'+e.id+'"]');1===t.length&&t.addClass("sek-target-for-double-click-insertion")}},"sek-reset-double-click-target":function(e){l(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion")},"sek-update-html-in-selector":function(e){var t,a=l('[data-sek-id="'+e.id+'"]');t=r.isEmpty(e.changed_item_id)?l(e.selector,a):l('[data-sek-item-id="'+e.changed_item_id+'"] '+e.selector,a),0<a.length&&0<t.length?t.html(e.html):d.errare("reactToPanelMsg => sek-update-html-in-selector => missing level or target dom element",e)},"sek-print-confettis":function(e){if(window.confetti&&window.requestAnimationFrame){var t=(e=e||{}).duration||Date.now()+1e3,a=["#f18700","#684F2F","#eea236"];!function e(){confetti({particleCount:2,angle:60,spread:55,origin:{x:0,y:.8},colors:a}),confetti({particleCount:4,angle:120,spread:55,origin:{x:1,y:.8},colors:a}),Date.now()<t&&window.requestAnimationFrame(e)}()}}};r.each(e,function(e,i){o.preview.bind(i,function(a){a=r.extend({location_skope_id:"",apiParams:{},uiParams:{}},a||{});d.cachedElements.$body.addClass(i);try{l.when(r.isFunction(e)?e(a):d[e].call(d,a)).done(function(e){var t;t=e,o.preview.send([i,"done"].join("_"),a),a.apiParams.is_multi_items&&"sek-refresh-level"===a.apiParams.action&&o.preview.send("multi-items-module-refreshed",a),r.isUndefined(t)||t.data&&t.data.setting_validities&&o.preview.send("selective-refresh-setting-validities",t.data.setting_validities)}).fail(function(){o.preview.send("sek-notify",{type:"error",duration:1e4,message:sekPreviewLocalized.i18n["Something went wrong, please refresh this page."]})}).always(function(e){d.cachedElements.$body.removeClass(i)}).then(function(){o.preview.trigger("control-panel-requested-action-done",{action:i,args:a})})}catch(e){d.errare("reactToPanelMsg => Error when firing the callback of "+i,e),d.cachedElements.$body.removeClass(i)}a.apiParams.id&&((!(t=d.activeLevelEl())||!r.isObject(t)||t.length<1||d.activeLevelUI()!==a.apiParams.id)&&(d.activeLevelEl(l('[data-sek-id="'+a.apiParams.id+'"]')),t=d.activeLevelEl()),0<t.length&&!nb_.isInScreen(t[0])&&t[0].scrollIntoView())})})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,d){o.extend(SekPreviewPrototype,{ajaxAddSektion:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.location}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,in_column:n.apiParams.in_column,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action,is_nested:n.apiParams.is_nested,content_type:n.all_params&&n.all_params.content_type?n.all_params.content_type:null,collection_of_preset_section_id:n.all_params&&n.all_params.collection_of_preset_section_id?n.all_params.collection_of_preset_section_id:[]}).done(function(e){var t,a="";if(e.data&&e.data.contents?a=e.data.contents:(s.errare("SekPreviewPrototype::ajaxAddSektion => ajax_response.data.contents is undefined ",e),s.errare("params ?",n)),n.apiParams.is_nested){(t=o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_column+'"]')).length<1&&s.errare("preview => reactToPanelMsg => sek-add-column => no DOM node for parent column => ",n.apiParams.in_column);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_column+'"></span>';t.before(i),t.remove(),o(".sektion-wrapper").find(".sek-placeholder").after(a),o(".sektion-wrapper").find(".sek-placeholder").remove()}else"sek-duplicate-section"!=n.apiParams.action||d.isEmpty(n.cloneId)?($beforeCandidate=o('.sektion-wrapper[data-sek-id="'+n.apiParams.location+'"]').find('div[data-sek-id="'+n.apiParams.before_section+'"]'),$afterCandidate=o('.sektion-wrapper[data-sek-id="'+n.apiParams.location+'"]').find('div[data-sek-id="'+n.apiParams.after_section+'"]'),!d.isEmpty(n.apiParams.before_section)&&0<$beforeCandidate.length?$beforeCandidate.before(a):!d.isEmpty(n.apiParams.after_section)&&0<$afterCandidate.length?$afterCandidate.after(a):o('[data-sek-id="'+n.apiParams.location+'"]').append(a)):o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_sektion+'"]').after(a);"sek-duplicate-section"==n.apiParams.action&&o('div[data-sek-id="'+n.cloneId+'"]',".sektion-wrapper").each(function(){o(this).trigger("sek-columns-refreshed")}),n.apiParams.is_nested&&(s.makeModulesSortableInColumn(n.apiParams.in_column),o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_sektion+'"]').each(function(){s.maybeMakeColumnResizableInSektion.call(this)})),n.cloneId&&o('div[data-sek-id="'+n.cloneId+'"]').trigger("sek-section-added",n),o('div[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-section-added",n),o('div[data-sek-id="'+n.apiParams.location+'"]').trigger("sek-location-refreshed",n)}).fail(function(e){s.errare("ERROR in sek_get_html_for_injection ? ",e),o('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(o,d,e){d.extend(SekPreviewPrototype,{ajaxRefreshColumns:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.in_sektion}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(s.errare("SekPreviewPrototype::ajaxRefreshColumns => ajax_response.data.contents is undefined ",e),s.errare("params ?",n));var a=d('div[data-sek-id="'+n.apiParams.in_sektion+'"]');a.length<1&&s.errare("reactToPanelMsg => "+n.apiParams.action+" => no DOM node for parent sektion => ",n.apiParams.in_sektion);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_sektion+'"></span>';a.before(i),a.remove(),d(".sektion-wrapper").find(".sek-placeholder").after(t),d(".sektion-wrapper").find(".sek-placeholder").remove(),o.preview.trigger("sek-refresh-stylesheet",n),d('div[data-sek-id="'+n.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed",{in_sektion:n.apiParams.in_sektion})}).fail(function(e){s.errare("ERROR reactToPanelMsg => sek-add-column => ",e),d('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})},ajaxResizeColumns:function(a){var i=this;return i.mayBePrintLoader({loader_located_in_level_id:a.apiParams.in_sektion}),i.doAjax({action:"sek_get_content",resized_column:a.apiParams.resized_column,sister_column:a.apiParams.sister_column,location_skope_id:a.location_skope_id,local_skope_id:a.local_skope_id,sek_action:"sek-resize-columns"}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(i.errare("SekPreviewPrototype::ajaxResizeColumns => ajax_response.data.contents is undefined ",e),i.errare("params ?",a)),d('[data-sek-id="'+a.apiParams.resized_column+'"]').css({width:"",height:""}),i.appendDynStyleSheet(a.location_skope_id,t),d('div[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed")}).fail(function(e){i.errare("ERROR reactToPanelMsg => sek-resize-columns => ",e),d('[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,t){o.extend(SekPreviewPrototype,{ajaxRefreshModulesAndNestedSections:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.in_column}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,in_column:n.apiParams.in_column,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action,is_nested:n.apiParams.is_nested}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(s.errare("SekPreviewPrototype::ajaxRefreshModulesAndNestedSections => ajax_response.data.contents is undefined ",e),s.errare("params ?",n));var a=o('[data-sek-id="'+n.apiParams.in_column+'"]');a.length<1&&s.errare("reactToPanelMsg => ajaxRefreshModulesAndNestedSections => no DOM node for parent column => ",n.apiParams.in_column);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_column+'"></span>';a.before(i),a.remove(),o('[data-sek-placeholder-for="'+n.apiParams.in_column+'"]').after(t),o('[data-sek-placeholder-for="'+n.apiParams.in_column+'"]').remove(),o('[data-sek-id="'+n.apiParams.in_column+'"]').trigger("sek-modules-refreshed",{in_column:n.apiParams.in_column,in_sektion:n.apiParams.in_sektion})}).fail(function(e){s.errare("ERROR reactToPanelMsg => sek-add-module => ",e),o('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,n,s){n.extend(SekPreviewPrototype,{ajaxRefreshStylesheet:function(a){var i=this;return i.mayBePrintLoader({loader_located_in_level_id:a.apiParams.id}),i.doAjax({action:"sek_get_content",location_skope_id:a.location_skope_id,local_skope_id:a.local_skope_id,sek_action:"sek-refresh-stylesheet"}).done(function(e){var t="";e.data&&e.data.contents&&(t=e.data.contents),i.appendDynStyleSheet(a.location_skope_id,t),n('[data-sek-id="'+a.apiParams.id+'"]').trigger("sek-stylesheet-refreshed",{level:a.apiParams.level,id:a.apiParams.id})}).fail(function(e){i.errare("sek-refresh-stylesheet fail !"),n('[data-sek-id="'+a.apiParams.id+'"]').trigger("sek-ajax-error")})},appendDynStyleSheet:function(e,t){var a="#sek-"+e,i="#sek-gfonts-local-and-global";0<n("head").find(a).length&&n("head").find(a).remove(),0<n("head").find(i).length&&n("head").find(i).remove(),s.isEmpty(t)||n("head").append(t),!s.isEmpty(t)&&n("head").find(a).length<1&&n("head").find(i).length<1?this.errare("sek-preview => problem when printing the dynamic inline style for : "+a,t):n("head").find(a).attr("sek-data-origin","customizer")}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,d){o.extend(SekPreviewPrototype,{parseTemplate:d.memoize(function(t){var a,i=this,n={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){if(o(t).length<1)return i.errare("preview => parseTemplate => the requested tmpl does not exist =>"+t),"";try{a=a||d.template(o(t).html(),n)}catch(e){i.errare("preview => parseTemplate => problem when parsing tmpl =>"+t,e)}return a(e)}}),_prettyPrintLog:function(e){e=d.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,a=Array.from(e.consoleArguments);return a=d.isEmpty(d.filter(a,function(e){return!d.isString(e)}))?a.join(" "):JSON.stringify(a.join(" ")),["%c "+(t=a,d.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},_wrapLogInsideTags:function(e,t,a){d.isUndefined(console)&&"function"!=typeof window.console.log||(sekPreviewLocalized.isDevMode?d.isUndefined(t)?console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:[e]})))},errare:function(e,t){this._wrapLogInsideTags(e,t,"#ffd5a0")},infoLog:function(e,t){this._wrapLogInsideTags(e,t,"#5ed1f5")},doAjax:function(e){var t=this,a=(e=e||(d.isObject(e)?e:{})).ajaxUrl||sekPreviewLocalized.ajaxUrl,i=sekPreviewLocalized.frontNonce,n=o.Deferred(),s=d.extend({action:"",withNonce:!1},e);return"https:"==document.location.protocol&&(a=a.replace("http://","https://")),d.isEmpty(s.action)||!d.isString(s.action)?(t.errare("self.doAjax : unproper action provided"),n.resolve().promise()):(s[i.id]=i.handle,!d.isObject(i)||d.isUndefined(i.id)||d.isUndefined(i.handle)?(t.errare("self.doAjax : unproper nonce"),n.resolve().promise()):(s["preview-level-guid"]=sekPreviewLocalized.previewLevelGuid,s.czr_query_params=JSON.stringify(d.isObject(_wpCustomizeSettings.czr_query_params)?_wpCustomizeSettings.czr_query_params:[]),o.post(a,s).done(function(e){"0"!==e&&"-1"!==e&&!1!==e.success||(t.errare("self.doAjax : done ajax error for action : "+s.action,e),n.reject(e)),n.resolve(e)}).fail(function(e){t.errare("self.doAjax : failed ajax error for : "+s.action,e),n.reject(e)}),n.promise()))},isModuleRegistered:function(e){return sekPreviewLocalized.registeredModules&&!d.isUndefined(sekPreviewLocalized.registeredModules[e])},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sekPreviewLocalized.registeredModules[e][t]:"not_set"},getLevelModel:function(t,e){var a=this,i="no_match";return d.isUndefined(e)&&a.errare("getLevelModel => a collection must be provided"),d.each(e,function(e){"no_match"==i&&(t===e.id?i=e:d.isArray(e.collection)&&(i=a.getLevelModel(t,e.collection)))}),i}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,t,a){t.extend(SekPreviewPrototype,e.Events);var i=e.Class.extend(SekPreviewPrototype);e.bind("preview-ready",function(){e.preview.bind("active",function(){try{e.sekPreview=new i}catch(e){SekPreviewPrototype.errare("SekPreviewConstructor => problem on instantiation",e)}})})}(wp.customize,jQuery,_);
1
+ var SekPreviewPrototype=SekPreviewPrototype||{};!function(a,s,i){s.extend(SekPreviewPrototype,{cachedElements:{$body:s("body"),$window:s(window)},initialize:function(){var t=this;try{this.skope_id=i.findWhere(_wpCustomizeSettings.czr_new_skopes,{skope:"local"}).skope_id}catch(e){return void this.errare("Preview => error when storing the skope_id",e)}this.scheduleHighlightActiveLevel(),t.setupLoader(),s(function(){t.setupSortable(),t.setupResizable(),t.setupUiHoverVisibility(),t.scheduleUiClickReactions(),t.schedulePanelMsgReactions()}),t.cachedElements.$body.on("sek-columns-refreshed sek-modules-refreshed",function(e,t){if(!i.isUndefined(t)&&!i.isUndefined(t.in_sektion)&&0<s('[data-sek-id="'+t.in_sektion+'"]').length){var a=s('[data-sek-id="'+t.in_sektion+'"]');a.toggleClass("sek-has-modules",0<a.find('[data-sek-level="module"]').length)}}),t.deactivateLinks(),t.cachedElements.$body.on(["sek-modules-refreshed","sek-columns-refreshed","sek-section-added","sek-level-refreshed","sek-edit-module"].join(" "),function(e){t.deactivateLinks(e)});var e=function(){var e=[],t=[];s('[data-sek-level="location"]').each(function(){e.push(s(this).data("sek-id")),t.push({id:s(this).data("sek-id"),is_global:!0===s(this).data("sek-is-global-location"),is_header_footer:!0===s(this).data("sek-is-header-location")||!0===s(this).data("sek-is-footer-location"),is_header:!0===s(this).data("sek-is-header-location"),is_footer:!0===s(this).data("sek-is-footer-location")})}),a.preview.send("sek-active-locations-in-preview",{active_locations:e,active_locs_info:t})};a.preview.bind("sek-request-active-locations",e),e()},deactivateLinks:function(e){e=e||{};this.cachedElements.$body.find('[data-sek-level="module"]').each(function(){s(this).find("a").each(function(){try{(function(){if("yes"!==s(this).data("sek-unlinked")){var e=i.isString(s(this)[0].protocol)&&-1!==s(this)[0].protocol.indexOf("javascript");!e&&a.isLinkPreviewable(s(this)[0])?(s(this).addClass("nimble-shift-clickable"),s(this).data("sek-unlinked","yes").attr("data-nimble-href",s(this).attr("href")).attr("href","javascript:void(0)"),s(this).removeAttr("target"),s(this).hover(function(){s(this).attr("title",sekPreviewLocalized.i18n["Shift-click to visit the link"])},function(){s(this).removeAttr("title")}),s(this).on("click",function(e){e.shiftKey&&(e.preventDefault(),window.location.href=s(this).attr("data-nimble-href"))})):(s(this).addClass("nimble-unclickable"),s(this).data("sek-unlinked","yes").attr("data-nimble-href",s(this).attr("href")).attr("href","javascript:void(0)"),s(this).hover(function(){s(this).attr("title",e?sekPreviewLocalized.i18n["Link deactivated while previewing"]:sekPreviewLocalized.i18n["External links are disabled when customizing"])},function(){s(this).removeAttr("title")}),s(this).on("click",function(e){e.preventDefault()}))}}).call(s(this))}catch(e){a.errare("::deactivateLinks => error ",e)}})})},scheduleHighlightActiveLevel:function(){var n=this;this.activeLevelUI=new a.Value(""),this.activeLevelEl=new a.Value(null),this.activeUIChangedRecently=new a.Value(!1),this.activeLevelUI.bind(function(e,t){var a=s('[data-sek-id="'+e+'"]'),i=s('[data-sek-id="'+t+'"]');0<a.length&&(a.addClass("sek-active-ui sek-highlight-active-ui"),n.activeLevelEl(a)),0<i.length&&i.removeClass("sek-active-ui sek-highlight-active-ui"),n.activeUIChangedRecently(Date.now())}),n.activeLevelEl.bind(function(e){if(i.isObject(e)&&0<e.length&&!nb_.isInScreen(e[0]))try{e[0].scrollIntoView()}catch(e){n.errare("activeLevelEl error",e)}}),i.each(["sek-refresh-stylesheet","sek-refresh-level"],function(e){a.preview.bind(e,function(e){n.activeUIChangedRecently(Date.now())})}),this.activeUIChangedRecently.bind(function(e){var t=s('[data-sek-id="'+n.activeLevelUI()+'"]');s(".sek-highlight-active-ui").length&&s(".sek-highlight-active-ui").removeClass("sek-highlight-active-ui"),0<t.length&&t.toggleClass("sek-highlight-active-ui",!1!==e),clearTimeout(s.data(this,"_ui_change_timer_")),s.data(this,"_ui_change_timer_",setTimeout(function(){n.activeUIChangedRecently(!1)},3e3))})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(m,h,p){h.extend(SekPreviewPrototype,{setupSortable:function(){var a=this;return this.sortableDefaultParams={placeholder:"sortable-placeholder",over:function(e,t){},cursorAt:{top:0,left:0},tolerance:"pointer"},h('[data-sek-level="location"]').each(function(){a.makeSektionsSortableInLocation(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-section-added sek-level-refreshed sek-location-refreshed",'[data-sek-level="location"]',function(e,t){a.makeSektionsSortableInLocation(h(this).data("sek-id"))}),h('[data-sek-level="location"]').each(function(){h(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-columns-refreshed sek-section-added",'[data-sek-level="section"]',function(e){a.makeColumnsSortableInSektion(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(h(this).data("sek-id"))})}),h('[data-sek-level="location"]').each(function(){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-modules-refreshed",'[data-sek-level="column"]',function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))}),a.cachedElements.$body.on("sek-columns-refreshed",'[data-sek-level="section"]',function(){h(this).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-section-added",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),a.cachedElements.$body.on("sek-location-refreshed",'[data-sek-level="location"]',function(e,t){h(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(h(this).data("sek-id"))})}),this},printAllLevelsUi:function(){var e=this;e.cachedElements.$body.find("[data-sek-level]").each(function(){e.printLevelUI(h(this)),h(this).find(".sek-dyn-ui-wrapper").stop(!0,!0).show()})},makeSektionsSortableInLocation:function(e){var a,i,t,n=this,s=[];!0!==h('[data-sek-id="'+e+'"]').data("sek-is-global-location")&&(t=h.extend(!0,{},n.sortableDefaultParams),h('[data-sek-id="'+e+'"]').sortable(p.extend(t,{items:'[data-sek-level="section"]',handle:".sek-move-section",connectWith:'[data-sek-is-global-location="false"]',placeholder:{element:function(e){return h('<div class="sortable-placeholder"><div class="sek-module-placeholder-content"><p>'+sekPreviewLocalized.i18n["Insert here"]+"</p></div></div>")[0]},update:function(e,t){}},start:function(e,t){n.cachedElements.$body.addClass("sek-moving-section"),n.isDraggingElement=!0,$sourceLocation=t.item.closest('[data-sek-level="location"]'),a=$sourceLocation.data("sek-id"),n.printAllLevelsUi()},stop:function(e,t){n.cachedElements.$body.removeClass("sek-moving-section"),n.isDraggingElement=!1,s=[],$targetLocation=t.item.closest('[data-sek-level="location"]'),i=$targetLocation.data("sek-id"),$targetLocation.children('[data-sek-level="section"]').each(function(){s.push(h(this).data("sek-id"))}),m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"section",newOrder:s,from_location:a,to_location:i})},over:function(e,t){t.placeholder.addClass("sek-sortable-section-over")},out:function(e,t){t.placeholder.removeClass("sek-sortable-section-over")}})))},makeColumnsSortableInSektion:function(e){var a,i,n,s,o=this,t=h.extend(!0,{},o.sortableDefaultParams),d=[],l=[],r=h('[data-sek-id="'+e+'"]').find(".sek-sektion-inner").first(),c=function(e){if(e=h.extend({forTarget:!0},e||{}),!p.isEmpty(h(this).data("_sortable_columns_css_classes_")))return h(this).data("_sortable_columns_css_classes_");var t,a=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length,i=Math.floor(100/a);t=!0===e.forTarget?12<a+1?12:a+1:a-1<1?1:a-1;var n={current:"sek-col-"+i,next:"sek-col-"+Math.floor(100/t)};return h(this).data("_sortable_columns_css_classes_",n),n};r.sortable(p.extend(t,{handle:".sek-move-column",connectWith:".sek-sektion-inner",over:function(e,t){var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)}))},out:function(e,t){var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)}))},remove:function(e,t){n=t.item.closest('[data-sek-level="location"]'),to_location=n.data("sek-id"),s=!0===n.data("sek-is-global-location");var a=to_location!=from_location;return i!==s||!0===i&&!0===s&&a?(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["Moving elements between global and local sections is not allowed."]}),!1):($targetSektionCandidate=t.item.closest('[data-sek-level="section"]'),!(0<$targetSektionCandidate.length&&12<$targetSektionCandidate.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length)||(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["You've reached the maximum number of columns allowed in this section."]}),!1))},start:function(e,t){a=t.item.closest('[data-sek-level="location"]'),from_location=a.data("sek-id"),i=!0===a.data("sek-is-global-location"),d=[],l=[],from_sektion=t.item.closest('[data-sek-level="section"]').data("sek-id"),t.item.closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){d.push(h(this).data("sek-id"))}),h(this).data("sek-is-sender",!0),p.isEmpty(d)?o.errare("column sortable => startOrder should not be empty"):o.printAllLevelsUi()},stop:function(e,t){$targetSektion=t.item.closest('[data-sek-level="section"]'),to_sektion=$targetSektion.data("sek-id"),$targetSektion.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){l.push(h(this).data("sek-id"))});var a,i=h(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==h(this).data("sek-is-sender")?(a=c.call(h(this)),p.isEmpty(a)||i.each(function(){h(this).removeClass(a.current).addClass(a.next)})):(a=c.call(h(this),{forTarget:!1}),p.isEmpty(a)||i.each(function(){h(this).addClass(a.current).removeClass(a.next)})),h('[data-sek-level="section"]').find(".sek-sektion-inner").each(function(){h(this).data("sek-is-sender",null).data("_sortable_columns_css_classes_",null)}),p.isEmpty(l)?o.errare("column sortable => newOrder should not be empty"):p.isEqual(l,d)&&to_sektion===from_sektion?sekPreviewLocalized.isDevMode&&o.errare("preview => makeModulesSortableInColumn => start and stop positions are identical"):(m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"column",newOrder:l,from_sektion:from_sektion,to_sektion:to_sektion}),h('div[data-sek-id="'+from_sektion+'"]').trigger("sek-level-refreshed"),from_sektion!==to_sektion&&h('div[data-sek-id="'+to_sektion+'"]').trigger("sek-level-refreshed"))}}))},makeModulesSortableInColumn:function(e){var a,i,n,s,t,o,d,l,r,c=[],k=[],u=this;t=h.extend(!0,{},u.sortableDefaultParams),h('[data-sek-id="'+e+'"]').find(".sek-column-inner").first().sortable(p.extend(t,{handle:".sek-move-module",connectWith:".sek-column-inner",over:function(e,t){h('[data-sek-level="location"]').find(".sek-sortable-overing").each(function(){h(this).removeClass("sek-sortable-overing")}),h(e.target).addClass("sek-sortable-overing")},remove:function(e,t){l=t.item.closest('[data-sek-level="location"]'),to_location=l.data("sek-id"),r=!0===l.data("sek-is-global-location");var a=to_location!=from_location;return!(d!==r||!0===d&&!0===r&&a)||(m.preview.send("sek-notify",{message:sekPreviewLocalized.i18n["Moving elements between global and local sections is not allowed."]}),!1)},start:function(e,t){o=t.item.closest('[data-sek-level="location"]'),from_location=o.data("sek-id"),d=!0===o.data("sek-is-global-location"),c=[],k=[],u.cachedElements.$body.addClass("sek-dragging-element"),i=t.item.closest('[data-sek-level="column"]').data("sek-id"),a=t.item.closest('[data-sek-level="section"]').data("sek-id"),t.item.closest('[data-sek-level="column"]').find(".sek-column-inner").first().children('[data-sek-level="module"]').each(function(){c.push(h(this).data("sek-id"))}),p.isEmpty(c)?u.errare("makeModulesSortableInColumn => startOrder should not be empty"):u.printAllLevelsUi()},stop:function(e,t){s=t.item.closest('[data-sek-level="column"]'),n=s.data("sek-id"),s.find(".sek-column-inner").first().children("[data-sek-id]").each(function(){k.push(h(this).data("sek-id"))}),p.isEmpty(k)?u.errare("makeModulesSortableInColumn => newOrder should not be empty"):p.isEqual(k,c)&&n===i?u.errare("preview => makeModulesSortableInColumn => start and stop positions are identical"):(m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"module",newOrder:k,from_column:i,to_column:n,from_sektion:a,to_sektion:t.item.closest('[data-sek-level="section"]').data("sek-id")}),u.cachedElements.$body.removeClass("sek-dragging-element"))}})),h('[data-sek-id="'+e+'"]').addClass("sek-module-sortable-setup")}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(r,c,k){c.extend(SekPreviewPrototype,{setupResizable:function(){var t=this;return c(".sektion-wrapper").find('div[data-sek-level="section"]').each(function(){t.maybeMakeColumnResizableInSektion.call(this)}),t.cachedElements.$body.on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added sek-location-refreshed",'[data-sek-level="location"]',function(e){c(this).find('[data-sek-level="section"]').each(function(){t.maybeMakeColumnResizableInSektion.call(this)})}),this},maybeMakeColumnResizableInSektion:function(){var a,i,n,s,o,d,l,e=c(this).find(".sek-sektion-inner").first().children('div[data-sek-level="column"]');if(!(e.length<2)){var t=c(this).find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').last();e.not(t).each(function(){c(this).resizable({resize:function(e,t){c(".sektion-wrapper").data("sek-resizing-columns",!0)},start:function(e,t){if(a=t.element.closest('div[data-sek-level="section"]'),a.data("sek-id"),i=a.find(".sek-sektion-inner")[0].getBoundingClientRect().width,!((o=a.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length)<2)){if((n=t.element.closest('div[data-sek-level="column"]')).length<1)throw new Error("ERROR => resizable => No valid level dom element found");l=n.index()+1==o,d=l?n.prev():n.next(),c(".sektion-wrapper").data("sek-resizing-columns",!0),k.delay(function(){c(".sektion-wrapper").data("sek-resizing-columns",!1)},3e3)}},stop:function(e,t){if(!(o<2)){if(n.length<1)throw new Error("ERROR => resizable => No valid level dom element found");n.css({width:"",height:""}),s=(parseFloat(t.size.width)/parseFloat(i)*100).toFixed(3),r.preview.send("sek-resize-columns",{action:"sek-resize-columns",level:n.data("sek-level"),in_sektion:a.data("sek-id"),id:n.data("sek-id"),resized_column:n.data("sek-id"),sister_column:d.data("sek-id"),resizedColumnWidthInPercent:s,col_number:o}),c(".sektion-wrapper").data("sek-resizing-columns",!1)}},helper:"ui-resizable-helper",handles:"e"});var e=c(this);k.delay(function(){e.find(".ui-resizable-handle").find(".fa-arrows-alt-h").length<1&&e.find(".ui-resizable-handle").append('<i class="fas fa-arrows-alt-h"></i>')},500)})}}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(c,h,p){h.extend(SekPreviewPrototype,{printLevelUI:function(e){var t,a,i,n;if((p.isUndefined(e)||e.length<1)&&this.errare("sekPreview::printeLevelUI => invalid level element => ",e),"location"!=(a=e.data("sek-level"))&&!(0<(n=e).children(".sek-dyn-ui-wrapper").length)){var s=n[0].getBoundingClientRect(),o=n.data("sek-level");switch(n.toggleClass("sek-shrink-my-ui",s.width&&s.width<("section"===o?350:"column"===o?300:200)),i={id:n.data("sek-id"),level:o},a){case"section":var d,l,r=n.closest('div[data-sek-level="location"]'),c=n.closest('div[data-sek-level="column"]'),k=!0===n.data("sek-is-nested");k?0<c.length&&(d=c.find(".sek-column-inner").first().children("div[data-sek-level]").length==n.index()+1,l=0===n.index()):0<r.length&&(d=r.children('div[data-sek-level="section"]').length==n.index()+1,l=0===n.index()),i=p.extend(i,{is_nested:k,can_have_more_columns:n.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<12,is_global_location:!0===r.data("sek-is-global-location"),is_last_section_in_parent:d,is_first_section_in_parent:l,is_header_location:!0===r.data("sek-is-header-location"),is_footer_location:!0===r.data("sek-is-footer-location")});break;case"column":var u=n.closest('div[data-sek-level="section"]');i=p.extend(i,{parent_can_have_more_columns:u.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<12,parent_is_single_column:u.find(".sek-sektion-inner").first().children('div[data-sek-level="column"]').length<2,parent_is_last_allowed_nested:!0===u.data("sek-is-nested"),has_nested_section:0<n.find('[data-sek-is-nested="true"]').length});break;case"module":var m=this.getRegisteredModuleProperty(n.data("sek-module-type"),"name");i=p.extend(i,{module_name:"not_set"!=m?m:""})}!0===h(".sektion-wrapper").data("sek-resizing-columns")&&p.contains(["column","module"],a)||(t=this.parseTemplate("#sek-dyn-ui-tmpl-"+a),h.when(n.prepend(t(i))).done(function(){n.find(".sek-dyn-ui-wrapper").stop(!0,!0).fadeIn({duration:150,complete:function(){}})}))}},setupUiHoverVisibility:function(){var i,e,d=this,l=function(){(e=h(this)).children(".sek-dyn-ui-wrapper").length<1||sekPreviewLocalized.isPreviewUIDebugMode||d.isDraggingElement||(e.data("UIisFadingOut",!0),e.children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){h(this).remove(),e.data("UIisFadingOut",!1)}}))},n=function(){d.cachedElements.$body.stop(!0,!0).find(".sek-add-content-button").each(function(){h(this).fadeOut({duration:200,complete:function(){h(this).remove()}})})};d.cachedElements.$body.on("sek-location-refreshed sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(e,t){n()});var t,a=function(){var e=h(this);clearTimeout(e.data("_toggle_ui_menu_")),e.data("_toggle_ui_menu_",setTimeout(function(){s.call(e)},1e4))},s=function(e){var t=h(this),a=h(this).closest(".sek-dyn-ui-location-type"),i=t.closest(".sek-dyn-ui-wrapper").find(".sek-dyn-ui-inner");!0===e?(t.removeClass("sek-collapsed"),i.addClass("sek-is-expanded"),a.hide()):(t.addClass("sek-collapsed"),i.removeClass("sek-is-expanded"),a.show())};d.cachedElements.$body.on("click",".sek-dyn-ui-location-inner",function(e){var t=h(this).find(".sek-dyn-ui-hamb-menu-wrapper");h(this).closest('[data-sek-level="section"]').find(".sek-dyn-ui-hamb-menu-wrapper").each(function(){s.call(h(this))}),s.call(t,!0),a.call(t)}),d.cachedElements.$body.on("mouseenter mouseover mouseleave",".sek-dyn-ui-wrapper",p.throttle(function(e){var t=h(this).find(".sek-dyn-ui-hamb-menu-wrapper");p.isUndefined(t.data("_toggle_ui_menu_"))||t.hasClass("sek-collapsed")||0<t.length&&a.call(t)},50)),d.cachedElements.$body.on("click",".sek-minimize-ui",function(e){h(this).closest(".sek-dyn-ui-location-type").slideToggle("fast")}),d.cachedElements.$body.on("mouseenter",".sek-wp-content-wrapper",function(e){0<(t=h(this)).children(".sek-dyn-ui-wrapper").length&&!0!==t.data("UIisFadingOut")||(i=d.parseTemplate("#sek-dyn-ui-tmpl-wp-content"),h.when(t.prepend(i({}))).done(function(){t.find(".sek-dyn-ui-wrapper").stop(!0,!0).fadeIn({duration:150,complete:function(){}})}))}).on("mouseleave",".sek-wp-content-wrapper",function(e){h(this).data("UIisFadingOut",!0),t=h(this),h(this).children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){h(this).remove(),t.data("UIisFadingOut",!1)}})});var r=function(s,e){var o,t=[];o=p.isUndefined(e)||e.length<1?(d.cachedElements.$body.find('[data-sek-level][data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]').each(function(){t.push(h(this))}),"printOrScheduleRemoval"):(t.push(e),"mayBeRemove"),p.each(t,function(e){var t=e[0].getBoundingClientRect(),a=s.x<=t.right&&t.left<=s.x,i=s.y>=t.top&&t.bottom>=s.y,n=e;switch(o){case"mayBeRemove":n.data("sek-ui-removal-scheduled",!1),a&&i||l.call(n);break;case"printOrScheduleRemoval":a&&i?(n.data("sek-ui-removal-scheduled",!1),d.printLevelUI(n)):!0!==n.data("sek-ui-removal-scheduled")&&(n.data("sek-ui-removal-scheduled",!0),n.children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1?r(s,n):p.delay(function(){!0===n.data("sek-ui-removal-scheduled")&&r(d.mouseMovedRecently(),n)},3500))}})};d.mouseMovedRecently=new c.Value({}),d.mouseMovedRecently.bind(function(e){var k,t,a;p.isEmpty(e)?sekPreviewLocalized.isPreviewUIDebugMode||(n(),d.cachedElements.$body.stop(!0,!0).find("[data-sek-level]").each(function(){h(this).children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1&&l.call(h(this))})):(d.cachedElements.$body.find('div[data-sek-level="location"]').each(function(){var e;$sectionCollection=h(this).children('div[data-sek-level="section"]'),i=d.parseTemplate("#sek-tmpl-add-content-button"),t=h(this).data("sek-id"),a=!0===h(this).data("sek-is-global-location"),$sectionCollection.each(function(){0<h(this).find(".sek-add-content-button").length||(h.when(h(this).prepend(i({location:t,is_global_location:a}))).done(function(){e=h(this).find(".sek-add-content-button"),h(this).data("sek-id")&&e.attr("data-sek-before-section",h(this).data("sek-id")),e.fadeIn(300)}),$sectionCollection.length==h(this).index()+1&&h.when(h(this).append(i({is_last:!0,location:t,is_global_location:a}))).done(function(){e=h(this).find(".sek-add-content-button").last(),h(this).data("sek-id")&&e.attr("data-sek-after-section",h(this).data("sek-id")),e.fadeIn(300)}))})}),h(".sek-empty-location-placeholder").each(function(){0<h(this).find(".sek-add-content-button").length||(t=h(this).closest('div[data-sek-level="location"]').data("sek-id"),a=!0===h(this).closest('div[data-sek-level="location"]').data("sek-is-global-location"),h.when(h(this).append(i({location:t,is_global_location:a}))).done(function(){$btn_el=h(this).find(".sek-add-content-button"),$btn_el.attr("data-sek-is-first-section",!0),$btn_el.fadeIn(300)}))}),k=e,d.cachedElements.$body.find(".sek-add-content-button").each(function(){var e=h(this)[0].getBoundingClientRect(),t=k.y,a=k.x,i=Math.abs(t-e.bottom),n=Math.abs(e.top-t),s=a-e.right,o=e.left-a,d=i<40||n<40,l=0<s&&s<40||0<o&&o<40,r=a<=e.right&&e.left<=a,c=t>=e.top&&e.bottom>=t;h(this).toggleClass("sek-mouse-is-close",(d||c)&&(l||r))}),r(e))});var o=function(){clearTimeout(d.cachedElements.$window.data("_scroll_move_timer_")),d.mouseMovedRecently.set({})};return d.cachedElements.$window.on("mousemove scroll",p.throttle(function(e){d.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(d.cachedElements.$window.data("_scroll_move_timer_")),d.cachedElements.$window.data("_scroll_move_timer_",setTimeout(function(){d.mouseMovedRecently.set({})},4e3))},50)),c.preview.bind("sek-drag-start",function(){o()}),d.cachedElements.$body.on("sek-section-added",'[data-sek-level="location"]',function(e,t){o()}),this}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(m,h,p){h.extend(SekPreviewPrototype,{scheduleUiClickReactions:function(){var u=this;u.cachedElements.$body.on("click",function(e){m.preview.send("sek-clean-target-drop-zone");var t,a="inactiveZone",i=h(e.target),n=i.closest('[data-sek-level="location"][data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]'),s=i.closest('[data-sek-preview-level-guid="'+sekPreviewLocalized.previewLevelGuid+'"]'),o=i.closest("[data-sek-click-on]"),d=n.data("sek-id"),l=s.data("sek-level"),r=s.data("sek-id");switch(a="add-content"==i.data("sek-click-on")||0<i.closest("[data-sek-click-on]").length&&"add-content"==i.closest("[data-sek-click-on]").data("sek-click-on")?"addContentButton":!p.isEmpty(i.data("sek-click-on"))||0<o.length?"UIIcon":"module"==s.data("sek-level")?"moduleWrapper":"column"==s.data("sek-level")&&!0===s.data("sek-no-modules")?"noModulesColumn":i.hasClass("sek-to-json")?"sekToJson":"column"==s.data("sek-level")?"columnOutsideModules":"section"==s.data("sek-level")?"sectionOutsideColumns":p.isEmpty(i.data("sek-add"))?i.hasClass("sek-wp-content-wrapper")||i.hasClass("sek-wp-content-dyn-ui")?"wpContent":i.hasClass("sek-edit-wp-content")?"editWpContent":"inactiveZone":"addSektion",p.isEmpty(d)&&u.errare("::scheduleUiClickReactions => error location id can not be empty"),a){case"addContentButton":var c=!0===i.closest("[data-sek-is-first-section]").data("sek-is-first-section");m.preview.send("sek-add-section",{location:d,level:"section",before_section:i.closest("[data-sek-before-section]").data("sek-before-section"),after_section:i.closest("[data-sek-after-section]").data("sek-after-section"),is_first_section:c,send_to_preview:!c});break;case"UIIcon":if(s.length<1)throw new Error("ERROR => sek-front-preview => No valid level dom element found");if(t=i.closest("[data-sek-click-on]").data("sek-click-on"),p.isEmpty(t))throw new Error("Invalid action");if(p.isEmpty(l)||p.isEmpty(r))throw new Error("ERROR => sek-front-preview => No valid level id found");u._send_(i,{action:t,location:d,level:l,id:r,was_triggered:!1});break;case"moduleWrapper":if(0<i.parent(".sek-dyn-ui-icons").length)return;u._send_(i,{action:"edit-module",level:l,id:r});break;case"noModulesColumn":if(0<i.parent(".sek-dyn-ui-icons").length)return;u._send_(i,{action:"pick-content",content_type:"module",level:l,id:r});break;case"columnOutsideModules":case"sectionOutsideColumns":u._send_(i,{action:"edit-options",location:d,level:l,id:r});break;case"addSektion":m.preview.send("sek-add-section",{location:d,level:i.data("sek-add")});break;case"sekToJson":m.preview.send("sek-to-json",{id:r});break;case"wpContent":m.preview.send("sek-notify",{type:"info",duration:8e3,message:sekPreviewLocalized.i18n["This content has been created with the WordPress editor."]});break;case"editWpContent":var k=i.closest("[data-sek-wp-edit-link]").data("sek-wp-edit-link");p.isEmpty(k)||window.open(k,"_blank");break;case"inactiveZone":m.preview.send("sek-click-on-inactive-zone")}})},_send_:function(e,t){var a=h.extend(!0,{},t),i="",n=e.closest('div[data-sek-level="module"]'),s="module"===t.level?n.data("sek-module-type"):"";"module"===t.level&&"czr_tiny_mce_editor_module"===s&&(i=0<n.find("div[data-sek-input-id]").length?n.find("div[data-sek-input-id]").data("sek-input-id"):""),m.preview.send("sek-"+t.action,p.extend({location:t.location,level:t.level,id:t.id,content_type:e.data("sek-content-type"),module_type:s,in_column:0<e.closest('div[data-sek-level="column"]').length?e.closest('div[data-sek-level="column"]').data("sek-id"):"",in_sektion:0<e.closest('div[data-sek-level="section"]').length?e.closest('div[data-sek-level="section"]').data("sek-id"):"",clicked_input_type:0<e.closest("div[data-sek-input-type]").length?e.closest("div[data-sek-input-type]").data("sek-input-type"):"",clicked_input_id:0<e.closest("div[data-sek-input-id]").length?e.closest("div[data-sek-input-id]").data("sek-input-id"):"",was_triggered:t.was_triggered,syncedTinyMceInputId:i},a))}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,s,o){s.extend(SekPreviewPrototype,{setupLoader:function(){var t=this;this._css_loader_html='<div class="sek-css-loader sek-mr-loader" style="display:none"><div></div><div></div><div></div></div>',t.cachedElements.$body.on(["sek-modules-refreshed","sek-columns-refreshed","sek-section-added","sek-level-refreshed","sek-stylesheet-refreshed","sek-ajax-error"].join(" "),function(e){t.cleanLoader()})},mayBePrintLoader:function(e){e=o.isObject(e)?e:{};var t=this,a=e.loader_located_in_level_id;if(!o.isEmpty(a)){var i=s('[data-sek-id="'+a+'"]');0<i.length&&s(".sek-level-clone ").length<1&&($levelClone=s("<div>",{class:"sek-level-clone"}),i.find("[data-sek-level]").each(function(){s(this).addClass("sek-refreshing")}),i.prepend($levelClone),$levelClone.css({width:i.outerWidth()+"px",height:i.outerHeight()+"px"}).append(t._css_loader_html).find(".sek-css-loader").fadeIn("fast"),clearTimeout(s.data(this,"_nimble_loader_active_timer_")),s.data(this,"_nimble_loader_active_timer_",setTimeout(function(){t.cleanLoader()},e.duration||4e3)))}if(!0===e.fullPageLoader){var n=s("<div>",{id:"nimble-full-page-loader-wrapper",class:"white-loader"});t.cachedElements.$body.append(n),n.fadeIn("fast").append(t._css_loader_html).find(".sek-css-loader").fadeIn("fast"),s('[data-sek-level="location"]').each(function(){s(this).addClass("sek-blur")}),clearTimeout(s.data(this,"_nimble_full_page_loader_active_timer_")),s.data(this,"_nimble_full_page_loader_active_timer_",setTimeout(function(){t.cleanLoader({cleanFullPageLoader:!0})},e.duration||6e3))}},cleanLoader:function(e){s(".sek-level-clone").remove(),s("[data-sek-level]").each(function(){s(this).removeClass("sek-refreshing")}),!0===(e=e||{}).cleanFullPageLoader&&(s('[data-sek-level="location"]').each(function(){s(this).removeClass("sek-blur")}),s("#nimble-full-page-loader-wrapper").remove())}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(o,l,r){l.extend(SekPreviewPrototype,{schedulePanelMsgReactions:function(){var t,d=this,e={"sek-add-section":"ajaxAddSektion","sek-add-content-in-new-sektion":"ajaxAddSektion","sek-add-content-in-new-nested-sektion":"ajaxAddSektion","sek-add-column":"ajaxRefreshColumns","sek-add-module":"ajaxRefreshModulesAndNestedSections","sek-refresh-stylesheet":"ajaxRefreshStylesheet","sek-resize-columns":"ajaxResizeColumns","sek-maybe-print-loader":function(e){try{d.mayBePrintLoader(e)}catch(e){o.errare("sek-clean-loader => error",e)}},"sek-clean-loader":function(e){try{d.cleanLoader(e)}catch(e){o.errare("sek-clean-loader => error",e)}},"sek-remove":function(e){var t,a=e.apiParams.id,i=l('div[data-sek-id="'+a+'"]');switch(e.apiParams.action){case"sek-remove-section":d.mayBePrintLoader({loader_located_in_level_id:e.apiParams.location}),!0===e.apiParams.is_nested?t=d.ajaxRefreshModulesAndNestedSections(e):((r.isEmpty(a)||i.length<1)&&d.errare("reactToPanelMsg => sek-remove => invalid candidate id => ",a),d.cachedElements.$body.find(i).remove(),l('[data-sek-id="'+e.apiParams.location+'"]').trigger("sek-level-refreshed"));break;case"sek-remove-column":t=d.ajaxRefreshColumns(e);break;case"sek-remove-module":t=d.ajaxRefreshModulesAndNestedSections(e)}return r.isEmpty(t)?l.Deferred(function(){this.resolve()}):t},"sek-duplicate":function(e){var t;switch(e.apiParams.action){case"sek-duplicate-section":e.apiParams.id=e.cloneId,t=d.ajaxAddSektion(e);break;case"sek-duplicate-column":e.apiParams.id=e.cloneId,t=d.ajaxRefreshColumns(e);break;case"sek-duplicate-module":e.apiParams.id=e.cloneId,t=d.ajaxRefreshModulesAndNestedSections(e)}return t},"sek-refresh-level":function(s){return d.mayBePrintLoader({loader_located_in_level_id:s.apiParams.id}),d.doAjax({location_skope_id:s.location_skope_id,local_skope_id:s.local_skope_id,action:"sek_get_content",id:s.apiParams.id,level:s.apiParams.level,sek_action:s.apiParams.action}).fail(function(e){d.errare("ERROR reactToPanelMsg => sek-refresh-level => ",e),l('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-ajax-error")}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(d.errare("SekPreviewPrototype::sek-refresh-level => ajax_response.data.contents is undefined ",e),d.errare("params ?",s));var a='<span class="sek-placeholder" data-sek-placeholder-for="'+s.apiParams.id+'"></span>',i=l('div[data-sek-id="'+s.apiParams.id+'"]');if(i.length<1)d.errare("reactToPanelMsg => sek-refresh-level ajax done => the level to refresh is not rendered in the page",e);else{i.before(a);var n=l('[data-sek-placeholder-for="'+s.apiParams.id+'"]');i.remove(),r.isUndefined(t)?d.errare("reactToPanelMsg => sek-refresh-level ajax done => missing html_content",e):n.after(t),n.remove(),l('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-level-refreshed",{level:s.apiParams.level,id:s.apiParams.id}),s.apiParams.moved_level_id&&o.preview.trigger("sek-animate-to-level",{id:s.apiParams.moved_level_id})}})},"sek-move":function(e){switch(e.apiParams.action){case"sek-move-column":if(e.apiParams.from_sektion!=e.apiParams.to_sektion){var t=l.extend(!0,{},e),a=l.extend(!0,{},e);l('[data-sek-id="'+e.apiParams.from_sektion+'"]',".sektion-wrapper").find('div[data-sek-level="column"]').length<1?o.preview.send("sek-add-column",{in_sektion:e.apiParams.from_sektion,autofocus:!1}):(t.apiParams=r.extend(t.apiParams,{in_sektion:e.apiParams.from_sektion,action:"sek-refresh-columns-in-sektion"}),d.ajaxRefreshColumns(t)),a.apiParams=r.extend(a.apiParams,{in_sektion:e.apiParams.to_sektion,action:"sek-refresh-columns-in-sektion"}),d.ajaxRefreshColumns(a)}break;case"sek-move-module":var i=l.extend(!0,{},e),n=l.extend(!0,{},e);i.apiParams.from_column!=i.apiParams.to_column&&(i.apiParams=r.extend(i.apiParams,{in_column:i.apiParams.from_column,in_sektion:i.apiParams.from_sektion,action:"sek-refresh-modules-in-column"}),d.ajaxRefreshModulesAndNestedSections(i)),e.apiParams=r.extend(n.apiParams,{in_column:n.apiParams.to_column,in_sektion:n.apiParams.to_sektion,action:"sek-refresh-modules-in-column"}),d.ajaxRefreshModulesAndNestedSections(n),l('[data-sek-id="'+e.apiParams.to_column+'"]',".sektion-wrapper").find(".sek-column-inner").sortable("refresh")}},"sek-edit-options":function(e){d.activeLevelUI(e.uiParams.id)},"sek-edit-module":function(e){d.activeLevelUI(e.uiParams.id)},"sek-drag-start":function(n){var s=1,o=!1;l('[data-sek-level="location"]').children('[data-sek-level="section"]').each(function(){var e=l(this).data("sek-id"),t=l(this).find('[data-sek-level="column"]').length,a=l(this).find('[data-sek-level="module"]').length,i=t<2&&a<1;!o&&!i&&l('[data-drop-zone-before-section="'+e+'"]').length<1&&l(this).before('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-before-section="'+e+'"></div>'),i||s!=l(".sektion-wrapper").children('[data-sek-level="section"]').length||l(this).after('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-after-section="'+e+'"></div>'),s++,o=i}),l(".sek-empty-location-placeholder").each(function(){l.when(l(this).append('<div class="sek-content-'+n.content_type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="in-empty-location"></div>'))}),("module"==n.content_type||"preset_section"==n.content_type&&!0===n.eligible_for_module_dropzones)&&l('[data-sek-level="column"]').each(function(){var e=l(this).children(".sek-column-inner").children('[data-sek-level="module"]'),t=l(this).children(".sek-column-inner").children('[data-sek-is-nested="true"]');e=e.add(t);var a=1;e.each(function(){l('[data-drop-zone-before-module-or-nested-section="'+l(this).data("sek-id")+'"]').length<1&&l(this).before('<div class="sek-content-module-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-modules-and-nested-sections" data-drop-zone-before-module-or-nested-section="'+l(this).data("sek-id")+'"></div>'),a==e.length&&l('[data-drop-zone-after-module-or-nested-section="'+l(this).data("sek-id")+'"]').length<1&&l(this).after('<div class="sek-content-module-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-modules-and-nested-sections" data-drop-zone-after-module-or-nested-section="'+l(this).data("sek-id")+'"></div>'),a++})}),d.cachedElements.$body.addClass("sek-dragging"),r.delay(function(){l(".sek-dynamic-drop-zone").css({opacity:1})},100)},"sek-drag-stop":function(e){d.cachedElements.$body.removeClass("sek-dragging"),l(".sortable-placeholder").remove(),l(".sek-dynamic-drop-zone").remove()},"sek-animate-to-level":function(e){var t=l('[data-sek-id="'+e.id+'"]');0<t.length&&l("html, body").animate({scrollTop:t.offset().top-100},200)},"sek-clean-level-uis":function(e){l(".sek-dyn-ui-wrapper").each(function(){l(this).remove()})},"sek-display-level-ui":function(e){var t=l('[data-sek-id="'+e.id+'"]');0<t.length&&d.printLevelUI(t)},"sek-set-double-click-target":function(e){if(l(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion"),r.isObject(e)&&e.id){var t=l('[data-sek-id="'+e.id+'"]');1===t.length&&t.addClass("sek-target-for-double-click-insertion")}},"sek-reset-double-click-target":function(e){l(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion")},"sek-update-html-in-selector":function(e){var t,a=l('[data-sek-id="'+e.id+'"]');t=r.isEmpty(e.changed_item_id)?l(e.selector,a):l('[data-sek-item-id="'+e.changed_item_id+'"] '+e.selector,a),0<a.length&&0<t.length?t.html(e.html):d.errare("reactToPanelMsg => sek-update-html-in-selector => missing level or target dom element",e)},"sek-print-confettis":function(e){if(window.confetti&&window.requestAnimationFrame){var t=(e=e||{}).duration||Date.now()+1e3,a=["#f18700","#684F2F","#eea236"];!function e(){confetti({particleCount:2,angle:60,spread:55,origin:{x:0,y:.8},colors:a}),confetti({particleCount:4,angle:120,spread:55,origin:{x:1,y:.8},colors:a}),Date.now()<t&&window.requestAnimationFrame(e)}()}}};r.each(e,function(e,i){o.preview.bind(i,function(a){a=r.extend({location_skope_id:"",apiParams:{},uiParams:{}},a||{});d.cachedElements.$body.addClass(i);try{l.when(r.isFunction(e)?e(a):d[e].call(d,a)).done(function(e){var t;t=e,o.preview.send([i,"done"].join("_"),a),a.apiParams.is_multi_items&&"sek-refresh-level"===a.apiParams.action&&o.preview.send("multi-items-module-refreshed",a),r.isUndefined(t)||t.data&&t.data.setting_validities&&o.preview.send("selective-refresh-setting-validities",t.data.setting_validities)}).fail(function(){o.preview.send("sek-notify",{type:"error",duration:1e4,message:sekPreviewLocalized.i18n["Something went wrong, please refresh this page."]})}).always(function(e){d.cachedElements.$body.removeClass(i)}).then(function(){o.preview.trigger("control-panel-requested-action-done",{action:i,args:a})})}catch(e){d.errare("reactToPanelMsg => Error when firing the callback of "+i,e),d.cachedElements.$body.removeClass(i)}a.apiParams.id&&((!(t=d.activeLevelEl())||!r.isObject(t)||t.length<1||d.activeLevelUI()!==a.apiParams.id)&&(d.activeLevelEl(l('[data-sek-id="'+a.apiParams.id+'"]')),t=d.activeLevelEl()),0<t.length&&!nb_.isInScreen(t[0])&&t[0].scrollIntoView())})})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,d){o.extend(SekPreviewPrototype,{ajaxAddSektion:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.location}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,in_column:n.apiParams.in_column,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action,is_nested:n.apiParams.is_nested,content_type:n.all_params&&n.all_params.content_type?n.all_params.content_type:null,collection_of_preset_section_id:n.all_params&&n.all_params.collection_of_preset_section_id?n.all_params.collection_of_preset_section_id:[]}).done(function(e){var t,a="";if(e.data&&e.data.contents?a=e.data.contents:(s.errare("SekPreviewPrototype::ajaxAddSektion => ajax_response.data.contents is undefined ",e),s.errare("params ?",n)),n.apiParams.is_nested){(t=o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_column+'"]')).length<1&&s.errare("preview => reactToPanelMsg => sek-add-column => no DOM node for parent column => ",n.apiParams.in_column);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_column+'"></span>';t.before(i),t.remove(),o(".sektion-wrapper").find(".sek-placeholder").after(a),o(".sektion-wrapper").find(".sek-placeholder").remove()}else"sek-duplicate-section"!=n.apiParams.action||d.isEmpty(n.cloneId)?($beforeCandidate=o('.sektion-wrapper[data-sek-id="'+n.apiParams.location+'"]').find('div[data-sek-id="'+n.apiParams.before_section+'"]'),$afterCandidate=o('.sektion-wrapper[data-sek-id="'+n.apiParams.location+'"]').find('div[data-sek-id="'+n.apiParams.after_section+'"]'),!d.isEmpty(n.apiParams.before_section)&&0<$beforeCandidate.length?$beforeCandidate.before(a):!d.isEmpty(n.apiParams.after_section)&&0<$afterCandidate.length?$afterCandidate.after(a):o('[data-sek-id="'+n.apiParams.location+'"]').append(a)):o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_sektion+'"]').after(a);"sek-duplicate-section"==n.apiParams.action&&o('div[data-sek-id="'+n.cloneId+'"]',".sektion-wrapper").each(function(){o(this).trigger("sek-columns-refreshed")}),n.apiParams.is_nested&&(s.makeModulesSortableInColumn(n.apiParams.in_column),o(".sektion-wrapper").find('div[data-sek-id="'+n.apiParams.in_sektion+'"]').each(function(){s.maybeMakeColumnResizableInSektion.call(this)})),n.cloneId&&o('div[data-sek-id="'+n.cloneId+'"]').trigger("sek-section-added",n),o('div[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-section-added",n),o('div[data-sek-id="'+n.apiParams.location+'"]').trigger("sek-location-refreshed",n)}).fail(function(e){s.errare("ERROR in sek_get_html_for_injection ? ",e),o('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(o,d,e){d.extend(SekPreviewPrototype,{ajaxRefreshColumns:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.in_sektion}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(s.errare("SekPreviewPrototype::ajaxRefreshColumns => ajax_response.data.contents is undefined ",e),s.errare("params ?",n));var a=d('div[data-sek-id="'+n.apiParams.in_sektion+'"]');a.length<1&&s.errare("reactToPanelMsg => "+n.apiParams.action+" => no DOM node for parent sektion => ",n.apiParams.in_sektion);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_sektion+'"></span>';a.before(i),a.remove(),d(".sektion-wrapper").find(".sek-placeholder").after(t),d(".sektion-wrapper").find(".sek-placeholder").remove(),o.preview.trigger("sek-refresh-stylesheet",n),d('div[data-sek-id="'+n.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed",{in_sektion:n.apiParams.in_sektion})}).fail(function(e){s.errare("ERROR reactToPanelMsg => sek-add-column => ",e),d('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})},ajaxResizeColumns:function(a){var i=this;return i.mayBePrintLoader({loader_located_in_level_id:a.apiParams.in_sektion}),i.doAjax({action:"sek_get_content",resized_column:a.apiParams.resized_column,sister_column:a.apiParams.sister_column,location_skope_id:a.location_skope_id,local_skope_id:a.local_skope_id,sek_action:"sek-resize-columns"}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(i.errare("SekPreviewPrototype::ajaxResizeColumns => ajax_response.data.contents is undefined ",e),i.errare("params ?",a)),d('[data-sek-id="'+a.apiParams.resized_column+'"]').css({width:"",height:""}),i.appendDynStyleSheet(a.location_skope_id,t),d('div[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed")}).fail(function(e){i.errare("ERROR reactToPanelMsg => sek-resize-columns => ",e),d('[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,t){o.extend(SekPreviewPrototype,{ajaxRefreshModulesAndNestedSections:function(n){var s=this;return s.mayBePrintLoader({loader_located_in_level_id:n.apiParams.in_column}),s.doAjax({action:"sek_get_content",id:n.apiParams.id,in_sektion:n.apiParams.in_sektion,in_column:n.apiParams.in_column,location_skope_id:n.location_skope_id,local_skope_id:n.local_skope_id,sek_action:n.apiParams.action,is_nested:n.apiParams.is_nested}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(s.errare("SekPreviewPrototype::ajaxRefreshModulesAndNestedSections => ajax_response.data.contents is undefined ",e),s.errare("params ?",n));var a=o('[data-sek-id="'+n.apiParams.in_column+'"]');a.length<1&&s.errare("reactToPanelMsg => ajaxRefreshModulesAndNestedSections => no DOM node for parent column => ",n.apiParams.in_column);var i='<span class="sek-placeholder" data-sek-placeholder-for="'+n.apiParams.in_column+'"></span>';a.before(i),a.remove(),o('[data-sek-placeholder-for="'+n.apiParams.in_column+'"]').after(t),o('[data-sek-placeholder-for="'+n.apiParams.in_column+'"]').remove(),o('[data-sek-id="'+n.apiParams.in_column+'"]').trigger("sek-modules-refreshed",{in_column:n.apiParams.in_column,in_sektion:n.apiParams.in_sektion})}).fail(function(e){s.errare("ERROR reactToPanelMsg => sek-add-module => ",e),o('[data-sek-id="'+n.apiParams.id+'"]').trigger("sek-ajax-error")})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,n,s){n.extend(SekPreviewPrototype,{ajaxRefreshStylesheet:function(a){var i=this;return i.mayBePrintLoader({loader_located_in_level_id:a.apiParams.id}),i.doAjax({action:"sek_get_content",location_skope_id:a.location_skope_id,local_skope_id:a.local_skope_id,sek_action:"sek-refresh-stylesheet"}).done(function(e){var t="";e.data&&e.data.contents&&(t=e.data.contents),i.appendDynStyleSheet(a.location_skope_id,t),n('[data-sek-id="'+a.apiParams.id+'"]').trigger("sek-stylesheet-refreshed",{level:a.apiParams.level,id:a.apiParams.id})}).fail(function(e){i.errare("sek-refresh-stylesheet fail !"),n('[data-sek-id="'+a.apiParams.id+'"]').trigger("sek-ajax-error")})},appendDynStyleSheet:function(e,t){var a="#sek-"+e,i="#sek-gfonts-local-and-global";0<n("head").find(a).length&&n("head").find(a).remove(),0<n("head").find(i).length&&n("head").find(i).remove(),s.isEmpty(t)||n("head").append(t),!s.isEmpty(t)&&n("head").find(a).length<1&&n("head").find(i).length<1?this.errare("sek-preview => problem when printing the dynamic inline style for : "+a,t):n("head").find(a).attr("sek-data-origin","customizer")}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,d){o.extend(SekPreviewPrototype,{parseTemplate:d.memoize(function(t){var a,i=this,n={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){if(o(t).length<1)return i.errare("preview => parseTemplate => the requested tmpl does not exist =>"+t),"";try{a=a||d.template(o(t).html(),n)}catch(e){i.errare("preview => parseTemplate => problem when parsing tmpl =>"+t,e)}return a(e)}}),_prettyPrintLog:function(e){e=d.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,a=Array.from(e.consoleArguments);return a=d.isEmpty(d.filter(a,function(e){return!d.isString(e)}))?a.join(" "):JSON.stringify(a.join(" ")),["%c "+(t=a,d.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},_wrapLogInsideTags:function(e,t,a){d.isUndefined(console)&&"function"!=typeof window.console.log||(sekPreviewLocalized.isDevMode?d.isUndefined(t)?console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,this._prettyPrintLog({bgCol:a,textCol:"#000",consoleArguments:[e]})))},errare:function(e,t){this._wrapLogInsideTags(e,t,"#ffd5a0")},infoLog:function(e,t){this._wrapLogInsideTags(e,t,"#5ed1f5")},doAjax:function(e){var t=this,a=(e=e||(d.isObject(e)?e:{})).ajaxUrl||sekPreviewLocalized.ajaxUrl,i=sekPreviewLocalized.frontNonce,n=o.Deferred(),s=d.extend({action:"",withNonce:!1},e);return"https:"==document.location.protocol&&(a=a.replace("http://","https://")),d.isEmpty(s.action)||!d.isString(s.action)?(t.errare("self.doAjax : unproper action provided"),n.resolve().promise()):(s[i.id]=i.handle,!d.isObject(i)||d.isUndefined(i.id)||d.isUndefined(i.handle)?(t.errare("self.doAjax : unproper nonce"),n.resolve().promise()):(s["preview-level-guid"]=sekPreviewLocalized.previewLevelGuid,s.czr_query_params=JSON.stringify(d.isObject(_wpCustomizeSettings.czr_query_params)?_wpCustomizeSettings.czr_query_params:[]),o.post(a,s).done(function(e){"0"!==e&&"-1"!==e&&!1!==e.success||(t.errare("self.doAjax : done ajax error for action : "+s.action,e),n.reject(e)),n.resolve(e)}).fail(function(e){t.errare("self.doAjax : failed ajax error for : "+s.action,e),n.reject(e)}),n.promise()))},isModuleRegistered:function(e){return sekPreviewLocalized.registeredModules&&!d.isUndefined(sekPreviewLocalized.registeredModules[e])},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sekPreviewLocalized.registeredModules[e][t]:"not_set"},getLevelModel:function(t,e){var a=this,i="no_match";return d.isUndefined(e)&&a.errare("getLevelModel => a collection must be provided"),d.each(e,function(e){"no_match"==i&&(t===e.id?i=e:d.isArray(e.collection)&&(i=a.getLevelModel(t,e.collection)))}),i}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,t,a){t.extend(SekPreviewPrototype,e.Events);var i=e.Class.extend(SekPreviewPrototype);e.bind("preview-ready",function(){e.preview.bind("active",function(){try{e.sekPreview=new i}catch(e){SekPreviewPrototype.errare("SekPreviewConstructor => problem on instantiation",e)}})})}(wp.customize,jQuery,_);
assets/front/css/modules/menu-module.css CHANGED
@@ -6,10 +6,8 @@
6
  flex-wrap: wrap;
7
  -ms-flex-align: center;
8
  align-items: center;
9
- -ms-flex-pack: justify;
10
- justify-content: space-between;
11
- -ms-flex-pack: center;
12
- justify-content: center;
13
  padding: .5rem 0;
14
  }
15
 
@@ -59,6 +57,8 @@
59
  }
60
 
61
  .sek-nav li a {
 
 
62
  padding: .6em .8em;
63
  display: -ms-flexbox;
64
  display: flex;
@@ -386,3 +386,81 @@
386
  transform: translate(0, 0);
387
  }
388
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  flex-wrap: wrap;
7
  -ms-flex-align: center;
8
  align-items: center;
9
+ -ms-flex-pack: end;
10
+ justify-content: flex-end;
 
 
11
  padding: .5rem 0;
12
  }
13
 
57
  }
58
 
59
  .sek-nav li a {
60
+ font-size: 16px;
61
+ line-height: 1.5em;
62
  padding: .6em .8em;
63
  display: -ms-flexbox;
64
  display: flex;
386
  transform: translate(0, 0);
387
  }
388
  }
389
+
390
+ [data-sek-is-mobile-menu="yes"] > .show {
391
+ overflow: auto;
392
+ max-height: 80vh;
393
+ }
394
+
395
+ [data-sek-is-mobile-menu="yes"] li .sub-menu li > a {
396
+ font-size: 0.8em;
397
+ padding: .6em 15px;
398
+ }
399
+
400
+ .nb-module-menu-search {
401
+ position: relative;
402
+ }
403
+
404
+ [data-sek-is-mobile-menu="yes"] .nb-module-menu-search {
405
+ display: none;
406
+ }
407
+
408
+ .nb-svg-search-icon {
409
+ cursor: pointer;
410
+ }
411
+
412
+ .nb-module-menu-search .nb-search-expand {
413
+ display: none;
414
+ background: #fff;
415
+ position: absolute;
416
+ z-index: 100;
417
+ top: 49px;
418
+ right: 0;
419
+ left: 0;
420
+ width: 340px;
421
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
422
+ }
423
+
424
+ .nb-search-expand .nb-search-expand-inner {
425
+ border: 1px solid #eee;
426
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.15);
427
+ transition: -webkit-transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out;
428
+ transition: height .25s ease-in-out,background-color .45s ease-in-out,-webkit-transform .35s ease-in-out;
429
+ transition: transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out;
430
+ transition: transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out,-webkit-transform .35s ease-in-out;
431
+ padding: 15px;
432
+ }
433
+
434
+ [data-sek-module-type="czr_menu_module"] .nb-search-expand .nb-search-expand-inner [role=search].search-form {
435
+ display: -ms-flexbox;
436
+ display: flex;
437
+ float: none;
438
+ }
439
+
440
+ [data-sek-module-type="czr_menu_module"] .nb-search-expand .nb-search-expand-inner label input[type=search] {
441
+ max-width: 100%;
442
+ }
443
+
444
+ [data-sek-module-type="czr_menu_module"] .nb-search-expand .nb-search-expand-inner input[type=submit], [data-sek-is-mobile-menu="yes"] .nb-mobile-search form input[type=submit] {
445
+ margin: 0;
446
+ background: #808080;
447
+ color: #fff;
448
+ }
449
+
450
+ [data-sek-module-type="czr_menu_module"] .nb-search-expand .nb-search-expand-inner input[type=search], [data-sek-is-mobile-menu="yes"] .nb-mobile-search input[type=search],
451
+ [data-sek-module-type="czr_menu_module"] .nb-search-expand .nb-search-expand-inner input[type=submit], [data-sek-is-mobile-menu="yes"] .nb-mobile-search form input[type=submit] {
452
+ text-transform: none !important;
453
+ }
454
+
455
+ .nb-mobile-search {
456
+ display: none;
457
+ }
458
+
459
+ [data-sek-is-mobile-menu="yes"] .nb-mobile-search {
460
+ display: block;
461
+ padding: 6px 14px 15px;
462
+ }
463
+
464
+ [data-sek-is-mobile-menu="yes"] .nb-mobile-search input {
465
+ font-size: 16px;
466
+ }
assets/front/css/modules/menu-module.min.css CHANGED
@@ -1 +1 @@
1
- .sek-nav-wrap{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-pack:center;justify-content:center;padding:.5rem 0}.sek-mobile-menu-expanded-below .sek-nav-wrap{padding:0}.sek-nav-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.sek-nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column}.sek-module .sek-module-inner .sek-nav{margin-right:-10px!important;margin-left:-10px!important}.sek-module .sek-module-inner .sek-nav,.sek-module .sek-module-inner .sek-nav ul{list-style:none!important;padding:0!important;margin:0!important}.sek-module .sek-module-inner .sek-nav li{list-style:none;margin:0 5px}.sek-module .sek-module-inner .sek-nav li>ul li{padding:0 0 0 .9rem}.sek-nav li a{padding:.6em .8em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:inherit;overflow:hidden}.sek-nav-wrap .sek-nav li a{text-decoration:none}.sek-nav li a:hover .sek-nav__title{text-decoration:underline}.sek-nav li:not(:last-of-type){border-bottom:1px solid;border-color:rgba(49,49,49,.09)}.sek-nav .menu-item-has-children,.sek-nav .page_item_has_children{position:relative}.sek-nav .menu-item-has-children>a::after,.sek-nav .page_item_has_children>a::after{content:"\203A";font-family:"Arial Unicode MS",Arial;moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:none;font-style:normal;font-variant:normal;text-rendering:auto;font-weight:900;transition:all .3s ease;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px;padding:0 .45em;font-size:1em;position:relative;-webkit-transform:translateZ(0) rotate(90deg);transform:translateZ(0) rotate(90deg);-ms-transform:rotate(90deg)}.sek-nav .menu-item-has-children.show>a::after,.sek-nav .page_item_has_children.show>a::after{-webkit-transform:translateZ(0) rotate(-90deg)!important;transform:translateZ(0) rotate(-90deg)!important;-ms-transform:rotate(-90deg)!important}.sek-nav .children,.sek-nav .sub-menu{position:static;float:none;list-style:none;border-radius:0;border:0;margin:0;padding:0;font-size:inherit}@media (min-width:768px){.sek-nav .children,.sek-nav .sub-menu{position:absolute;display:none;top:100%;left:0;z-index:1000;min-width:10rem;max-width:50vw}}.sek-dropdown-submenu>a::after{-webkit-transform:translateZ(0) rotate(0)!important;transform:translateZ(0) rotate(0)!important;-ms-transform:rotate(0)!important}.sek-dropdown-submenu>a[class*=-reverse]::after{top:.1em;-webkit-transform:translateZ(0) rotate(-180deg)!important;transform:translateZ(0) rotate(-180deg)!important;-ms-transform:rotate(-180deg)!important}.sek-module-inner .sek-nav-toggler{-webkit-appearance:none!important;cursor:pointer;height:40px;width:40px;padding:0;vertical-align:middle}.sek-module-inner .sek-nav-toggler,.sek-module-inner .sek-nav-toggler:focus,.sek-module-inner .sek-nav-toggler:hover{background:0 0;background-color:rgba(0,0,0,0);color:#000;border:none}.sek-ham__span-wrapper{height:12px;position:relative;display:block}.sek-ham__span-wrapper .line{display:block;height:1.5px;position:absolute;left:10px;border-radius:5px;background-clip:padding-box;transition:all ease .35s;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-top:1.5px solid}.sek-ham__span-wrapper .line-1{top:0}.sek-ham__span-wrapper .line-2{top:50%}.sek-ham__span-wrapper .line-3{top:100%}.sek-nav-toggler .line-1{-webkit-transform:translate(-3px,6px) rotate(45deg);transform:translate(-3px,6px) rotate(45deg);width:28px}.sek-nav-toggler .line-2{opacity:0}.sek-nav-toggler .line-3{-webkit-transform:translate(-3px,-6px) rotate(-45deg);transform:translate(-3px,-6px) rotate(-45deg);width:28px}.sek-nav-toggler.sek-collapsed .line{width:20px;-webkit-transform:translate(0,0) rotate(0);transform:translate(0,0) rotate(0);opacity:1}.sek-nav-toggler.sek-collapsed.hovering .line{-webkit-transform:translateX(-3px);transform:translateX(-3px);width:26px}.sek-dropdown-menu{position:static;float:none;list-style:none;border-radius:0;border:0;margin:0;padding:0;font-size:inherit}@media (min-width:768px){.sek-dropdown-menu{position:absolute;display:none;top:100%;left:0;z-index:1000;min-width:10rem;max-width:50vw}}.show>.sek-dropdown-menu{display:block}.sek-dropdown-menu .sek-nav__title{word-break:break-word;white-space:normal}.sek-dropdown-menu.open-right{left:0;right:auto}.sek-dropdown-menu ul.open-right,.sek-dropdown-menu.open-right ul:not(.open-left){left:100%;right:auto}.sek-dropdown-menu.open-left{left:auto;right:0}.sek-dropdown-menu ul.open-left,.sek-dropdown-menu.open-left ul:not(.open-right){right:100%;left:auto}@media (min-width:768px){.sek-nav{-ms-flex-direction:row;flex-direction:row}.sek-nav .menu-item-has-children>a::after,.sek-nav .page_item_has_children>a::after{display:inline-block}.sek-nav>li:not(:last-of-type){border-bottom:none}.sek-nav>li>a{padding:5px}.sek-nav-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.sek-mobile-menu-expanded-below{display:none!important}.sek-nav-toggler{display:none}.sek-dropdown-menu{background:#fff;box-shadow:1px 2px 2px 2px rgba(0,0,0,.15)}.sek-nav .sek-dropdown-menu li{padding:0 10px!important;margin:0!important}.sek-nav .sek-dropdown-menu li a{padding:10px 12px}.sek-dropdown-menu ul{left:100%}.sek-dropdown-menu .sek-menu-link__row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.sek-dropdown-menu .sek-nav__title{word-break:normal;white-space:nowrap}.sek-dropdown-submenu .sek-dropdown-menu{top:15px}.sek-submenu-fade .sek-dropdown-menu a{transition:all .25s ease;-webkit-transform:translate(0,0);transform:translate(0,0)}.sek-submenu-fade .sek-dropdown-menu a:hover{-webkit-transform:translate(3px,0);transform:translate(3px,0)}.sek-submenu-fade .menu-item-has-children,.sek-submenu-fade .page_item_has_children{-webkit-perspective:1000px;perspective:1000px}.sek-submenu-fade .menu-item-has-children>ul,.sek-submenu-fade .page_item_has_children>ul{position:fixed;opacity:0;visibility:hidden;display:block;transition:all .25s ease-in-out;-webkit-transform:translate(0,-10px);transform:translate(0,-10px)}.sek-submenu-fade .menu-item-has-children:not(.show),.sek-submenu-fade .page_item_has_children:not(.show){overflow:hidden}.sek-submenu-fade .menu-item-has-children:not(.show) ul,.sek-submenu-fade .page_item_has_children:not(.show) ul{pointer-events:none;cursor:not-allowed}.sek-submenu-fade li.show{-webkit-perspective:none;perspective:none}.sek-submenu-fade li.show>ul{position:absolute;visibility:visible;opacity:1;-webkit-transform:translate(0,0);transform:translate(0,0)}}
1
+ .sek-nav-wrap{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:.5rem 0}.sek-mobile-menu-expanded-below .sek-nav-wrap{padding:0}.sek-nav-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.sek-nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column}.sek-module .sek-module-inner .sek-nav{margin-right:-10px!important;margin-left:-10px!important}.sek-module .sek-module-inner .sek-nav,.sek-module .sek-module-inner .sek-nav ul{list-style:none!important;padding:0!important;margin:0!important}.sek-module .sek-module-inner .sek-nav li{list-style:none;margin:0 5px}.sek-module .sek-module-inner .sek-nav li>ul li{padding:0 0 0 .9rem}.sek-nav li a{font-size:16px;line-height:1.5em;padding:.6em .8em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:inherit;overflow:hidden}.sek-nav-wrap .sek-nav li a{text-decoration:none}.sek-nav li a:hover .sek-nav__title{text-decoration:underline}.sek-nav li:not(:last-of-type){border-bottom:1px solid;border-color:rgba(49,49,49,.09)}.sek-nav .menu-item-has-children,.sek-nav .page_item_has_children{position:relative}.sek-nav .menu-item-has-children>a::after,.sek-nav .page_item_has_children>a::after{content:"\203A";font-family:"Arial Unicode MS",Arial;moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:none;font-style:normal;font-variant:normal;text-rendering:auto;font-weight:900;transition:all .3s ease;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px;padding:0 .45em;font-size:1em;position:relative;-webkit-transform:translateZ(0) rotate(90deg);transform:translateZ(0) rotate(90deg);-ms-transform:rotate(90deg)}.sek-nav .menu-item-has-children.show>a::after,.sek-nav .page_item_has_children.show>a::after{-webkit-transform:translateZ(0) rotate(-90deg)!important;transform:translateZ(0) rotate(-90deg)!important;-ms-transform:rotate(-90deg)!important}.sek-nav .children,.sek-nav .sub-menu{position:static;float:none;list-style:none;border-radius:0;border:0;margin:0;padding:0;font-size:inherit}@media (min-width:768px){.sek-nav .children,.sek-nav .sub-menu{position:absolute;display:none;top:100%;left:0;z-index:1000;min-width:10rem;max-width:50vw}}.sek-dropdown-submenu>a::after{-webkit-transform:translateZ(0) rotate(0)!important;transform:translateZ(0) rotate(0)!important;-ms-transform:rotate(0)!important}.sek-dropdown-submenu>a[class*=-reverse]::after{top:.1em;-webkit-transform:translateZ(0) rotate(-180deg)!important;transform:translateZ(0) rotate(-180deg)!important;-ms-transform:rotate(-180deg)!important}.sek-module-inner .sek-nav-toggler{-webkit-appearance:none!important;cursor:pointer;height:40px;width:40px;padding:0;vertical-align:middle}.sek-module-inner .sek-nav-toggler,.sek-module-inner .sek-nav-toggler:focus,.sek-module-inner .sek-nav-toggler:hover{background:0 0;background-color:rgba(0,0,0,0);color:#000;border:none}.sek-ham__span-wrapper{height:12px;position:relative;display:block}.sek-ham__span-wrapper .line{display:block;height:1.5px;position:absolute;left:10px;border-radius:5px;background-clip:padding-box;transition:all ease .35s;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-top:1.5px solid}.sek-ham__span-wrapper .line-1{top:0}.sek-ham__span-wrapper .line-2{top:50%}.sek-ham__span-wrapper .line-3{top:100%}.sek-nav-toggler .line-1{-webkit-transform:translate(-3px,6px) rotate(45deg);transform:translate(-3px,6px) rotate(45deg);width:28px}.sek-nav-toggler .line-2{opacity:0}.sek-nav-toggler .line-3{-webkit-transform:translate(-3px,-6px) rotate(-45deg);transform:translate(-3px,-6px) rotate(-45deg);width:28px}.sek-nav-toggler.sek-collapsed .line{width:20px;-webkit-transform:translate(0,0) rotate(0);transform:translate(0,0) rotate(0);opacity:1}.sek-nav-toggler.sek-collapsed.hovering .line{-webkit-transform:translateX(-3px);transform:translateX(-3px);width:26px}.sek-dropdown-menu{position:static;float:none;list-style:none;border-radius:0;border:0;margin:0;padding:0;font-size:inherit}@media (min-width:768px){.sek-dropdown-menu{position:absolute;display:none;top:100%;left:0;z-index:1000;min-width:10rem;max-width:50vw}}.show>.sek-dropdown-menu{display:block}.sek-dropdown-menu .sek-nav__title{word-break:break-word;white-space:normal}.sek-dropdown-menu.open-right{left:0;right:auto}.sek-dropdown-menu ul.open-right,.sek-dropdown-menu.open-right ul:not(.open-left){left:100%;right:auto}.sek-dropdown-menu.open-left{left:auto;right:0}.sek-dropdown-menu ul.open-left,.sek-dropdown-menu.open-left ul:not(.open-right){right:100%;left:auto}@media (min-width:768px){.sek-nav{-ms-flex-direction:row;flex-direction:row}.sek-nav .menu-item-has-children>a::after,.sek-nav .page_item_has_children>a::after{display:inline-block}.sek-nav>li:not(:last-of-type){border-bottom:none}.sek-nav>li>a{padding:5px}.sek-nav-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.sek-mobile-menu-expanded-below{display:none!important}.sek-nav-toggler{display:none}.sek-dropdown-menu{background:#fff;box-shadow:1px 2px 2px 2px rgba(0,0,0,.15)}.sek-nav .sek-dropdown-menu li{padding:0 10px!important;margin:0!important}.sek-nav .sek-dropdown-menu li a{padding:10px 12px}.sek-dropdown-menu ul{left:100%}.sek-dropdown-menu .sek-menu-link__row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.sek-dropdown-menu .sek-nav__title{word-break:normal;white-space:nowrap}.sek-dropdown-submenu .sek-dropdown-menu{top:15px}.sek-submenu-fade .sek-dropdown-menu a{transition:all .25s ease;-webkit-transform:translate(0,0);transform:translate(0,0)}.sek-submenu-fade .sek-dropdown-menu a:hover{-webkit-transform:translate(3px,0);transform:translate(3px,0)}.sek-submenu-fade .menu-item-has-children,.sek-submenu-fade .page_item_has_children{-webkit-perspective:1000px;perspective:1000px}.sek-submenu-fade .menu-item-has-children>ul,.sek-submenu-fade .page_item_has_children>ul{position:fixed;opacity:0;visibility:hidden;display:block;transition:all .25s ease-in-out;-webkit-transform:translate(0,-10px);transform:translate(0,-10px)}.sek-submenu-fade .menu-item-has-children:not(.show),.sek-submenu-fade .page_item_has_children:not(.show){overflow:hidden}.sek-submenu-fade .menu-item-has-children:not(.show) ul,.sek-submenu-fade .page_item_has_children:not(.show) ul{pointer-events:none;cursor:not-allowed}.sek-submenu-fade li.show{-webkit-perspective:none;perspective:none}.sek-submenu-fade li.show>ul{position:absolute;visibility:visible;opacity:1;-webkit-transform:translate(0,0);transform:translate(0,0)}}[data-sek-is-mobile-menu=yes]>.show{overflow:auto;max-height:80vh}[data-sek-is-mobile-menu=yes] li .sub-menu li>a{font-size:.8em;padding:.6em 15px}.nb-module-menu-search{position:relative}[data-sek-is-mobile-menu=yes] .nb-module-menu-search{display:none}.nb-svg-search-icon{cursor:pointer}.nb-module-menu-search .nb-search-expand{display:none;background:#fff;position:absolute;z-index:100;top:49px;right:0;left:0;width:340px;box-shadow:0 1px 0 rgba(255,255,255,.1)}.nb-search-expand .nb-search-expand-inner{border:1px solid #eee;box-shadow:0 0 5px rgba(0,0,0,.2),0 1px 0 rgba(255,255,255,.15);transition:-webkit-transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out;transition:height .25s ease-in-out,background-color .45s ease-in-out,-webkit-transform .35s ease-in-out;transition:transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out;transition:transform .35s ease-in-out,height .25s ease-in-out,background-color .45s ease-in-out,-webkit-transform .35s ease-in-out;padding:15px}[data-sek-module-type=czr_menu_module] .nb-search-expand .nb-search-expand-inner [role=search].search-form{display:-ms-flexbox;display:flex;float:none}[data-sek-module-type=czr_menu_module] .nb-search-expand .nb-search-expand-inner label input[type=search]{max-width:100%}[data-sek-is-mobile-menu=yes] .nb-mobile-search form input[type=submit],[data-sek-module-type=czr_menu_module] .nb-search-expand .nb-search-expand-inner input[type=submit]{margin:0;background:grey;color:#fff}[data-sek-is-mobile-menu=yes] .nb-mobile-search form input[type=submit],[data-sek-is-mobile-menu=yes] .nb-mobile-search input[type=search],[data-sek-module-type=czr_menu_module] .nb-search-expand .nb-search-expand-inner input[type=search],[data-sek-module-type=czr_menu_module] .nb-search-expand .nb-search-expand-inner input[type=submit]{text-transform:none!important}.nb-mobile-search{display:none}[data-sek-is-mobile-menu=yes] .nb-mobile-search{display:block;padding:6px 14px 15px}[data-sek-is-mobile-menu=yes] .nb-mobile-search input{font-size:16px}
assets/front/css/sek-base-light-rtl.css CHANGED
@@ -48,10 +48,6 @@
48
  overflow: hidden;
49
  }
50
 
51
- .sektion-wrapper figure {
52
- margin: 0;
53
- }
54
-
55
  .sektion-wrapper embed, .sektion-wrapper iframe, .sektion-wrapper object {
56
  max-width: 100%;
57
  }
48
  overflow: hidden;
49
  }
50
 
 
 
 
 
51
  .sektion-wrapper embed, .sektion-wrapper iframe, .sektion-wrapper object {
52
  max-width: 100%;
53
  }
assets/front/css/sek-base-light-rtl.css.map CHANGED
@@ -36,5 +36,5 @@
36
  "../scss/modules/_shortcode.scss"
37
  ],
38
  "names": [],
39
- "mappings": "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"
40
  }
36
  "../scss/modules/_shortcode.scss"
37
  ],
38
  "names": [],
39
+ "mappings": "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"
40
  }
assets/front/css/sek-base-light-rtl.min.css CHANGED
@@ -1 +1 @@
1
- .sektion-wrapper *,.sektion-wrapper ::after,.sektion-wrapper ::before{box-sizing:border-box}.sektion-wrapper a,.sektion-wrapper abbr,.sektion-wrapper acronym,.sektion-wrapper address,.sektion-wrapper applet,.sektion-wrapper article,.sektion-wrapper aside,.sektion-wrapper audio,.sektion-wrapper b,.sektion-wrapper big,.sektion-wrapper blockquote,.sektion-wrapper canvas,.sektion-wrapper caption,.sektion-wrapper center,.sektion-wrapper cite,.sektion-wrapper code,.sektion-wrapper dd,.sektion-wrapper del,.sektion-wrapper details,.sektion-wrapper dfn,.sektion-wrapper dl,.sektion-wrapper dt,.sektion-wrapper em,.sektion-wrapper embed,.sektion-wrapper fieldset,.sektion-wrapper figcaption,.sektion-wrapper figure,.sektion-wrapper footer,.sektion-wrapper form,.sektion-wrapper h1,.sektion-wrapper h2,.sektion-wrapper h3,.sektion-wrapper h4,.sektion-wrapper h5,.sektion-wrapper h6,.sektion-wrapper header,.sektion-wrapper hgroup,.sektion-wrapper i,.sektion-wrapper iframe,.sektion-wrapper img,.sektion-wrapper ins,.sektion-wrapper kbd,.sektion-wrapper label,.sektion-wrapper legend,.sektion-wrapper li,.sektion-wrapper mark,.sektion-wrapper menu,.sektion-wrapper nav,.sektion-wrapper object,.sektion-wrapper ol,.sektion-wrapper output,.sektion-wrapper p,.sektion-wrapper pre,.sektion-wrapper q,.sektion-wrapper ruby,.sektion-wrapper s,.sektion-wrapper samp,.sektion-wrapper section,.sektion-wrapper small,.sektion-wrapper span,.sektion-wrapper strike,.sektion-wrapper strong,.sektion-wrapper sub,.sektion-wrapper summary,.sektion-wrapper sup,.sektion-wrapper table,.sektion-wrapper tbody,.sektion-wrapper td,.sektion-wrapper tfoot,.sektion-wrapper th,.sektion-wrapper thead,.sektion-wrapper time,.sektion-wrapper tr,.sektion-wrapper tt,.sektion-wrapper u,.sektion-wrapper ul,.sektion-wrapper var,.sektion-wrapper video{border:none;font-size:inherit;line-height:inherit;margin:0;padding:0;text-align:inherit}.sektion-wrapper blockquote::after,.sektion-wrapper blockquote::before,.sektion-wrapper q:after,.sektion-wrapper q:before{content:""}.sektion-wrapper ol,.sektion-wrapper ul{list-style:none}.sektion-wrapper img{max-width:100%;vertical-align:middle;border-style:none;display:inline}.sektion-wrapper svg:not(:root){overflow:hidden}.sektion-wrapper figure{margin:0}.sektion-wrapper embed,.sektion-wrapper iframe,.sektion-wrapper object{max-width:100%}[data-sek-level=location]{clear:both;font-size:16px}.sek-column,.sek-module,.sek-section{display:flex;align-items:center}.sek-column-inner,.sek-module-inner{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.sek-column-inner{display:flex;flex-direction:column}.sek-module{align-self:center;width:100%;max-width:100%}[data-sek-is-nested=true] .sek-container-fluid{padding-right:0;padding-left:0}.sek-module-placeholder{text-align:center}.sek-module-placeholder .material-icons{font-size:inherit;color:#cfcfcf}.sek-screen-reader-text{border:0;clip:rect(0,0,0,0);height:1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}#nimble-page{position:relative;word-wrap:break-word}#wpadminbar .sek-nimble-icon{display:inline-block}#wpadminbar .sek-nimble-icon img{width:28px;position:absolute;top:2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .sek-nimble-icon:hover img{-webkit-filter:none;filter:none;-webkit-filter:none;filter:none}#wpadminbar .sek-nimble-icon .sek-nimble-admin-bar-title{padding-left:30px}[data-sek-has-bg=true]{background-size:cover;background-repeat:no-repeat;background-position:50% 50%}[data-sek-level=location] [data-sek-bg-parallax=true]{background-attachment:fixed;background-size:cover}[data-sek-level=location] .sek-has-bg{position:relative}@supports (-webkit-overflow-scrolling:touch){body [data-sek-level=location] [data-sek-bg-fixed=true],body [data-sek-level=location] [data-sek-bg-parallax=true]{background-attachment:scroll}}[data-sek-level=location] [data-sek-level]{-webkit-transition:0s linear;-o-transition:0s linear;transition:0s linear;-webkit-transition-property:background-position;-o-transition-property:background-position;transition-property:background-position}.sek-module .sek-module-inner .alx-tab.thumbs-enabled>li{padding-left:94px}.sek-module .sek-module-inner .widget_hu_tabs ol,.sek-module .sek-module-inner .widget_hu_tabs ul{margin-left:0;margin-bottom:0}.sek-module .sek-module-inner .widget_hu_tabs .alx-tabs-nav{margin-bottom:10px}[data-sek-level][data-sek-video-bg-src]{position:relative}[data-sek-level] embed,[data-sek-level] iframe,[data-sek-level] object,[data-sek-level] video{max-width:100%;width:100%;margin:0;line-height:1;border:none}[data-sek-level] .sek-custom-embed{line-height:0}[data-sek-level] .sek-background,[data-sek-level] .sek-bg-video-wrapper{height:100%;width:100%;top:0;left:0;position:absolute!important;overflow:hidden;z-index:0;direction:ltr}[data-sek-level] .sek-bg-video-wrapper{-webkit-transition:opacity .5s linear;-o-transition:opacity .5s linear;transition:opacity .5s linear;pointer-events:none;opacity:0}[data-sek-level] .sek-bg-video-wrapper.sek-bg-loading{opacity:0;visibility:hidden}[data-sek-level] .sek-background-vimeo-element,[data-sek-level] .sek-bg-youtube-video-wrapper{max-width:none}[data-sek-level] .sek-background-video-local,[data-sek-level] .sek-background-vimeo-element,[data-sek-level] .sek-bg-youtube-video-wrapper{position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}[data-sek-level] .sek-background-video-local{-o-object-fit:cover;object-fit:cover}.sek-module-inner .sek-debug-modules{margin:1em;padding:5px;border:1px solid rgba(221,221,221,.43);box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);-webkit-box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);background-color:#fff;font-size:15px;font-weight:400;color:#6d6d6d;background:rgba(255,255,255,.6)}@media (max-width:575px){.customizer-preview [data-sek-video-bg-on-mobile=false] .sek-bg-video-wrapper{display:none}}.sek-module-inner .sek-btn,.sek-service-font{font-family:sans-serif}.sek-container{width:100%;padding-right:10px;padding-left:10px;margin-right:auto;margin-left:auto}@media (min-width:576px){.sek-container{max-width:540px}}@media (min-width:768px){.sek-container{max-width:720px}}@media (min-width:992px){.sek-container{max-width:960px}}@media (min-width:1200px){.sek-container{max-width:1140px}}.sek-container-fluid{width:100%;padding-right:10px;padding-left:10px;margin-right:auto;margin-left:auto}.sek-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.sek-container-no-padding{padding-right:0;padding-left:0;overflow-x:hidden}.sek-no-gutters{margin-right:0;margin-left:0}.sek-no-gutters>.sek-col,.sek-no-gutters>[class*=sek-col-]{padding-right:0;padding-left:0}.sek-col,.sek-col-10,.sek-col-100,.sek-col-11,.sek-col-12,.sek-col-14,.sek-col-16,.sek-col-20,.sek-col-25,.sek-col-30,.sek-col-33,.sek-col-40,.sek-col-50,.sek-col-60,.sek-col-66,.sek-col-70,.sek-col-75,.sek-col-8,.sek-col-80,.sek-col-83,.sek-col-9,.sek-col-90,.sek-col-auto,.sek-col-base{position:relative;width:100%;min-height:1px;padding-right:10px;padding-left:10px}.sek-col-base{flex:0 0 100%;max-width:100%}.sek-col{flex-basis:0;flex-grow:1;max-width:100%}.sek-col-auto{flex:0 0 auto;width:auto;max-width:100%}@media (min-width:768px){.sek-col-8{flex:0 0 8.333%;max-width:8.333%}.sek-col-9{flex:0 0 9.090909%;max-width:9.090909%}.sek-col-10{flex:0 0 10%;max-width:10%}.sek-col-11{flex:0 0 11.111%;max-width:11.111%}.sek-col-12{flex:0 0 12.5%;max-width:12.5%}.sek-col-14{flex:0 0 14.285%;max-width:14.285%}.sek-col-16{flex:0 0 16.666%;max-width:16.666%}.sek-col-20{flex:0 0 20%;max-width:20%}.sek-col-25{flex:0 0 25%;max-width:25%}.sek-col-30{flex:0 0 30%;max-width:30%}.sek-col-33{flex:0 0 33.333%;max-width:33.333%}.sek-col-40{flex:0 0 40%;max-width:40%}.sek-col-50{flex:0 0 50%;max-width:50%}.sek-col-60{flex:0 0 60%;max-width:60%}.sek-col-66{flex:0 0 66.666%;max-width:66.666%}.sek-col-70{flex:0 0 70%;max-width:70%}.sek-col-75{flex:0 0 75%;max-width:75%}.sek-col-80{flex:0 0 80%;max-width:80%}.sek-col-83{flex:0 0 83.333%;max-width:83.333%}.sek-col-90{flex:0 0 90%;max-width:90%}.sek-col-100{flex:0 0 100%;max-width:100%}.sek-order-first{order:-1}.sek-order-last{order:13}.sek-order-0{order:0}.sek-order-1{order:1}.sek-order-2{order:2}.sek-order-3{order:3}.sek-order-4{order:4}.sek-order-5{order:5}.sek-order-6{order:6}.sek-order-7{order:7}.sek-order-8{order:8}.sek-order-9{order:9}.sek-order-10{order:10}.sek-order-11{order:11}.sek-order-12{order:12}}.sek-fade{transition:opacity .15s linear}@media screen and (prefers-reduced-motion:reduce){.sek-fade{transition:none}}.sek-fade:not(.show){opacity:0}.sek-collapse:not(.show){display:none}.sek-clearfix::after{display:block;clear:both;content:""}.sek-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sek-sr-only-focusable:active,.sek-sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.sek-embed{position:relative}.sek-embed::before{display:block;content:''}.sek-embed .sek-embed-inner,.sek-embed iframe{position:absolute;width:100%;height:100%;top:0;left:0}.sektion-wrapper{word-wrap:break-word}.sek-text-right{text-align:right!important}.sek-text-left{text-align:left!important}.sek-module .sek-module-inner ul{list-style:disc}.sek-module .sek-module-inner ol{list-style:decimal}.sek-module .sek-module-inner ol>li::before{content:none}.sek-module .sek-module-inner ol,.sek-module .sek-module-inner ul{padding:0;line-height:1.5;margin:0 1.5rem 1.5rem 0}.sek-module .sek-module-inner ol>li,.sek-module .sek-module-inner ul>li{padding:.25rem .5rem}.sek-module .sek-module-inner li>ol,.sek-module .sek-module-inner li>ul{margin-bottom:0}.sek-module-inner pre code,.sek-module-inner tt{box-sizing:border-box;font-size:inherit;white-space:pre-wrap!important;background:0 0;border:none;padding:0;font-family:monospace}.sek-module-inner pre{background:#f7f8f9;padding:2.5em;word-wrap:normal;white-space:pre-wrap!important;color:#313131;font-family:monospace!important}.sek-module-inner figure{text-align:center}.sek-module-inner figcaption{text-align:center}.sek-module-inner cite{color:#313131;font-weight:300;font-style:normal;position:relative;display:inline-block}.sek-module-inner .wp-block-table.is-style-stripes tbody tr:nth-child(odd),.sek-module-inner :root .has-subtle-background-background-color,.sek-module-inner caption,.sek-module-inner code,.sek-module-inner kbd,.sek-module-inner samp{background-color:#dbdbdb}.sek-module-inner sub{bottom:-.25em}.sek-module-inner sub,.sek-module-inner sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.sek-module-inner table{width:100%;border-collapse:collapse}@media (max-width:767.98px){.sek-module-inner table{table-layout:fixed}}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar){border:2px solid #eceeef}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) th{text-transform:uppercase;letter-spacing:2px;font-family:sans-serif}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) td,.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) th{font-size:.95em;padding:1.25em;border:1px solid #eceeef}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) td{color:#777}.sek-module-inner .sek-btn{display:inline-block;font-weight:400;line-height:1.25em;text-align:center;white-space:normal;word-break:break-all;vertical-align:middle;user-select:none;border:1px solid transparent;padding:.5em 1em;border-radius:2px;border-width:2px;border-style:solid;font-size:1em;cursor:pointer;text-decoration:none;text-transform:none;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.sek-module-inner .sek-btn:focus,.sek-module-inner .sek-btn:hover{text-decoration:none}.sek-module-inner .focus.sek-btn,.sek-module-inner .sek-btn:focus{outline:0;box-shadow:0 0 0 2px rgba(2,117,216,.25)}.sek-module-inner .disabled.sek-btn,.sek-module-inner .sek-btn:disabled{cursor:not-allowed;opacity:.65;box-shadow:none}.sek-module-inner .active.sek-btn,.sek-module-inner .sek-btn:active{background-image:none;box-shadow:0 0 0 2px rgba(2,117,216,.25)}a.sek-btn.disabled,fieldset[disabled] a.sek-btn{pointer-events:none}.sektion-wrapper [type=button],.sektion-wrapper [type=reset],.sektion-wrapper [type=submit],.sektion-wrapper button{-webkit-appearance:button}.sektion-wrapper [type=button]::-moz-focus-inner,.sektion-wrapper [type=reset]::-moz-focus-inner,.sektion-wrapper [type=submit]::-moz-focus-inner,.sektion-wrapper button::-moz-focus-inner{padding:0;border-style:none}[type=button].sek-btn,[type=reset].sek-btn,[type=submit].sek-btn,button.sek-btn{-wekbit-appearance:none!important;background:0 0}[data-sek-level=module] .sek-module-inner .wp-caption figcaption{color:#6d6d6d;font-style:italic;max-width:100%;font-size:14px;font-weight:500;line-height:1.4;padding:4px;margin-top:1rem}[data-sek-level=module] .sek-module-inner figure{display:block}[data-sek-level=module] .sek-module-inner .aligncenter,[data-sek-level=module] .sek-module-inner .aligncenter img{margin-left:auto;margin-right:auto}[data-sek-level=module] .sek-module-inner .alignleft{float:left}[data-sek-level=module] .sek-module-inner .alignright{float:right}[data-sek-level=module] .sek-module-inner .aligncenter,[data-sek-level=module] .sek-module-inner .alignleft,[data-sek-level=module] .sek-module-inner .alignnone,[data-sek-level=module] .sek-module-inner .alignright,[data-sek-level=module] .sek-module-inner .alignwide{margin-top:1.5rem;margin-right:auto;margin-bottom:1.5rem;margin-left:auto}[data-sek-level=module] .sek-module-inner [role=search].search-form{display:-webkit-box;display:-ms-flexbox;display:flex;float:left}@media (max-width:767.98px){[data-sek-level=module] .sek-module-inner [role=search].search-form{float:none}}[data-sek-level=module] .sek-module-inner [role=search].search-form label{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:5px}[data-sek-level=module] .sek-module-inner [role=search].search-form label input{padding-left:5px;line-height:20px;width:100%;max-width:185px;min-width:80px}@media (max-width:767.98px){[data-sek-level=module] .sek-module-inner [role=search].search-form label input{max-width:none}}[data-sek-level=module] .sek-module-inner [role=search].search-form input[type=submit]{line-height:15px}[data-sek-level=module] .sek-module-inner input[type=submit]{background:grey;color:#fff;padding:10px 10px;font-weight:400;display:inline-block;border:none;cursor:pointer;-webkit-border-radius:3px;border-radius:3px}[data-sek-level=module] .sek-module-inner .search-form input[type=search]{margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;border-radius:0;background:#fff;border:2px solid #ddd;color:#777;display:block;max-width:100%;padding:7px 8px}.sektion-wrapper.sek-password-protected{display:flex;align-items:center;justify-content:center;-ms-flex-direction:column;flex-direction:column}.sektion-wrapper.sek-password-protected form.post-password-form{max-width:450px;height:auto;padding:4em 1em;font-size:1em}.sek-module-inner h1,.sek-module-inner h2,.sek-module-inner h3,.sek-module-inner h4,.sek-module-inner h5,.sek-module-inner h6{font-weight:400;line-height:1.5em}.sek-module-inner h1{font-size:2.48em}.sek-module-inner h2{font-size:2.07em}.sek-module-inner h3{font-size:1.73em}.sek-module-inner h4{font-size:1.44em}.sek-module-inner h5{font-size:1.2em}.sek-module-inner h6{font-size:1em}.sek-module-inner .sek-heading{text-align:center;margin:.6em 0;display:block}.sek-module-inner .sek-heading>a{color:inherit;font-size:inherit}[data-sek-module-type=czr_divider_module]{text-align:center}[data-sek-module-type=czr_divider_module] .sek-module-inner{font-size:0;line-height:0}.sek-module-inner .sek-divider{border-top:1px solid #5a5a5a;display:inline-block;width:100%;margin-top:15px;margin-bottom:15px;font-size:1rem}.sek-module-inner .sek-spacer{height:20px}[data-sek-module-type=czr_button_module] .sek-module-inner{text-align:center}.sek-module-inner .sek-btn{background:#020202;color:#fff;padding:.5em 1em}.sek-module-inner .sek-btn i{margin:0 8px}.sek-module-inner .sek-btn:active,.sek-module-inner .sek-btn:focus,.sek-module-inner .sek-btn:hover{color:#fff}[data-sek-module-type=czr_button_module] .sek-module-inner .sek-btn:focus,[data-sek-module-type=czr_button_module] .sek-module-inner .sek-btn:hover{text-decoration:none}.sek-btn-inner{display:flex;align-items:center}.sek-btn.box-shadow{-webkit-box-shadow:0 3px 8px rgba(0,0,0,.2)!important;box-shadow:0 3px 8px rgba(0,0,0,.2)!important}.sek-btn.box-shadow.push-effect:active{transform:translateY(2px)}[data-sek-module-type=czr_tiny_mce_editor_module] a{text-decoration:underline}[data-sek-module-type=czr_social_icons_module] .sek-module-inner .sek-social-icons-wrapper{margin:10px 0}.sek-module-inner .sek-social-icons-wrapper{text-align:center}.sek-module-inner .sek-social-icons-wrapper>:not(:last-child){padding-right:8px}.sek-module-inner .sek-social-icons-wrapper>li{display:inline-block}.sek-module-inner .sek-social-icons-wrapper>li a{color:#707070}.sek-module-inner .sek-social-icons-wrapper>li .sek-social-icon{font-size:28px;line-height:1.5em}.sek-module-inner .sek-social-icons-wrapper>li .sek-social-icon{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}[data-sek-module-type=czr_shortcode_module] [data-sek-use-flexbox=true]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-module-inner{line-height:1.5em}.sek-module-inner h1,.sek-module-inner h2,.sek-module-inner h3,.sek-module-inner h4,.sek-module-inner h5,.sek-module-inner h6,.sek-module-inner p{line-height:1.5em}.sek-module-inner p{margin:0 0 1em;padding:0}.sek-module-inner a{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.sek-module-inner img{height:auto;max-width:100%;border:none;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}[data-sek-module-type=czr_accordion_module] .sek-module-inner a,[data-sek-module-type=czr_shortcode_module] .sek-module-inner a,[data-sek-module-type=czr_simple_html_module] .sek-module-inner a,[data-sek-module-type=czr_tiny_mce_editor_module] .sek-module-inner a{text-decoration:underline}body .sek-module-inner h1:before,body .sek-module-inner h2:before,body .sek-module-inner h3:before,body .sek-module-inner h4:before,body .sek-module-inner h5:before,body .sek-module-inner h6:before{content:none;background:0 0}
1
+ .sektion-wrapper *,.sektion-wrapper ::after,.sektion-wrapper ::before{box-sizing:border-box}.sektion-wrapper a,.sektion-wrapper abbr,.sektion-wrapper acronym,.sektion-wrapper address,.sektion-wrapper applet,.sektion-wrapper article,.sektion-wrapper aside,.sektion-wrapper audio,.sektion-wrapper b,.sektion-wrapper big,.sektion-wrapper blockquote,.sektion-wrapper canvas,.sektion-wrapper caption,.sektion-wrapper center,.sektion-wrapper cite,.sektion-wrapper code,.sektion-wrapper dd,.sektion-wrapper del,.sektion-wrapper details,.sektion-wrapper dfn,.sektion-wrapper dl,.sektion-wrapper dt,.sektion-wrapper em,.sektion-wrapper embed,.sektion-wrapper fieldset,.sektion-wrapper figcaption,.sektion-wrapper figure,.sektion-wrapper footer,.sektion-wrapper form,.sektion-wrapper h1,.sektion-wrapper h2,.sektion-wrapper h3,.sektion-wrapper h4,.sektion-wrapper h5,.sektion-wrapper h6,.sektion-wrapper header,.sektion-wrapper hgroup,.sektion-wrapper i,.sektion-wrapper iframe,.sektion-wrapper img,.sektion-wrapper ins,.sektion-wrapper kbd,.sektion-wrapper label,.sektion-wrapper legend,.sektion-wrapper li,.sektion-wrapper mark,.sektion-wrapper menu,.sektion-wrapper nav,.sektion-wrapper object,.sektion-wrapper ol,.sektion-wrapper output,.sektion-wrapper p,.sektion-wrapper pre,.sektion-wrapper q,.sektion-wrapper ruby,.sektion-wrapper s,.sektion-wrapper samp,.sektion-wrapper section,.sektion-wrapper small,.sektion-wrapper span,.sektion-wrapper strike,.sektion-wrapper strong,.sektion-wrapper sub,.sektion-wrapper summary,.sektion-wrapper sup,.sektion-wrapper table,.sektion-wrapper tbody,.sektion-wrapper td,.sektion-wrapper tfoot,.sektion-wrapper th,.sektion-wrapper thead,.sektion-wrapper time,.sektion-wrapper tr,.sektion-wrapper tt,.sektion-wrapper u,.sektion-wrapper ul,.sektion-wrapper var,.sektion-wrapper video{border:none;font-size:inherit;line-height:inherit;margin:0;padding:0;text-align:inherit}.sektion-wrapper blockquote::after,.sektion-wrapper blockquote::before,.sektion-wrapper q:after,.sektion-wrapper q:before{content:""}.sektion-wrapper ol,.sektion-wrapper ul{list-style:none}.sektion-wrapper img{max-width:100%;vertical-align:middle;border-style:none;display:inline}.sektion-wrapper svg:not(:root){overflow:hidden}.sektion-wrapper embed,.sektion-wrapper iframe,.sektion-wrapper object{max-width:100%}[data-sek-level=location]{clear:both;font-size:16px}.sek-column,.sek-module,.sek-section{display:flex;align-items:center}.sek-column-inner,.sek-module-inner{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.sek-column-inner{display:flex;flex-direction:column}.sek-module{align-self:center;width:100%;max-width:100%}[data-sek-is-nested=true] .sek-container-fluid{padding-right:0;padding-left:0}.sek-module-placeholder{text-align:center}.sek-module-placeholder .material-icons{font-size:inherit;color:#cfcfcf}.sek-screen-reader-text{border:0;clip:rect(0,0,0,0);height:1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}#nimble-page{position:relative;word-wrap:break-word}#wpadminbar .sek-nimble-icon{display:inline-block}#wpadminbar .sek-nimble-icon img{width:28px;position:absolute;top:2px;-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:gray;filter:gray;-webkit-transition:all .3s ease-in-out;-moz-transition:all,.3s ease-in-out;-ms-transition:all,.3s ease-in-out;-o-transition:all,.3s ease-in-out;transition:all .3s ease-in-out;-webkit-box-shadow:none;box-shadow:none}#wpadminbar .sek-nimble-icon:hover img{-webkit-filter:none;filter:none;-webkit-filter:none;filter:none}#wpadminbar .sek-nimble-icon .sek-nimble-admin-bar-title{padding-left:30px}[data-sek-has-bg=true]{background-size:cover;background-repeat:no-repeat;background-position:50% 50%}[data-sek-level=location] [data-sek-bg-parallax=true]{background-attachment:fixed;background-size:cover}[data-sek-level=location] .sek-has-bg{position:relative}@supports (-webkit-overflow-scrolling:touch){body [data-sek-level=location] [data-sek-bg-fixed=true],body [data-sek-level=location] [data-sek-bg-parallax=true]{background-attachment:scroll}}[data-sek-level=location] [data-sek-level]{-webkit-transition:0s linear;-o-transition:0s linear;transition:0s linear;-webkit-transition-property:background-position;-o-transition-property:background-position;transition-property:background-position}.sek-module .sek-module-inner .alx-tab.thumbs-enabled>li{padding-left:94px}.sek-module .sek-module-inner .widget_hu_tabs ol,.sek-module .sek-module-inner .widget_hu_tabs ul{margin-left:0;margin-bottom:0}.sek-module .sek-module-inner .widget_hu_tabs .alx-tabs-nav{margin-bottom:10px}[data-sek-level][data-sek-video-bg-src]{position:relative}[data-sek-level] embed,[data-sek-level] iframe,[data-sek-level] object,[data-sek-level] video{max-width:100%;width:100%;margin:0;line-height:1;border:none}[data-sek-level] .sek-custom-embed{line-height:0}[data-sek-level] .sek-background,[data-sek-level] .sek-bg-video-wrapper{height:100%;width:100%;top:0;left:0;position:absolute!important;overflow:hidden;z-index:0;direction:ltr}[data-sek-level] .sek-bg-video-wrapper{-webkit-transition:opacity .5s linear;-o-transition:opacity .5s linear;transition:opacity .5s linear;pointer-events:none;opacity:0}[data-sek-level] .sek-bg-video-wrapper.sek-bg-loading{opacity:0;visibility:hidden}[data-sek-level] .sek-background-vimeo-element,[data-sek-level] .sek-bg-youtube-video-wrapper{max-width:none}[data-sek-level] .sek-background-video-local,[data-sek-level] .sek-background-vimeo-element,[data-sek-level] .sek-bg-youtube-video-wrapper{position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}[data-sek-level] .sek-background-video-local{-o-object-fit:cover;object-fit:cover}.sek-module-inner .sek-debug-modules{margin:1em;padding:5px;border:1px solid rgba(221,221,221,.43);box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);-webkit-box-shadow:1px 1px 2px 0 rgba(75,75,85,.2);background-color:#fff;font-size:15px;font-weight:400;color:#6d6d6d;background:rgba(255,255,255,.6)}@media (max-width:575px){.customizer-preview [data-sek-video-bg-on-mobile=false] .sek-bg-video-wrapper{display:none}}.sek-module-inner .sek-btn,.sek-service-font{font-family:sans-serif}.sek-container{width:100%;padding-right:10px;padding-left:10px;margin-right:auto;margin-left:auto}@media (min-width:576px){.sek-container{max-width:540px}}@media (min-width:768px){.sek-container{max-width:720px}}@media (min-width:992px){.sek-container{max-width:960px}}@media (min-width:1200px){.sek-container{max-width:1140px}}.sek-container-fluid{width:100%;padding-right:10px;padding-left:10px;margin-right:auto;margin-left:auto}.sek-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.sek-container-no-padding{padding-right:0;padding-left:0;overflow-x:hidden}.sek-no-gutters{margin-right:0;margin-left:0}.sek-no-gutters>.sek-col,.sek-no-gutters>[class*=sek-col-]{padding-right:0;padding-left:0}.sek-col,.sek-col-10,.sek-col-100,.sek-col-11,.sek-col-12,.sek-col-14,.sek-col-16,.sek-col-20,.sek-col-25,.sek-col-30,.sek-col-33,.sek-col-40,.sek-col-50,.sek-col-60,.sek-col-66,.sek-col-70,.sek-col-75,.sek-col-8,.sek-col-80,.sek-col-83,.sek-col-9,.sek-col-90,.sek-col-auto,.sek-col-base{position:relative;width:100%;min-height:1px;padding-right:10px;padding-left:10px}.sek-col-base{flex:0 0 100%;max-width:100%}.sek-col{flex-basis:0;flex-grow:1;max-width:100%}.sek-col-auto{flex:0 0 auto;width:auto;max-width:100%}@media (min-width:768px){.sek-col-8{flex:0 0 8.333%;max-width:8.333%}.sek-col-9{flex:0 0 9.090909%;max-width:9.090909%}.sek-col-10{flex:0 0 10%;max-width:10%}.sek-col-11{flex:0 0 11.111%;max-width:11.111%}.sek-col-12{flex:0 0 12.5%;max-width:12.5%}.sek-col-14{flex:0 0 14.285%;max-width:14.285%}.sek-col-16{flex:0 0 16.666%;max-width:16.666%}.sek-col-20{flex:0 0 20%;max-width:20%}.sek-col-25{flex:0 0 25%;max-width:25%}.sek-col-30{flex:0 0 30%;max-width:30%}.sek-col-33{flex:0 0 33.333%;max-width:33.333%}.sek-col-40{flex:0 0 40%;max-width:40%}.sek-col-50{flex:0 0 50%;max-width:50%}.sek-col-60{flex:0 0 60%;max-width:60%}.sek-col-66{flex:0 0 66.666%;max-width:66.666%}.sek-col-70{flex:0 0 70%;max-width:70%}.sek-col-75{flex:0 0 75%;max-width:75%}.sek-col-80{flex:0 0 80%;max-width:80%}.sek-col-83{flex:0 0 83.333%;max-width:83.333%}.sek-col-90{flex:0 0 90%;max-width:90%}.sek-col-100{flex:0 0 100%;max-width:100%}.sek-order-first{order:-1}.sek-order-last{order:13}.sek-order-0{order:0}.sek-order-1{order:1}.sek-order-2{order:2}.sek-order-3{order:3}.sek-order-4{order:4}.sek-order-5{order:5}.sek-order-6{order:6}.sek-order-7{order:7}.sek-order-8{order:8}.sek-order-9{order:9}.sek-order-10{order:10}.sek-order-11{order:11}.sek-order-12{order:12}}.sek-fade{transition:opacity .15s linear}@media screen and (prefers-reduced-motion:reduce){.sek-fade{transition:none}}.sek-fade:not(.show){opacity:0}.sek-collapse:not(.show){display:none}.sek-clearfix::after{display:block;clear:both;content:""}.sek-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sek-sr-only-focusable:active,.sek-sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.sek-embed{position:relative}.sek-embed::before{display:block;content:''}.sek-embed .sek-embed-inner,.sek-embed iframe{position:absolute;width:100%;height:100%;top:0;left:0}.sektion-wrapper{word-wrap:break-word}.sek-text-right{text-align:right!important}.sek-text-left{text-align:left!important}.sek-module .sek-module-inner ul{list-style:disc}.sek-module .sek-module-inner ol{list-style:decimal}.sek-module .sek-module-inner ol>li::before{content:none}.sek-module .sek-module-inner ol,.sek-module .sek-module-inner ul{padding:0;line-height:1.5;margin:0 1.5rem 1.5rem 0}.sek-module .sek-module-inner ol>li,.sek-module .sek-module-inner ul>li{padding:.25rem .5rem}.sek-module .sek-module-inner li>ol,.sek-module .sek-module-inner li>ul{margin-bottom:0}.sek-module-inner pre code,.sek-module-inner tt{box-sizing:border-box;font-size:inherit;white-space:pre-wrap!important;background:0 0;border:none;padding:0;font-family:monospace}.sek-module-inner pre{background:#f7f8f9;padding:2.5em;word-wrap:normal;white-space:pre-wrap!important;color:#313131;font-family:monospace!important}.sek-module-inner figure{text-align:center}.sek-module-inner figcaption{text-align:center}.sek-module-inner cite{color:#313131;font-weight:300;font-style:normal;position:relative;display:inline-block}.sek-module-inner .wp-block-table.is-style-stripes tbody tr:nth-child(odd),.sek-module-inner :root .has-subtle-background-background-color,.sek-module-inner caption,.sek-module-inner code,.sek-module-inner kbd,.sek-module-inner samp{background-color:#dbdbdb}.sek-module-inner sub{bottom:-.25em}.sek-module-inner sub,.sek-module-inner sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.sek-module-inner table{width:100%;border-collapse:collapse}@media (max-width:767.98px){.sek-module-inner table{table-layout:fixed}}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar){border:2px solid #eceeef}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) th{text-transform:uppercase;letter-spacing:2px;font-family:sans-serif}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) td,.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) th{font-size:.95em;padding:1.25em;border:1px solid #eceeef}.sek-module-inner table:not([id^=wp-calendar]):not(.ui-datepicker-calendar):not(.tribe-mini-calendar) td{color:#777}.sek-module-inner .sek-btn{display:inline-block;font-weight:400;line-height:1.25em;text-align:center;white-space:normal;word-break:break-all;vertical-align:middle;user-select:none;border:1px solid transparent;padding:.5em 1em;border-radius:2px;border-width:2px;border-style:solid;font-size:1em;cursor:pointer;text-decoration:none;text-transform:none;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.sek-module-inner .sek-btn:focus,.sek-module-inner .sek-btn:hover{text-decoration:none}.sek-module-inner .focus.sek-btn,.sek-module-inner .sek-btn:focus{outline:0;box-shadow:0 0 0 2px rgba(2,117,216,.25)}.sek-module-inner .disabled.sek-btn,.sek-module-inner .sek-btn:disabled{cursor:not-allowed;opacity:.65;box-shadow:none}.sek-module-inner .active.sek-btn,.sek-module-inner .sek-btn:active{background-image:none;box-shadow:0 0 0 2px rgba(2,117,216,.25)}a.sek-btn.disabled,fieldset[disabled] a.sek-btn{pointer-events:none}.sektion-wrapper [type=button],.sektion-wrapper [type=reset],.sektion-wrapper [type=submit],.sektion-wrapper button{-webkit-appearance:button}.sektion-wrapper [type=button]::-moz-focus-inner,.sektion-wrapper [type=reset]::-moz-focus-inner,.sektion-wrapper [type=submit]::-moz-focus-inner,.sektion-wrapper button::-moz-focus-inner{padding:0;border-style:none}[type=button].sek-btn,[type=reset].sek-btn,[type=submit].sek-btn,button.sek-btn{-wekbit-appearance:none!important;background:0 0}[data-sek-level=module] .sek-module-inner .wp-caption figcaption{color:#6d6d6d;font-style:italic;max-width:100%;font-size:14px;font-weight:500;line-height:1.4;padding:4px;margin-top:1rem}[data-sek-level=module] .sek-module-inner figure{display:block}[data-sek-level=module] .sek-module-inner .aligncenter,[data-sek-level=module] .sek-module-inner .aligncenter img{margin-left:auto;margin-right:auto}[data-sek-level=module] .sek-module-inner .alignleft{float:left}[data-sek-level=module] .sek-module-inner .alignright{float:right}[data-sek-level=module] .sek-module-inner .aligncenter,[data-sek-level=module] .sek-module-inner .alignleft,[data-sek-level=module] .sek-module-inner .alignnone,[data-sek-level=module] .sek-module-inner .alignright,[data-sek-level=module] .sek-module-inner .alignwide{margin-top:1.5rem;margin-right:auto;margin-bottom:1.5rem;margin-left:auto}[data-sek-level=module] .sek-module-inner [role=search].search-form{display:-webkit-box;display:-ms-flexbox;display:flex;float:left}@media (max-width:767.98px){[data-sek-level=module] .sek-module-inner [role=search].search-form{float:none}}[data-sek-level=module] .sek-module-inner [role=search].search-form label{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:5px}[data-sek-level=module] .sek-module-inner [role=search].search-form label input{padding-left:5px;line-height:20px;width:100%;max-width:185px;min-width:80px}@media (max-width:767.98px){[data-sek-level=module] .sek-module-inner [role=search].search-form label input{max-width:none}}[data-sek-level=module] .sek-module-inner [role=search].search-form input[type=submit]{line-height:15px}[data-sek-level=module] .sek-module-inner input[type=submit]{background:grey;color:#fff;padding:10px 10px;font-weight:400;display:inline-block;border:none;cursor:pointer;-webkit-border-radius:3px;border-radius:3px}[data-sek-level=module] .sek-module-inner .search-form input[type=search]{margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;border-radius:0;background:#fff;border:2px solid #ddd;color:#777;display:block;max-width:100%;padding:7px 8px}.sektion-wrapper.sek-password-protected{display:flex;align-items:center;justify-content:center;-ms-flex-direction:column;flex-direction:column}.sektion-wrapper.sek-password-protected form.post-password-form{max-width:450px;height:auto;padding:4em 1em;font-size:1em}.sek-module-inner h1,.sek-module-inner h2,.sek-module-inner h3,.sek-module-inner h4,.sek-module-inner h5,.sek-module-inner h6{font-weight:400;line-height:1.5em}.sek-module-inner h1{font-size:2.48em}.sek-module-inner h2{font-size:2.07em}.sek-module-inner h3{font-size:1.73em}.sek-module-inner h4{font-size:1.44em}.sek-module-inner h5{font-size:1.2em}.sek-module-inner h6{font-size:1em}.sek-module-inner .sek-heading{text-align:center;margin:.6em 0;display:block}.sek-module-inner .sek-heading>a{color:inherit;font-size:inherit}[data-sek-module-type=czr_divider_module]{text-align:center}[data-sek-module-type=czr_divider_module] .sek-module-inner{font-size:0;line-height:0}.sek-module-inner .sek-divider{border-top:1px solid #5a5a5a;display:inline-block;width:100%;margin-top:15px;margin-bottom:15px;font-size:1rem}.sek-module-inner .sek-spacer{height:20px}[data-sek-module-type=czr_button_module] .sek-module-inner{text-align:center}.sek-module-inner .sek-btn{background:#020202;color:#fff;padding:.5em 1em}.sek-module-inner .sek-btn i{margin:0 8px}.sek-module-inner .sek-btn:active,.sek-module-inner .sek-btn:focus,.sek-module-inner .sek-btn:hover{color:#fff}[data-sek-module-type=czr_button_module] .sek-module-inner .sek-btn:focus,[data-sek-module-type=czr_button_module] .sek-module-inner .sek-btn:hover{text-decoration:none}.sek-btn-inner{display:flex;align-items:center}.sek-btn.box-shadow{-webkit-box-shadow:0 3px 8px rgba(0,0,0,.2)!important;box-shadow:0 3px 8px rgba(0,0,0,.2)!important}.sek-btn.box-shadow.push-effect:active{transform:translateY(2px)}[data-sek-module-type=czr_tiny_mce_editor_module] a{text-decoration:underline}[data-sek-module-type=czr_social_icons_module] .sek-module-inner .sek-social-icons-wrapper{margin:10px 0}.sek-module-inner .sek-social-icons-wrapper{text-align:center}.sek-module-inner .sek-social-icons-wrapper>:not(:last-child){padding-right:8px}.sek-module-inner .sek-social-icons-wrapper>li{display:inline-block}.sek-module-inner .sek-social-icons-wrapper>li a{color:#707070}.sek-module-inner .sek-social-icons-wrapper>li .sek-social-icon{font-size:28px;line-height:1.5em}.sek-module-inner .sek-social-icons-wrapper>li .sek-social-icon{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}[data-sek-module-type=czr_shortcode_module] [data-sek-use-flexbox=true]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sek-module-inner{line-height:1.5em}.sek-module-inner h1,.sek-module-inner h2,.sek-module-inner h3,.sek-module-inner h4,.sek-module-inner